:root {
  color-scheme: dark;
  --background: #131518;
  --surface: #1b1e22;
  --border: #373e46;
  --text: #f2f2ef;
  --muted: #b8bfc7;
  --accent: #a8ccea;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--background);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, p { margin: 0 0 1rem; }
h1, h2 { line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 6.25vw, 5rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
.wrap { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -8rem; padding: .5rem 1rem; background: var(--surface); z-index: 1; }
.skip:focus { top: 1rem; }
.masthead, .footer { background: #101215; }
.masthead { border-bottom: 1px solid var(--border); }
.footer { border-top: 1px solid var(--border); }
.mast-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem 1.5rem; padding-block: 1rem; }
.wordmark { font-size: 1.075rem; font-weight: 750; color: var(--text); white-space: nowrap; text-decoration: none; }
.restoration-note { margin: .12rem 0 0; font-size: .85rem; }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1.35rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.hero, .page-hero { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, .68fr); gap: clamp(1.5rem, 5vw, 5.5rem); }
.hero { padding-block: clamp(2rem, 6vw, 4.75rem); }
.hero-copy { max-width: 36rem; }
.hero-copy > p:not(.eyebrow) { max-width: 34rem; }
.presenter { font-size: clamp(1.05rem, 2.4vw, 1.4rem); }
.presenter strong { color: var(--accent); font-size: 1.18em; font-weight: 750; }
.hero-art { justify-self: end; width: min(100%, 23rem); border: 1px solid var(--border); }
.eyebrow { color: var(--accent); letter-spacing: .11em; text-transform: uppercase; font-size: .78rem; font-weight: 700; }
.subtitle { color: var(--text); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 550; }
p { color: var(--muted); }
.button { display: inline-block; padding: .58rem .9rem; border: 1px solid var(--accent); background: var(--accent); color: #111a22; text-decoration: none; font-weight: 700; }
.button:hover { background: #d0e5f7; border-color: #d0e5f7; color: #111a22; }
.hero .button { margin-top: .4rem; }
.home-episodes { border-top: 1px solid var(--border); padding-block: 2rem 3rem; }
.episode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.episode-card { background: var(--surface); border: 1px solid var(--border); display: grid; grid-template-columns: minmax(5rem, .48fr) minmax(0, 1fr); align-items: center; text-decoration: none; color: var(--text); }
.episode-card:hover { border-color: var(--accent); }
.episode-card img { width: 100%; height: 100%; min-height: 8.5rem; object-fit: cover; }
.episode-card > span { padding: .9rem 1rem; }
.episode-card span { display: block; }
.episode-card strong { display: block; font-size: 1.5rem; }
.episode-card span span:last-child { color: var(--muted); font-size: .9rem; }
.page-hero, .feature, .gallery { padding-block: clamp(2.4rem, 6vw, 5rem); }
.page-hero h1, .feature h1, .gallery h1 { font-size: clamp(2.35rem, 5vw, 4rem); }
.page-hero > img, .episode-art { width: 100%; max-width: 28rem; justify-self: end; }
.episode-art img { width: 100%; border: 1px solid var(--border); }
.episode-art span { display: block; margin-top: .5rem; }
.episode-next { margin-top: 1.7rem; }
.credits { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; margin: 1.5rem 0; }
.credits dt { color: var(--muted); }
.credits dd { margin: 0; }
.resource-list { padding-left: 1.25rem; }
.feature { max-width: 52rem; }
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin: .9rem 0 .65rem; }
audio { display: block; width: min(100%, 27rem); margin: 1.4rem 0; }
video { display: block; width: 100%; aspect-ratio: 4 / 3; background: #090a0b; }
.video-links { margin: 1.2rem 0 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; padding: 0; margin: 1.7rem 0 0; list-style: none; }
.gallery-grid a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.gallery-grid a:hover { border-color: var(--accent); }
.gallery-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #0d0f10; }
.gallery-grid span { display: block; padding: .55rem .75rem; }
.gallery-preview {
  max-width: min(38rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.gallery-preview::backdrop { background: rgb(0 0 0 / 78%); }
.preview-panel { padding: .8rem; }
.preview-header { display: flex; justify-content: space-between; align-items: center; gap: .65rem 1rem; flex-wrap: wrap; margin-bottom: .65rem; }
.preview-header h2 { margin: 0; font-size: 1.05rem; }
.preview-header button {
  padding: .3rem .6rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}
.preview-header button:hover { border-color: var(--accent); }
.preview-header button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.preview-image img { max-height: 72svh; width: auto; object-fit: contain; margin-inline: auto; }
.footer { font-size: .9rem; color: var(--muted); }
@media (max-width: 44rem) {
  .hero, .page-hero { grid-template-columns: 1fr; }
  .hero-art, .page-hero > img, .episode-art { justify-self: start; }
  .hero-art { width: min(100%, 15rem); }
  .episode-grid { grid-template-columns: 1fr; }
  .episode-card img { min-height: 7rem; }
}
@media (max-width: 25rem) {
  .wrap { width: calc(100% - 2rem); }
  nav { column-gap: 1rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .credits { gap: .35rem .8rem; }
}
