/* ──────────────────────────────────────────────────────────────────────────
   Voice — Homepage Prototype
   Light/dark themed. Backgrounds match the logo backdrops exactly:
     light: #f6e3cb    dark: #121d15
   ────────────────────────────────────────────────────────────────────────── */

/* ── Palette tokens ──────────────────────────────────────────────────────
   Light is the default. Dark mode overrides happen via [data-theme="dark"]
   on the root <html>. JS toggle persists to localStorage.
   ─────────────────────────────────────────────────────────────────────── */

:root {
  /* Backgrounds match the logo PNG backdrops 1:1 so the logo edges merge
     seamlessly with the page. */
  --bg:           #f6e3cb;
  --bg-deep:      #ecd6b8;  /* sectioned-card / podcast strip / footer */
  --text:         #0F1A15;
  --text-soft:    #2E3A33;
  --muted:        #6b675c;
  --ember:        #8B0000;
  --gold:         #B8975F;
  --rule:         #d7c4a4;

  /* Image-block placeholder colours — used by CSS gradients while real
     commissioned photography is pending (§18.4). */
  --block-a:      #4A3018;
  --block-b:      #5C4A2F;
  --block-c:      #6B2020;
  --block-d:      #2E3A33;
  --block-e:      #1A2520;

  /* Typography — see docs/concept.md §18.3 */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale */
  --type-display-xl: 4.5rem;
  --type-display-lg: 3rem;
  --type-display-md: 2.25rem;
  --type-display-sm: 1.625rem;
  --type-body-lg:    1.125rem;
  --type-body:       1rem;
  --type-body-sm:    0.875rem;

  /* Layout */
  --container-max:   1200px;
  --reading-measure: 65ch;

  /* Logo swap — one image is hidden in each mode */
  --logo-light-display: block;
  --logo-dark-display:  none;
}

[data-theme="dark"] {
  --bg:           #121d15;
  --bg-deep:      #1a2920;
  --text:         #f6e3cb;
  --text-soft:    #d5c1a3;
  --muted:        #95897a;
  --ember:        #d4544f;     /* lifted for AA contrast on dark */
  --gold:         #d4b67f;     /* lifted for AA contrast on dark */
  --rule:         #2d3d33;

  --block-a:      #5c3a1f;
  --block-b:      #6b563a;
  --block-c:      #7a2828;
  --block-d:      #364740;
  --block-e:      #1f2d27;

  --logo-light-display: none;
  --logo-dark-display:  block;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--bg);
  transition: background-color 0.4s ease;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--ember); }

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

/* ── Container ─────────────────────────────────────────────────────────── */

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

/* ── Top bar ───────────────────────────────────────────────────────────── */

.topbar {
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-date { color: var(--muted); }

.topbar-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-soft);
}

/* Theme toggle button — sits at the right edge of the top bar */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--bg-deep);
  border-color: var(--gold);
  color: var(--gold);
}

.theme-toggle .icon {
  font-size: 0.95rem;
  line-height: 1;
}

[data-theme="light"] .theme-toggle .label::after { content: 'Dark'; }
[data-theme="dark"]  .theme-toggle .label::after { content: 'Light'; }
[data-theme="light"] .theme-toggle .icon::after  { content: '☾'; }
[data-theme="dark"]  .theme-toggle .icon::after  { content: '☀'; }

/* ── Masthead — uses the PNG logos ─────────────────────────────────────── */

.masthead {
  text-align: center;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}

.masthead-logo {
  max-width: min(100%, 520px);
  height: auto;
  margin: 0 auto;
}

.logo-light { display: var(--logo-light-display); margin: 0 auto; }
.logo-dark  { display: var(--logo-dark-display);  margin: 0 auto; }

.masthead-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: 1rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ── Nav ───────────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  /* Sticky at top of viewport — desktop AND mobile.
     Background must be opaque (not transparent) so content
     scrolling under it doesn't bleed through. */
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  /* Very subtle shadow once the nav passes the masthead,
     so the boundary between sticky nav and scrolled content
     is visually clear in both themes. */
  box-shadow: 0 1px 0 var(--rule), 0 6px 18px -12px rgba(15, 26, 21, 0.18);
}

