/* Novel's own colours: the desk, the paper, the ink. */
:root {
  --desk: #eceae5;
  --paper: #fdfcfa;
  --ink: #1c1c1f;
  --muted: #736e66;
  --faint: #9e9c99;
  --rule: rgba(28, 28, 31, 0.12);
  --amber: #e0ae45;
  --wash: rgba(255, 204, 102, 0.3);
  --cloth: #2f4a5e;
  --endpaper: #e7e0d0;
  --shadow: 40, 34, 20;
  --serif: Literata, "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --desk: #1b1b1d;
    --paper: #2a2a2b;
    --ink: #dedbd4;
    --muted: #a19c93;
    --faint: #75726d;
    --rule: rgba(222, 219, 212, 0.14);
    --wash: rgba(255, 204, 102, 0.22);
    --endpaper: #d9d1bf;
    --shadow: 0, 0, 0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--desk); color: var(--ink);
  font-family: var(--serif); font-size: 19px; line-height: 1.6;
  font-optical-sizing: auto; font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
figure { margin: 0; }
::selection { background: var(--wash); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; padding: 10px 16px; background: var(--ink); color: var(--desk); border-radius: 8px; text-decoration: none; z-index: 30; font-family: var(--sans); font-size: 15px; }
.skip:focus { top: 12px; }
kbd {
  font-family: var(--sans); font-size: 0.82em; padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--rule); background: var(--paper); white-space: nowrap;
}

/* The bar: small, and out of the way while you read down the page. */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--desk) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.bar.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-size: 19px; letter-spacing: -0.01em; }
.bar__ask {
  font-family: var(--sans); font-size: 14px; font-weight: 500; text-decoration: none;
  padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 70%, transparent); box-shadow: 0 0 0 1px var(--rule);
}
.bar__ask:hover { background: var(--paper); }

