/* ==========================================================================
   The Wayward Aficionado — vintage cigar-box lithography
   Deep espresso brown + leather grain, antique gold, cream type.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --espresso:        #150e09;
  --espresso-soft:   #1e140e;
  --panel:           #251913;
  --panel-edge:      #3a271b;

  --gold:            #c8a35a;
  --gold-bright:     #e6cd94;
  --gold-dim:        #8d7239;

  --cream:           #f2e7d3;
  --cream-soft:      #dbcdb5;
  --cream-dim:       #b3a288;

  --line:            rgba(200, 163, 90, .30);
  --line-strong:     rgba(200, 163, 90, .55);

  --serif-display:   "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --serif-body:      "Lora", Georgia, "Times New Roman", serif;

  --wrap:            68rem;
  --wrap-narrow:     46rem;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  background-color: var(--espresso);
  font-family: var(--serif-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Leather grain + warm vignette over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(115% 80% at 50% -10%, rgba(140, 96, 44, .20) 0%, rgba(140, 96, 44, 0) 58%),
    radial-gradient(90% 60% at 50% 112%, rgba(94, 60, 26, .22) 0%, rgba(94, 60, 26, 0) 60%),
    var(--grain);
  background-size: auto, auto, 240px 240px;
  opacity: .55;
  mix-blend-mode: soft-light;
}

/* Hairline frame around the whole viewport, like a lithograph border */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(200, 163, 90, .13);
  box-shadow: inset 0 0 140px 40px rgba(0, 0, 0, .55);
}

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

a { color: var(--gold-bright); text-decoration-color: rgba(230, 205, 148, .45); text-underline-offset: 3px; }
a:hover { color: var(--cream); }

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

/* ---------- Shared layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 2.5rem);
  position: relative;
  z-index: 2;
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section {
  position: relative;
  padding-block: clamp(3.4rem, 9vw, 6.5rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* Gold hairline with a diamond at its centre */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: var(--gold-dim);
  font-size: .7rem;
  line-height: 1;
  margin-block: 1.35rem 1.6rem;
}
.ornament span {
  display: block;
  height: 1px;
  width: clamp(2.2rem, 10vw, 4.5rem);
  background: linear-gradient(90deg, rgba(200, 163, 90, 0), var(--gold-dim));
}
.ornament span:last-child {
  background: linear-gradient(90deg, var(--gold-dim), rgba(200, 163, 90, 0));
}
.ornament--footer { margin-block: 0 2rem; }

.section__eyebrow,
.hero__kicker,
.gate__kicker {
  font-family: var(--serif-body);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.section__title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 5.4vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: .015em;
  margin: .7rem 0 0;
  color: var(--cream);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: var(--espresso);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .78rem 1.65rem;
  font-family: var(--serif-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 1px;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.btn--gold {
  color: var(--btn-fg);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 55%, #ab8842 100%);
  box-shadow: 0 1px 0 rgba(255, 240, 205, .35) inset, 0 10px 24px -14px rgba(0, 0, 0, .9);
}
.btn--gold:hover {
  color: #120c07;
  background: linear-gradient(180deg, #f3e2b6 0%, var(--gold-bright) 55%, var(--gold) 100%);
  box-shadow: 0 1px 0 rgba(255, 245, 220, .5) inset, 0 12px 28px -12px rgba(0, 0, 0, .95);
}
.btn--gold:active { transform: translateY(1px); }

.btn--ghost {
  color: var(--gold-bright);
  background: transparent;
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  color: var(--cream);
  border-color: var(--gold);
  background: rgba(200, 163, 90, .09);
}

.btn__icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: 0 0 auto;
}

/* ==========================================================================
   Masthead
   ========================================================================== */
.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 1.6rem) clamp(1.15rem, 5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.masthead__brand {
  font-family: var(--serif-display);
  font-size: 1rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.masthead__brand:hover { color: var(--gold-bright); }

.masthead__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.35rem;
}
.masthead__nav a {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  padding-block: .15rem;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.masthead__nav a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--line-strong);
}

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(2.2rem, 7vw, 4rem) clamp(3.2rem, 8vw, 5.5rem);
}
.hero__inner { text-align: center; }

