/* A book's page with a block of marble standing on it. He is in the block; reading frees him.
   One ink, one paper; by night the paper is dark and only the lamp is on. */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/eb-garamond-roman.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/eb-garamond-italic.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/eb-garamond-semibold.woff2) format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/bodoni-moda-roman.woff2) format("woff2"); }       /* the ten figures only, as they stand large behind the block */
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(fonts/bodoni-moda-italic.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 560; font-stretch: 100% 118%; font-display: swap; src: url(fonts/archivo.woff2) format("woff2"); }       /* the one weight the small words are set in */

:root {
  --paper: #f1ece3;
  --ink: #17140f;
  --shade: #857d70;
  --line: rgb(23 20 15 / 0.17);
  --text: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --label: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.5, 0, 0.1, 1);
  --edge: clamp(1.25rem, 3.4vw, 3.5rem);
  --side: 12.5rem;
  --measure: 35rem;
  color-scheme: light;
}
:root[data-night] {
  --paper: #0b0a09;
  --ink: #ebe5d9;
  --shade: #8d867a;
  --line: rgb(235 229 217 / 0.2);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
::selection { background: var(--ink); color: var(--paper); }

/* small words: a wide grotesque in capitals */
.mark, .home, .status, .sections a, article h2, nav.parts a::before, th, ol.contents li::before, .ways a {
  font-family: var(--label);
  font-style: normal;
  font-weight: 560;
  font-stretch: 118%;
  font-size: 0.64rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---- the head of every page: the book's name, and the lamp */
.mast { position: fixed; z-index: 5; inset: 0 0 auto 0; height: 0; }
.mark { position: absolute; left: var(--edge); top: 1.55rem; }
/* on the cover the name stands large, so the small one waits until the hall has been entered */
.front .mark { opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s 0.6s; }
.front.walking .mark { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease); }
.home { position: fixed; z-index: 6; left: calc(var(--edge) + 9.4rem); top: 1.55rem; color: var(--shade); transition: color 0.25s; }
.home:hover { color: var(--ink); }
.lamp {
  position: absolute; right: calc(var(--edge) - 0.5rem); top: 0.85rem; width: 2.5rem; height: 2.5rem; padding: 0.42rem;
  border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.lamp svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.lamp .rays { opacity: 0; transform-origin: 60px 40px; transform: scale(0.6); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
:root[data-night] .lamp .rays { opacity: 1; transform: none; }

/* ---- the plate: the block of marble, and what stands large behind it */
.plate { position: absolute; inset: 0 0 auto 0; height: 100svh; overflow: clip; pointer-events: none; }
.stone {
  position: absolute; top: 0; right: 0; width: 54vw; height: 100svh; display: block;
  opacity: 0; transition: opacity 1.4s var(--ease);
  pointer-events: auto; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none;
  view-transition-name: stone;
}
/* a part of him under the hand can be touched: it opens its text */
.stone.over { cursor: pointer; }
.stone.held { cursor: grabbing; }
.stone.shown { opacity: 1; }
.sign { position: absolute; inset: 0; view-transition-name: sign; }
.name {
  position: absolute; z-index: -1; left: calc(var(--edge) - 0.04em); top: 0.02em; margin: 0;       /* it goes with the page, behind the block */
  font-family: var(--display); font-style: italic; font-weight: 760; font-optical-sizing: auto;
  font-size: clamp(4.2rem, 11.6vw, 13.5rem); line-height: 1; letter-spacing: -0.028em; white-space: nowrap;
}
/* by night there is no number: the dark behind him is left whole */
:root[data-night] .numeral, .numeral.off { opacity: 0; }
.numeral {
  position: absolute; right: 30vw; top: 50%; translate: 0 -53%; transition: opacity 0.7s var(--ease);
  font-family: var(--display); font-weight: 900; font-optical-sizing: auto; font-variant-numeric: lining-nums;
  font-size: min(92svh, 62vw); line-height: 0.8; letter-spacing: -0.04em;
}

/* ---- the contents */
.leafs { position: relative; pointer-events: none; }
.leafs > * { pointer-events: auto; }
.front main { width: min(37rem, 46vw); margin-left: var(--edge); padding: calc(clamp(4.2rem, 11.6vw, 13.5rem) * 1.04 + 11svh) 0 4rem; min-height: 100svh; }
ol.contents { list-style: none; margin: 0; padding: 0; counter-reset: text; border-top: 1px solid var(--line); }
ol.contents li {
  counter-increment: text; position: relative;
  display: grid; grid-template-columns: 2.1rem 1fr; align-items: baseline; column-gap: 0.4rem;
  border-bottom: 1px solid var(--line);
}
ol.contents li::before { content: counter(text); grid-column: 1; font-size: 0.66rem; letter-spacing: 0.08em; }
ol.contents a {
  grid-column: 2; padding: 0.86rem 0 0.8rem;
  font-family: var(--display); font-style: italic; font-weight: 560; font-optical-sizing: auto;
  font-size: clamp(1.12rem, 1.42vw, 1.42rem); line-height: 1.22; letter-spacing: -0.005em; text-wrap: balance;
  transition: translate 0.45s var(--ease);
}
ol.contents a::after { content: ""; position: absolute; inset: 0; }
ol.contents li:hover a, ol.contents li.answers a { translate: 0.5rem 0; }
/* how far a text has been read: a hair of ink under its line */
ol.contents li::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: calc(var(--read, 0) * 100%);
  background: var(--ink); transition: width 1.2s var(--ease);
}

/* ---- a text */
.leaf main { padding: 0 var(--edge) 9rem; }
/* a text not written yet is its title and nothing under it: the page ends there and does not scroll on into nothing */
.unwritten main { padding-bottom: 1.1rem; }
.unwritten article { margin-top: 0; }
.unwritten article > :first-child { margin-top: 3.5rem; }
.leaf main { pointer-events: none; }
.leaf main > * { pointer-events: auto; }
.status { margin: 0; width: fit-content; padding-top: clamp(8rem, 31svh, 19rem); color: var(--shade); }
h1, .station h2, .next .then {
  margin: 1.5rem 0 0; width: fit-content; max-width: min(46vw, 13.5em);
  font-family: var(--display); font-style: italic; font-weight: 640; font-optical-sizing: auto;
  font-size: clamp(2.5rem, 5.1vw, 5.4rem); line-height: 1.03; letter-spacing: -0.022em; text-wrap: balance;
}
h1::after, .station h2::after { content: ""; display: block; width: 3.6rem; height: 1px; margin-top: clamp(1.6rem, 4.5svh, 3rem); background: var(--ink); }
/* a place in the hall answers when the hand is on its part of him: the rule under its title runs on */
.station h2::after { transition: width 0.5s var(--ease); }
.station.answers h2::after { width: 9rem; }
article, .leaf.list ol.contents, nav.parts {
  width: min(var(--measure), 100%); margin-left: calc(var(--side) + 2.5rem);
}
article { margin-top: clamp(5rem, 24svh, 15rem); font-size: clamp(1.14rem, 0.5vw + 1.02rem, 1.3rem); line-height: 1.6; hanging-punctuation: first; }
.leaf.list ol.contents { margin-top: clamp(5rem, 24svh, 15rem); }
article > :first-child { margin-top: 0; }
article p { margin: 0 0 1.05em; text-wrap: pretty; hyphens: auto; }
article h2 { margin: 4.2rem 0 1.5rem; scroll-margin-top: 5rem; }
article h3 { margin: 2.6rem 0 0.9rem; font-family: var(--display); font-style: italic; font-weight: 560; font-size: 1.36em; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
article hr { border: 0; height: 1px; width: 100%; margin: 3.2rem 0; background: var(--line); }
article ul, article ol { margin: 0 0 1.05em; padding-left: 1.15em; }
article li { margin-bottom: 0.4em; }
article li::marker { color: var(--shade); }
article blockquote { margin: 2.2rem 0; padding-left: 1.4rem; border-left: 1px solid var(--ink); font-style: italic; }
article blockquote p:last-child { margin-bottom: 0; }
article strong { font-weight: 600; }
article table { width: 100%; margin: 2rem 0; border-collapse: collapse; font-size: 0.9em; line-height: 1.4; font-variant-numeric: lining-nums tabular-nums; }
article th, article td { padding: 0.55rem 0.9rem 0.55rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
article th { border-bottom-color: var(--ink); }
sup.cite { font-size: 0.66em; line-height: 0; font-variant-numeric: lining-nums; vertical-align: 0.52em; margin-left: 0.06em; }
sup.cite a { padding: 0.5em 0.1em; }
sup.cite a:hover, sup.cite a.lit { color: var(--shade); }
/* the references, as he lists them at the end */
#references ~ ol { padding-left: 1.6em; font-size: 0.86em; line-height: 1.45; }
#references ~ ol li { margin-bottom: 0.7em; overflow-wrap: anywhere; scroll-margin-top: 6rem; }
#references ~ ol li:target { background: linear-gradient(var(--line), var(--line)) left bottom / 100% 1px no-repeat; }

/* the parts of a series: back and on */
nav.parts { display: flex; justify-content: space-between; gap: 2rem; margin-top: 5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
nav.parts a { font-family: var(--display); font-style: italic; font-weight: 560; font-size: 1.15rem; line-height: 1.25; max-width: 16rem; }
nav.parts a:hover { color: var(--shade); }

/* ---- the cover is a hall. Under the contents every text has a place of its own in it, and the block stays where it stands
   while they go by: at each the eye goes to the part of him that text frees, and its number stands behind the block.
   At the end of the hall he is seen whole. */
.front .plate { position: sticky; inset: 0 auto auto; margin-bottom: -100svh; }
.station, .end {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 100svh; width: min(37rem, 46vw - var(--edge)); margin-left: var(--edge); padding: 7rem 0; --sinks: 5rem;
}
/* a place in the hall is set as the head of its text is, so that going in changes nothing but what follows */
.station { justify-content: flex-start; padding-top: clamp(8rem, 31svh, 19rem); }
.station .status { padding-top: 0; }
.long { margin-left: 1.6em; }
.station h2 a::after { content: ""; position: absolute; inset: 0; }
.opens, .inside { margin: clamp(1.4rem, 3.6svh, 2.4rem) 0 0; max-width: 30rem; }
/* beside the block they keep clear of the number that stands behind it */
@media (min-width: 701px) { .opens, .inside { max-width: max(12rem, min(30rem, 70vw - 0.6 * min(92svh, 62vw) - var(--edge) - 1.5rem)); } }
.opens { font-size: clamp(1.14rem, 0.5vw + 1.02rem, 1.3rem); line-height: 1.5; text-wrap: pretty; }
.inside { list-style: none; padding: 0; font-family: var(--display); font-style: italic; font-weight: 520; font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.55; }
.end { justify-content: flex-end; padding-bottom: clamp(2.2rem, 6svh, 4rem); }
.line { margin: 0; font-family: var(--display); font-style: italic; font-weight: 560; font-size: clamp(1.5rem, 2.5vw, 2.6rem); line-height: 1.12; letter-spacing: -0.012em; text-wrap: balance; }
/* under his line: the stamp, pressed into the page without ink and seen by the lamp alone, and beside it the hand that signs */
.hand { display: flex; align-items: center; gap: clamp(1rem, 1.7vw, 1.7rem); margin: clamp(1.5rem, 3.8svh, 2.5rem) 0 0 -0.4rem; }
.seal { flex: none; width: clamp(8.6rem, 10.4vw, 10.4rem); aspect-ratio: 1; pointer-events: none; }
.by { margin: 0; font-size: 0.84rem; letter-spacing: 0.27em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: lining-nums; }
.by span::before { content: "\00b7"; margin: 0 0.62em 0 0.1em; }
.ways { display: flex; gap: 1.8rem; margin: 1.5rem 0 0; }
.ways a { color: var(--shade); transition: color 0.25s; }
.ways a:hover { color: var(--ink); }

/* at its end a text hands over to the next: its number and its title, and nothing else */
.next { display: flex; align-items: center; min-height: 82svh; margin: 0 var(--edge); }
.next a { display: block; padding: 5rem 0; }
.next .no {
  display: block; margin-left: -0.05em; font-family: var(--display); font-weight: 900; font-optical-sizing: auto; font-variant-numeric: lining-nums;
  font-size: clamp(8rem, 24vw, 21rem); line-height: 0.78; letter-spacing: -0.04em;
}
.next .then { display: block; margin-top: clamp(1.6rem, 4.5svh, 3rem); transition: translate 0.45s var(--ease); }
.next a:hover .then { translate: 0.5rem 0; }

/* after a long text he stands once more, as the reading has left him */
.foot { position: relative; height: 100svh; overflow: clip; }
.foot[hidden] { display: none; }
.foot .stone { -webkit-mask-image: linear-gradient(to right, transparent, #000 7rem); mask-image: linear-gradient(to right, transparent, #000 7rem); }

/* the first screen of a text belongs to its title and to the stone; the words begin under it, where nothing stands in their way */
@media (min-width: 701px) {
  .leaf h1 { min-height: calc(100svh - clamp(8rem, 31svh, 19rem) - 3.4rem); }
  article, .leaf.list ol.contents { margin-top: 3.5rem; }
}

/* the list of a text's sections stays at hand beside it */
.sections { position: sticky; z-index: 2; bottom: auto; top: 0; height: 0; margin-left: var(--edge); width: var(--side); order: -1; }
.leafs { display: flex; flex-direction: column; }
.sections ol { list-style: none; margin: 0; padding: 6.2rem 0 0; opacity: 0; transition: opacity 0.6s var(--ease); }
.reading .sections ol { opacity: 1; }
.sections li { margin-bottom: 0.72rem; }
.sections a { display: block; color: var(--shade); line-height: 1.5; transition: color 0.3s; }
.sections a:hover, .sections a.here { color: var(--ink); }

/* a reference beside the line that calls it */
.aside { position: absolute; z-index: 2; left: calc(var(--edge) + var(--side) + 2.5rem + min(var(--measure), 100vw) + 2.6rem); width: min(15.5rem, 100vw - var(--edge) * 2 - var(--side) - var(--measure) - 5.2rem); font-size: 0.78rem; line-height: 1.42; color: var(--shade); overflow-wrap: anywhere; transition: color 0.3s; }
.aside b { font-family: var(--label); font-weight: 560; font-size: 0.6rem; letter-spacing: 0.08em; color: var(--ink); margin-right: 0.5em; font-variant-numeric: lining-nums; }
.aside.lit { color: var(--ink); }
#note { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; margin: 0; padding: 1.3rem var(--edge) 1.6rem; border: 0; border-top: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 0.98rem; line-height: 1.45; overflow-wrap: anywhere; }
#note::backdrop { background: transparent; }

/* ---- between pages: the stone keeps its place while the leaf is turned */
@view-transition { navigation: auto; }
::view-transition-group(stone) { animation-duration: 1.1s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.55s; }
::view-transition-old(sign) { animation: 0.4s var(--ease) both fade-out; }
::view-transition-new(sign) { animation: 0.9s 0.25s var(--ease) both fade-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
/* A title is carried across the turn, from its line in a list to the head of its page and back. The two are the same words
   at two sizes: each keeps its own size here and is brought to the other's by the measures the page has taken, about the
   start of its first line, so that the words lie on each other all the way and the one is let through the other. */
::view-transition-group(title) { animation-duration: 0.9s; animation-timing-function: var(--ease); }
::view-transition-old(title), ::view-transition-new(title) { mix-blend-mode: plus-lighter; }
::view-transition-old(title) {
  inline-size: var(--title-from-w, 100%); block-size: var(--title-from-h, auto); transform-origin: var(--title-from-x, 0) var(--title-from-y, 0);
  animation: 0.9s var(--ease) both title-leaves, 0.9s linear both title-thins;
}
::view-transition-new(title) {
  inline-size: var(--title-to-w, 100%); block-size: var(--title-to-h, auto); transform-origin: var(--title-to-x, 0) var(--title-to-y, 0);
  animation: 0.9s var(--ease) both title-comes, 0.9s linear both title-fills;
}
@keyframes title-leaves { to { transform: translate(var(--title-dx), var(--title-dy)) scale(var(--title-grow)); } }
@keyframes title-comes { from { transform: translate(calc(var(--title-dx) * -1), calc(var(--title-dy) * -1)) scale(calc(1 / var(--title-grow))); } }
@keyframes title-thins { 0%, 18% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes title-fills { 0%, 18% { opacity: 0; } 52%, 100% { opacity: 1; } }

/* ---- the words in motion
   They move with the hand that scrolls and never on their own. Each block of a text comes up out of the page as it is
   reached, faint and a little low, and has settled into its place before the eye gets to it; what has been read does not
   move again. A rule is drawn across as it comes. Where a browser cannot tie motion to scrolling, the words simply stand. */
@keyframes surface { from { opacity: 0; translate: 0 1.5rem; } }
@keyframes drawn { from { scale: 0 1; } }
@supports (animation-timeline: view()) {
  @media screen and (prefers-reduced-motion: no-preference) {
    article > :not(ul, ol), article > :is(ul, ol) > li, .aside, nav.parts, .next a > * {
      animation: surface cubic-bezier(0.25, 0.5, 0.35, 1) both; animation-timeline: view();
      animation-range: cover 0% cover 16%;
      animation-range: cover 0% cover min(10rem, 19svh);      /* the same depth of page for a heading as for a long paragraph */
    }
    article > hr { animation-name: drawn; animation-timing-function: linear; transform-origin: 0 50%; }
    /* the last words of the hall have come up when its end is reached, and not before */
    .end { view-timeline: --end block; }
    .end > * { animation: surface cubic-bezier(0.25, 0.5, 0.35, 1) both; animation-timeline: --end; animation-range: entry 45% entry 96%; }
    .end > .hand, .end > .ways { animation-range: entry 62% entry 100%; }
    /* in the hall the words of a place come up as it is reached and go back into the page as it is left */
    .station > * {
      animation: surface cubic-bezier(0.25, 0.5, 0.35, 1) both, sunk linear both; animation-timeline: view(), view(block var(--sinks) 0px);
      animation-range: cover 0% cover 16%, exit 0% exit 100%;
      animation-range: cover 0% cover min(10rem, 19svh), exit 0% exit 100%;
    }
  }
  /* at the head of the page a title goes back into it, before it would come to lie under the book's name */
  @media screen and (min-width: 901px) {
    .leaf h1 { animation: sunk linear both; animation-timeline: view(block 7rem 0px); animation-range: exit 0% exit 4rem; }
    .leaf .status { animation: sunk linear both; animation-timeline: view(block 3.2rem 0px); animation-range: exit calc(100% - 3rem) exit 100%; }
  }
}
@keyframes sunk { to { opacity: 0; } }
/* a text opened afresh sets its title: it comes down into its place, and the small words follow */
@media (prefers-reduced-motion: no-preference) {
  :root.opening h1 { animation: 1.1s 0.15s var(--ease) both set; }
  :root.opening .leaf .status { animation: 0.9s 0.55s var(--ease) both fade-in; }
  .opening ol.contents li { animation: 0.9s 0.3s var(--ease) both surface; animation-delay: calc(0.3s + min(sibling-index() - 1, 9) * 0.07s); }
}
@keyframes set { from { opacity: 0; translate: 0 0.32em; clip-path: inset(0 0 100% 0); } to { clip-path: inset(-0.2em -0.2em -0.4em -0.2em); } }

/* ---- a narrow screen: one column, the block above the words */
@media (max-width: 1180px) {
  .aside { display: none; }
}
@media (max-width: 900px) {
  :root { --side: 0rem; }
  .sections { display: none; }
  article, .leaf.list ol.contents, nav.parts { margin-left: auto; margin-right: auto; }
  h1, .station h2, .next .then { max-width: none; }
}
/* beside the block the light in the air ends softly, not at the edge of its picture */
@media (min-width: 701px) {
  .plate .stone { -webkit-mask-image: linear-gradient(to right, transparent, #000 6rem); mask-image: linear-gradient(to right, transparent, #000 6rem); }
}
@media (max-width: 900px) {
  /* the head keeps a strip of paper under it, so its words never lie on the text */
  .mast { height: 3.5rem; background: var(--paper); transition: background-color 0.7s var(--ease); }
  /* and what goes under that strip goes into the paper; it is not cut off */
  .leaf .mast::after {
    content: ""; position: absolute; inset: 100% 0 auto 0; height: 1.5rem; pointer-events: none;
    background: inherit; transition: inherit; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
  }
  .mark { top: 1.35rem; }
  .lamp { top: 0.55rem; }
  .home { left: auto; right: calc(var(--edge) + 3.1rem); top: 1.35rem; }
  /* in a part of a series the way up is the series itself, which is long: there it has the head to itself */
  body:has(.home:not([href="/"])) .mark { display: none; }
  .home:not([href="/"]) { left: var(--edge); top: 0.95rem; line-height: 1.35; text-wrap: balance; }
}
@media (max-width: 700px) {
  .plate, .foot { height: 80svh; }
  .front .stone { top: calc(3.9rem + 17vw); right: -6vw; width: 112vw; height: calc(76svh - 3.9rem - 17vw); }
  .leaf .stone { top: 3.5rem; right: -22vw; width: 108vw; height: 64svh; }
  /* where the picture ends on a small screen the stone goes over into the page; it is not cut off */
  .stone { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 5rem), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 5rem), transparent); }
  .foot .stone { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 4rem, #000 calc(100% - 5rem), transparent); mask-image: linear-gradient(to bottom, transparent, #000 4rem, #000 calc(100% - 5rem), transparent); }
  /* nor does the light in the air by night begin at a line under the book's name */
  .front .stone { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 3.2rem, #000 calc(100% - 5rem), transparent); mask-image: linear-gradient(to bottom, transparent, #000 3.2rem, #000 calc(100% - 5rem), transparent); }
  .name { font-size: 17.4vw; top: 3.9rem; left: var(--edge); }
  /* the number stands above the middle of the screen, where the words are read, and its foot ends before they come to it */
  .numeral { right: auto; left: -0.03em; font-size: 48svh; top: 30%; }
  .front main { width: auto; margin: 0 var(--edge); padding-top: calc(76svh + 1rem); }
  .status { padding-top: calc(64svh + 5rem); }
  h1, .station h2, .next .then { font-size: clamp(2.2rem, 10.5vw, 3.2rem); }
  /* the hall on a small screen: the block keeps the upper part, and each place passes under it */
  .front { --sinks: calc(76svh - 17vw - 4.4rem); }
  .station h2 { font-size: clamp(1.9rem, 8.6vw, 2.7rem); margin-top: 0.9rem; }
  .station h2::after { margin-top: 1.1rem; }
  /* where the words cannot move, the block goes by with the head of the hall and the places follow as plain leaves */
  .front .plate { position: absolute; inset: 0 0 auto 0; margin-bottom: 0; }
  .station, .end { width: auto; margin: 0 var(--edge); justify-content: flex-start; min-height: 0; padding: 2.6rem 0; --sinks: inherit; }
  .opens { font-size: 1.06rem; line-height: 1.42; margin-top: 1rem; }
  .inside { font-size: 1.02rem; line-height: 1.45; margin-top: 1rem; }
  .hand { gap: 0.9rem; margin-top: 1.2rem; }
  .seal { width: 7.6rem; }
  .by { font-size: 0.74rem; letter-spacing: 0.24em; }
  .next { min-height: 70svh; }
  article, .leaf.list ol.contents { margin-top: 3.2rem; }
}
/* on a small screen the block keeps the upper part and each place passes under it: whatever comes up there goes back into
   the page before it would lie on the stone. This needs the words to move, so only then is the block held in its place. */
@supports (animation-timeline: view()) {
  @media screen and (max-width: 700px) and (prefers-reduced-motion: no-preference) {
    /* the words are read in the middle of the screen, so they stay there: they go back into the page only from a little
       above the middle, slowly, and while they cross the foot of the stone each carries a little of the page with it */
    .front { --sinks: 42svh; }
    .front ol.contents li { animation: sunk linear both; animation-timeline: view(block var(--sinks) 0px); animation-range: exit 0% exit calc(100% + 3.5rem); }
    .station > * { animation-range: cover 0% cover min(10rem, 19svh), exit 0% exit calc(100% + 3.5rem); }
    .front ol.contents li, .station > * { text-shadow: 0 0 0.3em var(--paper), 0 0 0.8em var(--paper), 0 0 1.6em var(--paper); }
    .front .plate { position: sticky; inset: auto; top: calc(-17vw - 0.4rem); margin-bottom: -80svh; }
    .station, .end { justify-content: flex-end; min-height: 100svh; padding: 0 0 1.8rem; }
    /* the rule over the contents goes with its first line, or it would be drawn across the stone */
    .front ol.contents { border-top-color: transparent; }
    .front ol.contents li:first-child { box-shadow: 0 -1px 0 var(--line); }
  }
}
/* on paper: the words, and nothing that moves */
@media print {
  .mast, .plate, .foot, .sections, .next, .aside, .home, .seal, #note { display: none !important; }
  body { background: none; color: #000; }
  .leaf main { padding: 0; }
  .status { padding-top: 0; }
  .leaf h1 { min-height: 0; }
  article { margin: 2.5rem 0 0; width: auto; max-width: 34rem; }
  * { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01s !important; }
  @view-transition { navigation: none; }
}
