:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --ink: #191c24;
  --navy: #223b5c;
  --yellow: #f6db61;
  --line: #b6b5ad;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font: 100%/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, figure, p, h1, h2 { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, select:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
h1:focus, h2:focus { outline: none; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(91%, 80rem); margin-inline: auto; }
.masthead, .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.65rem;
  gap: 1rem;
}
.masthead { border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 850; letter-spacing: -.05em; text-decoration: none; font-size: 1.25rem; }
.wordmark span { color: #35588b; }
.source-nav, .foot { font-size: .94rem; font-weight: 650; }
.eyebrow {
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(2.4rem, 6vw, 6.4rem);
  min-height: min(46rem, 84svh);
  padding-block: clamp(3rem, 7vw, 7rem);
}
.hero h1, .ending h1, .sources h2, .scene-copy h1 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.hero h1 { font-size: clamp(3.1rem, 6.2vw, 6.05rem); line-height: .96; margin-block: 1rem 1.25rem; }
.cover-intro, .ending > p:not(.eyebrow) { font-size: clamp(1.05rem, 1.6vw, 1.29rem); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.25rem; margin-top: 1.6rem; }
.button {
  border: 1px solid var(--ink);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .62rem 1.1rem;
  border-radius: .2rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
}
.primary { background: var(--yellow); }
.primary:hover { background: #ffe98d; }
.source-link { font-weight: 700; }
.cover-art {
  background: var(--ink);
  color: white;
  padding: .32rem;
  box-shadow: .8rem .8rem 0 #afc8e8;
}
.cover-art img { aspect-ratio: 3 / 2; object-fit: cover; }
.cover-art figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem .75rem; font-size: .94rem; font-weight: 750; }
.cover-art figcaption span { color: #f4df7a; font-variant-numeric: tabular-nums; }
.reader { background: var(--scene-bg); color: var(--scene-ink); min-height: calc(100svh - 4.65rem); padding-block: 1.05rem 2rem; }
.reader[data-mood="yellow"] { --scene-bg: #f9e38c; --scene-ink: #201d16; --panel: #fff3ce; }
.reader[data-mood="sky"] { --scene-bg: #adcaef; --scene-ink: #172745; --panel: #e7effb; }
.reader[data-mood="mint"] { --scene-bg: #93cbb1; --scene-ink: #172c25; --panel: #e3f5ec; }
.reader[data-mood="peach"] { --scene-bg: #f3ad7e; --scene-ink: #392316; --panel: #fff0e3; }
.reader[data-mood="soft"] { --scene-bg: #d3bce9; --scene-ink: #2a1e36; --panel: #f5edfa; }
.reader[data-mood="night"] { --scene-bg: #182b47; --scene-ink: #fff7e2; --panel: #243d60; }
.reader[data-mood="mono"] { --scene-bg: #d6d6d6; --scene-ink: #181818; --panel: #f8f8f8; }
.reader[data-mood="ink"] { --scene-bg: #24262d; --scene-ink: #f9f4e7; --panel: #343840; }
.reader[data-mood="mono"] .scene-art img { filter: grayscale(1); }
.reader[data-mood="ink"] .scene-art img { filter: saturate(.4); }
.reader-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .95rem; }
.jump { display: flex; align-items: center; gap: .55rem; font-weight: 650; }
.jump select {
  font: inherit;
  color: inherit;
  min-height: 2.75rem;
  max-width: min(22rem, 39vw);
  appearance: none;
  background: var(--panel);
  border: 1px solid currentColor;
  border-radius: .2rem;
  padding: .35rem 1.65rem .35rem .55rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - .72rem) 50%, calc(100% - .43rem) 50%;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
}
.scene {
  display: grid;
  grid-template-columns: minmax(0, 1.76fr) minmax(0, 1fr);
  gap: .3rem;
  padding: .3rem;
  background: var(--scene-ink);
}
.scene-art { min-width: 0; display: grid; align-content: center; background: var(--panel); }
.scene-art img { aspect-ratio: 3 / 2; object-fit: cover; }
.scene-art img[data-loading] { visibility: hidden; }
.scene-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .85rem;
  padding: clamp(1.1rem, 2.4vw, 2.5rem);
  background: var(--panel);
}
.scene-copy time { font-size: clamp(2rem, 4vw, 3.75rem); line-height: .9; font-weight: 900; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.scene-copy h1 { font-size: clamp(2rem, 3.6vw, 4rem); line-height: 1; text-wrap: pretty; }
.dialogue { border-left: .2rem solid currentColor; padding-left: .7rem; font-weight: 740; }
.scene-topic { border-top: 1px solid currentColor; margin-top: .15rem; padding-top: .5rem; font-size: .91rem; font-weight: 750; }
.pagination { display: grid; grid-template-columns: auto minmax(2rem, 1fr) auto; gap: 1.1rem; align-items: center; margin-top: 1rem; }
.secondary { background: var(--panel); border-color: var(--scene-ink); color: var(--scene-ink); }
.secondary:hover { text-decoration: underline; }
progress { appearance: none; height: .42rem; width: min(100%, 22rem); margin-inline: auto; border: 0; background: var(--panel); color: var(--scene-ink); accent-color: var(--scene-ink); overflow: hidden; border-radius: 2rem; }
progress::-webkit-progress-bar { background: var(--panel); }
progress::-webkit-progress-value { background: var(--scene-ink); }
progress::-moz-progress-bar { background: var(--scene-ink); }
.ending { padding-block: clamp(3rem, 12vw, 9.5rem); }
.ending h1 { font-size: clamp(3rem, 8vw, 7rem); line-height: .98; margin-block: .9rem 1.4rem; }
.ending > p:not(.eyebrow) { max-width: 54ch; }
.sources { background: #e4e9f1; padding-block: clamp(2.25rem, 5vw, 5rem); }
.source-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2rem 5rem; }
.sources h2 { font-size: clamp(2.15rem, 4vw, 3.8rem); margin-block: .45rem .8rem; line-height: 1.03; }
.source-grid > div p:last-child { max-width: 52ch; }
.references { list-style: none; margin: 0; padding: 0; }
.references li { border-top: 1px solid #9faabd; padding-block: .78rem; }
.references a { font-weight: 750; color: var(--navy); }
.references p { margin-top: .22rem; }
.foot { padding-block: .75rem; }
@media (max-width: 55rem) {
  .hero { min-height: auto; }
  .scene { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .wrap { width: 92%; }
  .masthead, .foot { min-height: 3.55rem; }
  .hero, .source-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 2.15rem 2.8rem; gap: 1.65rem; }
  .hero h1 { max-width: 14ch; font-size: clamp(2.4rem, 11vw, 3.1rem); }
  .cover-art { margin-right: .4rem; box-shadow: .45rem .45rem 0 #afc8e8; }
  .reader { min-height: calc(100svh - 3.55rem); padding-block: .65rem 1rem; }
  .reader-top { margin-bottom: .6rem; }
  .jump { font-size: .94rem; }
  .jump span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .jump select { max-width: 55vw; }
  .scene { grid-template-columns: 1fr; }
  .scene-copy { padding: .95rem; gap: .6rem; }
  .scene-copy h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); }
  .pagination { position: sticky; bottom: 0; background: var(--scene-bg); gap: .5rem; padding-block: .4rem max(.4rem, env(safe-area-inset-bottom)); }
}