.nav a {
  color: var(--text);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav a:hover { border-bottom-color: var(--ember); color: var(--ember); }
.nav .nav-sub { color: var(--muted); font-size: 0.72rem; }

/* Hamburger button — desktop hidden, mobile shown */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  border-radius: 3px;
  margin: 0;
  align-self: center;
  transition: border-color 0.15s ease;
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav.open .nav-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer (≤720px) — links hidden until hamburger is tapped */
@media (max-width: 720px) {
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0.6rem 1.2rem;
    gap: 0;
  }
  .nav-toggle { display: block; order: 1; margin-left: auto; }

  .nav > a {
    display: none;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.85rem;
    order: 2;
  }
  .nav.open > a { display: block; }
  .nav.open > a:last-of-type { border-bottom: none; }

  /* Prevent body scroll while menu is open */
  body.nav-open { overflow: hidden; }
}

/* ── Section heads ─────────────────────────────────────────────────────── */

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--type-display-md);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.section-rule {
  height: 1px;
  background: var(--rule);
  margin: 4rem 0 2.5rem;
}

/* ── Featured essay (hero) ─────────────────────────────────────────────── */

.featured {
  /* Longhand so .container's horizontal padding survives when both classes
     are on the same element. Shorthand `padding: 3rem 0 3rem` would zero
     out the left/right padding and break the mobile gutter. */
  padding-top:    3rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.featured-image {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(15,26,21,0.45), rgba(139,0,0,0.35)),
    linear-gradient(45deg, var(--block-d), var(--ember));
  position: relative;
  overflow: hidden;
}

.featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(184,151,95,0.25), transparent 60%);
}

/* Image credits sit on top of the dark photo gradient in BOTH themes,
   so colors must be theme-independent — not driven by --bg, which would
   invert to dark green in dark mode and disappear. */
.image-credit {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(15, 26, 21, 0.78);
  color: #f6e3cb;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem;
  text-transform: uppercase;
  z-index: 2;
}

.featured-meta { padding-right: 1rem; }

.pillar-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 700;
  margin-bottom: 1rem;
}

.featured-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}

.featured-dek {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text-soft);
  font-style: italic;
  font-weight: 300;
  max-width: 38ch;
  margin-bottom: 1.3rem;
}

.featured-byline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.featured-byline .author { color: var(--text); font-weight: 600; }

.read-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--ember);
}

.read-link::after { content: '→'; font-size: 1rem; }

/* ── Pillars row ───────────────────────────────────────────────────────── */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.pillar-card { display: flex; flex-direction: column; }

.pillar-card-image {
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.pillar-card-image.self  { background: linear-gradient(135deg, var(--block-d), var(--block-b)); }
.pillar-card-image.bonds { background: linear-gradient(135deg, var(--block-c), var(--gold)); }
.pillar-card-image.body  { background: linear-gradient(135deg, var(--ember), var(--block-d)); }
.pillar-card-image.alone { background: linear-gradient(135deg, var(--block-e), var(--block-d)); }
.pillar-card-image.roots { background: linear-gradient(135deg, var(--block-a), var(--gold)); }

.pillar-card-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pillar-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.pillar-card-byline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Podcast strip ─────────────────────────────────────────────────────── */

.podcast-strip {
  background: var(--bg-deep);
  padding: 3rem;
  border-radius: 4px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--rule);
}

.podcast-art {
  width: 130px;
  height: 130px;
  border-radius: 3px;
  background:
    radial-gradient(circle at 30% 30%, var(--gold), transparent 50%),
    linear-gradient(135deg, var(--block-d), var(--ember));
}

.podcast-body { display: flex; flex-direction: column; gap: 0.4rem; }