/* --- Brand emblem -------------------------------------------------------
   Source: images/wayward-emblem.jpg (765 x 1024, the owner's original file).
   The artwork contains the gold oval monogram AND an ornate wordmark beneath
   it. The wordmark would duplicate the live text title, so this crops to the
   oval only, with breathing room on every side.

   Measured artwork: oval spans x 185..579, y 197..650 in the 765 x 1024 file.
   Crop window (generous, so the fade band never touches the gold ring):
     x 130..630  (500 wide),  y 145..700  (555 tall)

   Geometry, all relative to the frame:
     image width   = 765 / 500            = 153%   of frame width
     left offset   = 130 / 500            = 26%    of frame WIDTH
     frame ratio   = 500 / 555
     top offset    = (145 / 500) / (555 / 500) = 145 / 555 = 26.13% of HEIGHT
   (`top` percentages resolve against height, not width — this is the part
   that is easy to get wrong.)

   The oval is then clipped and faded, so no square JPEG corner can ever show:
   the gold ring sits at ~79% of the frame's horizontal half-extent and ~82% of
   the vertical, and the fade only begins at 88%, i.e. wholly in empty ground.
   ------------------------------------------------------------------------ */
.emblem {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1rem, 2.6vw, 1.6rem);
}

.emblem__frame {
  position: relative;
  overflow: hidden;
  width: clamp(12rem, 36vw, 17rem);
  aspect-ratio: 500 / 555;
  /* corners are clipped away entirely ... */
  border-radius: 50% / 50%;
  /* ... and the remaining edge feathers into the hero */
  -webkit-mask-image: radial-gradient(closest-side,
      #000 0 86%, rgba(0, 0, 0, .7) 93%, transparent 100%);
  mask-image: radial-gradient(closest-side,
      #000 0 86%, rgba(0, 0, 0, .7) 93%, transparent 100%);
}

.emblem__frame img {
  position: absolute;
  top: -26.13%;
  left: -26%;
  width: 153%;
  max-width: none;      /* override the global img rule */
  height: auto;
  display: block;
}

/* --- Hero type -------------------------------------------------------------
   The site is the destination, so the headline is the promise rather than the
   show's name. The show's name already sits in the masthead and the kicker.
   ------------------------------------------------------------------------ */
.hero__kicker { margin-bottom: 1.15rem; }

.hero__headline {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2.05rem, 6.6vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: .005em;
  color: var(--cream);
  text-wrap: balance;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 16px 36px rgba(0, 0, 0, .45);
}

.hero__lede {
  max-width: 36rem;
  margin: clamp(1.1rem, 3vw, 1.5rem) auto 0;
  color: var(--cream-soft);
  font-size: clamp(.98rem, 2.6vw, 1.075rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .85rem 1.6rem;
  margin-top: clamp(1.7rem, 4vw, 2.3rem);
}

/* Secondary route into the show: deliberately smaller and quieter than the
   shop button, so the shop reads as the primary destination. */
.hero__secondary {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  padding-block: .35rem;
  border-bottom: 1px solid var(--line);
  transition: color .2s ease, border-color .2s ease;
}
.hero__secondary:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

/* "Pairings for the wandering palate" — kept, but only as a signature line */
.hero__sig {
  margin: clamp(1.6rem, 4vw, 2.2rem) 0 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(.95rem, 2.8vw, 1.1rem);
  letter-spacing: .03em;
  color: var(--gold-dim);
}

/* --- Calm hero ------------------------------------------------------------
   The homepage is the mood, not a catalogue: emblem, one line, one short
   paragraph, one quiet button. Space is the material here, so the section
   gives itself room and nothing competes for the eye.
   ------------------------------------------------------------------------ */
.hero--calm {
  padding-block: clamp(2.6rem, 8vw, 5rem) clamp(3.4rem, 9vw, 6.5rem);
}
.hero--calm .hero__headline {
  margin-top: clamp(1.6rem, 4.5vw, 2.4rem);
}

.hero__lede--calm {
  max-width: 32rem;
  margin-top: clamp(1.2rem, 3.4vw, 1.7rem);
  color: var(--cream-soft);
  font-size: clamp(.95rem, 2.5vw, 1.05rem);
  line-height: 1.8;
}

.hero__actions--calm {
  justify-content: center;
  margin-top: clamp(1.9rem, 5vw, 2.7rem);
}

/* The optional route into the sessions: a whisper, not a second button. */
.hero__quiet {
  margin: clamp(1.3rem, 3.4vw, 1.8rem) 0 0;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.hero__quiet a {
  color: var(--cream-dim);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: color .2s ease, border-color .2s ease;
}
.hero__quiet a:hover,
.hero__quiet a:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

/* --- Quiet interior pages (About, Sessions, Shop, legal) ------------------
   One heading, one rule, then prose. Generous leading, narrow measure.
   ------------------------------------------------------------------------ */
.page { padding-block: clamp(2.2rem, 6vw, 3.4rem) clamp(3rem, 8vw, 4.6rem); }

.page__title {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 5.6vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: .015em;
  color: var(--cream);
  text-wrap: balance;
}

.page__lede {
  max-width: 34rem;
  margin: clamp(1.2rem, 3.4vw, 1.7rem) auto 0;
  font-family: var(--serif-display);
  font-size: clamp(1.08rem, 3.2vw, 1.28rem);
  line-height: 1.72;
  color: var(--cream);
  text-wrap: pretty;
}
.page__lede a {
  color: var(--gold-bright);
  text-decoration-color: rgba(230, 205, 148, .45);
}
.page__lede a:hover { color: var(--cream); }

.page__lede--narrow { max-width: 30rem; }

.page__body {
  max-width: 34rem;
  margin: clamp(1.1rem, 3vw, 1.5rem) auto 0;
  color: var(--cream-soft);
  font-size: .97rem;
  line-height: 1.8;
  text-wrap: pretty;
}
.page__body + .page__body { margin-top: 1.15rem; }
.page__body a {
  color: var(--gold-bright);
  text-decoration-color: rgba(230, 205, 148, .45);
}
.page__body a:hover { color: var(--cream); }

.page--calm .ornament { margin-top: clamp(1.3rem, 3.6vw, 1.9rem); }

/* Legal pages: same quiet shell, but readable at length. */
.legal__section { margin-top: clamp(2rem, 5vw, 2.8rem); }
.legal__section:first-of-type { margin-top: 0; }
.legal__heading {
  margin: 0 0 .6rem;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
}
.legal__list {
  max-width: 34rem;
  margin: 0 auto;
  padding-left: 1.15rem;
  color: var(--cream-soft);
  font-size: .95rem;
  line-height: 1.78;
}
.legal__list li + li { margin-top: .5rem; }
.legal__list a,
.legal__note a {
  color: var(--gold-bright);
  text-decoration-color: rgba(230, 205, 148, .45);
}
.legal__note {
  max-width: 34rem;
  margin: 0 auto;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--cream-dim);
}
.legal__updated {
  max-width: 34rem;
  margin: clamp(1.4rem, 4vw, 2rem) auto 0;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
/* The one sentence that must never be missable. */
.legal__callout {
  max-width: 34rem;
  margin: clamp(1.5rem, 4vw, 2rem) auto;
  padding: 1.1rem 1.25rem;
  font-family: var(--serif-display);
  font-size: clamp(1rem, 2.9vw, 1.15rem);
  line-height: 1.62;
  color: var(--cream);
  text-align: center;
  background: rgba(200, 163, 90, .06);
  border: 1px solid var(--line-strong);
}

/* ==========================================================================
   2. Shop the Lounge — category tiles
   ========================================================================== */
.lounge__lede {
  max-width: 34rem;
  margin: 0 auto clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--cream-soft);
  font-size: .97rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.lounge__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(.85rem, 2.4vw, 1.35rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  text-align: left;
}

.ltile {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.15rem, 3.4vw, 1.7rem);
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(200, 163, 90, .07) 0%, rgba(200, 163, 90, 0) 64%),
    linear-gradient(180deg, rgba(200, 163, 90, .05), rgba(0, 0, 0, .2));
  border: 1px solid var(--line);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
a.ltile:hover,
a.ltile:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -32px rgba(0, 0, 0, 1);
}

.ltile__name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: .015em;
  color: var(--cream);
}

.ltile__copy {
  margin-top: .5rem;
  font-size: .875rem;
  line-height: 1.62;
  color: var(--cream-soft);
}

/* Pushed to the base of the tile so every row lines up */
.ltile__go {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Shelves that are not open yet: present, but plainly not a link */
.ltile--next {
  border-style: dashed;
  border-color: rgba(200, 163, 90, .22);
  background: none;
}
.ltile--next .ltile__name { color: var(--cream-soft); }
.ltile--next .ltile__copy { color: var(--cream-dim); }
.ltile__go--next { color: var(--gold-dim); }

.lounge__foot { margin: clamp(1.9rem, 4.5vw, 2.7rem) 0 0; }

/* Intro paragraph above the archive on the Sessions page */
.archive__intro {
  max-width: 38rem;
  margin: 0 auto clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--cream-soft);
  font-size: .97rem;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ==========================================================================
   3. The Sessions — deliberately brief and secondary
   ========================================================================== */
.sessions__lede {
  margin: 0 0 1.5rem;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  letter-spacing: .02em;
  color: var(--gold-bright);
}

.sessions__body {
  margin: 0 0 1.15rem;
  color: var(--cream-soft);
  text-align: left;
  text-wrap: pretty;
}

.sessions__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .9rem 1.5rem;
  margin: 2rem 0 0;
}

.sessions__link {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  padding-block: .35rem;
  border-bottom: 1px solid var(--line);
  transition: color .2s ease, border-color .2s ease;
}
.sessions__link:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

/* ==========================================================================
   2. About
   ========================================================================== */
.about__lede {
  font-family: var(--serif-display);
  font-size: clamp(1.18rem, 3.6vw, 1.4rem);
  line-height: 1.62;
  color: var(--cream);
  margin: 0 0 1.5rem;
}
.about__body {
  color: var(--cream-soft);
  margin: 0 0 1.15rem;
  text-align: left;
  text-wrap: pretty;
}
.about__body:last-child { margin-bottom: 0; }

/* ==========================================================================
   3. Latest episode
   ========================================================================== */
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: .5rem;
  background: #100a06;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 5px var(--espresso), 0 0 0 6px rgba(200, 163, 90, .18), 0 30px 60px -34px rgba(0, 0, 0, 1);
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .9rem;
  background-image:
    repeating-linear-gradient(45deg, rgba(200, 163, 90, .045) 0 1px, transparent 1px 12px);
  border: 1px dashed rgba(200, 163, 90, .3);
  margin: 6px;
}
.embed__play {
  position: relative;
  width: clamp(2.9rem, 9vw, 3.7rem);
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.embed__play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: .5em solid transparent;
  border-bottom: .5em solid transparent;
  border-left: .82em solid var(--gold);
}
.embed__label {
  margin: 0;
  font-size: .5625rem;
  letter-spacing: .28em;
  line-height: 2;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.embed__label em { font-style: normal; color: var(--gold-dim); letter-spacing: .18em; }

.episode__note {
  margin: 1.5rem 0 0;
  font-size: .9rem;
  color: var(--cream-dim);
}

/* ==========================================================================
   3. Episodes — featured player + searchable archive grid
   ========================================================================== */
.featured {
  max-width: 46rem;
  margin: 0 auto clamp(2.4rem, 6vw, 3.6rem);
  text-align: left;
}
.featured__kicker {
  margin: 0 0 .4rem;
  font-size: .625rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.featured__title {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 4.4vw, 1.75rem);
  line-height: 1.3;
  color: var(--cream);
}
.featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  margin: .45rem 0 1.1rem;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.featured__meta span:not(:last-child)::after {
  content: "\00B7";
  margin-left: .9rem;
  color: var(--gold-dim);
}
.featured__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.1rem;
}
.featured .embed { margin-top: 0; }