/* The rail: a mark for each chapter, as beside Novel's page. */
.rail { position: fixed; left: clamp(12px, 2vw, 32px); top: 50%; translate: 0 -50%; z-index: 15; transition: opacity 0.45s var(--ease); }
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail a { display: block; position: relative; width: 44px; height: 15px; }
.rail a::before {
  content: ""; position: absolute; left: 10px; top: 7px; width: 14px; height: 1.5px; border-radius: 1px;
  background: var(--faint); transform-origin: left center; transform: scaleX(var(--m, 1));
  transition: background 0.25s, width 0.25s var(--ease), left 0.25s var(--ease);
}
.rail a.is-on::before { background: var(--ink); width: 22px; left: 2px; height: 2px; }
.rail__n, .rail__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rail__card {
  position: fixed; z-index: 16; width: 280px; padding: 12px 16px 13px; border-radius: 12px;
  background: #232325; color: #f2f0eb; font-family: var(--sans); font-size: 13px; line-height: 1.4;
  box-shadow: 0 14px 40px -10px rgba(0,0,0,0.4); pointer-events: none;
  opacity: 0; translate: -4px -50%; transition: opacity 0.18s, translate 0.18s var(--ease);
}
.rail__card.is-on { opacity: 1; translate: 0 -50%; }
.rail__card b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.rail__card b span { margin-right: 8px; }
.rail__card p { color: #b9b6af; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rail__card small { display: block; margin-top: 7px; color: #8d8a84; font-size: 12px; }
@media (max-width: 1099px), (hover: none) { .rail, .rail__card { display: none; } }
/* While you type, the chrome fades, as in Novel. */
html.typing .bar, html.typing .rail { opacity: 0; pointer-events: none; }

/* The early-access form */
.join { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 440px; font-family: var(--sans); }
.join input[type="email"] {
  flex: 1 1 200px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px;
}
.join input::placeholder { color: var(--faint); }
.join button {
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--desk); font: inherit; font-size: 15px; font-weight: 500;
}
.join button:hover { opacity: 0.88; }
.join button:disabled { opacity: 0.5; cursor: default; }
.join__status { flex-basis: 100%; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.join.is-done input, .join.is-done button { display: none; }
.join.is-done .join__status { font-family: var(--serif); font-size: 21px; font-style: italic; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ------------------------------------------------------------------ */
/* The opening: the words, and the film as a book beside them. */
.opening {
  min-height: 100svh; padding: 104px var(--gutter) 64px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 56px clamp(48px, 7vw, 112px);
}
.opening__text { width: 100%; max-width: 460px; }
h1 { font-size: clamp(46px, 5.6vw, 82px); line-height: 1.02; letter-spacing: -0.025em; }
.lede { margin-top: 20px; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.opening .join { margin-top: 32px; }

/* The book. The slot is the closed book (one leaf, --w by --h); the book is
   two leaves wide, its left half empty until the board swings into it. */
.book-slot {
  --h: min(64svh, 600px, calc((100vw - 2 * var(--gutter)) * 1.05));
  --w: calc(var(--h) * 2 / 3);
  position: relative; flex: none; width: var(--w); height: var(--h);
}
.book {
  --pw: calc(var(--w) * 2 * 0.86);        /* the plate: the film's frame, across the spread */
  --ph: calc(var(--pw) * 9 / 16);
  --plate-top: calc(50% - var(--ph) / 2 - var(--h) * 0.035);
  position: absolute; top: 0; right: 0; width: calc(var(--w) * 2); height: var(--h);
  perspective: calc(var(--w) * 5); pointer-events: none;
  transition: transform var(--t-move, 0.9s) cubic-bezier(0.3, 0.7, 0.2, 1);
}
.book__leaf {
  position: absolute; left: 50%; top: 0; width: 50%; height: 100%; overflow: hidden;
  background: var(--paper); border-radius: 0 3px 3px 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 30px 60px -24px rgba(var(--shadow), 0.4);
  transition: box-shadow 0.6s, border-radius 0.6s;
}
.book__leaf::before {   /* the gutter, where the page curves into the spine */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 12%; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.16), rgba(0,0,0,0.04) 40%, transparent);
  transition: opacity 0.6s;
}
.book__board {
  position: absolute; left: 50%; top: -1.6%; width: 52%; height: 103.2%;
  transform-origin: left center; transform-style: preserve-3d; container-type: inline-size;
  transition: transform var(--t-open, 1s) cubic-bezier(0.45, 0, 0.2, 1);
}
.book__front, .book__back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 2px 4px 4px 2px; }
.book__front {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22cqw 10cqw 10cqw 14cqw; color: #f1ede3; background-color: var(--cloth);
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.32), rgba(0,0,0,0.12) 3%, rgba(255,255,255,0.1) 5.2%, rgba(0,0,0,0.14) 5.8%, transparent 9%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,0.08), transparent 60%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 34px 70px -26px rgba(var(--shadow), 0.55), 0 8px 20px -10px rgba(var(--shadow), 0.3);
}
.cover__title { font-size: 11cqw; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.cover__sub { margin-top: 0.6em; font-size: 5.4cqw; font-style: italic; opacity: 0.85; }
.cover__author { font-size: 5cqw; font-style: italic; opacity: 0.9; }
/* The play button, as a blind-stamped ornament in the cloth. */
.cover__play {
  margin: auto 0; width: 26cqw; height: 26cqw; border-radius: 50%; display: grid; place-items: center;
  color: rgba(241, 237, 227, 0.88); border: 1.5px solid rgba(241, 237, 227, 0.55);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.5s var(--ease), color 0.3s, border-color 0.3s;
}
.cover__play svg { width: 52%; height: 52%; margin-left: 6%; }
.book__back {   /* the inside of the board: paper, like the page it faces */
  transform: rotateY(180deg); overflow: hidden; background: var(--paper);
  box-shadow: 0 30px 60px -24px rgba(var(--shadow), 0.35);
  transition: box-shadow 0.6s;
}
.book__back::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(270deg, rgba(0,0,0,0.14), rgba(0,0,0,0.03) 8%, transparent 16%);
  transition: opacity 0.6s;
}
/* The film's first frame, half on each page; each half is the whole plate,
   placed so that its middle is the spine, and clipped by its page. */
.plate {
  position: absolute; top: var(--plate-top); width: var(--pw); height: var(--ph);
  background: #0b0b0c url(/img/film-poster.webp) center / cover;
}
.plate--right { left: calc(var(--pw) / -2); }
.plate--left { left: calc(100% - var(--pw) / 2); }
.plate__caption {
  position: absolute; right: 9%; top: calc(var(--plate-top) + var(--ph) + var(--h) * 0.025);
  font-size: calc(var(--w) * 0.032); font-style: italic; color: var(--muted);
}

/* The cover link sits over the closed book. Resting the pointer on it opens
   the board a little, as Novel's covers peek open. */
