:root {
  color-scheme: dark;
  --navy: #081f3a;
  --deep: #071729;
  --white: #f9f9f3;
  --muted: #c0d0e1;
  --gold: #f5c867;
  --border: #35506c;
  font-family: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;
  color: var(--white);
  background: var(--deep);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip {
  position: fixed; inset: .6rem auto auto .6rem; z-index: 3;
  padding: .65rem 1rem; background: var(--gold); color: var(--deep);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--border); background: var(--navy); }
.header-inner {
  max-width: 77rem; margin: 0 auto; padding: .8rem clamp(1.1rem, 4vw, 3rem);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.25rem; font-weight: 750; text-decoration: none; }
.brand img { object-fit: contain; }
.gold { color: var(--gold); }
.home-link { font-size: .9rem; color: var(--muted); }
.lesson-layout {
  max-width: 77rem; margin: 0 auto; padding: clamp(2.1rem, 5vw, 4.4rem) clamp(1.1rem, 4vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(270px, 1fr); gap: 1.9rem clamp(2.4rem, 8vw, 8rem);
  grid-template-areas: 'intro video' 'chapters video'; align-items: start;
}
.intro { grid-area: intro; }
.collection { text-transform: uppercase; color: var(--gold); font-weight: 750; font-size: .84rem; letter-spacing: .16em; margin: 0 0 .7rem; }
h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(3.55rem, 6.2vw, 6.25rem); line-height: .94;
  letter-spacing: -.055em; font-weight: 500; margin: 0;
}
h1 em { color: var(--gold); }
.intro-text { max-width: 30rem; font-size: clamp(1.06rem, 1.8vw, 1.25rem); color: var(--muted); margin: 1.25rem 0 1rem; }
.details { display: flex; flex-wrap: wrap; gap: .35rem .9rem; color: var(--muted); font-size: .89rem; }
.details span + span::before { content: '·'; padding-right: .9rem; color: var(--gold); }
.screening { grid-area: video; width: min(100%, 24rem); justify-self: center; }
.player {
  background: #061322; border: 1px solid var(--border); border-radius: 1.05rem;
  overflow: hidden; box-shadow: 0 20px 55px #0006;
}
.player video, .player iframe { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border: 0; }
.player-note, .device-note, .chapter-hint { color: var(--muted); font-size: .94rem; }
.player-note { text-align: center; margin: .8rem 0 0; }
.chapter-section { grid-area: chapters; padding-top: 1.3rem; border-top: 1px solid var(--border); }
h2 { font-size: 1.42rem; margin: 0; }
.chapter-hint { margin: .25rem 0 .6rem; }
.chapters { list-style: none; padding: 0; margin: 0; }
.chapters li + li { border-top: 1px solid var(--border); }
.chapter-label {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .56rem .35rem; width: 100%; min-height: 44px; border: 0;
  color: var(--white); background: transparent; text-align: left; text-decoration: none;
}
:is(button, a).chapter-label:hover { background: var(--navy); cursor: pointer; }
.time { color: var(--gold); font-variant-numeric: tabular-nums; }
.device-note { margin: 1rem 0 0; }
.site-footer { text-align: center; border-top: 1px solid var(--border); color: var(--muted); padding: 1.25rem; }
.site-footer a { color: var(--gold); }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 700px) {
  .lesson-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'video' 'chapters'; }
  h1 { font-size: clamp(3.2rem, 12vw, 5rem); }
  .screening { justify-self: start; }
}