.podcast-show {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.podcast-episode-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.podcast-guest {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.podcast-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.podcast-play:hover { background: var(--ember); color: var(--bg); }

/* ── Newsletter inline ─────────────────────────────────────────────────── */

.newsletter-inline {
  text-align: center;
  padding: 4rem 0;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-inline .section-eyebrow {
  display: block;
  margin-bottom: 0.8rem;
}

.newsletter-inline-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  line-height: 1.15;
  color: var(--text);
}

.newsletter-inline-body {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid var(--text);
  border-radius: 2px;
}

.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: transparent;
  border: none;
  color: var(--text);
  outline: none;
}

.newsletter-form input::placeholder { color: var(--muted); }

.newsletter-form button {
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0 1.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-form button:hover { background: var(--ember); }

/* ── Recent essays grid ────────────────────────────────────────────────── */

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.recent-card { display: flex; flex-direction: column; }

.recent-card-image {
  aspect-ratio: 3 / 2;
  border-radius: 3px;
  margin-bottom: 1.2rem;
}

.recent-card-image.a { background: linear-gradient(120deg, var(--block-a), var(--ember)); }
.recent-card-image.b { background: linear-gradient(120deg, var(--block-d), var(--block-b)); }
.recent-card-image.c { background: linear-gradient(120deg, var(--block-c), var(--gold)); }

.recent-card-eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.recent-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.recent-card-dek {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.recent-card-byline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

footer.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--rule);
  padding: 4rem 0 3rem;
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  max-width: 240px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36ch;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col li a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-credit {
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-credit .tygra-credit a {
  color: inherit;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  opacity: 0.85;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer-credit .tygra-credit a:hover {
  opacity: 1;
  color: var(--ember);
  border-bottom-color: var(--ember);
}

.footer-credit .tygra-credit {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; padding-bottom: 2rem; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .recent-grid { grid-template-columns: 1fr; }
  .podcast-strip { grid-template-columns: 1fr; padding: 2rem; text-align: center; }
  .podcast-art { width: 100%; max-width: 200px; height: 200px; margin: 0 auto; }
  .podcast-play { justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav { gap: 1.2rem; font-size: 0.7rem; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-credit { flex-direction: column; gap: 0.5rem; text-align: center; }
  .pillars-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
  .newsletter-form { flex-direction: column; border: none; gap: 0.5rem; }
  .newsletter-form input { border: 1px solid var(--text); border-radius: 2px; }
  .newsletter-form button { border-radius: 2px; padding: 0.9rem; }
  .topbar-inner { justify-content: center; }
}

/* ──────────────────────────────────────────────────────────────────────────
   INNER-PAGE MOBILE FIXES
   The prototype's <= 540px block covered the home page well; these fixes
   address issues that only surfaced once the Astro article / author /
   pillar detail pages went live:
     - article byline row had no flex-wrap (5 inline items overflowed phones)
     - dropcap was 4.2rem — too big on narrow screens, crowded the page
     - article-body H2 / blockquote oversized on phones
     - breadcrumb uppercase letter-spacing pushed long titles off-screen
     - author hero / page hero needed tighter vertical rhythm
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .breadcrumbs { font-size: 0.65rem; letter-spacing: 0.12em; }
  .breadcrumbs .sep { margin: 0 0.4rem; }

  .article-hero { padding-top: 1.5rem; padding-bottom: 1rem; }
  .article-hero-dek { font-size: 1.15rem; margin-bottom: 1.5rem; }

  /* Mobile byline layout:
     Line 1 = author (full width, slightly weightier)
     Line 2 = reading time · date (with the bullet kept but subdued)
     The separator right after the author is hidden (would be an orphan
     at the end of line 1). */
  .article-byline-row {
    flex-wrap: wrap;
    gap: 0.25rem 0.55rem;
    padding: 0.9rem 0;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }
  .article-byline-row > span:first-child {
    flex-basis: 100%;
    margin-bottom: 0.1rem;
    color: var(--text);
    font-weight: 500;
  }
  .article-byline-row > span:first-child + .sep { display: none; }
  .article-byline-row .sep { margin: 0; opacity: 0.6; }

  .article-cover { margin: 1.5rem 0; }

  .article-body { font-size: 1.05rem; line-height: 1.65; }
  .article-body p:first-of-type::first-letter {
    font-size: 3rem;
    margin: 0.25rem 0.55rem -0.25rem 0;
  }
  .article-body h2 { font-size: 1.55rem; margin: 2.2rem 0 1rem; }
  .article-body h3 { font-size: 1.2rem; margin: 1.8rem 0 0.8rem; }
  .article-body blockquote {
    font-size: 1.1rem;
    padding: 0.2rem 0 0.2rem 1rem;
    margin: 1.6rem 0;
  }

  .bio-card { padding: 1.25rem; }

  .author-hero { padding-top: 2rem; padding-bottom: 2.5rem; gap: 1.5rem; }
  .author-hero-bio { font-size: 1rem; }
  .author-archive-head { margin: 2rem 0 1rem; }

  .page-hero { padding-top: 2rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
  .page-hero-dek { font-size: 1.1rem; }

  .video-embed { margin: 1.8rem 0; }
  .video-embed figcaption { font-size: 0.88rem; margin-top: 0.7rem; }
}

@media (max-width: 540px) {
  .article-byline-row { font-size: 0.65rem; gap: 0.25rem 0.7rem; }
  .article-body { font-size: 1rem; }
  .article-body p:first-of-type::first-letter { font-size: 2.6rem; }
  .article-hero-title { font-size: 2rem; max-width: none; }
  .author-grid { gap: 2rem 1.5rem; margin: 1.5rem 0 3rem; }
  .author-tile-name { font-size: 1.15rem; }
  .author-tile-avatar { width: 92px; height: 92px; }
  .bio-card { padding: 1rem; }
  .bio-card-avatar { width: 64px; height: 64px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   LOADING / ANIMATION POLISH
   - Skeleton shimmer on placeholder image blocks (signals "real image goes
     here, this is a prototype")
   - Initial page-load fade-in for above-the-fold elements
   - Scroll-driven reveal for sections below the fold (CSS-only, no JS)
   - All disabled when prefers-reduced-motion is set (rule below)
   ────────────────────────────────────────────────────────────────────────── */

/* Skeleton shimmer — subtle gleam across image placeholders.
   Applied via ::after so it overlays the gradient without changing it. */
@keyframes skeleton-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.featured-image,
.pillar-card-image,
.recent-card-image,
.podcast-art,
.podcast-hero-art,
.article-cover,
.author-hero-avatar,
.author-tile-avatar,
.bio-card-avatar {
  position: relative;
  overflow: hidden;
}

.featured-image::before,
.pillar-card-image::before,
.recent-card-image::before,
.podcast-art::before,
.podcast-hero-art::before,
.article-cover::before,
.author-hero-avatar::before,
.author-tile-avatar::before,
.bio-card-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 25%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 75%
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Stagger the pillar-card shimmers so they don't all pulse at once. */
.pillars-grid .pillar-card:nth-child(2) .pillar-card-image::before { animation-delay: 0.4s; }
.pillars-grid .pillar-card:nth-child(3) .pillar-card-image::before { animation-delay: 0.8s; }
.pillars-grid .pillar-card:nth-child(4) .pillar-card-image::before { animation-delay: 1.2s; }
.pillars-grid .pillar-card:nth-child(5) .pillar-card-image::before { animation-delay: 1.6s; }
.recent-grid .recent-card:nth-child(2) .recent-card-image::before { animation-delay: 0.5s; }
.recent-grid .recent-card:nth-child(3) .recent-card-image::before { animation-delay: 1s; }

/* Ensure image-credit captions sit above the shimmer overlay. */
.image-credit { z-index: 2; }

/* Initial page-load fade-in for above-the-fold elements.
   Uses `backwards` fill so opacity starts at 0 before the delay kicks in
   (no flash of fully visible content before the animation begins). */
@keyframes content-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.masthead    { animation: content-fade-in 0.55s ease-out 0.05s backwards; }
.breadcrumbs { animation: content-fade-in 0.55s ease-out 0.20s backwards; }
.page-hero   { animation: content-fade-in 0.55s ease-out 0.25s backwards; }
.featured    { animation: content-fade-in 0.55s ease-out 0.30s backwards; }
.article-hero { animation: content-fade-in 0.55s ease-out 0.10s backwards; }
.podcast-hero { animation: content-fade-in 0.55s ease-out 0.10s backwards; }
.author-hero { animation: content-fade-in 0.55s ease-out 0.10s backwards; }
/* Do NOT animate .nav or .topbar — sticky positioning conflicts with
   transform: translateY, and they're chrome (don't need entrance polish). */

/* Scroll-driven reveals for sections below the fold.
   Uses the modern CSS `animation-timeline: view()` — pure CSS, no JS.
   Browsers without support (older Safari) see content normally, no penalty. */
@keyframes scroll-fade-up {
  from { opacity: 0;   transform: translateY(20px); }
  to   { opacity: 1;   transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  .pillars-grid,
  .podcast-strip,
  .newsletter-inline,
  .recent-grid,
  .article-body,
  .article-footer,
  .author-grid,
  .episode-list,
  .tiers,
  .audio-player,
  .form-page,
  .prose,
  .bio-card {
    animation: scroll-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* Respect users who prefer reduced motion — clamps all animations
   (including the new ones above) to imperceptible durations. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto; }
}

/* ──────────────────────────────────────────────────────────────────────────
   INNER PAGES — compact masthead, breadcrumbs, article body, author/podcast/
   submit/legal pages. Home page styles above are unchanged.
   ────────────────────────────────────────────────────────────────────────── */

/* Compact masthead for inner pages — wordmark only, no tagline, smaller */
.masthead--compact { padding: 1.5rem 0 1.2rem; }
.masthead--compact .masthead-logo { max-width: min(100%, 320px); }
.masthead--compact .masthead-tagline { display: none; }

/* Breadcrumb rail above page hero */
.breadcrumbs {
  padding-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); border-bottom: 1px solid transparent; }
.breadcrumbs a:hover { color: var(--ember); border-bottom-color: var(--ember); }
.breadcrumbs .sep { margin: 0 0.6rem; color: var(--rule); }

/* Page hero (used by pillar pages, about, contributors, etc.) */
.page-hero {
  /* Longhand padding so .container's horizontal gutter survives. */
  padding-top:    3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.page-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, var(--type-display-xl));
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.page-hero-dek {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 55ch;
  color: var(--text-soft);
}

/* ── Article body (long-form essay reading) ─────────────────────────────── */

.article-hero {
  /* Longhand padding so .container's horizontal gutter survives. */
  padding-top:    2rem;
  padding-bottom: 1.5rem;
}

.article-hero .pillar-badge { margin-bottom: 1.5rem; }

.article-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  max-width: 22ch;
}

.article-hero-dek {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.article-byline-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-byline-row .author-name { color: var(--text); font-weight: 600; }
.article-byline-row .sep { color: var(--rule); }

.article-cover {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  margin: 2.5rem 0;
  background:
    linear-gradient(135deg, rgba(15,26,21,0.45), rgba(139,0,0,0.35)),
    linear-gradient(45deg, var(--block-d), var(--ember));
  position: relative;
  overflow: hidden;
}
.article-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(184,151,95,0.25), transparent 60%);
}

.article-body {
  max-width: 65ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
}

.article-body p { margin: 0 0 1.4rem; }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 4.2rem;
  float: left;
  line-height: 0.85;
  margin: 0.3rem 0.7rem -0.3rem 0;
  color: var(--ember);
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 3rem 0 1.2rem;
  color: var(--text);
}
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 2.2rem 0 1rem;
}
.article-body blockquote {
  border-left: 3px solid var(--ember);
  padding: 0.3rem 0 0.3rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-soft);
  font-size: 1.3rem;
  line-height: 1.5;
}
.article-body em { font-style: italic; }
.article-body strong { font-weight: 600; color: var(--text); }
.article-body a {
  color: var(--ember);
  border-bottom: 1px solid var(--ember);
  padding-bottom: 1px;
}

.article-footer {
  max-width: 65ch;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

/* Bio card shown after an article */
.bio-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.3rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--bg-deep);
  border-radius: 4px;
  margin: 0 auto;
  max-width: 65ch;
}
.bio-card-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ember), var(--gold));
}
.bio-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.bio-card-bio {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}
.bio-card-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
}