.book__open { position: absolute; inset: 0; border-radius: 4px; }
.book__open:focus-visible { outline-offset: 6px; }
.book-slot:has(.book__open:hover) .book:not(.is-open) .book__board,
.book-slot:has(.book__open:focus-visible) .book:not(.is-open) .book__board { transform: rotateY(-16deg); transition-duration: 0.6s; }
.book-slot:has(.book__open:hover) .cover__play { transform: scale(1.06); color: #fff; border-color: rgba(255,255,255,0.8); }

/* Opening, then lifted: the script moves the book to the middle of the
   window and scales it until the film's frame fills it; the gutter, the
   edges and the shadows fade, so the pages are just paper. */
.book.is-open .book__board { transform: rotateY(-180deg); }
.book.is-lifted .book__leaf { box-shadow: none; border-radius: 0; }
.book.is-lifted .book__back { box-shadow: none; }
.book.is-lifted .book__leaf::before, .book.is-lifted .book__back::after, .book.is-lifted .plate__caption { opacity: 0; }
.plate__caption { transition: opacity 0.4s; }

/* The screen the film plays on, in front of the page. */
.screen__paper { position: fixed; inset: 0; z-index: 40; background: var(--paper); opacity: 0; transition: opacity 0.6s; }
.screen.is-on .screen__paper { opacity: 1; }
.book.is-flying { position: fixed; z-index: 41; }
.screen__video {
  position: fixed; z-index: 42; background: #0b0b0c; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.screen.is-playing .screen__video { opacity: 1; pointer-events: auto; }
.screen__close {
  position: fixed; z-index: 43; top: 16px; right: 16px; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); cursor: pointer;
  opacity: 0; transition: opacity 0.3s;
}
.screen.is-playing .screen__close { opacity: 1; }
.screen__close:hover { background: color-mix(in srgb, var(--ink) 18%, transparent); }
html.film-open { overflow: hidden; }
html.film-open .bar, html.film-open .rail { opacity: 0; pointer-events: none; }

/* The drop cap, wherever a chapter opens. */
.first::first-letter, .try__text > p:first-child::first-letter {
  float: left; font-size: 2.95em; line-height: 0.86; margin: 0.07em 0.08em 0 0;
}
@supports (initial-letter: 2) {
  .first::first-letter, .try__text > p:first-child::first-letter {
    float: none; font-size: inherit; line-height: inherit; margin: 0 0.08em 0 0; initial-letter: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .book, .book__board, .book__leaf, .book__back, .screen__paper { transition: none !important; }
}

/* ------------------------------------------------------------------ */
/* Chapters, headed as Novel heads them: the number, then the title. */
.chapter { padding: clamp(110px, 16vh, 190px) var(--gutter) 0; }
.chapter h2 { text-align: center; }
.chapter__n { display: block; font-size: clamp(60px, 7vw, 96px); line-height: 1; font-variant-numeric: lining-nums; }
.chapter__t { display: block; margin-top: 0.2em; font-size: clamp(28px, 3vw, 42px); font-style: italic; color: var(--muted); letter-spacing: -0.01em; }
.text {
  max-width: 33em; margin: clamp(36px, 5vw, 56px) auto 0;
  font-size: clamp(18px, 1.3vw, 20.5px); line-height: 1.62;
  text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty;
}
.text p + p { text-indent: 1.5em; }
.text .aside {
  margin-top: 1.2em; text-indent: 0; text-align: left; hyphens: manual;
  font-family: var(--sans); font-size: 15px; color: var(--muted);
}
@media (max-width: 560px) { .text { text-align: left; } }

figcaption { margin-top: 14px; text-align: center; font-family: var(--sans); font-size: 14px; color: var(--faint); text-wrap: balance; }
figcaption b { font-weight: 500; color: var(--ink); }
.figs { max-width: 1180px; margin: clamp(56px, 7vw, 88px) auto 0; display: grid; gap: clamp(24px, 3.4vw, 48px); }
.figs--page { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.figs--three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.shot--crop > picture > img, .shot--sheet img, .notes-art {
  width: 100%; border-radius: 12px; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 26px 60px -24px rgba(var(--shadow), 0.32);
}
.figs--three .shot--crop > picture > img, .notes-art { aspect-ratio: 1300 / 954; object-fit: cover; object-position: 30% 50%; }
.notes-art { position: relative; overflow: hidden; }
.notes-art__passage { position: absolute; left: 6%; top: 20%; width: 88%; }
.notes-art__note { position: absolute; right: 6%; bottom: 14%; width: 66%; border-radius: 10px; box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 18px 40px -12px rgba(40,34,20,0.3); }
.shot--window { max-width: 1200px; margin: clamp(56px, 7vw, 88px) auto 0; }
.shot--sheet { max-width: 520px; margin: clamp(64px, 8vw, 104px) auto 0; }
.shot--sheet img { border-radius: 21px; }
@media (max-width: 900px) {
  .figs--page, .figs--three { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}

/* A page to type on (chapter 1): 5.5 x 8.5, the paperback trim. */
.try__page {
  container-type: inline-size; aspect-ratio: 5.5 / 8.5; max-width: min(420px, 80vw); margin: 0 auto;
  background: var(--paper); border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 26px 60px -24px rgba(var(--shadow), 0.35);
  transition: box-shadow 0.3s;
}
.try__page:focus-within { box-shadow: 0 0 0 1px var(--amber), 0 26px 60px -24px rgba(var(--shadow), 0.35); }
.try__head { margin: 26cqw 11cqw 0 12cqw; text-align: center; font-size: 8cqw; font-style: italic; color: var(--muted); }
.try__text {
  margin: 7cqw 11cqw 0 12cqw; height: 66%; overflow: hidden; outline: none; cursor: text;
  font-size: 3.9cqw; line-height: 1.38; text-align: justify; hyphens: auto; -webkit-hyphens: auto;
  caret-color: var(--amber);
}
.try__text p + p { text-indent: 1.5em; }

/* The three levels (chapter 2): held in place while the page scrolls past
   them, one level to each third. */
.levels { margin-top: clamp(56px, 7vw, 88px); }
.levels__stage { display: flex; flex-direction: column; align-items: center; }
.levels__window {
  position: relative; width: min(1180px, 100%); aspect-ratio: 2400 / 1498;
}
.levels__window img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.7s var(--ease), scale 0.9s var(--ease); }
.levels__window img.is-on { opacity: 1; }
.levels__names { display: flex; gap: 28px; list-style: none; margin: 12px 0 0; padding: 0; font-family: var(--sans); font-size: 14px; color: var(--faint); }
.levels__names li { transition: color 0.4s; }
.levels__names li.is-on { color: var(--ink); font-weight: 500; }
html.motion .levels { height: 300vh; }
html.motion .levels__stage { position: sticky; top: 0; height: 100svh; justify-content: center; }
html.motion .levels__window { width: min(1180px, 100%, calc((100svh - 140px) * 2400 / 1498)); }
html.motion .levels__window img.is-in { scale: 1.035; }     /* a level not reached yet */
html.motion .levels__window img.is-out { scale: 0.965; }    /* a level pinched away from */
@media (max-width: 899px) {
  /* On a phone, the three side by side would be too small: one after another. */
  .levels { height: auto !important; }
  .levels__stage { position: static !important; height: auto !important; gap: 28px; }
  .levels__window { aspect-ratio: auto; display: grid; gap: 28px; width: 100% !important; }
  .levels__window img { position: static; opacity: 1; scale: none !important; }
  .levels__names { display: none; }
}

/* Every edition (chapter 4), drawn to scale: one inch is --in. */
.editions {
  --in: clamp(20px, 2.7vw, 40px);
  display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap;
  gap: calc(var(--in) * 0.9) calc(var(--in) * 0.8); max-width: 1240px; margin: clamp(56px, 7vw, 96px) auto 0;
}
.ed { display: flex; flex-direction: column; align-items: center; }
.ed figcaption { margin-top: 18px; font-size: 13px; }
.ed__obj { position: relative; }
.ed__obj { container-type: inline-size; }
.ed__cover {
  height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;
  color: #f1ede3; background: var(--cloth); padding: 22cqw 10cqw 9cqw 13cqw;
}
.ed--paperback .ed__obj { width: calc(var(--in) * 5.5); height: calc(var(--in) * 8.5); }
.ed--paperback .ed__cover {
  border-radius: 1px 3px 3px 1px; background-color: #3a5a70;
  background-image: linear-gradient(90deg, rgba(0,0,0,0.22), transparent 2%, rgba(255,255,255,0.12) 3.2%, transparent 4.5%),
    radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,0.1), transparent 60%);
  box-shadow: 0 30px 50px -26px rgba(var(--shadow), 0.55), 0 0 0 1px rgba(0,0,0,0.06);
}
.ed--hardcover .ed__obj { width: calc(var(--in) * 6.25); height: calc(var(--in) * 9.25); }
.ed--hardcover .ed__cover {
  border-radius: 2px 4px 4px 2px;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.32), rgba(0,0,0,0.12) 3%, rgba(255,255,255,0.1) 5.2%, rgba(0,0,0,0.14) 5.8%, transparent 9%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 3px);
  box-shadow: 0 30px 50px -26px rgba(var(--shadow), 0.6);
}
.ed--epub .ed__obj {
  width: calc(var(--in) * 4.6); height: calc(var(--in) * 6.4); padding: calc(var(--in) * 0.32) calc(var(--in) * 0.3) calc(var(--in) * 0.5);
  border-radius: calc(var(--in) * 0.28); background: #2b2b2e;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 30px 50px -26px rgba(var(--shadow), 0.6);
}
.ed__screen {
  height: 100%; overflow: hidden; padding: calc(var(--in) * 0.55) calc(var(--in) * 0.32) 0; border-radius: 2px;
  background: #eeece6; color: #222; font-size: calc(var(--in) * 0.135); line-height: 1.45; text-align: justify; hyphens: auto; -webkit-hyphens: auto;
}
.ed__chap { text-align: center; font-size: 2.6em; line-height: 1; font-variant-numeric: lining-nums; }
.ed__chaptitle { text-align: center; font-style: italic; font-size: 1.4em; color: #666; margin: 0.3em 0 1.2em; }
.ed--manuscript .ed__obj { width: calc(var(--in) * 8.5); height: calc(var(--in) * 11); }
.ed__sheet {
  height: 100%; overflow: hidden; padding: calc(var(--in) * 0.5) var(--in) var(--in); background: #fff; color: #111;
  font-family: "Times New Roman", Times, serif; font-size: calc(var(--in) / 6); line-height: 2;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 30px 50px -26px rgba(var(--shadow), 0.45);
}
.ed__header { text-align: right; margin-bottom: calc(var(--in) * 0.5 - 1em); }
.ed__ms { text-align: center; }
.ed__ms:first-of-type { margin-top: calc(var(--in) * 2.2); }
.ed__ms--title { margin-bottom: 2em; }
.ed__mslines { text-indent: calc(var(--in) * 0.5); }
@media (max-width: 760px) {
  .editions { --in: calc((100vw - 2 * var(--gutter) - 24px) / 14.75); display: grid; grid-template-columns: auto auto; justify-content: center; align-items: end; gap: 40px 24px; }
}

/* Your files (chapter 5): the folder, and a chapter as plain text. */
.files {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-width: 900px; margin: clamp(56px, 7vw, 88px) auto 0;
  background: var(--paper); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 26px 60px -24px rgba(var(--shadow), 0.3);
}
.files__tree {
  list-style: none; margin: 0; padding: 22px 12px; border-right: 1px solid var(--rule);
  font-family: var(--sans); font-size: 14px; line-height: 1.4;
}
.files__tree li { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 30px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files__tree li::before {
  content: ""; flex: none; width: 13px; height: 16px; border-radius: 2px;
  background: color-mix(in srgb, var(--paper) 80%, var(--faint)); box-shadow: 0 0 0 1px var(--rule) inset;
}
.files__tree li.is-dir { padding-left: 10px; }
.files__tree li.is-dir::before { width: 17px; height: 13px; background: #6aa9df; box-shadow: none; border-radius: 3px; }
.files__tree li.is-on { background: var(--wash); }
.files__text {
  margin: 0; padding: 26px clamp(20px, 3vw, 36px); overflow-x: auto;
  font-family: var(--mono); font-size: clamp(12.5px, 1.1vw, 14px); line-height: 1.75; color: var(--ink);
}
.files__text .dim { color: var(--faint); }
@media (max-width: 760px) {
  .files { grid-template-columns: minmax(0, 1fr); }
  .files__tree { border-right: 0; border-bottom: 1px solid var(--rule); }
  .files__text { font-size: 12px; white-space: pre-wrap; }
}

/* The end: the ask again, and the colophon. */
.end { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(130px, 20vh, 220px) var(--gutter) clamp(90px, 12vh, 140px); }
.end__mark { font-size: 22px; color: var(--faint); margin-bottom: 64px; }
.end h2 { margin-top: 28px; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -0.02em; }
.end__lede { margin-top: 16px; color: var(--muted); }
.end .join { margin-top: 32px; justify-content: center; }
.fine { margin-top: 4px; font-family: var(--sans); font-size: 13px; color: var(--faint); }
.colophon { max-width: 27em; margin-top: clamp(120px, 16vh, 180px); }
.colophon h3 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.colophon p { margin-top: 12px; font-size: 15px; font-style: italic; line-height: 1.6; color: var(--muted); text-wrap: balance; }

.footer { padding: 24px var(--gutter) 32px; text-align: center; font-family: var(--sans); font-size: 13px; color: var(--faint); }

@media (max-width: 560px) {
  body { font-size: 18px; }
  .join button { flex: 1 1 100%; }
}