/* --- archive --- */
.archive { max-width: 62rem; margin-inline: auto; text-align: left; }

.archive__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.3rem;
}
.archive__title {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream);
}
.archive__count {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  white-space: nowrap;
}

.archive__tools { margin-bottom: 1.5rem; }
.archive__search-label {
  display: block;
  font-size: .625rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .45rem;
}
.archive__search-wrap { position: relative; }
.archive__search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  fill: var(--gold-dim);
  pointer-events: none;
}
.archive__search {
  width: 100%;
  padding: .8rem 2.6rem .8rem 2.5rem;
  font-family: var(--serif-body);
  font-size: .95rem;
  color: var(--cream);
  background: rgba(10, 6, 4, .5);
  border: 1px solid var(--line-strong);
  border-radius: 1px;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.archive__search::-webkit-search-cancel-button { -webkit-appearance: none; }
.archive__search::placeholder { color: rgba(179, 162, 136, .72); }
.archive__search:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 163, 90, .16);
}
.archive__clear {
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--cream-dim);
  background: none;
  border: 0;
  cursor: pointer;
}
.archive__clear:hover { color: var(--gold-bright); }
.archive__hint {
  margin: .55rem 0 0;
  font-size: .75rem;
  color: var(--cream-dim);
}

.archive__empty {
  margin: 0 0 1.5rem;
  padding: 1.4rem;
  text-align: center;
  font-size: .9rem;
  color: var(--cream-soft);
  border: 1px dashed var(--line-strong);
}

