:root {
  --bg: #0a0f1c;
  --bg-soft: #101829;
  --surface: #141e33;
  --surface-2: #1a2740;
  --text: #ece9e2;
  --muted: #9da9bd;
  --line: rgba(236, 233, 226, 0.12);
  --gold: #e0b15c;
  --gold-soft: rgba(224, 177, 92, 0.14);
  --blue: #7fa8ff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: #0a0f1c; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f0c97e; }
img, svg, iframe { max-width: 100%; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.muted { color: var(--muted); }
.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;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: #0a0f1c; padding: 0.6rem 1rem; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 15, 28, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--text); text-decoration: none;
  font-family: var(--serif); font-size: 1.18rem; letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 22px; height: 22px; border: 2px solid var(--gold); border-radius: 50%;
  display: inline-block; position: relative; flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 5px; background: var(--gold); border-radius: 50%;
}
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }

/* hero */
.hero { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem); max-width: 900px; }
.eyebrow {
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.74rem; font-weight: 700; margin-bottom: 1rem;
}
.hero h1 { max-width: 15ch; }
.lede { font-size: clamp(1.08rem, 2vw, 1.32rem); color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 1.2rem; }
.hero-note { color: var(--muted); font-size: 0.9rem; }
.button {
  display: inline-block; background: var(--gold); color: #0a0f1c;
  padding: 0.78rem 1.3rem; border-radius: 999px; border: 1px solid var(--gold);
  font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { background: #f0c97e; color: #0a0f1c; transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.button.ghost:hover { border-color: var(--gold); color: var(--gold); }

/* section heads */
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: 2rem;
}
.section-head h2 { margin-bottom: 0; }
.text-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

/* cards */
.grid { display: grid; gap: 1.1rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 0.55rem;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: rgba(224, 177, 92, 0.45); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.chip {
  display: inline-block; background: var(--gold-soft); color: var(--gold);
  border: 1px solid rgba(224, 177, 92, 0.25); border-radius: 999px;
  padding: 0.18rem 0.62rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.badge {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.18rem 0.62rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; color: var(--muted); white-space: nowrap;
}
.badge.live { color: #9be3b4; border-color: rgba(155, 227, 180, 0.35); background: rgba(155, 227, 180, 0.08); }
.card h3 { margin: 0.35rem 0 0.1rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--gold); }
.card-summary { color: var(--muted); font-size: 0.96rem; margin-bottom: 0.2rem; }
.card-meta { color: var(--muted); font-size: 0.8rem; margin: 0; }
.card-link { margin-top: auto; padding-top: 0.7rem; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem); text-align: center; background: var(--bg-soft);
}
.empty h2 { margin-bottom: 0.4rem; }
.empty p:last-child { margin: 0 auto; color: var(--muted); max-width: 52ch; }

/* method */
.method {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; }
.steps span { font-family: var(--serif); color: var(--gold); font-size: 1.25rem; }
.steps h3 { margin-bottom: 0.15rem; }
.steps p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* page head */
.page-head { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); max-width: 860px; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.page-head .lede { margin-bottom: 0; }

/* newsletter */
.newsletter {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center; margin: clamp(3rem, 7vw, 5rem) auto;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-soft));
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.newsletter h2 { margin-bottom: 0.3rem; }
.newsletter p:last-child { margin-bottom: 0; }
.subscribe { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.subscribe input[type="email"] {
  flex: 1 1 220px; min-width: 0; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.78rem 1rem;
  font: inherit; font-size: 0.95rem;
}
.subscribe input[type="email"]:focus { border-color: var(--gold); outline: none; }
.subscribe button {
  background: var(--gold); color: #0a0f1c; border: 0; border-radius: 999px;
  padding: 0.78rem 1.25rem; font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.subscribe button:hover { background: #f0c97e; }
.form-note { color: var(--muted); font-size: 0.78rem; margin: 0.7rem 0 0; }

/* episode */
.episode { padding: clamp(3rem, 7vw, 5rem) 0; max-width: 820px; }
.episode-head { margin-bottom: 2rem; }
.episode-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.1rem; font-size: 0.85rem; }
.episode-head h1 { font-size: clamp(2.1rem, 5.5vw, 3.7rem); }
.episode-intro { color: var(--muted); font-size: 1.06rem; }
.episode-body { max-width: 72ch; }
.video {
  position: relative; aspect-ratio: 16 / 9; margin: 0 0 2rem;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.callout {
  border-left: 3px solid var(--gold); background: var(--gold-soft);
  padding: 1.1rem 1.25rem; border-radius: 0 10px 10px 0; margin: 0 0 2rem;
}
.callout .eyebrow { margin-bottom: 0.5rem; }
.callout p:last-child { margin: 0; }
.chapters, .transcript, .sources { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.chapters ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.chapters li {
  display: flex; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.chapters .time { color: var(--gold); font-variant-numeric: tabular-nums; min-width: 3.4rem; }
.scene { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.scene h3 { color: var(--gold); font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.scene p { font-size: 1.04rem; }
.sources ul { padding-left: 1.1rem; color: var(--muted); }
.sources li { margin-bottom: 0.45rem; }
.disclaimer {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.82rem;
}
.note {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.9rem 1rem; color: var(--muted); font-size: 0.88rem;
}

/* prose pages */
.prose { max-width: 760px; padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose h2 { margin-top: 2.4rem; }
.prose p, .prose li { color: #cfd5df; }
.prose .rules, .made-list { padding-left: 1.2rem; }
.prose .rules li, .made-list li { margin-bottom: 0.6rem; }
.prose code { background: var(--surface); padding: 0.1rem 0.35rem; border-radius: 6px; font-size: 0.9em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 0.35rem; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); }
.foot-title { font-family: var(--serif); font-size: 1.15rem; color: var(--text); margin-bottom: 0.3rem; }
.footer-brand p:last-child { color: var(--muted); font-size: 0.9rem; max-width: 38ch; }
.foot-head { color: var(--text); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.7rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.footer-legal p { color: var(--muted); font-size: 0.76rem; margin-bottom: 0.4rem; max-width: 100ch; }

@media (max-width: 760px) {
  .method, .newsletter, .footer-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; gap: 0.7rem; }
  .hero h1 { max-width: none; }
  .header-inner { min-height: 62px; }
  .site-nav a { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .newsletter, .hero-actions { display: none; }
  a { color: #111; }
}
