/* =============================================
   ON SCREEN — Podcast Website
   style.css — All styles, no build tools needed
   ============================================= */

/* Google Font: Figtree — rounded, friendly, not overused */
/* Font loaded via <link> in HTML for better performance */

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  /* REPLACE: Main brand color — iOS FaceTime green */

  /*
   * WCAG AA colour strategy
   * ──────────────────────────────────────────────────────────────
   * --green        #30D158  luminance ≈ 0.495  → decorative ONLY
   *                         (borders, accent lines, nav logo bg)
   *                         white on #30D158 = 1.9:1 → ✗ text fails
   *
   * --green-btn    #1A7A38  luminance ≈ 0.161  → button backgrounds
   *                         white on #1A7A38 = 4.97:1 → ✓ AA normal
   *
   * --green-text   #166A2E  luminance ≈ 0.117  → text on white/pale
   *                         #166A2E on white    = 6.3:1  → ✓ AA
   *                         #166A2E on #E6FAF0  = 5.8:1  → ✓ AA (tags)
   *
   * --text-muted   #546860  luminance ≈ 0.105  → muted text on white
   *                         #546860 on white    = 4.71:1 → ✓ AA
   * ──────────────────────────────────────────────────────────────
   */
  --green:        #30D158;   /* brand / decorative — NO text use */
  --green-btn:    #1A7A38;   /* button bg  — white text 4.97:1 ✓ */
  --green-text:   #166A2E;   /* text on white/pale — 6.3:1 ✓      */
  --green-active: #12561F;   /* pressed/active text — darker ✓     */
  --green-subtle: #E6FAF0;
  --green-pale:   #F0FBF5;
  --green-glow:   rgba(48, 209, 88, 0.22);

  --text:         #0C1A10;
  --text-2:       #2E4A38;
  --text-muted:   #546860;   /* 4.71:1 on white ✓ (was #6D8A77 = 3.75:1 ✗) */
  --text-inv:     #FFFFFF;

  --surface:      #FFFFFF;
  --surface-2:    #F5FAF7;
  --surface-3:    #ECF5EF;
  --border:       #DDF0E5;
  --border-2:     #C5E3D0;

  --shadow-xs:    0 1px 2px rgba(12,26,16,0.05);
  --shadow-sm:    0 2px 8px rgba(12,26,16,0.07), 0 1px 2px rgba(12,26,16,0.04);
  --shadow:       0 4px 16px rgba(12,26,16,0.09), 0 2px 6px rgba(12,26,16,0.05);
  --shadow-lg:    0 10px 40px rgba(12,26,16,0.11), 0 4px 10px rgba(12,26,16,0.06);
  --shadow-green: 0 4px 20px rgba(48,209,88,0.28);

  --r-sm:   8px;
  --r:      16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 100px;

  --max-w:   740px;
  --gap:     clamp(1.25rem, 4vw, 2.5rem);

  --font:    'Figtree', system-ui, -apple-system, sans-serif;

  --ease:    180ms ease;
  --ease-md: 300ms ease;
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a {
  color: var(--green-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--ease);
}
a:hover { color: var(--green-active); }
ul, ol { padding-left: 1.5rem; }

