/* The Secure Disclosure — main site design system.
   Bold editorial / paper-bright: warm paper background, violet + lime brand,
   heavy display type, light textured motion. Not a dark theme on purpose. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #faf6ec;
  --paper-dim: #f2ecdd;
  --card: #ffffff;
  --ink: #191627;
  --ink-soft: #5d5771;
  --ink-faint: #655e7c;
  --violet: #5b4fe5;
  --violet-deep: #4038ad;
  --violet-tint: #ece9fd;
  --lime: #dbff4d;
  --lime-deep: #aecf1f;
  --line: rgba(25, 22, 39, 0.12);
  --line-soft: rgba(25, 22, 39, 0.07);
  --shadow: 0 12px 32px rgba(25, 22, 39, 0.10);
  --shadow-lift: 0 20px 48px rgba(25, 22, 39, 0.16);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Space Grotesk', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- grid-paper texture, used behind hero & section breaks --- */
.grid-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
}

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--violet); box-shadow: var(--shadow-lift); }

.btn-accent { background: var(--lime); color: var(--ink); }
.btn-accent:hover { box-shadow: 0 12px 28px rgba(219, 255, 77, 0.5); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-ghost { background: transparent; color: var(--ink-soft); padding: 0.6rem 0.9rem; }
.btn-ghost:hover { color: var(--ink); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }

/* --- nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 236, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.nav-brand img { width: 38px; height: 38px; border-radius: 50%; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--lime);
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* --- footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding: 3.5rem 0 2.5rem;
  background: var(--paper-dim);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.75rem; }
.footer-brand img { width: 32px; height: 32px; border-radius: 50%; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 0.9rem; }
.footer-col a, .footer-col p { display: block; color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.55rem; }
.footer-col a:hover { color: var(--violet); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4.5rem;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  margin-bottom: 1rem;
}
.hero h1 mark {
  background: var(--lime);
  color: var(--ink);
  padding: 0 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  animation: hero-mark-sweep 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.3s both;
}
@keyframes hero-mark-sweep {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 16 / 10;
  background: var(--ink);
}
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.hero-media iframe {
  width: 100%; height: 100%; border: 0;
  position: absolute; inset: 0;
}
.hero-sound-btn {
  position: absolute;
  right: 1rem; bottom: 1rem;
  z-index: 2;
  background: rgba(25, 22, 39, 0.75);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(6px);
}
.hero-sound-btn:hover { background: rgba(25, 22, 39, 0.9); }

/* --- listen-on ticker --- */
.ticker-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.9rem 0;
  background: var(--card);
}
.ticker-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  /* duration is set inline per-page (views/home.js) — scales with how many names
     are in the list, so the per-name pace stays steady as the guest list grows */
  animation-name: ticker-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ticker-track span, .ticker-track a { white-space: nowrap; }
.ticker-item { color: inherit; text-decoration: none; }
.ticker-name { color: var(--violet); }
.ticker-company { color: var(--ink-faint); }
a.ticker-item:hover .ticker-name { text-decoration: underline; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hero-eyebrow .dot { animation: none; }
  .hero h1 mark { animation: none; }
}

