:root {
  --bg: #0d0d0c;
  --fg: #e9e7e2;
  --fg-dim: #9c9a93;
  --fg-dimmer: #6b6a65;
  --border: #2c2b28;
  --beanfish: #e69fb1;
  --max-width: 640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  cursor: crosshair;
}

body {
  font-family: "Space Mono", "Courier New", Courier, monospace;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--fg);
  text-decoration: none;
}

a:hover { text-decoration: underline;
cursor: crosshair;
color: var(--beanfish);
}

.site-header {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.site-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.site-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
}

.nav a { color: var(--fg-dim); }
.nav a:hover { color: var(--fg); text-decoration: none; }
.nav a.active {
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}

.nav a:hover{
  cursor: crosshair;
  color: var(--beanfish);
}

.nav .sep { color: var(--fg-dimmer); }

.site-main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 48px;
}

.polaroid {
  background: #f2f0ea;
  padding: 14px 14px 42px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.4deg);
  width: 230px;
  margin: 0 0 30px;
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #1a1a18;
}

.polaroid figcaption {
  text-align: center;
  font-size: 10px;
  color: #6b6858;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.intro-text {
  max-width: 80%;
  color: var(--fg-dim);
  font-size: 14px;
}

.intro-text p { margin: 0 0 12px; }
.intro-text p:last-child { margin-bottom: 0; }

.greeting {
  color: var(--fg);
  font-weight: 700;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head.featured{
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 5px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  margin: 0;
  font-weight: 400;
}



.more-link {
  font-size: 12px;
  color: var(--fg-dim);
}

.featured {
  padding-bottom: 40px;
}

.featured .section-head {
  justify-content: center;
}

.featured-photo {
  display: block;
  text-align: center;
 
  background: #171615;
  overflow: hidden;
}

.featured-photo img {
  display: block;
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  margin: 0 auto;
  background: #171615;
}

.featured-photo.landscape img {
   max-height: 50vh;
}

.featured-desc {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--fg-dim);
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.grid-wide {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tile-wrap {
  position: relative;
}

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  border: 1px solid var(--border);
  background: #171615;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) contrast(1.03);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.tile:hover img {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(1.05);
}

.hover-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 60;
}

.tile-wrap.is-open .hover-preview {
  opacity: 1;
  pointer-events: auto;
}

html:not(.is-touch) .tile-wrap:hover .hover-preview {
  opacity: 1;
  pointer-events: auto;
}

.preview-backdrop {
  display: none;
}

.polaroid-preview {
  position: relative;
  display: block;
  background: #f2f0ea;
  padding: 14px 14px 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transform: scale(0.96);
  transition: transform 0.15s ease;
}

.tile-wrap.is-open .polaroid-preview {
  transform: scale(1);
}

html:not(.is-touch) .tile-wrap:hover .polaroid-preview {
  transform: scale(1);
}

.hover-preview.portrait .polaroid-preview {
  width: min(60vw, 340px);
}

.hover-preview.landscape .polaroid-preview {
  width: min(80vw, 520px);
}

.tile-wrap.is-open .hover-preview {
  position: fixed;
  inset: 0;
  transform: none;
}

.tile-wrap.is-open .preview-backdrop {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.polaroid-preview img {
  display: block;
  width: 100%;
}

.preview-caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-align: center;
  font-size: 10px;
  color: #6b6858;
  margin-top: 10px;
  letter-spacing: 0.02em;
  max-height: 2.8em;
  line-height: 1.4;
}

.record-tile {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.record-tile:hover {
  text-decoration: none;
}

.record-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.tile.is-hidden {
  display: none;
}

.records-sentinel {
  grid-column: 1 / -1;
  height: 1px;
}

.record-tile-fallback img {
  object-fit: contain;
  background: #f2f0ea;
  padding: 18%;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.btn {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 12px;
  cursor: crosshair;
}

.btn:hover {
  color: var(--fg);
  border-color: var(--fg-dim);
}

.record-caption {
  padding: 8px 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10.5px;
  line-height: 1.4;
}

.record-artist {
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.record-title {
  color: var(--fg-dim);
  font-style: italic;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px auto 0;
  max-width: 420px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 12px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--fg-dim);
}

.contact-form .btn {
  align-self: flex-end;
}

.contact-status {
  font-size: 11.5px;
  color: var(--fg-dim);
  min-height: 1.4em;
  margin: 4px 0 0;
}

.contact-status.ok {
  color: #8fae8f;
}

.contact-status.err {
  color: #b98080;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.glass-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.glass-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.glass-link:hover {
  background: #FFD60A;
  border-color: #FFD60A;
  color: #000;
  text-decoration: none;
}

.glass-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background-color: var(--fg);
  -webkit-mask: url("../img/glass-logo.svg") no-repeat center / contain;
  mask: url("../img/glass-logo.svg") no-repeat center / contain;
  transition: background-color 0.15s ease;
}

.glass-link:hover .glass-icon {
  background-color: #000;
}

.empty-msg {
  color: var(--fg-dimmer);
  font-size: 13px;
  text-align: center;
  padding: 24px 0;
  border: 1px dashed var(--border);
}

.page h1 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
  font-weight: 400;
  margin: 20px 0 6px;
}

.page-meta {
  font-size: 11px;
  color: var(--fg-dimmer);
  margin: 0 0 4px;
}

.page-meta-fun {
  font-size: 11px;
  color: var(--fg-dimmer);
  font-style: italic;
  margin: 0 0 24px;
}

.page-body {
  font-size: 14px;
  color: var(--fg-dim);
}

.page-body p { margin: 0 0 14px; }
.page-body a { color: var(--fg); text-decoration: underline; }
.page-body em { color: var(--fg); }

.site-footer {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 20px 20px 40px;
  text-align: center;
  font-size: 10.5px;
  color: var(--fg-dimmer);
}

.site-footer a {
  color: var(--fg-dimmer);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .grid, .grid-wide {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hover-preview.portrait .polaroid-preview,
  .hover-preview.landscape .polaroid-preview {
    width: 82vw;
  }
}