/* ── Author roster page ─────────────────────────────────────────────────── */

.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem 2rem;
  margin: 2rem 0 4rem;
}

.author-tile { display: flex; flex-direction: column; align-items: flex-start; }
.author-tile-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--block-d), var(--gold));
  margin-bottom: 1rem;
}
.author-tile-avatar.b { background: linear-gradient(135deg, var(--block-c), var(--ember)); }
.author-tile-avatar.c { background: linear-gradient(135deg, var(--block-a), var(--gold)); }
.author-tile-avatar.d { background: linear-gradient(135deg, var(--block-e), var(--block-d)); }
.author-tile-avatar.e { background: linear-gradient(135deg, var(--gold), var(--block-b)); }
.author-tile-role {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.author-tile-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.005em;
  margin-bottom: 0.5rem;
}
.author-tile-bio {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Single author profile ──────────────────────────────────────────────── */

.author-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
  /* Longhand so .container's horizontal padding survives. */
  padding-top:    3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}
.author-hero-avatar {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ember), var(--gold));
}
.author-hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
.author-hero-role {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.author-hero-bio {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 1rem;
  max-width: 60ch;
}
.author-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.author-hero-links a {
  color: var(--ember);
  border-bottom: 1px solid var(--ember);
  padding-bottom: 1px;
}

.author-archive-head {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 3rem 0 1.5rem;
}

/* ── Podcast page (similar to home strip but bigger) ────────────────────── */

.podcast-hero {
  /* Longhand so .container's horizontal padding survives. */
  padding-top:    3rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.podcast-hero-art {
  width: 260px; height: 260px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 30% 30%, var(--gold), transparent 50%),
    linear-gradient(135deg, var(--block-d), var(--ember));
}
.podcast-hero-show {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.podcast-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.podcast-hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  max-width: 50ch;
}
.subscribe-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.subscribe-links a {
  color: var(--ember);
  border-bottom: 1px solid var(--ember);
  padding-bottom: 1px;
}

.episode-list {
  list-style: none;
  margin: 2rem 0 4rem;
  padding: 0;
}
.episode-list li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.episode-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
}
.episode-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  margin-bottom: 0.3rem;
}
.episode-meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.episode-play {
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.episode-play:hover { background: var(--ember); border-color: var(--ember); color: var(--bg); }

/* Episode player on podcast detail page */
.audio-player {
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.8rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.audio-player-play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ember);
  color: var(--bg);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
.audio-player-progress {
  height: 6px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.audio-player-progress div {
  height: 100%;
  width: 23%;
  background: var(--ember);
}
.audio-player-time {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* ── Forms (submit, newsletter, legal) ──────────────────────────────────── */

.form-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.form-page label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.form-page input[type="text"],
.form-page input[type="email"],
.form-page select,
.form-page textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-page input:focus,
.form-page select:focus,
.form-page textarea:focus {
  border-color: var(--ember);
}

.form-page textarea {
  min-height: 180px;
  resize: vertical;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.6;
}

.form-page .form-note {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.form-page .form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2.5rem;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 1rem 2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-primary:hover { background: var(--ember); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 1rem 2rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Membership tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0 4rem;
}
.tier {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}
.tier.tier-featured {
  border: 1px solid var(--gold);
  position: relative;
}
.tier.tier-featured::before {
  content: 'Most chosen';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}
.tier-name {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
}
.tier-price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.tier-price .per { font-size: 0.9rem; color: var(--muted); }
.tier-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}
.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}
.tier-features li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--text-soft);
}
.tier-features li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--ember);
  font-size: 0.6em;
  top: 0.85rem;
}

