/* ==========================================================================
   The Howling Three — a permanent archive, not a landing page.
   One spacing scale (--sp-1…7) governs every section; nothing sits at an
   arbitrary number. Every record shares one signature: a tick-marked
   reference number, a matted print, metadata that outweighs its own
   listen link. No gloss, no gradients, no glass, no glow. Restraint is
   the identity.
   ========================================================================== */

:root {
  --bg: #161310;
  --bg-raised: #1d1a15;

  --text: #ece5d8;
  --text-muted: #93897a;
  --text-dim: #5c5347;

  --gold: #a9884e;

  --line: rgba(236, 229, 216, 0.12);
  --line-strong: rgba(236, 229, 216, 0.32);

  --font-sans: "Inter", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --font-serif: "EB Garamond", Georgia, serif;

  --max-width: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Spacing scale — every major rhythm value on the site resolves to one
     of these. Nothing sits at an arbitrary number. */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
}

*:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
}

::selection {
  background: var(--gold);
  color: #14110d;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--text);
}

.section-sub {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 620px;
  line-height: 1.8;
}

.section-sub em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Header / Nav — transparent until scrolled; almost no chrome
--------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
}

.brand span {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
  border-bottom-color: var(--line-strong);
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-socials a {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.social-icon {
  height: 15px;
  width: auto;
  object-fit: contain;
  filter: invert(1) grayscale(1);
  opacity: 0.5;
  transition: opacity 0.25s ease;
  display: block;
}

.social-icon--youtube {
  height: 20px;
}

.header-socials a:hover .social-icon,
.mobile-nav .mobile-socials a:hover .social-icon,
.footer-socials a:hover .social-icon {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px 24px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 13px 2px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.mobile-nav .mobile-socials {
  display: flex;
  gap: 20px;
  padding-top: 14px;
}

.mobile-nav .mobile-socials a {
  border-bottom: none;
  padding: 0;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .main-nav,
  .header-socials {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ---------------------------------------------------------------------
   Hero — a quiet frontispiece, not a marketing banner
--------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  padding: 110px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-visual {
  display: flex;
  justify-content: flex-start;
}

.hero-mark {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.hero-logo {
  width: clamp(180px, 22vw, 320px);
  height: auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 26px;
  padding-top: 8vh;
}

.hero-desc {
  max-width: 380px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .hero-visual {
    justify-content: center;
  }
  .hero-content {
    align-items: center;
    text-align: center;
    padding-top: 0;
  }
  .hero-desc {
    max-width: 480px;
  }
  .hero-actions {
    justify-content: center;
  }
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}

.link-cta-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  transition: background 0.25s ease, color 0.25s ease;
}

.link-cta:hover .link-cta-ring {
  background: var(--gold);
  color: var(--bg);
}

.link-cta-ring .icon {
  width: 14px;
  height: 14px;
}

.link-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.link-ghost:hover {
  color: var(--text);
  border-color: var(--line-strong);
  gap: 10px;
}

.hero-player {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-raised);
}

.hero-player iframe {
  width: 100%;
  height: 152px;
  display: block;
  border: 0;
}

/* ---------------------------------------------------------------------
   Episodes — a catalogue, not a card grid
--------------------------------------------------------------------- */
.episodes {
  padding: var(--sp-7) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: var(--sp-5);
}

/* Collections filter — reads as an index, not a widget */
.collections-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
  padding: var(--sp-3) 0;
  margin-bottom: var(--sp-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collections-filter-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 4px 0;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.collections-filter-btn:hover {
  color: var(--text-muted);
}

.collections-filter-btn.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.record-list {
  display: flex;
  flex-direction: column;
}

.record {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
}

.record.is-filtered-out {
  display: none;
}

.record-media {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* The mat: a small reveal of ground around the print before the frame
   line, the way an archival photograph is mounted rather than glued
   edge-to-edge. */
.record-frame {
  padding: 7px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

.record-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: grayscale(0.1) contrast(1.02);
  transition: filter 0.4s ease;
}

.record:hover .record-frame img {
  filter: grayscale(0) contrast(1.02);
}

.record-id {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.record-id::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--line-strong);
  flex-shrink: 0;
}

.record-body {
  min-width: 0;
}

.episode-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.record-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-4);
  margin: var(--sp-3) 0;
  padding: 0;
}

.record-fields div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.record-fields dt {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0;
}

.record-fields dd {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* Metadata carries the record; the listen link is quiet until the record
   is actually being considered — a hover reveals intent, not decoration. */
.episode-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.25s ease, gap 0.25s ease;
  width: fit-content;
}

.record:hover .episode-link {
  color: var(--gold);
}

.episode-link:hover,
.episode-link:focus-visible {
  border-bottom-color: var(--gold);
  color: var(--gold);
  gap: 9px;
}

.episodes-footer {
  margin-top: var(--sp-6);
  text-align: center;
}

/* ---------------------------------------------------------------------
   About
--------------------------------------------------------------------- */
.about {
  padding: var(--sp-7) 0;
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.about-follow {
  margin-top: var(--sp-2);
}

.about-copy p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.85;
  margin: 0 0 var(--sp-2);
}

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer {
  padding: var(--sp-5) 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand span {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-socials a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

/* ---------------------------------------------------------------------
   Reveal-on-scroll — quick and quiet, no ambient motion
--------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------- */
@media (max-width: 720px) {
  .hero {
    padding: 96px 0 56px;
  }
  .record {
    grid-template-columns: 96px 1fr;
    gap: var(--sp-3);
    padding: var(--sp-4) 0;
  }
  .record-fields {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
    margin: var(--sp-2) 0;
  }
}
