:root {
  color-scheme: dark;
  --bg: #11110f;
  --ink: #f1ede3;
  --muted: #c8c2b4;
  --line: #514c42;
  --accent: #f1cd86;
  --display: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-family: Inter, system-ui, "PingFang SC", sans-serif;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #fff6dc; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip { position: absolute; left: 20px; z-index: 2; padding: .6em 1em; background: var(--bg); transform: translateY(-160%); }
.skip:focus { transform: translateY(10px); }
header, footer { border-block-end: 1px solid var(--line); }
header nav, footer .wrap { display: flex; gap: clamp(.75rem, 2vw, 1.8rem); align-items: center; flex-wrap: wrap; padding-block: 17px; }
header a { color: var(--ink); text-decoration: none; font-size: .86rem; }
header a:hover { text-decoration: underline; }
header .logo { margin-inline-end: auto; font-weight: 750; font-size: 1rem; }
header .language { border-inline-start: 1px solid var(--line); padding-inline-start: 1em; }
footer { margin-top: 5rem; border-block-start: 1px solid var(--line); }
footer a { font-size: .9rem; color: var(--muted); }
.hero {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: end; gap: clamp(1rem, 4vw, 3.8rem);
  padding-block: clamp(2.8rem, 8vw, 6rem) 2.25rem;
}
.eyebrow, .time { color: var(--accent); letter-spacing: .045em; font-size: .84rem; }
h1, .chapter h2, .worknotes h2 { font-family: var(--display); font-weight: 600; line-height: 1.18; text-wrap: balance; }
h1 { margin: .2em 0 .36em; font-size: clamp(2.4rem, 5.2vw, 5.3rem); }
html[lang="en"] h1 { font-size: clamp(2.7rem, 5.8vw, 5.8rem); }
.lead { max-width: 36em; font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); }
.frame { margin: 0; }
.frame img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
figcaption { color: var(--muted); margin-top: 7px; font-size: .82rem; }
.spread { display: grid; grid-template-columns: minmax(0, 225px) minmax(0, 740px); justify-content: space-between; column-gap: 3rem; border-top: 1px solid var(--line); padding-top: 2.4rem; }
.toc { align-self: start; position: sticky; top: 1.35rem; }
.toc h2 { margin: 0; font-size: 1rem; }
.toc ol, .moment-list, .sources { margin: .5rem 0 0; padding: 0; list-style: none; }
.toc a { display: grid; grid-template-columns: 3.2rem 1fr; color: var(--ink); padding: .55rem 0; text-decoration: none; font-size: .89rem; }
.toc a:hover { text-decoration: underline; }
.toc span, .moment-list time { color: var(--accent); font-variant-numeric: tabular-nums; }
.chapter { padding: .1rem 0 2.5rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1.4rem; }
.chapter h2, .worknotes h2 { margin: 0 0 .7em; font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.chapter .time { margin: 0 0 .6rem; }
.chapter > p { font-size: clamp(1rem, 1.3vw, 1.14rem); }
.chapter:target h2 { color: var(--accent); }
.evidence { border-inline-start: 2px solid var(--accent); padding: .7rem 1rem; margin: 1.4rem 0 .7rem; background: #1c1a15; }
.evidence p { margin: 0 0 .7rem; color: var(--muted); }
.button { display: inline-block; padding: .47em .8em; border: 1px solid var(--accent); font-weight: 650; font-size: .9rem; }
.button:hover { color: var(--bg); background: var(--accent); }
.chapter .references, .sources p, .moment-list p { color: var(--muted); font-size: .9rem; }
.sources li { padding: .7rem 0; }
.sources p, .moment-list p { margin: .35em 0; }
.watching { max-width: 900px; padding-top: 1.6rem; }
.watching h1, html[lang="en"] .watching h1 { font-size: clamp(1.85rem, 4vw, 3.12rem); margin-bottom: 1rem; }
.screen { aspect-ratio: 16 / 9; min-height: 202px; border: 1px solid var(--line); position: relative; background: #080807; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watchlinks, .shortlinks { display: flex; flex-wrap: wrap; gap: .55rem 1rem; align-items: center; margin: 1.1rem 0; }
.moment-list li { padding: .85rem .5rem; border-top: 1px solid var(--line); }
.moment-list li > div:first-child { display: flex; gap: .9rem; align-items: baseline; }
.moment-list .shortlinks { font-size: .84rem; margin: .4em 0 0; }
.moment-list .jump { font-weight: 650; }
.moment-list li:has([aria-current]) { background: #1c1a15; }
.worknotes { max-width: 850px; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .hero, .spread { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block-start: 2.8rem; }
  .toc { position: static; padding-bottom: .9rem; border-bottom: 1px solid var(--line); margin-bottom: 1.3rem; }
}