/* Legal / about / contributors — readable column */
.prose {
  max-width: 65ch;
  margin: 0 auto;
  padding: 0 0 4rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}
.prose p { margin: 0 0 1.3rem; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: -0.005em;
  margin: 2.5rem 0 1rem;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
}
.prose ul { margin: 0 0 1.3rem 1.5rem; }
.prose ul li { margin-bottom: 0.5rem; }
.prose a { color: var(--ember); border-bottom: 1px solid var(--ember); }
.prose blockquote {
  border-left: 3px solid var(--ember);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* Responsive overrides for inner pages */
@media (max-width: 900px) {
  .author-hero { grid-template-columns: 1fr; }
  .author-hero-avatar { width: 160px; height: 160px; }
  .podcast-hero { grid-template-columns: 1fr; }
  .podcast-hero-art { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; }
  .tiers { grid-template-columns: 1fr; }
  .bio-card { grid-template-columns: 1fr; text-align: center; }
  .bio-card-avatar { margin: 0 auto; }
  .episode-list li { grid-template-columns: 1fr; gap: 0.8rem; }
  .episode-num { font-size: 1.5rem; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Inline video embeds (YouTube, Vimeo, etc.)
   Rendered inside .article-body wherever editors insert an Embed block.
   Uses the classic 56.25% padding trick for responsive 16:9; the iframe
   itself is absolutely positioned to fill the frame.
   ────────────────────────────────────────────────────────────────────────── */

.article-body .video-embed,
.video-embed {
  margin: 2.5rem 0;
  max-width: 100%;
}

.video-embed-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;          /* 16:9 */
  background: var(--bg-deep);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 24px -16px rgba(15, 26, 21, 0.35);
}

.video-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-embed figcaption {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  margin-top: 0.85rem;
}

/* Defensive error state — only renders when the URL couldn't be parsed.
   Editors will see this in preview and know to fix the URL. */
.video-embed--error {
  background: rgba(184, 115, 46, 0.08);
  border: 1px dashed var(--ember);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  color: var(--ember);
  font-size: 0.9rem;
}
.video-embed--error code {
  background: rgba(0,0,0,0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85em;
}