/* --- sections --- */
.section { padding: 4.5rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet);
  margin-bottom: 0.6rem;
}
.section-tinted { background: var(--paper-dim); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .section-kicker { color: var(--lime); }

/* --- episode cards --- */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.episode-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.episode-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.episode-art {
  /* Matches the real thumbnails' native size exactly (YouTube maxresdefault.jpg is
     always 1280x720 = 16:9) — anything narrower crops object-fit:cover's source
     image, and since these thumbnails have title text baked into the top of the
     image, a crop was cutting that text off. 16:9 needs no crop at all. */
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: #fff;
  overflow: hidden;
}
.episode-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Only the generated color-block variants (tone-1..4, no real thumbnail) get the
   bottom-darkening gradient — it exists purely for the "Episode N" badge text's
   contrast, and a real thumbnail has no such badge to contrast against anymore. */
.episode-art.tone-1::after, .episode-art.tone-2::after, .episode-art.tone-3::after, .episode-art.tone-4::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25,22,39,0) 40%, rgba(25,22,39,0.55) 100%);
}
.episode-art .episode-number {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}
/* generated color-block treatment for episodes with no real thumbnail */
.episode-art.tone-1 { background: linear-gradient(135deg, #5b4fe5, #2c2470); }
.episode-art.tone-2 { background: linear-gradient(135deg, #191627, #443c78); }
.episode-art.tone-3 { background: linear-gradient(135deg, #b9ae2a, #5b4fe5); }
.episode-art.tone-4 { background: linear-gradient(135deg, #3f35ad, #191627); }

.episode-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; color: var(--ink); }
.episode-meta { font-size: 0.78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.episode-body h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }
.episode-guest { font-size: 0.88rem; color: var(--violet); font-weight: 600; }
.episode-desc { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.episode-links { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }

/* --- "Fresh off the mic" single-row carousel --- */
.episode-row-wrap { display: flex; align-items: center; gap: 1.25rem; }
.episode-row-arrow {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.episode-row-arrow:hover { background: var(--ink); color: var(--paper); }
.episode-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
  /* Deliberately narrower than the space flex:1 would otherwise give it, so the
     rightmost card is always sliced by this box's edge instead of ending flush —
     a visible sliver of the next card, hinting there's more to scroll to. Works
     regardless of exact container width: the edge always lands mid-card as long
     as this reserved amount is less than one card's width. */
  max-width: calc(100% - 64px);
  min-width: 0;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}
.episode-row::-webkit-scrollbar { display: none; }
.episode-row .episode-card { scroll-snap-align: start; flex: 0 0 320px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--violet-tint);
  color: var(--violet-deep);
}
.badge-lime { background: var(--lime); color: var(--ink); }

.post-body { max-width: 70ch; margin: 0 auto; font-size: 1.05rem; }
.post-body h2 { margin-top: 1.6em; font-size: 1.5rem; }
.post-body h3 { margin-top: 1.4em; font-size: 1.2rem; }
.post-body a { color: var(--violet); text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body blockquote { border-left: 4px solid var(--lime); margin: 1.5em 0; padding: 0.2em 0 0.2em 1.2em; color: var(--ink-soft); font-style: italic; }

/* --- forms --- */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem;
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; }
.field .hint { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.3rem; }
input[type=text], input[type=email], input[type=url], textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--violet-tint);
}
.form-msg { font-size: 0.9rem; margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); display: none; }
.form-msg.is-visible { display: block; }
.form-msg.success { background: #eafbe6; color: #266b25; }
.form-msg.error { background: #fdeaea; color: #a3282c; }

/* --- inline newsletter strip --- */
.newsletter-strip {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.newsletter-strip h2 { color: var(--paper); }
.newsletter-strip p { color: rgba(250,246,236,0.75); }
.newsletter-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.newsletter-form .form-msg { flex-basis: 100%; }
.newsletter-form input {
  background: rgba(250,246,236,0.08);
  border-color: rgba(250,246,236,0.25);
  color: var(--paper);
  flex: 1;
}
.newsletter-form input::placeholder { color: rgba(250,246,236,0.5); }
.newsletter-form input:focus { box-shadow: 0 0 0 4px rgba(219,255,77,0.25); border-color: var(--lime); }

/* --- suggest-a-guest modal --- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(25, 22, 39, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop[hidden] { display: none; }
.modal-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--paper-dim);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

/* --- reveal-on-scroll --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 0.05s; }
.reveal-2 { transition-delay: 0.15s; }
.reveal-3 { transition-delay: 0.25s; }

.guest-suggest-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .guest-suggest-layout { grid-template-columns: 1fr; } }

/* --- about page stats --- */
/* Up to 7 tiles now that the YouTube-sourced stats can join the original 4 — rather
   than letting that many wrap into a cramped multi-row grid, this scrolls
   horizontally instead (same overflow-x pattern as the episode carousels), while
   still looking like the plain centered row it always was when everything fits. */
.stat-row {
  display: flex;
  /* Plain "center" on an overflowing flex row pushes the first items to a negative
     x offset that overflow-x:auto can't scroll back to — found by actually checking
     tile positions on a narrow viewport, not by inspection: they rendered entirely
     off-screen to the left with only "center" here. "safe center" is the standard
     fix — center when everything fits, but fall back to start-aligned (so nothing
     is ever unreachable) once it doesn't.
  */
  justify-content: safe center;
  flex-wrap: nowrap;
  gap: 2rem;
  text-align: center;
  overflow-x: auto;
  padding: 0.25rem;
  scrollbar-width: none;
}
.stat-row::-webkit-scrollbar { display: none; }
.stat-tile { display: flex; flex-direction: column; gap: 0.2rem; flex-shrink: 0; }
.stat-number { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--violet-deep); }
.stat-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); font-weight: 600; }
.stat-note { font-size: 0.7rem; color: var(--ink-faint); font-weight: 400; text-transform: none; letter-spacing: normal; }

/* --- guests directory --- */
.guest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.guest-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.guest-avatar {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}
.guest-avatar.tone-1 { background: linear-gradient(135deg, #5b4fe5, #2c2470); }
.guest-avatar.tone-2 { background: linear-gradient(135deg, #191627, #443c78); }
.guest-avatar.tone-3 { background: linear-gradient(135deg, #b9ae2a, #5b4fe5); }
.guest-avatar.tone-4 { background: linear-gradient(135deg, #3f35ad, #191627); }
.guest-body h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.guest-episodes { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.5rem; }
.guest-episodes a { font-size: 0.85rem; color: var(--violet); text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 2px; }

/* --- about page --- */
.about-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.about-portrait { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 1/1; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait-graphic {
  background: linear-gradient(150deg, var(--violet) 0%, var(--violet-deep) 55%, var(--ink) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-portrait-graphic::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.about-portrait-initial {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 18vw, 10rem);
  color: var(--lime);
  line-height: 1;
}
.about-portrait-name {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.prose { max-width: 68ch; font-size: 1.05rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); }

/* --- simple page header (episodes list, etc.) --- */
.page-header { padding: 3rem 0 2.5rem; }
.page-header h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.page-header p { color: var(--ink-soft); font-size: 1.1rem; max-width: 55ch; }

.search-box { max-width: 420px; margin-top: 1.5rem; }

.tag-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag-chip {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
}
.tag-chip:hover { border-color: var(--violet); color: var(--violet); }
.tag-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tag-chip.is-static { cursor: default; background: var(--violet-tint); border-color: transparent; color: var(--violet-deep); }

.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--ink); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Shown in place of a dead embed (YouTube error 153/101/150 — embedding restricted
   or disabled by the video's own owner-side settings, nothing this app's code can
   fix) once public/js/main.js's YT.Player error handler detects the failure. The
   thumbnail fully covers the broken iframe underneath instead of layering on top of
   visible error chrome. */
.video-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-fallback-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(25, 22, 39, 0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
.video-fallback-btn:hover { background: rgba(25, 22, 39, 0.98); }

.empty-note { color: var(--ink-faint); font-style: italic; padding: 2rem 0; }

/* --- responsive --- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .episode-grid { grid-template-columns: repeat(2, 1fr); }
  .guest-grid { grid-template-columns: 1fr; }
  .newsletter-strip { grid-template-columns: 1fr; text-align: center; }
  .newsletter-form { justify-content: center; }
}

@media (max-width: 720px) {
  .episode-row .episode-card { flex-basis: 260px; }
  .episode-row-wrap { gap: 0.75rem; }
  .episode-row { max-width: calc(100% - 40px); }
  .episode-row-arrow { width: 40px; height: 40px; }
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--line);
    gap: 1.1rem;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .episode-grid { grid-template-columns: 1fr; }
}