/* --- episode tiles --- */
.epgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(.9rem, 2.5vw, 1.4rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.epcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, rgba(200, 163, 90, .06), rgba(0, 0, 0, .18));
  border: 1px solid var(--line);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.epcard:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -30px rgba(0, 0, 0, 1);
}

.epcard__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(200, 163, 90, .05) 0 1px, transparent 1px 12px),
    #140d08;
  border-bottom: 1px solid var(--line);
}
.epcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .92;
  transition: opacity .25s ease, transform .4s ease;
}
.epcard__thumb:hover img { opacity: 1; transform: scale(1.02); }

.epcard__thumb-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .4rem;
  font-size: .5625rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.epcard__thumb-empty::before {
  content: "";
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.epcard__no {
  position: absolute;
  top: 0;
  left: 0;
  padding: .3rem .6rem;
  font-family: var(--serif-display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--espresso);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}
.epcard__flag {
  position: absolute;
  top: 0;
  right: 0;
  padding: .28rem .55rem;
  font-size: .5rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(20, 13, 8, .85);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.epcard__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: .85rem .9rem 1rem;
}
.epcard__title {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.34;
  color: var(--cream);
}
.epcard__date {
  margin: .2rem 0 .65rem;
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.epcard__pairing {
  margin: 0 0 .9rem;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--cream-soft);
}
.epcard__actions {
  display: flex;
  gap: .4rem;
  margin-top: auto;
}
.epcard__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: .55rem .5rem;
  font-size: .625rem;
  letter-spacing: .14em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.card-modal__note {
  max-width: 46rem;
  margin: .8rem auto 0;
  font-size: .75rem;
  letter-spacing: .08em;
  text-align: center;
  color: var(--gold-bright);
  min-height: 1.2em;
}

/* ==========================================================================
   4. Follow
   ========================================================================== */
.social {
  margin: 0;
  padding: 0;
}
/* The icons live in the footer now, as a quiet row rather than a section */
.social__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.55rem, 2.2vw, 1rem);
}
.social__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  color: var(--gold);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(200, 163, 90, .07), rgba(200, 163, 90, .02));
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.social__link:hover,
.social__link:focus-visible {
  color: var(--gold-bright);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(200, 163, 90, .16), rgba(200, 163, 90, .05));
  transform: translateY(-2px);
}
.social__icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  flex: 0 0 auto;
}
.social__name {
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.follow__note {
  margin: 1.9rem 0 0;
  font-size: .9rem;
  color: var(--cream-dim);
}

/* ==========================================================================
   5. Coming soon / sign-up
   ========================================================================== */
.shop__card {
  position: relative;
  padding: clamp(1.7rem, 5vw, 2.9rem) clamp(1.15rem, 4.5vw, 2.6rem);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(200, 163, 90, .10) 0%, rgba(200, 163, 90, 0) 62%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 5px var(--espresso), 0 0 0 6px rgba(200, 163, 90, .16), 0 30px 60px -36px rgba(0, 0, 0, 1);
}
/* corner ticks, like a printed label */
.shop__card::before,
.shop__card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold-dim);
  pointer-events: none;
}
.shop__card::before { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.shop__card::after { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }

.shop__copy {
  max-width: 32rem;
  margin: 0 auto 1.8rem;
  color: var(--cream-soft);
  font-size: .98rem;
}

.signup { max-width: 30rem; margin-inline: auto; text-align: left; }
.signup__label {
  display: block;
  font-size: .625rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.signup__row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.signup__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: .82rem .95rem;
  font-family: var(--serif-body);
  font-size: 1rem;
  color: var(--cream);
  background: rgba(10, 6, 4, .55);
  border: 1px solid var(--line-strong);
  border-radius: 1px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.signup__input::placeholder { color: rgba(179, 162, 136, .7); }
.signup__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 163, 90, .16);
}
.signup__input[aria-invalid="true"] { border-color: #c1685a; }

.signup__button { flex: 0 0 auto; }
.signup__button[disabled] { opacity: .6; cursor: progress; }

.signup__fineprint {
  margin: .7rem 0 0;
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--cream-dim);
}
.signup__status {
  margin: .7rem 0 0;
  min-height: 1.3em;
  font-size: .85rem;
  color: var(--gold-bright);
}
.signup__status[data-state="error"] { color: #e0937f; }

/* Cross-link from merch to the episode shop */
.shop__aside {
  margin: 1.6rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  line-height: 1.6;
  color: var(--cream-dim);
}
.shop__aside a {
  color: var(--gold-bright);
  text-decoration-color: rgba(230, 205, 148, .45);
}
.shop__aside a:hover { color: var(--cream); }

/* ==========================================================================
   6. Footer
   ========================================================================== */
.footer {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.6rem, 7vw, 4rem) clamp(2.2rem, 6vw, 3rem);
  border-top: 1px solid var(--line);
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .35) 100%);
}
.footer__contact {
  margin: 0 0 .5rem;
  font-size: .95rem;
  color: var(--cream-soft);
  overflow-wrap: anywhere;
}

