:root {
  --night: #11162d;
  --deep: #18203c;
  --ink: #e9edf7;
  --mist: #b9c3d7;
  --lantern: #f2b65f;
  --sage: #8ea997;
  --line: rgba(233, 237, 247, .18);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--night);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--lantern); outline-offset: 4px; }

.site-header, footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header { min-height: 84px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; text-decoration: none; }
.lantern-mark { width: 15px; height: 20px; border: 1px solid var(--lantern); border-radius: 8px 8px 5px 5px; box-shadow: inset 0 0 10px rgba(242,182,95,.55), 0 0 18px rgba(242,182,95,.18); }
nav { display: flex; gap: 22px; }
nav a, footer a { color: var(--mist); text-decoration: none; font-size: .9rem; }
nav a:hover, footer a:hover { color: var(--ink); }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: 660px; display: grid; grid-template-columns: .84fr 1.16fr; gap: 7vw; align-items: center; padding: 76px 0 88px; }
.kicker, .section-note { color: var(--sage); font-size: .84rem; letter-spacing: .04em; margin: 0 0 18px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 6.2vw, 5.9rem); line-height: .98; margin: 0; max-width: 9.5ch; }
.lede { color: var(--mist); font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.7; margin: 30px 0 36px; max-width: 48ch; }
.primary-action { display: inline-block; border: 1px solid var(--lantern); color: var(--night); background: var(--lantern); padding: 14px 19px; border-radius: 3px; font-weight: 700; text-decoration: none; }
.primary-action:hover { background: #ffd18b; border-color: #ffd18b; }
.hero-art { margin: 0; position: relative; }
.hero-art::before { content: ""; position: absolute; inset: -20px 18% 28% -20px; border: 1px solid var(--line); border-radius: 50% 50% 12px 12px; z-index: -1; }
.hero-art img { width: 100%; height: auto; display: block; border-radius: 48% 48% 7px 7px; border: 1px solid rgba(242,182,95,.34); box-shadow: 0 28px 70px rgba(0,0,0,.34); }
.hero-art figcaption { color: var(--mist); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: .92rem; margin-top: 15px; text-align: right; }

.episode { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; padding: 74px 0; align-items: start; }
h2 { font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: 1.08; margin: 0 0 20px; }
.episode p, .policy p, .policy li { color: var(--mist); line-height: 1.72; max-width: 68ch; }
.episode-link { align-self: center; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border: 1px solid var(--line); padding: 24px; text-decoration: none; }
.episode-link:hover { border-color: var(--lantern); }
.episode-link span { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.episode-link small { color: var(--sage); white-space: nowrap; }
.text-link { color: var(--lantern); text-underline-offset: 4px; }

.policy { max-width: 760px; padding: 78px 0 100px; }
.policy-intro { border-bottom: 1px solid var(--line); padding-bottom: 46px; margin-bottom: 54px; }
.policy-intro h1 { max-width: none; }
.policy section { margin: 0 0 46px; }
.policy h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin-bottom: 14px; }
.policy li { margin-bottom: 10px; }
.policy code { color: var(--ink); background: var(--deep); padding: .15em .35em; border-radius: 3px; }
.policy a { color: var(--lantern); }

footer { border-top: 1px solid var(--line); min-height: 110px; color: var(--mist); font-size: .9rem; }
footer div { display: flex; gap: 22px; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; padding: 22px 0; }
  nav { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 58px 0 72px; }
  .hero-copy { order: 1; }
  .hero-art { order: 2; margin-top: 18px; }
  h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .episode { grid-template-columns: 1fr; gap: 24px; padding: 58px 0; }
  .episode-link { padding: 20px; }
  footer { align-items: flex-start; padding: 28px 0; }
}

@media (max-width: 480px) {
  .site-header, footer, main { width: min(100% - 28px, 1120px); }
  .site-header { display: block; }
  nav { margin-top: 18px; justify-content: flex-start; }
  .hero { gap: 42px; }
  .episode-link { display: block; }
  .episode-link small { display: block; margin-top: 8px; }
  footer { display: block; }
  footer div { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
