:root {
  color-scheme: light dark;
  --ink: rgba(0, 0, 0, .95);
  --paper: #fff;
  --surface: #f6f5f4;
  --card: #fff;
  --accent: #0075de;
  --accent-active: #005bab;
  --link: #0075de;
  --muted: #615d59;
  --line: rgba(0, 0, 0, .1);
  --ring: #097fe8;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --content-width: 46rem;
  --layout-width: 75rem;
  --space-page: 1rem;
  --space-section: clamp(3.5rem, 7vw, 5rem);
  --space-card: 1.25rem;
  --radius-control: .25rem;
  --radius-card: .75rem;
  --shadow-card: rgba(0, 0, 0, .04) 0 4px 18px, rgba(0, 0, 0, .027) 0 2px 8px, rgba(0, 0, 0, .02) 0 1px 3px;
}

@media (prefers-color-scheme: dark) {
  :root { --ink: #f6f5f4; --paper: #191918; --surface: #242321; --card: #2f2e2c; --link: #62aef0; --muted: #b7b2ac; --line: rgba(255, 255, 255, .14); }
}

body[data-theme="studio"] { color-scheme: dark; --ink: #f6f5f4; --paper: #191918; --surface: #242321; --card: #2f2e2c; --link: #62aef0; --muted: #b7b2ac; --line: rgba(255, 255, 255, .14); }
body[data-theme="low-light"] { color-scheme: dark; --ink: #e8edf2; --paper: #07111d; --surface: #101d2b; --card: #142334; --link: #62aef0; --muted: #9caabd; --line: #294057; }
body[data-theme="warm-paper"] { color-scheme: light; --ink: #382d24; --paper: #fffaf0; --surface: #f4ead7; --card: #fffdf8; --link: #006ccf; --muted: #746657; --line: #d8cbbb; }
body[data-theme="high-contrast"] { color-scheme: dark; --ink: #fff; --paper: #000; --surface: #111; --card: #181818; --link: #7cc1ff; --muted: #d0d0d0; --line: #777; --ring: #fff; }
body[data-theme="green-room"] { color-scheme: dark; --ink: #d8e9dd; --paper: #07100b; --surface: #102018; --card: #15291e; --link: #62aef0; --muted: #8eb39a; --line: #294934; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 1rem; line-height: 1.5; }
::selection { color: #fff; background: var(--accent); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .16em; }
a:focus-visible, select:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .7rem 1rem; border-radius: var(--radius-control); color: #fff; background: var(--accent); transform: translateY(-150%); }
.skip-link:focus { color: #fff; transform: translateY(0); }
header { width: min(calc(100% - 2 * var(--space-page)), var(--layout-width)); min-height: 4.25rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-bottom: 1px solid var(--line); }
header a { color: var(--ink); }
.brand { min-height: 2.75rem; display: inline-flex; align-items: center; white-space: nowrap; font-size: .75rem; font-weight: 700; letter-spacing: -.015em; text-decoration: none; }
nav { display: flex; gap: .4rem; align-items: center; font-size: .9375rem; font-weight: 500; }
nav > a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.theme-control { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: 0; }
.theme-control select { min-height: 2.75rem; max-width: 6.8rem; border: 1px solid var(--line); border-radius: var(--radius-control); padding: .35rem .6rem; color: var(--ink); background: var(--card); font: .75rem var(--font-body); }

main > article, main > h1, main > .episode-list, footer { width: min(calc(100% - 2 * var(--space-page)), var(--content-width)); margin-inline: auto; }
main > article { padding-block: var(--space-section); }
main > h1 { padding-top: var(--space-section); }
main > .episode-list { margin-bottom: var(--space-section); }
main > h1 + .episode-list { margin-top: 1.5rem; }
main > section:not(.hero) { padding: var(--space-section) var(--space-page); background: var(--surface); }
h1, h2 { margin-block: 0; font-weight: 700; font-feature-settings: "lnum", "locl"; }
h1 { max-width: 16ch; font-size: clamp(2.5rem, 7vw, 4rem); line-height: 1; letter-spacing: clamp(-2.125px, -.035em, -1.5px); }
h2 { margin-bottom: 1.5rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; letter-spacing: -1.5px; }
.hero { min-height: 25rem; padding: 3.5rem var(--space-page); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero h1 { margin-inline: auto; font-size: 2.125rem; line-height: 1.04; letter-spacing: -1.25px; }
.hero p:last-of-type { max-width: 38rem; margin: 1.5rem auto 0; color: var(--muted); font-size: clamp(1.125rem, 2.2vw, 1.25rem); font-weight: 600; line-height: 1.4; letter-spacing: -.125px; }
.eyebrow { margin: 0 0 .5rem; color: var(--link); font-size: .75rem; font-weight: 600; letter-spacing: .125px; text-transform: uppercase; }
.date, .notice { color: var(--muted); font-size: .875rem; }
.prose { margin-top: 3rem; font-size: clamp(1.0625rem, 2vw, 1.1875rem); line-height: 1.6; }
.prose p { margin: 1.5em 0; }
.button { min-height: 2.75rem; margin-top: 1.5rem; padding: .6rem 1rem; display: inline-block; border-radius: var(--radius-control); color: #fff; background: var(--accent); font-size: .9375rem; font-weight: 600; text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
.button:hover { color: #fff; background: var(--accent-active); text-decoration: none; }
.button:active { transform: scale(.96); }
.video-link a, .sources a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.video-link a::after, .sources a::after { content: " →"; }
.sources { margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.sources h2 { font-size: 2rem; letter-spacing: -.625px; }
.sources li { margin: .9rem 0; }
.episode-list { margin: 0; padding: 0; display: grid; gap: 1rem; list-style: none; }
.episode-list li:not(.empty-state) { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
.episode-list .empty-state { max-width: 32rem; padding-block: .5rem; color: var(--muted); }
.episode-list a { min-height: 5.5rem; padding: var(--space-card); display: flex; align-items: flex-start; flex-direction: column; gap: .35rem; color: var(--ink); text-decoration: none; }
.episode-list a:focus-visible { outline-offset: -3px; }
.episode-list a:hover { color: var(--link); text-decoration: none; }
.episode-list strong { font-size: 1.375rem; font-weight: 700; line-height: 1.27; letter-spacing: -.25px; }
.episode-list span { flex: none; color: var(--muted); font-size: .875rem; }
footer { padding-block: 2rem 4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

@media (min-width: 35.01rem) {
  :root { --space-page: 1.5rem; --space-card: 1.5rem; }
  header { gap: 1.5rem; }
  .brand { font-size: .9375rem; }
  nav { gap: 1.5rem; }
  .theme-control { font-size: .9375rem; }
  .theme-control select { max-width: 8.5rem; font-size: .9375rem; }
  main > section:not(.hero) { padding-inline: max(var(--space-page), calc((100% - var(--layout-width)) / 2)); }
  .hero { min-height: clamp(26rem, 58svh, 34rem); padding: clamp(4rem, 9vw, 7rem) var(--space-page); }
  .hero h1 { font-size: clamp(2.5rem, 7vw, 4rem); line-height: 1; letter-spacing: clamp(-2.125px, -.035em, -1.5px); }
  .hero .eyebrow { margin-bottom: .75rem; }
  .episode-list a { align-items: center; flex-direction: row; justify-content: space-between; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .skip-link { transition: none; }
}