/* Quiet page-to-page links in the footer */
.footer__links {
  margin: 0 0 1.2rem;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.footer__links a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer__links a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--line-strong);
}
.footer__links span { margin-inline: .5rem; color: var(--gold-dim); }

/* Sign-up: one small line and one small box, set into the footer.
   Deliberately quiet — it should not read as a marketing block. */
.footer__signup {
  max-width: 26rem;
  margin: 0 auto 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.footer__signup-label {
  display: block;
  margin-bottom: .6rem;
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.footer__form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
}
.footer__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: .55rem .7rem;
  font-family: var(--serif-body);
  font-size: .85rem;
  color: var(--cream);
  background: rgba(10, 6, 4, .4);
  border: 1px solid var(--line);
  border-radius: 1px;
}
.footer__input::placeholder { color: rgba(179, 162, 136, .6); }
.footer__input:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(200, 163, 90, .12);
}
.footer__input[aria-invalid="true"] { border-color: #c1685a; }
.footer__submit {
  flex: 0 0 auto;
  padding: .55rem 1rem;
  font-family: var(--serif-body);
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 1px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.footer__submit:hover {
  color: var(--gold-bright);
  border-color: var(--line-strong);
}
.footer__submit[disabled] { opacity: .55; cursor: progress; }
.footer__status {
  margin: .55rem 0 0;
  min-height: 1.15em;
  font-size: .72rem;
  color: var(--gold-bright);
}
.footer__status[data-state="error"] { color: #e0937f; }

.footer__legal {
  margin: 0;
  font-family: var(--serif-display);
  font-size: .9rem;
  letter-spacing: .1em;
  color: var(--cream-dim);
}
.footer__age {
  margin: .6rem 0 0;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* ==========================================================================
   Age gate
   ========================================================================== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(37, 25, 19, .92) 0%, rgba(12, 8, 5, .97) 100%),
    var(--grain);
  background-color: #0d0805;
  backdrop-filter: blur(3px);
}
/* Hidden once the answer is remembered as "yes" */
html.gate-accepted .gate { display: none; }

.gate__panel {
  position: relative;
  width: 100%;
  max-width: 27rem;
  padding: clamp(1.8rem, 6vw, 2.6rem) clamp(1.3rem, 5vw, 2.2rem);
  text-align: center;
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(200, 163, 90, .12) 0%, rgba(200, 163, 90, 0) 60%),
    var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 5px #0d0805, 0 0 0 6px rgba(200, 163, 90, .22), 0 40px 80px -40px rgba(0, 0, 0, 1);
}
.gate__panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(200, 163, 90, .2);
  pointer-events: none;
}
.gate__rule {
  width: 40%;
  height: 1px;
  margin: 0 auto 1.3rem;
  background: linear-gradient(90deg, rgba(200, 163, 90, 0), var(--gold-dim), rgba(200, 163, 90, 0));
}
.gate__rule:last-of-type { margin: 1.6rem auto 0; }