:focus-visible {
  /* #1A7A38 outline on white = 4.97:1 ✓ */
  outline: 2.5px solid var(--green-btn);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section {
  padding: clamp(2.75rem, 7vw, 4.5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* Anchor scroll offset — clears sticky nav */
[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

/* =============================================
   TYPOGRAPHY HELPERS
   ============================================= */
.t-hero  { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.14; letter-spacing: -0.03em; }
.t-h1    { font-size: clamp(1.7rem, 4vw, 2.375rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; }
.t-h2    { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.018em; }
.t-h3    { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.t-muted { color: var(--text-muted); }

/* Section label — "LATEST EPISODE" etc */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.375rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  align-content: center;
  gap: 0;
  min-height: var(--nav-h);
}

/* Logo — col 1, left */
.nav__logo { justify-self: start; }

/* Nav links — col 2, perfectly centered */
.nav__inner > nav { justify-self: center; }

/* CTA — col 3, right — no extra padding so it doesn't inflate nav height */
.nav__cta      { justify-self: end; }
.nav__hamburger { justify-self: end; }

/* Nav CTA button override — flat height, no extra vertical padding */
.nav__cta.btn,
a.nav__cta.btn {
  padding-top: 0.4375rem;
  padding-bottom: 0.4375rem;
}

/* Logo — text only, no icon */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
  transition: color var(--ease);
}
.nav__logo:hover .nav__logo-name { color: var(--green-text); }

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 0.4rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  border-radius: var(--r-pill);
  transition: background var(--ease), color var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  background: var(--green-subtle);
  /* #166A2E on #E6FAF0 = 5.8:1 ✓ */
  color: var(--green-text);
}

.nav__cta { flex-shrink: 0; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 7px;
  border-radius: var(--r-sm);
  transition: background var(--ease);
}
.nav__hamburger:hover { background: var(--surface-2); }
.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease-md), opacity var(--ease-md);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--surface);
  padding: 1.25rem var(--gap);
  z-index: 99;
  flex-direction: column;
  gap: 0.375rem;
  overflow-y: auto;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r);
  transition: background var(--ease), color var(--ease);
}
.nav__mobile a:hover,
.nav__mobile a[aria-current="page"] {
  background: var(--green-subtle);
  color: var(--green-text);
}
.nav__mobile .btn { margin-top: 0.75rem; text-align: center; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6875rem 1.375rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  /* #1A7A38 bg + white text = 4.97:1 ✓ WCAG AA */
  background: var(--green-btn);
  color: var(--text-inv);
  box-shadow: 0 4px 16px rgba(26,122,56,0.32);
}
.btn--primary:hover {
  background: var(--green-active);
  color: var(--text-inv);
  box-shadow: 0 6px 24px rgba(26,122,56,0.42);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-2);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--green);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--green-text);
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { color: var(--green-active); background: transparent; }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn--lg { padding: 0.875rem 1.875rem; font-size: 1.0625rem; }
.btn--full { width: 100%; }

/* =============================================
   TAGS
   ============================================= */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--r-pill);
  /* #166A2E text on #E6FAF0 bg = 5.8:1 ✓ WCAG AA */
  background: var(--green-subtle);
  color: var(--green-text);
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}
.tag:hover { background: var(--green-glow); color: var(--green-active); }
.tag--neutral { background: var(--surface-2); color: var(--text-muted); }
.tag--neutral:hover { background: var(--surface-3); color: var(--text-2); }

/* =============================================
   HERO (home page)
   ============================================= */
.hero {
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  /* #166A2E on white = 6.3:1 ✓ */
  color: var(--green-text);
  margin-bottom: 1rem;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2.5px;
  background: var(--green);
  border-radius: 2px;
}
.hero__title { margin-bottom: 1rem; }
.hero__tagline {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 460px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Cover art */
.hero__cover { flex-shrink: 0; }
.hero__cover-wrap {
  width: clamp(148px, 22vw, 210px);
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-green);
}
.hero__cover-wrap svg,
.hero__cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   LATEST EPISODE CARD
   ============================================= */
.latest-card {
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
}
.latest-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--green);
  border-radius: 4px 0 0 4px;
}
.latest-card__ep {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-text);
  margin-bottom: 0.5rem;
}
.latest-card__title {
  margin-bottom: 0.5rem;
  color: var(--text);
}
.latest-card__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}
.latest-card__desc {
  font-size: 0.975rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.latest-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
}

/* =============================================
   SUBSCRIBE PLATFORMS
   ============================================= */
.subscribe__desc {
  color: var(--text-2);
  margin-bottom: 1.5rem;
}
.subscribe__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.subscribe__platform {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.125rem;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: all var(--ease);
}
.subscribe__platform:hover {
  background: var(--green-subtle);
  border-color: var(--green);
  color: var(--green-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.subscribe__platform svg,
.subscribe__platform-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

/* =============================================
   CURATED EPISODES (WHERE TO BEGIN)
   ============================================= */
.curated__desc {
  color: var(--text-2);
  margin-bottom: 1.75rem;
}
.curated__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.curated-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.curated-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--border-2);
  color: inherit;
}
.curated-card__ep {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-text);
}
.curated-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}
.curated-card__desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.curated-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

