:root {
  --ink: #101820;
  --navy: #0b1f2a;
  --navy-2: #12303d;
  --paper: #f4f1e9;
  --white: #fffdf8;
  --signal: #e34b31;
  --gold: #e8b44f;
  --muted: #66747b;
  --rule: #c8cec9;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
button, input { font: inherit; }

.site-header {
  color: var(--white);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 74px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 50%;
  background: var(--signal);
  color: white;
  font-family: Georgia, serif;
  font-size: 21px;
}
.nav { display: flex; gap: 26px; }
.nav a {
  color: #d6e1e5;
  text-decoration: none;
  font-size: .94rem;
}
.nav a:hover, .nav a:focus-visible { color: white; text-decoration: underline; text-underline-offset: 5px; }

.hero {
  color: var(--white);
  background:
    radial-gradient(circle at 85% 35%, rgba(232,180,79,.18), transparent 26%),
    linear-gradient(135deg, var(--navy), #07151d);
}
.hero-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
  padding: 68px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 80px;
  align-items: end;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.08; }
h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 6.9rem);
  font-weight: 500;
  letter-spacing: -.055em;
}
.hero-copy {
  margin: 0;
  padding-left: 22px;
  border-left: 3px solid var(--signal);
  color: #cedbdf;
  font-size: 1.05rem;
}
.hero-copy strong { display: block; margin-bottom: 5px; color: white; }

main { width: min(calc(100% - 40px), var(--max)); margin: auto; }
.section { padding: 70px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}
.section-title {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
}
.section-note { max-width: 510px; margin: 0; color: var(--muted); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.episode-card {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.episode-card:hover, .episode-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--signal);
  box-shadow: 0 14px 35px rgba(11,31,42,.1);
  outline: none;
}
.episode-card:first-child {
  grid-column: span 2;
  min-height: 310px;
  color: white;
  background: var(--navy-2);
  border-color: var(--navy-2);
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.episode-card:first-child .card-meta { color: #b6c9cf; }
.card-number { color: var(--signal); }
.card-title {
  max-width: 700px;
  margin: 44px 0 14px;
  font-family: Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -.025em;
}
.card-summary { margin: auto 0 20px; color: var(--muted); }
.episode-card:first-child .card-summary { max-width: 760px; color: #d8e1e4; }
.card-link { font-weight: 760; color: var(--signal); }

.archive { border-top: 1px solid var(--rule); }
.archive-list { border-top: 1px solid var(--rule); }
.archive-row {
  display: grid;
  grid-template-columns: 90px 155px minmax(250px, .8fr) minmax(300px, 1.2fr);
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.archive-no, .archive-date { margin: 0; color: var(--muted); font-size: .82rem; font-weight: 700; }
.archive-row h3 { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.archive-row h3 a { text-decoration-color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.archive-desc { margin: 0; color: #47565d; font-size: .94rem; }

.site-footer { margin-top: 30px; color: #c8d6da; background: var(--navy); }
.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: .88rem;
}
.footer-inner p { max-width: 700px; margin: 0; }
.footer-inner a { color: white; }

/* Episode */
.episode-hero { color: white; background: var(--navy); }
.episode-hero-inner { width: min(calc(100% - 40px), 980px); margin: auto; padding: 60px 0 66px; }
.back-link { display: inline-block; margin-bottom: 38px; color: #cbd8dc; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.episode-hero h1 { max-width: 940px; font-size: clamp(2.7rem, 6vw, 5.6rem); }
.episode-kicker { margin-top: 22px; color: var(--gold); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.episode-main { width: min(calc(100% - 40px), 980px); }
.audio-shell { margin-top: -26px; padding: 20px 24px; background: var(--signal); box-shadow: 0 13px 28px rgba(11,31,42,.14); }
.audio-shell audio { display: block; width: 100%; }
.content-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 70px; padding: 70px 0; }
.side-label { position: sticky; top: 24px; align-self: start; }
.side-label p { margin: 0; color: var(--muted); font-size: .83rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.side-label .accent-rule { width: 42px; height: 4px; margin-top: 13px; background: var(--signal); }
.prose h2 { margin: 0 0 20px; font-family: Georgia, serif; font-size: 2.15rem; font-weight: 500; letter-spacing: -.03em; }
.prose p { margin: 0 0 23px; font-size: 1.08rem; }
.prose ul { margin: 0; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.official { padding-bottom: 60px; border-bottom: 1px solid var(--rule); }
.summary-short { padding: 60px 0; border-bottom: 1px solid var(--rule); }
.summary-long { padding: 60px 0; }
.deep-summary-panel {
  margin-top: 34px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.deep-summary-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--signal);
  font-weight: 800;
}
.deep-summary-panel summary::-webkit-details-marker { display: none; }
.deep-summary-panel summary::after { content: "+"; font-size: 1.45rem; line-height: 1; }
.deep-summary-panel[open] summary::after { content: "−"; }
.deep-summary-content { padding: 12px 0 15px; }
.deep-summary-content p { color: #2f4047; }
.transcript-panel { margin-bottom: 85px; border: 1px solid var(--rule); background: var(--white); }
.transcript-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: Georgia, serif;
  font-size: 1.4rem;
}
.transcript-panel summary::-webkit-details-marker { display: none; }
.transcript-panel summary::after { content: "+"; color: var(--signal); font: 700 1.5rem/1 system-ui; }
.transcript-panel[open] summary::after { content: "−"; }
.transcript-content { max-height: 70vh; overflow: auto; padding: 8px 28px 32px; border-top: 1px solid var(--rule); }
.transcript-content pre { margin: 0; padding-top: 18px; color: #34454c; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; line-height: 1.7; }
.transcript-status { margin-left: auto; color: var(--muted); font-family: Inter, sans-serif; font-size: .78rem; white-space: nowrap; }
.loading { padding: 30px; color: var(--muted); }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 54px 0; }
  .featured-grid { grid-template-columns: 1fr; }
  .episode-card:first-child { grid-column: auto; }
  .archive-row { grid-template-columns: 70px 1fr; }
  .archive-date { text-align: right; }
  .archive-row h3, .archive-desc { grid-column: 2; }
  .content-grid { grid-template-columns: 1fr; gap: 26px; }
  .side-label { position: static; }
}
@media (max-width: 560px) {
  .header-inner, main, .hero-inner, .footer-inner, .episode-hero-inner, .episode-main { width: min(calc(100% - 28px), var(--max)); }
  .nav a:first-child { display: none; }
  .hero-inner { padding: 42px 0 48px; }
  .hero-copy { padding-left: 16px; }
  .section { padding: 52px 0; }
  .section-head { display: block; }
  .section-note { margin-top: 14px; }
  .episode-card { padding: 22px; }
  .archive-row { grid-template-columns: 56px 1fr; gap: 11px; }
  .footer-inner { flex-direction: column; }
  .episode-hero-inner { padding: 38px 0 56px; }
  .back-link { margin-bottom: 28px; }
  .content-grid { padding: 55px 0; }
}