.gate__kicker { margin-bottom: .9rem; }

.gate__title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 6.2vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: .01em;
  color: var(--cream);
  margin: 0 0 .85rem;
}

.gate__text {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--cream-soft);
  margin: 0 auto;
  max-width: 22rem;
}

.gate__actions {
  display: flex;
  justify-content: center;
  gap: .7rem;
  margin-top: 1.7rem;
  flex-wrap: wrap;
}
.gate__actions .btn { min-width: 6.5rem; }

.gate__declined { margin-top: 1.5rem; }
.gate__declined[hidden] { display: none; }
.gate__actions[hidden] { display: none; }

.gate__recheck {
  margin-top: 1.1rem;
  padding: .2rem;
  font-family: var(--serif-body);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  cursor: pointer;
}
.gate__recheck:hover { color: var(--gold-bright); }

/* Lock the page while the gate is unanswered */
html.gate-locked,
html.gate-locked body { overflow: hidden; height: 100%; }

/* ==========================================================================
   Motion + small screens
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .masthead { justify-content: center; }
  .masthead__nav { justify-content: center; gap: .35rem 1rem; }
  .hero__headline { font-size: clamp(1.85rem, 8.6vw, 2.6rem); }
  /* Stack the two hero routes so the shop button keeps full width */
  .hero__actions { flex-direction: column; gap: .9rem; }
  .hero__actions .btn { width: 100%; }
  .signup__row { flex-direction: column; }
  .signup__button { width: 100%; }
  .social__name { letter-spacing: .16em; }
  .social__link { padding: .5rem .7rem; }
}