/* =============================================
   ASK SECTION
   ============================================= */
.ask-box {
  background: var(--green-pale);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.ask-box__icon {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}
.ask-box__title {
  margin-bottom: 0.75rem;
}
.ask-box__desc {
  color: var(--text-2);
  max-width: 420px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

/* =============================================
   FOLLOW / SOCIAL
   ============================================= */
.follow__desc {
  color: var(--text-2);
  margin-bottom: 1.375rem;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: all var(--ease);
}
.social-link:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text);
  transform: translateY(-1px);
}

/* =============================================
   EPISODES LIST PAGE
   ============================================= */
.ep-list { display: flex; flex-direction: column; gap: 1rem; }

.ep-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  padding: 1.375rem 1.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.ep-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--border-2);
  color: inherit;
}

.ep-card__num {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2px;
}
.ep-card__num-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 2px;
}
.ep-card__num-val {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  /* #166A2E on white = 6.3:1 ✓ (also serves as info, not just decoration) */
  color: var(--green-text);
  letter-spacing: -0.04em;
}
.ep-card__num-line {
  flex: 1;
  width: 2px;
  min-height: 16px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
}

.ep-card__body { min-width: 0; }
.ep-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.ep-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.625rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ep-card__sep { opacity: 0.5; }
.ep-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.875rem;
}
.ep-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* =============================================
   EPISODE DETAIL PAGE
   ============================================= */
.ep-detail__header {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.ep-detail__breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ep-detail__breadcrumb a { font-weight: 600; text-decoration: none; }
.ep-detail__breadcrumb a:hover { text-decoration: underline; }
.ep-detail__ep-num {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-text);
  margin-bottom: 0.625rem;
}
.ep-detail__title { margin-bottom: 1rem; }
.ep-detail__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.ep-detail__meta-sep { opacity: 0.5; }

/* Fake audio player */
.audio-player {
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 1.125rem 1.375rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
}
.audio-player__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  /* #1A7A38 bg + white icon = 4.97:1 ✓ */
  background: var(--green-btn);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(26,122,56,0.30);
  transition: background var(--ease), transform var(--ease);
}
.audio-player__btn:hover { background: var(--green-active); transform: scale(1.06); }
.audio-player__btn:focus-visible { outline-color: var(--green-hover); }
.audio-player__info { flex: 1; min-width: 0; }
.audio-player__track { font-size: 0.9rem; font-weight: 700; }
.audio-player__hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 1px; }
.audio-player__duration { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); flex-shrink: 0; }

/* Show notes prose */
.show-notes h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.show-notes h2:first-child { margin-top: 0; }
.show-notes p { color: var(--text-2); line-height: 1.72; margin-bottom: 1rem; }
.show-notes ul { color: var(--text-2); line-height: 1.7; margin-bottom: 1rem; }
.show-notes li { margin-bottom: 0.3rem; }
.show-notes a { font-weight: 500; }
.show-notes strong { color: var(--text); font-weight: 700; }

/* Ep nav (prev/next) */
.ep-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.ep-nav__item {
  padding: 1.125rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.ep-nav__item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  border-color: var(--border-2);
  color: inherit;
}
.ep-nav__item--next { text-align: right; }
.ep-nav__dir {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.ep-nav__title { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; color: var(--text); }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-header {
  padding: clamp(3rem, 8vw, 5rem) 0 3rem;
  border-bottom: 1px solid var(--border);
}
.about-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}
.about-header__avatar {
  width: clamp(80px, 14vw, 112px);
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  /* #1A7A38 bg + white icon = 4.97:1 ✓ */
  background: var(--green-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg), 0 4px 16px rgba(26,122,56,0.28);
}
.about-header__avatar svg { width: 55%; height: 55%; }

.about-header__name { margin-bottom: 0.375rem; }
.about-header__role { font-size: 1rem; color: var(--text-muted); margin-bottom: 1rem; }
.about-header__bio { color: var(--text-2); line-height: 1.7; }
.about-header__bio + .about-header__bio { margin-top: 0.875rem; }

.about__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.about__block { margin-bottom: 1.75rem; }
.about__block p { color: var(--text-2); line-height: 1.7; margin-bottom: 0.75rem; }

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.newsletter h2 { margin-bottom: 0.5rem; }
.newsletter p { color: var(--text-2); margin-bottom: 1.25rem; font-size: 0.975rem; }
.newsletter__form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
}
.newsletter__input {
  flex: 1;
  padding: 0.6875rem 1.125rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  min-width: 0;
}
.newsletter__input:focus {
  /* Dark green border on white input = visual indicator, not text */
  border-color: var(--green-btn);
  box-shadow: 0 0 0 3px rgba(26,122,56,0.18);
}
.newsletter__input::placeholder { color: var(--text-muted); }

/* =============================================
   SUPPORT PAGE / SECTION
   ============================================= */
.support-tier {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  margin-bottom: 0.875rem;
}
.support-tier:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--border-2);
  color: inherit;
}
.support-tier__icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.support-tier__name { font-weight: 700; margin-bottom: 0.25rem; }
.support-tier__desc { font-size: 0.875rem; color: var(--text-muted); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy { font-size: 0.85rem; color: var(--text-muted); }
.footer__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--ease);
}
.footer__links a:hover { color: var(--text); }

/* =============================================
   UTILITIES
   ============================================= */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   PREVENT HORIZONTAL OVERFLOW GLOBALLY
   Safari/iOS clips at viewport width but
   negative margins on carousel still trigger
   layout overflow — clamp it here.
   ============================================= */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* =============================================
   CURATED CAROUSEL WRAPPER
   The carousel uses negative margins to bleed
   to screen edges. The section itself must clip.
   ============================================= */
.section--curated {
  overflow-x: hidden;
}

/* Swipe hint — hidden on desktop, shown on mobile */
.curated__swipe-hint {
  display: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}

/* =============================================
/* Skeleton loader pulse animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/*    RESPONSIVE — Mobile first
   Target: 375px (iPhone SE) → 430px (iPhone Plus)
   ============================================= */

/* ── Main mobile breakpoint ────────────────── */
@media (max-width: 640px) {

  /* ── TOKENS ── */
  :root {
    --gap:   1rem;
  }

  /* ─────────────────────────────────────────
     NAV
     Key fix: logo must never wrap or push
     hamburger off-screen. Force single line
     with truncation.
     ───────────────────────────────────────── */
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger         { display: flex; }

  /* Mobile nav overrides */
  .nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }

  /* Logo — shrinks gracefully */
  .nav__logo {
    min-width: 0;
    overflow: hidden;
  }
  .nav__logo-name {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
  }

  /* Hamburger — always right */
  .nav__hamburger {
    flex-shrink: 0;
    justify-self: auto;
    margin-left: auto;
  }

  /* Mobile drawer links */
  .nav__mobile a {
    padding: 1rem 1.125rem;
    font-size: 1.0625rem;
    min-height: 52px;
    display: flex;
    align-items: center;
  }
  .nav__mobile .btn {
    margin-top: 1rem;
    min-height: 52px;
    font-size: 1rem;
  }

  /* ─────────────────────────────────────────
     HERO
     Cover first, then text — visual impact
     before copy on mobile.
     ───────────────────────────────────────── */
  .hero {
    padding: 1.75rem 0 1.75rem;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero__cover {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .hero__cover-wrap {
    width: clamp(150px, 44vw, 196px);
    border-radius: 24px;
  }
  .hero__eyebrow   { margin-bottom: 0.5rem; }
  .hero__title     { font-size: clamp(1.875rem, 8vw, 2.5rem); margin-bottom: 0.625rem; }
  .hero__tagline   { font-size: 0.9375rem; margin-bottom: 1.25rem; line-height: 1.6; }
  .hero__actions   { gap: 0.5rem; flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* ─────────────────────────────────────────
     SECTIONS — tighter rhythm on mobile
     ───────────────────────────────────────── */
  .section          { padding: 2rem 0; }
  .section-label    { margin-bottom: 0.875rem; }

  /* ─────────────────────────────────────────
     LATEST EPISODE CARD
     ───────────────────────────────────────── */
  .latest-card {
    border-radius: var(--r-lg);
    padding: 1.125rem;
  }
  .latest-card__actions             { flex-direction: column; gap: 0.5rem; }
  .latest-card__actions .btn        { width: 100%; justify-content: center; min-height: 46px; }

  /* ─────────────────────────────────────────
     SUBSCRIBE PLATFORMS — 2-column grid
     ───────────────────────────────────────── */
  .subscribe__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
  }
  .subscribe__platform {
    justify-content: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
    border-radius: var(--r-lg);
    min-height: 48px;
    gap: 0.4rem;
  }

  /* ─────────────────────────────────────────
     CURATED CARDS — horizontal carousel
     Bleeds to screen edges; parent section
     clips overflow with .section--curated.
     ───────────────────────────────────────── */
  .curated__swipe-hint { display: block; }

  .curated__grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    margin-left:  calc(-1 * var(--gap));
    margin-right: calc(-1 * var(--gap));
    padding-left: var(--gap);
    padding-right: var(--gap);
    scrollbar-width: none;
  }
  .curated__grid::-webkit-scrollbar { display: none; }

  .curated-card {
    flex: 0 0 80vw;
    max-width: 290px;
    scroll-snap-align: start;
    min-width: 0;
  }

  /* ─────────────────────────────────────────
     ASK BOX
     ───────────────────────────────────────── */
  .ask-box {
    padding: 1.625rem 1.125rem;
    border-radius: var(--r-lg);
    text-align: left;
  }
  .ask-box__icon { text-align: left; }
  .ask-box .btn  { width: 100%; justify-content: center; min-height: 48px; }

  /* ─────────────────────────────────────────
     SOCIAL LINKS
     ───────────────────────────────────────── */
  .social-links    { gap: 0.625rem; }
  .social-link     { font-size: 0.8125rem; padding: 0.5rem 0.875rem; }

  /* ─────────────────────────────────────────
     EPISODE LIST (episodes page)
     ───────────────────────────────────────── */
  .ep-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1rem 1.125rem;
  }
  .ep-card__num {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .ep-card__num-line  { display: none; }
  .ep-card__num-label { margin-bottom: 0; }
  .ep-card__num-val   { font-size: 1.125rem; }
  .ep-card__actions   { flex-direction: column; gap: 0.5rem; }
  .ep-card__actions .btn { width: 100%; justify-content: center; min-height: 46px; }

  /* ─────────────────────────────────────────
     EPISODE DETAIL
     ───────────────────────────────────────── */
  .audio-player              { padding: 0.875rem 1rem; border-radius: var(--r); }
  .ep-nav                    { grid-template-columns: 1fr; gap: 0.625rem; }
  .ep-nav__item--next        { text-align: left; }
  .ep-detail__meta           { gap: 0.375rem; }

  /* ─────────────────────────────────────────
     ABOUT PAGE
     ───────────────────────────────────────── */
  .about-header              { padding: 2rem 0; }
  .about-header__inner       { grid-template-columns: 1fr; text-align: center; }
  .about-header__avatar      { margin: 0 auto 1rem; }
  .about__topics             { justify-content: center; }

  /* ─────────────────────────────────────────
     NEWSLETTER
     ───────────────────────────────────────── */
  .newsletter__form          { flex-direction: column; gap: 0.5rem; }
  .newsletter__input         { width: 100%; min-height: 48px; }
  .btn.newsletter__submit    { width: 100%; justify-content: center; min-height: 48px; }

  /* ─────────────────────────────────────────
     SUPPORT TIERS
     ───────────────────────────────────────── */
  .support-tier              { border-radius: var(--r); }

  /* ─────────────────────────────────────────
     FOOTER
     ───────────────────────────────────────── */
  .footer                    { padding: 1.75rem 0; }
  .footer__inner             { flex-direction: column; align-items: flex-start; gap: 0.625rem; }
  .footer__copy              { font-size: 0.8rem; }
  .footer__links             { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0; list-style: none; }
  .footer__links li          { display: flex; align-items: center; }
  .footer__links a           { font-size: 0.8rem; display: inline-block; }

  /* ─────────────────────────────────────────
     GLOBAL TOUCH TARGETS
     Minimum 44px (Apple HIG) on all tappables
     ───────────────────────────────────────── */
  .btn--sm {
    padding: 0.6875rem 1rem;
    min-height: 44px;
    font-size: 0.875rem;
  }

  /* ─────────────────────────────────────────
     ACTIVE PRESS FEEDBACK — tactile feel
     ───────────────────────────────────────── */
  .btn:active,
  .ep-card:active,
  .curated-card:active,
  .subscribe__platform:active,
  .social-link:active {
    transform: scale(0.97);
    opacity: 0.9;
  }
}

/* ── iPhone SE / very small (≤390px) ─────── */
@media (max-width: 390px) {
  :root { --gap: 0.875rem; }
  .curated-card              { flex: 0 0 86vw; max-width: 270px; }
  .subscribe__grid           { grid-template-columns: 1fr; }
  .hero__title               { font-size: 1.875rem; }
  .nav__logo-name            { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.latest-card__tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: 1.25rem; }

/* ── Single-page additions ─────────────────────────── */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--green-btn); color: #fff; padding: .5rem 1rem;
  border-radius: var(--r-pill); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.hero .subscribe__grid { margin-top: .25rem; }

.episodes__count { margin: -.5rem 0 1.5rem; font-size: .9375rem; }

.player { margin-top: 1.25rem; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.player iframe { display: block; width: 100%; max-width: 100%; border: 0; }

.hosts__intro { color: var(--text-2); max-width: 520px; margin-bottom: 1.75rem; line-height: 1.7; }
.hosts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 520px; }
.host {
  display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center;
  padding: 1.5rem 1rem; background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
}
.host__photo {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  background: var(--green-subtle); color: var(--green-text);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em;
}
.host__photo img { width: 100%; height: 100%; object-fit: cover; }
.host__name { font-weight: 700; color: var(--text); }

.ep-list { list-style: none; padding: 0; }

/* ── Listen buttons ──────────────────────────────────── */
.listen { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .75rem; max-width: 480px; }
.listen-btn {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem .75rem .75rem;
  min-height: 64px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: 16px;
  color: var(--text); text-decoration: none;
  box-shadow: 0 1px 2px rgba(12,26,16,.05);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.listen-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12,26,16,.10);
}
.listen-btn:active { transform: translateY(0) scale(.98); }
.listen-btn__icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
}
.listen-btn--apple   .listen-btn__icon { background: #F3EAFB; color: #7B2FBE; }
.listen-btn--spotify .listen-btn__icon { background: #E3F8EA; color: #147A3A; }
.listen-btn__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.listen-btn__label { font-size: .75rem; font-weight: 500; color: var(--text-muted); }
.listen-btn__name  { font-size: .9375rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }


.hero__text { min-width: 0; }
@media (max-width: 480px) {
  .listen { grid-template-columns: 1fr; max-width: none; }
}

/* Apple official badge + Spotify button, aligned to the same height */
.listen { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; max-width: none; }
.listen-badge { display: inline-flex; border-radius: 12px; line-height: 0; transition: transform var(--ease); }
.listen-badge:hover { transform: translateY(-2px); }
.listen-badge img { height: 56px; width: auto; object-fit: contain; }
.listen .listen-btn { min-height: 56px; padding-top: .5rem; padding-bottom: .5rem; }
.listen .listen-btn__icon { width: 36px; height: 36px; border-radius: 10px; }
@media (max-width: 480px) {
  .listen { display: flex; flex-direction: column; align-items: stretch; }
  .listen-badge { justify-content: center; }
}
