/* ==========================================================================
   Wireframe portfolio — single stylesheet
   One typeface (GT Standard L Narrow Bold), one weight, all caps.
   Ink on paper. Every page is built from the same small set of parts.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  --ink: #0c0c0c;
  --paper: #f5f3f0;                       /* the light on the room: its type, a print's border (until 2026-11-13 also a ground, under the book and the menu) */
  --sheet: #fbfaf7;                       /* the stock its pages are printed on */
  --stock: var(--paper);                  /* the ground under this page: the sheet on every page but the home */
  --room: #141312;                        /* the room: the darkroom's ground, where the pages are printed and the book and the shelf stand */
  --room-dim: rgba(245, 243, 240, 0.68);  /* the register on the room: 6.5:1 at the least */
  --muted: rgba(12, 12, 12, 0.62);        /* the small register; 5.4:1 on the sheet */
  --font-stack: "GT Standard", "Helvetica Neue", Helvetica, sans-serif;
  /* One family, three roles. Reading text used to fall back to Arial, which
     read as a different site sitting inside this one. */
  --font-text: "GT Standard Text", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "GT Standard Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* The scale (2026-11-13, "one book, two rooms"). Type does three jobs and
     never swaps them: capitals (the display cut) are titles and things you
     press, in three sizes; mono is the register (numbers, places, dates), in
     one; text is for reading, in one. Nothing is set outside these five. The
     book object and the spines on the shelf are drawn to their own scale, as
     miniatures. */
  --fs-hero: clamp(36px, 5.56vw, 80px);  /* capitals L: a page's one title     */
  --fs-bar: clamp(19px, 3.2vw, 32px);    /* capitals M: the bar, headings      */
  --fs-about: clamp(15px, 1.55vw, 22px); /* capitals S: a statement, a subtitle */
  --fs-h3: var(--fs-bar);                /* (the body default: capitals M)     */
  --fs-read: 18px;                       /* reading text                       */
  --fs-reg: 11px;                        /* the register                       */
  --gutter-w: 96px;                      /* the page's edges: the gutter's shade at the left, */
  --gutter-shade: linear-gradient(90deg, rgba(12, 12, 12, 0.17), rgba(12, 12, 12, 0.05) 42%, transparent);
  --fore-w: 20px;                        /* and the pages still to come at the right */
  --fore-lines: repeating-linear-gradient(90deg, rgba(12, 12, 12, 0.24) 0 1px, var(--sheet) 1px 3px);
  --measure: 66rem;                      /* a column of reading text: about 75 characters */
  --frame-x: 44px;                       /* the frame's inset: the running head, the page number, the room's margin, the shelf's */
  --fs-mini: var(--fs-reg);              /* (its older name)                   */
  --track-reg: 0.06em;

  /* One colour besides ink: the safelight's red. The lamp on the darkroom
     wall, the Diary's margin rule and its ribbon. */
  --safelight: #9c3127;
  /* the cloth the book is bound in: an irregular grain (a ruled weave shimmers
     when the board turns) */
  --cloth-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .4 -.14'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");

  --sp: 0.4rem;                          /* spacing base                      */
  --bar-h: 32px;                         /* fixed bar line-height             */
  --bar-pad: calc(var(--sp) * 4);        /* fixed bar offset from edge        */

  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.5, 0, 0.5, 1);
}
@media (max-width: 768px) {
  :root {
    --bar-h: 24px;
    --bar-pad: calc(var(--sp) * 3);
    --fs-read: 16px;
  }
}
@media (max-width: 768px), (max-height: 560px) {
  :root {
    --fs-reg: 10px;
    --frame-x: 26px;
  }
}

/* The woff2 is subset to the characters this content actually uses (10 KB vs the
   95 KB full OTF). The OTF stays as a fallback for anything that can't take
   woff2, and regenerates via `node scripts/subset-font.mjs` when copy changes. */
@font-face {
  font-family: "GT Standard";
  src:
    url("/assets/fonts/GTStandard-LNarrowBold.woff2") format("woff2"),
    url("/assets/fonts/GTStandard-LNarrowBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
/* GT Standard S — the text optical size, for anything meant to be read at
   length (project essays). */
@font-face {
  font-family: "GT Standard Text";
  src:
    url("/assets/fonts/GTStandardS-NormalRegular.woff2") format("woff2"),
    url("/assets/fonts/GTStandardS-NormalRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* GT Standard Mono — captions, metadata, credits: the small register. */
@font-face {
  font-family: "GT Standard Mono";
  src:
    url("/assets/fonts/GTStandardMono-NormalRegular.woff2") format("woff2"),
    url("/assets/fonts/GTStandardMono-NormalRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------- base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 62.5%;
  /* this design is light-only; say so, or the UA paints dark scrollbars and
     controls for anyone whose OS is in dark mode */
  color-scheme: light;
  background: var(--paper);
}
body {
  /* the grain is baked at the paper colour and tiled UNDER everything — it is
     the stock the site is printed on, and can never overlay a photograph */
  background: var(--paper) url("/paper.png") repeat;
  background-size: 192px 192px;
  color: var(--ink);
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: var(--fs-h3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* At rest this is INVISIBLE — it only blocks stray clicks until the page has
   landed. It must never be an opaque curtain: painting paper over everything
   until every image finished meant a blank screen for ~7s on a cold cache over
   a slow connection. The paper wash is applied only for SPA swaps, below. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
  /* At rest it is not only transparent but not there to be hit. Safari on
     an iPhone (iOS 26) decides what to draw behind the clock and behind its
     own bar by hit-testing a point at each end of the screen, ignoring
     pointer-events; this veil, over everything, was what it hit, on every
     page, and a pseudo-element leads it nowhere: it never found the fixed
     bands beneath, and whatever was scrolling showed past both ends of the
     screen. A hidden box is not hit. (It comes back at once for a wash, and
     goes only when the wash has faded.) */
  visibility: hidden;
  transition:
    background 0.49s var(--ease-soft),
    backdrop-filter 0.49s var(--ease-soft),
    visibility 0s linear 0.49s;
}
/* the wash is the ground of the page that is coming: the sheet, or the
   room's dark on the way into the room (main.js sets js-swap--room). Until
   2026-11-13 it was the paper, a third ground. */
html.js-swap--out body::before {
  background: var(--sheet) !important;
  backdrop-filter: blur(12px) !important;
  visibility: visible;
  transition:
    background 0.49s var(--ease-soft),
    backdrop-filter 0.49s var(--ease-soft),
    visibility 0s;
}
html.js-swap--out.js-swap--room body::before {
  background: var(--room) !important;
}

/* -------------------------------------------------------- flip primitives */
/* Text enters by rotating up from below (perspective flip), exits upward.  */

/* line splitter output */
.js-splitlines .line {
  display: block;
  perspective: 1000px;
}
.js-splitlines .line .line__inner {
  display: block;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: translateY(50%) rotateX(-40deg);
  backface-visibility: hidden;
  opacity: 0;
  transition: all 0.79s var(--ease);
}
.js-splitlines .line:nth-child(1) .line__inner { transition-delay: 0s; }
.js-splitlines .line:nth-child(2) .line__inner { transition-delay: 0.015s; }
.js-splitlines .line:nth-child(3) .line__inner { transition-delay: 0.03s; }
.js-splitlines .line:nth-child(4) .line__inner { transition-delay: 0.045s; }
.js-splitlines .line:nth-child(5) .line__inner { transition-delay: 0.06s; }
.js-splitlines .line:nth-child(6) .line__inner { transition-delay: 0.075s; }
.js-splitlines .line:nth-child(7) .line__inner { transition-delay: 0.09s; }
.js-splitlines .line:nth-child(8) .line__inner { transition-delay: 0.105s; }
.js-splitlines .line:nth-child(9) .line__inner { transition-delay: 0.12s; }
.js-splitlines .line:nth-child(10) .line__inner { transition-delay: 0.135s; }
.js-splitlines .line:nth-child(n + 11) .line__inner { transition-delay: 0.15s; }

/* --------------------------------------------------------- smooth scroll */
#smoothscroll {
  position: relative;
  /* The wrapper is fixed on desktop, which makes it an isolated blending
     group: the difference-blended work-page names can only composite against
     pixels drawn inside it. So the paper lives here too — same tile as the
     body — or the names would blend against nothing over bare paper. */
  background: var(--paper) url("/paper.png") repeat;
  background-size: 192px 192px;
  /* a stacking context on phones as well as on desktop (where `fixed` makes
     it one): the page's gutter and fore-edge sit inside it at a negative
     z-index, over its stock and under everything printed on it */
  isolation: isolate;
}
/* Every page but the home is a page of the book, printed on the sheet: the
   same grain, re-baked at the sheet colour (sheet.png, derived from paper.png
   by build.mjs). The home keeps the paper — there the book is an object on it. */
body:not(.is--home),
body:not(.is--home) #smoothscroll {
  background: var(--sheet) url("/sheet.png") repeat;
  background-size: 192px 192px;
}
body:not(.is--home) {
  --stock: var(--sheet);
}
/* and the canvas behind it (what a pull past the page's end shows) */
html:has(> body:not(.is--home)) {
  background: var(--sheet);
}
@media (min-width: 769px) {
  body.js-smooth #smoothscroll {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    will-change: top;
  }
}

/* -------------------------------------------------------------- site header */
.site-header {
  position: fixed;
  top: var(--bar-pad);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  /* Fixed chrome sits over whatever scrolls beneath it. Authored white under a
     difference blend it prints as ink on paper and inverts over a photograph,
     like the work-page names — an ink + vanished over the dark covers. */
  mix-blend-mode: difference;
}
/* On a reading page the centred column scrolls straight under the +, and an
   inverting + printed over a line of text reads as a glitch. There the header
   keeps ink bars with a paper halo (below). */
body.is--reading .site-header {
  mix-blend-mode: normal;
}
body.is--reading .navopener__open::before,
body.is--reading .navopener__open::after,
body.is--reading .navopener__close::before,
body.is--reading .navopener__close::after {
  background: var(--ink);
}
/* a paper halo around the glyph rather than a disc: legible over a line of
   text or a chapter image that scrolls beneath, without biting a circle out */
body.is--reading .navopener__open,
body.is--reading .navopener__close {
  filter: drop-shadow(1.5px 0 0 var(--stock)) drop-shadow(-1.5px 0 0 var(--stock))
    drop-shadow(0 1.5px 0 var(--stock)) drop-shadow(0 -1.5px 0 var(--stock));
}
body.is--reading .navopener:focus-visible {
  outline-color: var(--ink);
}

/* + / × opener: two stacked glyphs flipping about the X axis.
   The glyph is 24–32px, well under the 44px minimum touch target, and it is the
   only way into the menu — so an invisible pad extends the hit area without
   changing what is drawn. */
.navopener {
  perspective: 700px;
  height: var(--bar-h);
  cursor: pointer;
  outline-offset: 4px;
  position: relative;
}
.navopener::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(44px, 100%);
  height: 44px;
  transform: translate(-50%, -50%);
}
.navopener__open,
.navopener__close {
  width: var(--bar-h);
  height: var(--bar-h);
  position: relative;
  transform-style: preserve-3d;
  transform-origin: center center;
  backface-visibility: hidden;
  transition: transform 0.79s var(--ease);
}
.navopener__open::before,
.navopener__open::after,
.navopener__close::before,
.navopener__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 3px;
  background: #fff; /* inside the blended header: reads as ink */
  backface-visibility: hidden;
}
.navopener__open::before { transform: translate(-50%, -50%); }
.navopener__open::after  { transform: translate(-50%, -50%) rotate(-90deg); }
.navopener__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.navopener__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.navopener__open {
  transform: translateY(50%) rotateX(-90deg);
}
.navopener__close {
  transform: translateY(-40%) rotateX(-90deg);
  transition: none;
}
html.has--landed .navopener__open,
body:not(.is--home).has--loaded .navopener__open,
body.is--home.has--finished .navopener__open {
  transform: none;
  transition: transform 0.79s var(--ease);
}
body.js-nav--opening:not(.js-nav--closing) .navopener__open,
body.js-nav--open:not(.js-nav--closing) .navopener__open {
  transform: translateY(-60%) rotateX(90deg);
}
body.js-nav--opening:not(.js-nav--closing) .navopener__close,
body.js-nav--open:not(.js-nav--closing) .navopener__close {
  transform: translateY(-100%) rotateX(0deg);
  transition: transform 0.79s var(--ease);
}
body.js-nav--closing .navopener__close {
  transform: translateY(-160%) rotateX(90deg);
  transition: transform 0.79s var(--ease);
}

/* -------------------------------------------------------------- nav screen */
/* `visibility: hidden` (not just height 0 / opacity 0) is what actually takes
   the closed menu out of the focus order and the accessibility tree — without
   it, keyboard users tab through invisible Contact/Instagram/Email links. It is
   transitioned on the same delay as height so the close animation still plays. */
.navscreen {
  position: fixed;
  inset: 0;
  z-index: 998;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  /* the box itself is the room's ground too: on iOS the open box is sized to
     the large viewport (below), so it runs under Safari's floating toolbar,
     and that extra run must be the room, not a strip of the page behind */
  background: var(--room);
  filter: blur(12px);
  transition:
    height 0.01s ease 0.8s,
    visibility 0.01s ease 0.8s,
    filter 0.49s var(--ease-soft) 0.1s;
}
.navscreen__inner {
  /* the content keeps to the SMALL viewport — what is visible with the
     browser toolbar showing — so the contact row and copyright never sit
     under it. The sheet around it (the .navscreen box) may be taller. */
  height: 100%;
  height: 100svh;
  /* the frame's inset, as on every screen */
  padding: var(--bar-pad) var(--frame-x);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* (its ground is the room's: see "the room", at the foot of this sheet) */
}
.navscreen__top {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--bar-h);
}
/* The menu is the shelf the book came from. Four volumes stand on a line:
   Works (the book itself, thick, full height, with its count filed along the
   spine), Writing, About, and the private album standing sealed. The spines
   are sheet stock with a hairline ink edge, a soft shadow at the right where
   the next book's shadow falls and a highlight at the left where the light
   catches. Titles run top to bottom like an English spine. Each one is a link;
   the volume you are reading stands proud of the shelf, and a hovered one
   only darkens its edge, so the two never read alike. */
.navscreen__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.navmenu {
  --shelf-h: min(46vh, 420px);
  --shelf-line: 4px;
  /* the line runs well past the books on both sides, but never past the sheet */
  --shelf-w: min(calc(100% + 240px), calc(100vw - 32px));
  list-style: none;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
  height: var(--shelf-h);
  padding-bottom: var(--shelf-line);
  pointer-events: none;
}
.navmenu li {
  display: flex;
  align-items: flex-end;
  height: 100%;
}
/* the shelf line: scales in from the centre as the menu opens */
.shelf::after {
  content: "";
  position: absolute;
  left: calc(50% - var(--shelf-w) / 2);
  bottom: 0;
  width: var(--shelf-w);
  height: var(--shelf-line);
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.49s var(--ease);
}
.spine {
  --d: 0s; /* this volume's place in the stagger */
  position: relative;
  display: flex;
  /* the spine's own writing mode is vertical, so `column` runs across its
     width (right to left: the title is the first line, the small line sits
     to its left, as it reads with the head tilted) */
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  writing-mode: vertical-rl;
  padding: 16px 0;
  background: var(--sheet);
  border: 1px solid rgba(12, 12, 12, 0.55);
  border-bottom-color: var(--ink);
  box-shadow:
    inset -7px 0 12px -8px rgba(12, 12, 12, 0.35),
    inset 2px 0 0 rgba(255, 255, 255, 0.6);
  font-size: 22px;
  /* the face's ink runs past a 1-line box across the spine; 1.15 holds it */
  line-height: 1.15;
  letter-spacing: 0.02em;
  white-space: nowrap;
  /* rises into place when the menu opens; `translate` carries the lift
     separately so a hover never waits on the entrance */
  transform: translateY(14px);
  translate: 0 0;
  opacity: 0;
  transition:
    transform 0.49s var(--ease),
    opacity 0.49s var(--ease),
    translate 0.3s var(--ease),
    border-color 0.2s var(--ease-soft);
}
.spine--works { width: 112px; height: 100%; font-size: 28px; }
.spine--qm { width: 64px; height: 92%; }
.spine--writing { width: 46px; height: 84%; }
/* the thin Writing spine runs its small line on below the title */
.spine--writing {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.spine--about { width: 38px; height: 76%; font-size: 18px; }
.spine--owed { width: 66px; height: 92%; }
.spine__title {
  display: block;
}
/* the album's title (Climate Change is Ole Mas since 2026-11-13, twice the
   old one's length) is held to the room above its seal and set in two
   balanced lines when it would run into the band */
.spine--owed .spine__title {
  white-space: normal;
  text-wrap: balance;
  max-height: calc(75% - 4px);
}
/* the small register filed along the spine */
.spine__sub {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
/* the album's seal: a black band across the lower third of the spine, printed
   in paper, clear of the title above it */
.spine__seal {
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: 14%;
  height: 11%;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: horizontal-tb;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.shelf__note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-reg);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  opacity: 0;
  transition: opacity 0.49s var(--ease);
}
/* the note is also the way back to the darkroom: a link on its own part of
   the line (the note breaks only between its two parts), padded out to a
   44px tap target without moving the line (it is the only way back from the
   shelf on a phone); more of the padding below than above, so the target
   stops short of the shelf's volumes. It is lifted above its neighbours (the
   shelf above it, the statement below), so the whole of that target takes
   the tap, not only the line of type */
.shelf__seg { white-space: nowrap; }
.shelf__back {
  position: relative;
  z-index: 3;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  padding: 12px 4px 20px;
  margin: -12px -4px -20px;
}
.shelf__back:focus-visible { outline-offset: 2px; }
/* the volume you are reading stands proud of the shelf; a hovered volume
   darkens its edge */
.spine.is--active {
  /* (16px: at 6px it read as a book set down crooked, not one drawn out) */
  translate: 0 -16px;
}
@media (hover: hover) {
  .spine:hover { border-color: var(--ink); }
}
.spine:focus-visible {
  z-index: 1; /* above the next spine, which paints later */
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
body.js-nav--opening .navmenu,
body.js-nav--open .navmenu {
  pointer-events: all;
}
/* the volumes rise into place as the menu opens, one after another, timed
   with the sheet's own fade; the line draws out from the centre beneath them */
body.js-nav--opening .spine,
body.js-nav--open .spine {
  transform: none;
  opacity: 1;
  transition:
    transform 0.79s var(--ease) var(--d),
    opacity 0.79s var(--ease) var(--d),
    translate 0.3s var(--ease);
}
.navmenu li:nth-child(2) .spine { --d: 0.06s; }
.navmenu li:nth-child(3) .spine { --d: 0.12s; }
.navmenu li:nth-child(4) .spine { --d: 0.18s; }
.navmenu li:nth-child(5) .spine { --d: 0.24s; }
body.js-nav--opening .shelf::after,
body.js-nav--open .shelf::after {
  transform: scaleX(1);
  transition: transform 0.79s var(--ease) 0.1s;
}
body.js-nav--opening .shelf__note,
body.js-nav--open .shelf__note {
  opacity: 1;
  transition: opacity 0.49s var(--ease) 0.4s;
}
body.js-nav--closing .spine {
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.49s var(--ease), opacity 0.49s var(--ease);
}
body.js-nav--closing .shelf::after {
  transform: scaleX(0);
  transition: transform 0.49s var(--ease);
}
body.js-nav--closing .shelf__note {
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
/* phones: a shorter shelf, thinner books, smaller type; on the thin Writing
   spine the small line runs on below the title, since the two no longer fit
   side by side */
@media (max-width: 768px) {
  .navmenu {
    --shelf-h: min(40svh, 300px);
    gap: 6px;
  }
  .spine {
    padding: 12px 0;
    font-size: 16px;
  }
  .spine--works { width: 76px; font-size: 20px; }
  .spine--qm { width: 44px; }
  .spine--writing { width: 32px; }
  .spine--about { width: 28px; font-size: 14px; }
  .spine--owed { width: 46px; }
  .spine__seal { min-height: 22px; }
  .shelf__note { margin-top: 10px; }
}
/* a phone on its side: the books lie flat, a pile of five on the shelf line
   (four until Quantum Memory had a volume of its own, 2026-11-14; each lost a
   few px of thickness then, and the note its air, so the pile is no taller),
   titles horizontal, thickness become height and length varying likewise, so
   the whole shelf fits above the statement on a 390px-tall screen */
@media (max-height: 560px) {
  .navscreen__nav {
    --shelf-len: min(360px, calc(100vw - 48px));
    padding-top: 6px; /* air under the × */
  }
  .navmenu {
    --shelf-w: min(calc(100% + 160px), calc(100vw - 48px));
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0;
    width: var(--shelf-len);
    height: auto;
  }
  .navmenu li {
    height: auto;
    width: 100%;
  }
  .spine {
    writing-mode: horizontal-tb;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 14px;
    box-shadow:
      inset 0 -7px 12px -8px rgba(12, 12, 12, 0.35),
      inset 0 2px 0 rgba(255, 255, 255, 0.6);
  }
  .spine--works { width: 100%; height: 48px; font-size: 20px; }
  .spine--qm { width: 92%; height: 26px; font-size: 16px; }
  .spine--writing { width: 84%; height: 26px; font-size: 16px; }
  /* in the pile the volume you are reading slides out of it, rather than
     rising into the book above */
  .spine.is--active {
    translate: 10px 0;
  }
  .spine--about { width: 76%; height: 22px; font-size: 14px; }
  .spine--owed { width: 88%; height: 30px; font-size: 16px; }
  /* lying flat the title runs clear of the seal on one line */
  .spine--owed .spine__title { white-space: nowrap; max-height: none; }
  .spine__seal {
    left: auto;
    right: 10%;
    top: -1px;
    bottom: -1px;
    height: auto;
    min-height: 0;
    width: 22%;
    min-width: 54px;
  }
  .shelf__note {
    margin-top: 4px;
    margin-bottom: 4px;
    width: var(--shelf-len);
    text-align: left;
  }
}

/* The statement scales down rather than being clipped: this text is real and
   variable-length, so the slot must never cut a sentence in half. It shrinks a
   step below the body size and scrolls only as a last resort. On a screen too
   short for the shelf and the whole statement, it is the statement that gives
   (shrinks and scrolls), never the contact row or the copyright beneath it:
   the bottom block is a column that may shrink, and only the statement in it
   has no floor. */
.navscreen__bottom {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.navscreen__about {
  flex: 0 1 auto;
  min-height: 0;
  /* the statement is for reading: the text face, at the reading size and
     measure (until 2026-11-13 it was set in capitals, centred, 88rem wide:
     capitals are titles and things you press) */
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-read);
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  max-height: calc(100svh - 30rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  margin: 0 auto calc(var(--sp) * 6);
  /* the shelf's own width (the line the books stand on), not a third one */
  max-width: min(var(--measure), 53rem);
}
.navscreen__about::-webkit-scrollbar {
  display: none;
}
/* its paragraphs, as written; one held back for want of room is not laid
   out at all (main.js, fitStatement) */
.navscreen__p {
  margin: 0;
}
.navscreen__p + .navscreen__p {
  margin-top: 0.5em;
}
.navscreen__p.is--held,
.navscreen__about.is--none {
  display: none;
}
@media (max-width: 768px) {
  .navscreen__about {
    max-height: calc(100svh - 24rem);
    /* (a little air under the shelf's note: its first line sat hard under it) */
    margin-top: calc(var(--sp) * 3);
    margin-bottom: calc(var(--sp) * 4);
  }
}
/* under the pile the statement keeps less air beneath it (after the rules
   above, or they would win) */
@media (max-height: 560px) {
  .navscreen__about {
    margin-bottom: calc(var(--sp) * 3);
  }
}
/* a window onto more text: whole lines, and a fade at its foot (main.js,
   fitStatement) */
.navscreen__about.is--more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.15em), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 1.15em), transparent);
}
.navscreen__anchors {
  /* the bar: what you press, in capitals, at the foot in the middle, as on
     every screen (until 2026-11-13 Contact stood in one corner and the two
     links in the other) */
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: calc(var(--sp) * 8);
}
/* The frame in the room, where a page's running head is not printed (the
   shelf, and the book lying open): the name top-left and where this is
   top-right, in the register, the paper dimmed. */
.roomhead {
  position: absolute;
  z-index: 2;
  top: var(--bar-pad);
  left: max(var(--frame-x), env(safe-area-inset-left, 0px));
  right: max(var(--frame-x), env(safe-area-inset-right, 0px));
  display: flex;
  justify-content: space-between;
  gap: 1em;
  pointer-events: none;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-reg);
  line-height: var(--bar-h);
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  color: var(--room-dim);
}
.navscreen__anchors .anchor-item {
  perspective: 1000px;
}
.navscreen__anchors .anchor-item a {
  display: inline-block;
  line-height: 1;
  border-bottom: 2px solid transparent;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: translateY(50%) rotateX(-40deg);
  backface-visibility: hidden;
  opacity: 0;
}
.navscreen__anchors .anchor-item a:hover {
  border-color: var(--ink);
}
.anchor-item--socials {
  display: flex;
  gap: calc(var(--sp) * 6);
}
.social-short { display: none; }
@media (max-width: 768px) {
  .social-full { display: none; }
  .social-short { display: inline; }
  /* IG and FB are two letters each: each is padded out to a 44px target,
     and they stand far enough apart that the targets do not overlap */
  .anchor-item--socials { gap: calc(var(--sp) * 8); }
  .navscreen__anchors .anchor-item--socials a {
    padding: 10px 14px;
    margin: -10px -14px;
  }
}
body.js-nav--opening:not(.js-nav--closing) .navscreen,
body.js-nav--open:not(.js-nav--closing) .navscreen {
  pointer-events: all;
  /* 100% of a fixed element on iOS Safari is the layout viewport, which
     stops short of the floating toolbar: a strip of the page showed beneath
     the open menu. The large viewport unit runs the sheet all the way down. */
  height: 100%;
  height: 100lvh;
  visibility: visible;
  filter: blur(0);
  transition: height 0.01s ease, visibility 0.01s ease, filter 0.49s var(--ease-soft);
}
body.js-nav--opening:not(.js-nav--closing) .navscreen__inner,
body.js-nav--open:not(.js-nav--closing) .navscreen__inner {
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
body.js-nav--opening:not(.js-nav--closing) .navscreen__anchors .anchor-item a,
body.js-nav--open:not(.js-nav--closing) .navscreen__anchors .anchor-item a {
  transform: none;
  opacity: 1;
  transition: transform 0.79s var(--ease) 0.1s, opacity 0.79s var(--ease) 0.1s;
}
body.js-nav--opening:not(.js-nav--closing) .navscreen__anchors .anchor-item:nth-child(2) a,
body.js-nav--open:not(.js-nav--closing) .navscreen__anchors .anchor-item:nth-child(2) a {
  transition-delay: 0.13s;
}
body.js-nav--opening:not(.js-nav--closing) .js-splitlines .line .line__inner,
body.js-nav--open:not(.js-nav--closing) .js-splitlines .line .line__inner {
  transform: none;
  opacity: 1;
}
body.js-nav--closing .navscreen__anchors .anchor-item a,
body.js-nav--closing .navscreen .js-splitlines .line .line__inner {
  transform: translateY(-50%) rotateX(40deg);
  opacity: 0;
  transition: all 0.79s var(--ease);
  transition-delay: 0s !important;
}
/* In flow, not absolute: an absolutely-positioned line inside a zero-height
   footer prints straight through the contact row above it. */
.navscreen__footer {
  position: relative;
  margin-top: calc(var(--sp) * 5);
}
.navscreen__footer .copyright {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-mini);
  text-transform: uppercase;
  letter-spacing: var(--track-reg);
  opacity: 0;
  filter: blur(8px);
  transition: all 0.49s var(--ease-soft);
}
body.js-nav--opening:not(.js-nav--closing) .navscreen__footer .copyright,
body.js-nav--open:not(.js-nav--closing) .navscreen__footer .copyright {
  opacity: 1;
  filter: blur(0);
  transition-delay: 0.3s;
}
body.js-nav--opening,
body.js-nav--open {
  overflow: hidden;
}
/* iOS Safari paints the document in the sliver between the layout viewport
   and its floating toolbar, and a fixed overlay cannot reach that sliver
   whatever its height — a strip of the collage showed under the open menu.
   While the menu is open the page beneath is simply not painted, so that
   sliver shows the body's own paper instead. */
@media (max-width: 768px) {
  body.js-nav--opening #smoothscroll,
  body.js-nav--open:not(.js-nav--closing) #smoothscroll {
    visibility: hidden;
  }
}

/* --------------------------------------------------------------- overview */
.overview {
  overflow: hidden;
}
.overview__grid {
  --edge-pull: 12vh;   /* pulls row 1 above the fold                    */
  --col-gap: 6vw;
  --row-gap: 22vh;
  /* Defaults live HERE, on the container — never on .media. JS writes the
     per-item offset onto .overview-item and .media inherits it; a `--shift-x`
     declared on .media itself would shadow that inherited value and pin every
     plate to its resting position, killing the deal-out entrance. */
  --shift-x: 0px;
  --shift-y: 0px;
  position: relative;
  width: 110%;
  left: -5%;
  top: calc(var(--edge-pull) * -1);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: var(--col-gap);
  row-gap: var(--row-gap);
  overflow: hidden;
}
@media (orientation: portrait) and (max-width: 768px) {
  .overview__grid {
    --col-gap: calc(var(--sp) * 4);
    --edge-pull: 8vh;
    width: 100%;
    left: 0;
  }
}
.overview-item {
  position: relative;
  /* base layer for every plate — above the wordmark (z-index 0) whether or not
     it animates. The is--visible entrance raises this per-plate during deal-out;
     non-animated plates keep this floor, so the name stays behind all of them. */
  z-index: 1;
  height: calc((100svh + var(--edge-pull) * 2) / 3 - var(--row-gap) * 2 / 3);
  /* Hidden with visibility, never opacity. A plate painted at opacity 0 on the
     first frame is never credited when it later appears, so the page's largest
     paint fell to the small line under the name at ~3.1s while the plates had
     been on screen since ~1s. A plate that is not painted at all is credited
     the moment it lands. Visually identical: the pop-in was a step anyway. */
  visibility: hidden;
}
.overview-item:nth-child(5n + 2),
.overview-item:nth-child(5n + 4) {
  transform: translateY(calc(50% + var(--row-gap) / 2));
}
.overview-item .media {
  /* no --shift-x/--shift-y here: the value must come from .overview-item */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 120%;
  transform: translate(calc(var(--shift-x) - 50%), calc(var(--shift-y) - 50%));
}
@media (orientation: portrait) and (max-width: 768px) {
  .overview-item .media {
    width: 160%;
    height: 70%;
  }
}
.overview-item .media img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
/* entrance: fade in per shuffled z-order, then glide from centre stack     */
body.has--loaded .overview-item {
  visibility: visible;
}
.overview-item.is--visible {
  z-index: var(--z, 1);
  transition: visibility 0s;
  /* stagger the pop-in, but cap it so a large collage still fills fast */
  transition-delay: calc(min(var(--z, 1), 25) * 0.1s);
}
body.has--finished .overview-item.is--visible .media {
  transform: translate(-50%, -50%);
  transition: transform 0.2s var(--ease);
  transition-delay: calc(var(--stagger, 1) * 0.01s);
  transition-duration: var(--travel, 0.9s);
}
html.has--landed .overview-item,
html.has--landed .overview-item .media {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ----------------------------------------------------------------- wordmark */
.wordmark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* The name lives BEHIND the photographs — they slice through it. Every
     overview-item sits at z-index >= 1 (below), so this stays the lowest layer
     in the collage. Do not raise this above the items. */
  z-index: 0;
  max-width: 65%;
  width: max-content;
  font-size: var(--fs-hero);
  line-height: 1;
  text-align: center;
  perspective: 1000px;
  pointer-events: none;
  opacity: 0;
}
.wordmark__inner {
  display: block;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: translateY(50%) rotateX(-40deg);
  backface-visibility: hidden;
  opacity: 0;
  filter: blur(12px);
}
/* Phones stack the name: given names over surname. Left to the browser it
   wrapped by accident — two lines in Safari at 390px wide, one sliced line at
   402px, never in Chrome — so the phone composition depended on the model.
   Stacked, it sits whole between the side plates on every phone. */
.wordmark__line {
  white-space: nowrap;
}
@media (max-width: 768px) and (orientation: portrait) {
  .wordmark {
    max-width: none;
  }
  .wordmark__line {
    display: block;
  }
}
@media (min-width: 769px), (orientation: landscape) {
  .wordmark {
    white-space: nowrap;
  }
}
body.is--home.has--finished .wordmark {
  opacity: 1;
}
body.is--home.has--finished .wordmark__inner {
  transform: none;
  opacity: 1;
  filter: blur(0);
  transition: all 0.79s var(--ease) 0.6s;
}
html.has--landed body.is--home .wordmark {
  opacity: 1;
}
html.has--landed body.is--home .wordmark__inner {
  transform: none;
  opacity: 1;
  filter: blur(0);
}
/* The register line under the name: role and city, so the first second says
   who this is and where. Small mono, and it arrives a beat after the name. */
.wordmark__register {
  display: block;
  margin-top: calc(var(--sp) * 3);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-mini);
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  white-space: nowrap; /* one line, always: a wrapped file line reads as a mistake */
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.79s var(--ease) 1.1s, filter 0.79s var(--ease) 1.1s;
}
/* On a phone the side plates slice the name by design, but they would slice
   small type into nonsense. The role alone fits between them; the city waits
   for the menu and the About page. */
@media (max-width: 768px) {
  .wordmark__city {
    display: none;
  }
}
body.is--home.has--finished .wordmark__register,
html.has--landed body.is--home .wordmark__register {
  opacity: 0.65;
  filter: blur(0);
}

/* ------------------------------------------------------- hover register */
/* One fixed mono line that follows the pointer over any plate carrying
   data-register and files it: title · place · year · Pl. NN/NN. White under a
   difference blend, like the work-page names: ink on paper, inverted across a
   photograph. There is no pointer to follow on a touch screen, so it is off
   there — the same lines live in the focus captions. */
.register {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  pointer-events: none;
  color: #fff;
  mix-blend-mode: difference;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-mini);
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s var(--ease-soft);
  will-change: transform;
}
.register.is--on {
  opacity: 1;
}
body.js-nav--open .register,
body.js-nav--opening .register,
html.js-swap--out .register {
  opacity: 0;
}
@media (hover: none), (max-width: 768px) {
  .register {
    display: none;
  }
}

/* ------------------------------------------------------------- work: grid */
.projects {
  overflow: hidden;
}
.view--grid .projects__grid {
  /* Two columns, the right one a half-step down. (Tightened 2026-11-13: a
     row took a whole cell of air under it and the page opened on 200px of
     nothing, so a screen held one cover and a half; now it holds two or
     three. The grid also keeps clear of the year rail at the right, 9vw to
     the left's 6vw.) */
  --cell: 32vw;
  --gap: calc(85vw - var(--cell) * 2);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--gap);
  row-gap: calc(var(--cell) * 0.35);
  width: 85vw;
  margin: calc(var(--bar-h) + var(--bar-pad) * 2 + 2vw) 9vw 12vw 6vw;
}
.view--grid .projects__grid:has(.project-grid-item:last-child:nth-child(even)) {
  padding-bottom: var(--cell);
}
@media (max-width: 768px) {
  .view--grid .projects__grid {
    --cell: 36vw;
    margin: 24vw auto;
  }
}
.view--grid .project-grid-item {
  position: relative;
  width: calc(var(--cell) - 1px);
  height: var(--cell);
}
.view--grid .project-grid-item:nth-child(even) {
  transform: translateY(calc(50% + 5.6vw));
}
.view--grid .project-grid-item .media {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.view--grid .project-grid-item img {
  max-width: 48vw;
  max-height: 48vw;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  /* A phone shows the covers one to a row, across the screen, each with its
     line under it (2026-11-13). Until then they were set two abreast and a
     half-step apart as on a desktop, 156px wide beside an empty half of the
     screen, with their captions on three and four lines. */
  .view--grid .projects__grid {
    display: block;
    width: auto;
    margin: calc(var(--bar-h) + var(--bar-pad) * 2 + var(--sp) * 6) calc(var(--sp) * 4 + var(--fore-w)) calc(var(--bar-h) + var(--bar-pad) * 2 + var(--sp) * 10) calc(var(--sp) * 4);
    padding-bottom: 0 !important;
  }
  .view--grid .project-grid-item,
  .view--grid .project-grid-item:nth-child(even) {
    display: block;
    width: 100%;
    height: auto;
    transform: none;
    margin-bottom: calc(var(--sp) * 12);
  }
  .view--grid .project-grid-item .media,
  .view--grid .project-grid-item:nth-child(even) .media {
    position: static;
    transform: none;
    display: block;
  }
  .view--grid .project-grid-item img {
    display: block;
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
  }
  .view--grid .project-grid-item .media__caption {
    position: static;
    /* (a span in the flow is inline, and an inline box's padding makes no
       room: in Safari's engine the line sat hard against the photograph) */
    display: block;
    padding-top: calc(var(--sp) * 2);
  }
}

/* a cover's file line: under it, from its left edge, on two lines (its
   title in ink; where and when, and its page), like a plate's in the book */
.view--grid .project-grid-item .media__caption {
  left: 0;
  transform: none;
  width: 100%;
  max-width: none;
  text-align: left;
  text-wrap: balance;
}
.view--grid .project-grid-item .media__caption .caption__t,
.view--grid .project-grid-item .media__caption .caption__f {
  display: block;
}
/* the covers carry their names now: the layer of names that came up over
   them (the one under the pointer; on a phone, the centred cover's) is off */
.view--grid .projects__list {
  display: none !important;
}

/* ------------------------------------------------------- chronology rail */
/* Every year the archive is filed under, newest first, fixed on the right
   edge. The year of the project nearest the viewport centre is lit; a click
   glides to that year's first project. It sits inside the wrapper's blending
   group and is authored white, like the names: ink on paper, inverted where a
   cover passes beneath. */
.years {
  position: fixed;
  right: calc(var(--sp) * 6);
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(var(--sp) * 1);
  mix-blend-mode: difference;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.49s var(--ease), filter 0.49s var(--ease);
}
body.has--loaded .years,
html.js-swap--in .years {
  opacity: 1;
  filter: blur(0);
  transition-delay: 0.2s;
}
body.js-nav--opening:not(.js-nav--closing) .years,
body.js-nav--open:not(.js-nav--closing) .years {
  opacity: 0;
  filter: blur(12px);
  transition-delay: 0s;
}
.years__item {
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: calc(var(--sp) * 1.5) 0 calc(var(--sp) * 1.5) calc(var(--sp) * 4);
  cursor: pointer;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-mini);
  letter-spacing: var(--track-reg);
  line-height: 1.2;
  opacity: 0.35;
  transition: opacity 0.49s var(--ease);
  text-transform: uppercase;
}
.years__item.is--active,
.years__item:hover {
  opacity: 1;
}
.years__item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* On a touch screen the rail is a LABEL, not a control: the year in view,
   top-left in the bar row, no taps. A tappable rail on the right edge sat over
   the right-hand covers and stole their taps (found in Safari) — and a
   landscape phone or a tablet has the same thumbs at desktop widths. */
.years.years--label {
  right: auto;
  left: var(--bar-pad);
  top: var(--bar-pad);
  transform: none;
  pointer-events: none;
  gap: 0;
  align-items: flex-start;
  mix-blend-mode: normal;
  /* above every plate: the deal-out gives each opening plate a random
     stacking order (--z, up to the number of plates on the first screen), so
     at 6 the year vanished whenever the top-left plate drew a high number */
  z-index: 50;
}
.years--label .years__item {
  display: none;
  padding: 0;
  font-size: var(--fs-mini);
  line-height: var(--bar-h);
  color: var(--ink);
  opacity: 1;
  -webkit-text-stroke: 3px var(--stock);
  paint-order: stroke fill;
}
.years--label .years__item.is--active {
  display: block;
}
@media (hover: none), (max-width: 768px) {
  .years {
    right: auto;
    left: var(--bar-pad);
    top: var(--bar-pad);
    transform: none;
    pointer-events: none;
    gap: 0;
    align-items: flex-start;
    /* on the band at the head of the page (see "the frame holds still") */
    z-index: 9;
  }
  .years__item {
    display: none;
    font-size: var(--fs-reg);
    line-height: var(--bar-h);
    padding: 0;
    color: var(--ink);
    opacity: 1;
    /* a paper halo around the glyphs, not a slip: legible over a cover that
       scrolls beneath, invisible over paper, and it bites no rectangle out of
       a photograph */
    -webkit-text-stroke: 3px var(--stock);
    paint-order: stroke fill;
  }
  .years__item.is--active {
    display: block;
  }
}
/* centre hover name (grid view) */
.view--grid .projects__list {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  /* the blend lives on the fixed element itself — putting it on a child would
     be isolated by this element's own stacking context and never reach the page */
  mix-blend-mode: difference;
}
.view--grid .project-list-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  text-align: center;
  perspective: 1000px;
}
.view--grid .project-name {
  display: inline-block;
  /* White under difference: over paper this computes to |paper − 255| ≈
     (10,12,15) — which IS the ink colour — and over a dark photograph it
     flips to light. The name stays readable across any crossing, per-pixel. */
  color: #fff;
  font-size: var(--fs-hero);
  line-height: 1.1;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: translateY(50%) rotateX(-90deg);
  backface-visibility: hidden;
  opacity: 0;
  filter: blur(12px);
}
.view--grid .project-list-item.js-hovering .project-name {
  transform: none;
  opacity: 1;
  filter: blur(0);
  transition: all 0.79s var(--ease);
}
.view--grid .project-list-item.js-leaving .project-name {
  transform: translateY(-50%) rotateX(90deg);
  opacity: 0;
  filter: blur(12px);
  transition: all 0.79s var(--ease);
}

/* Placed after the desktop rules above so it wins at equal specificity.
   Without a pointer the names are driven by the scroll: main.js flips in the
   name of the cover nearest the viewport centre. On a phone it sits in the
   half of the row the cover leaves empty — odd covers are on the left, so
   their names read on the right, and the reverse — never over a photograph.
   Reads towards its cover. */
@media (max-width: 768px) {
  .view--grid .projects__list {
    top: 50%;
    left: 0;
    right: 0;
    transform: none;
  }
  .view--grid .project-list-item {
    top: 0;
    left: auto;
    right: 6vw;
    width: 40vw;
    transform: translateY(-50%);
    text-align: left;
  }
  .view--grid .project-list-item:nth-child(even) {
    left: 6vw;
    right: auto;
    text-align: right;
  }
  .view--grid .project-name {
    font-size: var(--fs-h3);
    line-height: 1.05;
    text-wrap: balance;
  }
}

/* ------------------------------------------------------------- work: list */
/* The list is the book's contents page at full size (2026-11-13: until then
   a wall of 80px capitals, centred, a fourth design for the same 22
   projects). One row per chapter, as the book's own contents sets them: its
   number, its title in capitals, where and when in the register, and the
   page it starts on. */
.projects__label,
.project-no,
.project-reg,
.project-folio {
  display: none;
}
/* (the covers are the grid's: the contents are type alone. Until 2026-11-13
   the cover of the name under the pointer came up behind the list.) */
.view--list .projects__grid {
  display: none;
}
.projects.view--list {
  --toc-w: min(980px, 100vw - 2 * 120px);
  --rule: rgba(12, 12, 12, 0.14);
}
.view--list .projects__list {
  width: var(--toc-w);
  margin: 0 auto;
  min-height: 100svh;
  padding: calc(var(--bar-h) + var(--bar-pad) * 2 + var(--sp) * 10) 0 calc(var(--bar-h) + var(--bar-pad) * 2 + var(--sp) * 12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.view--list .projects__label,
.view--list .project-no,
.view--list .project-reg,
.view--list .project-folio {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-reg);
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.view--list .projects__label {
  /* the head of the list, though it is the list's last child: the grid
     places each name by its row's place among its siblings (odd, even) */
  order: -1;
  display: flex;
  justify-content: space-between;
  padding-bottom: calc(var(--sp) * 3);
  border-bottom: 1px solid var(--ink);
}
.view--list .project-list-item {
  display: grid;
  /* the title is never cut short: the place gives way first */
  grid-template-columns: 2.2em minmax(0, max-content) minmax(0, 1fr) 3em;
  align-items: baseline;
  column-gap: calc(var(--sp) * 4);
  padding: 9px 0 7px;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.3s var(--ease-soft);
}
.view--list .project-name {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: var(--fs-bar);
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(6px);
}
.view--list .project-reg {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.project-place {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-when {
  flex: none;
  white-space: pre;
}
/* between a phone and a wide screen the longest titles leave the place no
   room: the year and the count stand alone there */
@media (min-width: 769px) and (max-width: 1179px) {
  .view--list .project-place,
  .view--list .project-sep {
    display: none;
  }
}

.view--list .project-folio {
  text-align: right;
  color: var(--ink);
}
@media (hover: hover) {
  .view--list .project-list-item:hover { padding-left: 0.5em; }
}
body.has--loaded .view--list .project-name {
  transform: none;
  opacity: 1;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
body.has--loaded .view--list .project-list-item:nth-child(n + 2) .project-name { transition-delay: 0.02s; }
body.has--loaded .view--list .project-list-item:nth-child(n + 5) .project-name { transition-delay: 0.06s; }
body.has--loaded .view--list .project-list-item:nth-child(n + 9) .project-name { transition-delay: 0.1s; }
body.has--loaded .view--list .project-list-item:nth-child(n + 14) .project-name { transition-delay: 0.14s; }
body.has--loaded .view--list .project-list-item:nth-child(n + 19) .project-name { transition-delay: 0.18s; }
/* a phone: the title and its page on one line, the register under them */
@media (max-width: 768px) {
  .projects.view--list {
    --toc-w: calc(100vw - 2 * var(--sp) * 9);
  }
  .view--list .projects__list {
    justify-content: flex-start;
  }
  .view--list .project-list-item {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: calc(var(--sp) * 3);
    row-gap: 1px;
    padding: 9px 0 8px;
  }
  .view--list .project-no { display: none; }
  .view--list .project-name {
    grid-column: 1;
    grid-row: 1;
    white-space: normal;
    text-wrap: balance;
  }
  .view--list .project-folio { grid-column: 2; grid-row: 1; }
  .view--list .project-reg {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
}

/* ---------------------------------------------------------------- gallery */
.gallery {
  position: relative;
  min-height: 100svh;
  padding-left: calc(var(--sp) * 4);
  padding-right: calc(var(--sp) * 4);
}
@media (max-width: 768px) {
  .gallery {
    padding-left: 0;
    padding-right: 0;
  }
}
/* veil that blurs the rail when info/index opens */
.gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  backdrop-filter: none;
  transition: backdrop-filter 0.49s var(--ease-soft);
}
/* (not for the contact sheet: the sheet is a print laid on the page, and
   the veil sits over it) */
body.js-info--opening .gallery::before,
body.js-info--open .gallery::before {
  backdrop-filter: blur(12px);
}
body.js-info--open .gallery::before {
  backdrop-filter: none;
}

/* The chapter's film (2026-11-15; until then a rail of loose thumbnails,
   the one in view pushed out from the rest): every frame at one width on
   the black of the film, numbered under the picture, the plate on the stage
   ringed in grease pencil (main.js draws the ring by hand, a seeded path a
   little off square, its ends crossing). The frames are cells of the film
   laid end to end, so the film is as long as its frames; it runs past as
   the page scrolls (desktop: up the left, on the frame's inset; a phone:
   across the foot), the frame at the centre on the stage. The ring keeps
   2.6px or more of film between its line and any photograph, its own or a
   neighbour's, and passes above the numbers (verify.mjs walks it). */
.gallery {
  --film: #0c0c0c;
  --film-ink: rgba(245, 243, 240, 0.72);
  --print: #fdfdfb;                        /* photographic paper: the contact sheet */
  --row: clamp(96px, 15vw, 168px);         /* a strip's height on the sheet */
}
/* thumbs rail (desktop: vertical left; mobile: fixed strip at bottom) */
.gallery__thumbs,
.gallery__pseudo {
  position: relative;
  z-index: 11;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: calc(50vh - var(--first-h, 0px) / 2);
  padding-bottom: calc(50vh - var(--last-h, 0px) / 2);
}
/* the sheet's head is written on the sheet alone */
.gallery__thumbs > .sheet__head {
  display: none;
}
/* the rail's box spans the page and lies over the stage: only its plates
   take a click, so the photograph on the stage can be opened beneath it */
.gallery__thumbs {
  pointer-events: none;
}
.gallery__thumbs__item {
  pointer-events: auto;
}
.gallery__pseudo {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding-left: calc(var(--sp) * 4);
}
/* the rail stands on the frame's inset, under the name (it stood 16px from
   the edge, in the gutter's shade; the film stands there too, since
   2026-11-15, where only its measuring twin stood) */
@media (min-width: 769px) {
  /* (and clear of a phone's camera on its side, as the name is) */
  .gallery__pseudo {
    padding-left: max(var(--frame-x), env(safe-area-inset-left, 0px));
  }
  .gallery__thumbs {
    padding-left: calc(max(var(--frame-x), env(safe-area-inset-left, 0px)) - var(--sp) * 4);
  }
}
@media (max-width: 768px) {
  .gallery__thumbs,
  .gallery__pseudo {
    position: fixed;
    /* over the bar */
    bottom: calc(var(--bar-h) + var(--bar-pad) + max(var(--bar-pad), env(safe-area-inset-bottom, 0px)));
    left: 0;
    top: auto;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: calc(50vw - var(--first-w, 0px) / 2);
    padding-right: calc(50vw - var(--last-w, 0px) / 2);
  }
}
/* a frame: a cell of the film, the picture 64px wide with 9px of film
   either side, 4px over it (10px over the first, the film's leader) and
   24px under it, where the number is printed (the pencil passes between
   the picture and the number) */
.gallery__thumbs__item,
.gallery__pseudo__item {
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
  width: 82px;
  padding: 4px 9px 24px;
  background: var(--film);
  flex: none;
  -webkit-tap-highlight-color: transparent;
}
.gallery__thumbs__item:first-of-type,
.gallery__pseudo__item:first-of-type {
  padding-top: 10px;
}
.gallery__thumbs__item .media,
.gallery__pseudo__item .media,
.gallery__indexpseudo__item .media {
  position: relative;
}
.gallery__thumbs__item img,
.gallery__pseudo__item img,
.gallery__indexpseudo__item img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
/* a phone's film runs across the foot: every frame 46px high, 5px of film
   between two pictures (9px at the film's ends), 10px over them */
@media (max-width: 768px) {
  .gallery__thumbs__item,
  .gallery__pseudo__item {
    width: calc(46px * var(--ar, 1.5) + 10px);
    padding: 10px 5px 24px;
  }
  .gallery__thumbs__item:first-of-type,
  .gallery__pseudo__item:first-of-type {
    width: calc(46px * var(--ar, 1.5) + 14px);
    padding: 10px 5px 24px 9px;
  }
  .gallery__thumbs__item:last-of-type,
  .gallery__pseudo__item:last-of-type {
    width: calc(46px * var(--ar, 1.5) + 14px);
    padding: 10px 9px 24px 5px;
  }
}
/* the number, in the film's own small print, under the picture's left edge */
.gallery__thumbs .thumb-num {
  display: block;
  position: absolute;
  left: 9px;
  bottom: 4px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.08em;
  color: var(--film-ink);
  pointer-events: none;
}
@media (max-width: 768px) {
  .gallery__thumbs .thumb-num {
    left: 5px;
  }
  .gallery__thumbs__item:first-of-type .thumb-num {
    left: 9px;
  }
}
/* the grease pencil: round the picture, 8px out, never on a photograph */
.ring {
  position: absolute;
  left: -8px;
  top: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  max-width: none;
  overflow: visible;
  pointer-events: none;
  display: none;
}
.ring path {
  fill: none;
  stroke: var(--safelight);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gallery__thumbs__item.is--active .ring {
  display: block;
}
/* (a frame in flight between the film and the sheet carries no ring: it is
   drawn again where the frame lands) */
body.js-index--preparing .gallery__thumbs__item .ring,
body.js-index--opening .gallery__thumbs__item .ring,
body.js-gallery--preparing .gallery__thumbs__item .ring,
body.js-gallery--opening .gallery__thumbs__item .ring {
  display: none;
}
/* focus: light, on the film, round the picture (never the pencil's red,
   which marks the plate on the stage) */
.gallery__thumbs .gallery__thumbs__item[role="button"]:focus-visible {
  outline: none;
}
.gallery__thumbs__item:focus-visible .media {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}
/* the film's entrance: it slides in from the left (a phone: up from the
   foot), frame by frame outward from the one on the stage */
.gallery__thumbs__item {
  transition: transform 0.79s var(--ease);
  transform: translateX(calc(-100% - var(--frame-x)));
}
@media (max-width: 768px) {
  .gallery__thumbs__item {
    transform: translateY(calc(100% + var(--bar-h) + var(--bar-pad) * 3));
  }
}
body.has--loaded .gallery__thumbs__item {
  transform: none;
  transition-delay: calc(var(--startdelay, 0) * 0.03s);
}

/* focus stage */
.gallery__focus {
  position: fixed;
  z-index: 9;
  top: calc(var(--bar-h) + var(--bar-pad) * 2);
  left: 50%;
  transform: translateX(-50%);
  height: calc(100svh - (var(--bar-h) + var(--bar-pad) * 2) * 2);
  width: calc(100vw - (var(--sp) * 20 + var(--sp) * 4 + var(--sp) * 4 + var(--sp) * 16) * 2);
  opacity: 0;
  transition: opacity 0.79s var(--ease);
}
@media (max-width: 768px) {
  /* a phone: one row above the stage (the + and the running head); below it
     the strip of plates and the bar. --stage-top and --stage-foot are what
     the stage keeps clear, read by the plate's own limits below. */
  .gallery {
    --stage-top: calc(var(--bar-h) + var(--bar-pad) * 2 + var(--sp) * 2);
    /* the bar's row, the film (80px: 10 over the frames, 46, 24 under), and
       14px of air over it (until 2026-11-15 the strip was 64px and kept 36px
       over it for the plate in view, which stood taller than the rest) */
    --stage-foot: calc(var(--bar-h) + var(--bar-pad) * 2 + 80px + 14px + env(safe-area-inset-bottom, 0px));
  }
  .gallery__focus {
    top: var(--stage-top);
    height: calc(100svh - var(--stage-top) - var(--stage-foot));
    width: calc(100vw - var(--sp) * 8);
  }
}
body.has--loaded .gallery__focus {
  opacity: 1;
  transition-delay: 0.49s;
}
body.has--finished .gallery__focus {
  transition-delay: 0s;
}
body.js-info--opening .gallery__focus,
body.js-info--open .gallery__focus,
body.js-index--opening .gallery__focus,
body.js-index--open:not(.js-gallery--opening) .gallery__focus {
  opacity: 0;
}
body.js-gallery--opening .gallery__focus {
  transition-delay: 0.29s;
}
/* (the plate is gone before the contact sheet's paper is down: it showed
   through the paper as it faded) */
body.js-index--preparing .gallery__focus,
body.js-index--opening .gallery__focus {
  transition: opacity 0.2s var(--ease-soft);
}
/* (faded out, the stage still took the pointer: it lies over the contact
   sheet, 9 over the sheet's 7, and a click or a tap on a frame opened
   nothing; found 2026-11-15, the day the sheet went under the bands) */
body.js-index--preparing .gallery__focus,
body.js-index--opening .gallery__focus,
body.js-index--open .gallery__focus {
  pointer-events: none;
}
.gallery__focus__item {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.gallery__focus__item.is--active {
  opacity: 1;
}
/* the stacked plates that are not showing take no clicks: the one in view
   opens in the lightbox */
.gallery__focus__item:not(.is--active) {
  pointer-events: none;
}
/* a sideways swipe on the stage turns the plate (main.js): a phone hands
   that gesture to the page and keeps up, down and the pinch for itself */
.gallery__focus__item {
  touch-action: pan-y pinch-zoom;
}
.gallery__focus__item .media {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
}
.gallery__focus__item .media img {
  max-height: calc(100svh - (var(--bar-h) + var(--bar-pad) * 2) * 2);
  max-width: calc(100vw - (var(--sp) * 20 + var(--sp) * 4 + var(--sp) * 4 + var(--sp) * 16) * 2);
  width: auto;
  height: auto;
}
@media (max-width: 768px) {
  .gallery__focus__item .media img {
    max-height: calc(100svh - var(--stage-top) - var(--stage-foot));
    max-width: calc(100vw - var(--sp) * 8);
  }
}
/* One plate (2026-11-13): a photograph is shown bare, with one file line
   under it, in the register, on the page's centre line: what it is (in
   ink), then where it is filed. (Until then the line ran up the plate's
   right edge on a desktop.) A line longer than a narrow plate runs on past
   its edges, to sixty characters, and then breaks. */
.media__caption {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: max(100%, 60ch);
  text-align: center;
  text-wrap: balance;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-reg);
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: var(--track-reg);
  color: var(--muted);
}
.media__caption .caption__t {
  color: var(--ink);
}
/* a chapter's stage keeps the line's room under the tallest plate */
@media (min-width: 769px) {
  .gallery__focus__item .media {
    top: calc(50% - 14px);
    max-height: calc(100% - 28px);
  }
  /* every plate keeps the same air: 24px clear of the frame's rows above and
     below, whatever its shape (an upright plate used to run from 16px under
     the + to 20px above the bar, while a wide one had 76px either side) */
  .gallery__focus__item .media img {
    max-height: calc(100svh - (var(--bar-h) + var(--bar-pad) * 2) * 2 - 28px - var(--sp) * 12);
  }
}
/* The line's parts: the place and the year give way to an ellipsis where
   the line is short of room; the plate's number and its page never do. */
.media__caption .caption__title {
  min-width: 0;
}
.media__caption .caption__file {
  white-space: nowrap;
}
/* A phone sets the line on two, the title first, as under the print in the
   darkroom's tray: under the plate, across the stage's width, each line cut
   short with an ellipsis where it must be (never the plate's number or its
   page). The plate keeps 40px clear beneath it for them. (Until 2026-11-13 a
   phone's caption was a second copy at the foot of the stage, away from its
   plate.) */
@media (max-width: 768px) {
  .gallery__focus__item .media .media__caption {
    width: calc(100vw - var(--sp) * 8);
    max-width: none;
    /* (after the base rule's balance: `white-space` sets the wrap mode too) */
    white-space: nowrap;
  }
  .gallery__focus__item .media__caption .caption__t {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gallery__focus__item .media__caption .caption__sep {
    display: none;
  }
  .gallery__focus__item .media__caption .caption__f {
    display: flex;
    justify-content: center;
    min-width: 0;
  }
  .gallery__focus__item .media__caption .caption__title {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gallery__focus__item .media__caption .caption__file {
    flex: none;
    /* the file part opens with its separator (" · Pl. 01/07"): as a flex item
       it starts a line of its own, where a leading space collapses to nothing
       and the year ran into the plate number — keep it as written */
    white-space: pre;
  }
  .gallery__focus__item .media {
    /* keep the caption's two lines clear beneath even a plate that fills the height */
    max-height: calc(100% - 40px);
    top: calc(50% - 20px);
  }
  .gallery__focus__item .media img {
    max-height: calc(100svh - var(--stage-top) - var(--stage-foot) - 40px);
  }
}
/* The chapter's opening (2026-11-15): with plate 01, as with its spread in
   the book, stand the chapter's number, its title, its place, year and
   plates, its quote with the name of the one who said it, and the first
   lines of its text; the plate takes the column the opening leaves, at its
   own proportions (--par), so it holds its size before its picture arrives
   (the flip from a cover lands on it). main.js lets the lines go, a
   sentence at a time, then the quote, where the screen is short of room. A
   desktop: the opening beside the plate, both on the stage's middle line.
   --sw and --sh are the stage's width and height, --cap the caption's room
   under the plate; --pw and --ph the most the plate may take. */
.gallery__focus__item--opens {
  --sw: calc(100vw - (var(--sp) * 20 + var(--sp) * 4 + var(--sp) * 4 + var(--sp) * 16) * 2);
  --sh: calc(100svh - (var(--bar-h) + var(--bar-pad) * 2) * 2);
  --cap: calc(28px + var(--sp) * 12);
  /* (the opening's column takes 42% of the stage at most: with a large
     default font the stage, in rem, narrows and a column in px did not, and
     plate 01 came to nothing near the breakpoint) */
  --ow: min(clamp(240px, 26vw, 340px), calc(var(--sw) * 0.42));
  --og: clamp(32px, 3.9vw, 56px);
  --pw: calc(var(--sw) - var(--ow) - var(--og));
  --ph: calc(var(--sh) - var(--cap));
}
@media (max-width: 768px) {
  .gallery__focus__item--opens {
    --sw: calc(100vw - var(--sp) * 8);
    --sh: calc(100svh - var(--stage-top) - var(--stage-foot));
    --cap: 40px;
  }
}
.opener {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--ow);
  max-height: 100%;
  text-align: left;
}
.opener [hidden] {
  display: none !important;
}
.opener__reg {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-reg);
  line-height: 1.6;
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  color: var(--muted);
}
.opener__title {
  margin: 10px 0 14px;
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: clamp(30px, 3.9vw, 56px);
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.opener__quote {
  margin: 22px 0 12px;
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.opener__quote p {
  margin: 0;
}
.opener__cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
}
.opener__lead {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}
.gallery__focus__item--opens .media {
  left: calc(var(--ow) + var(--og) + (100% - var(--ow) - var(--og)) / 2);
  max-width: calc(100% - var(--ow) - var(--og));
}
.gallery__focus__item--opens .media img,
.gallery__focus__item--opens .media img[width] {
  width: min(var(--pw), calc(var(--ph) * var(--par, 1.5)));
  height: auto;
  aspect-ratio: var(--par, 1.5);
  max-width: none;
  max-height: none;
}
/* the plate's line keeps to the plate's column (a narrow plate's line ran on
   past its edges, into the opening's column and over its lines) */
.gallery__focus__item--opens .media__caption {
  max-width: min(max(100%, 60ch), var(--pw));
}
/* A phone upright, and a narrow screen (769 to 951px wide, an iPad upright):
   the opening over the plate, the two together on the stage's middle line
   (the plate keeps its caption's two lines under it). Until 2026-11-15 the
   narrow screens stood the opening beside the plate, which came out a
   quarter of the stage wide. */
@media (max-width: 951px) and (min-height: 561px), (max-width: 768px) and (orientation: portrait) {
  .gallery__focus__item--opens {
    --pw: var(--sw);
    --ph: calc(var(--sh) - 62px - var(--opener-h, 0px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
  }
  .opener {
    position: static;
    transform: none;
    width: auto;
    max-height: none;
  }
  .opener__title {
    margin: 6px 0 8px;
    font-size: clamp(28px, 8.4vw, 40px);
  }
  .opener__quote {
    margin: 12px 0 6px;
    font-size: 14px;
  }
  .opener__lead {
    font-size: 14px;
  }
  .gallery__focus__item--opens .media {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    align-self: center;
    max-width: 100%;
    max-height: none;
    margin-bottom: 40px;
  }
}
/* a phone on its side, and any screen as short: the opening beside the
   plate, with its number, its title and its line (until 2026-11-15 a phone
   narrower than 769px set it over the plate on its side too, and plate 01
   came out a stamp, or nothing) */
@media (max-height: 560px) and (orientation: landscape) {
  .gallery__focus__item--opens {
    --ow: calc(var(--sw) * 0.36);
    --og: 24px;
  }
  .opener__title {
    font-size: clamp(22px, 3.4vw, 34px);
  }
  .opener__quote,
  .opener__lead {
    display: none;
  }
}
/* Plate 01's line, over the opening or beside it on a short screen, is set
   on two as a phone sets it, at any width, across the plate's column (over
   the opening, the stage's width; beside it, the column the opening leaves,
   or the line ran over the opening). Set as on a desktop it ran to three
   lines on a screen 769 to 951px wide and to four on one short and wide,
   past the room kept for it and onto the bar. */
@media (max-width: 951px) and (min-height: 561px), (max-width: 768px), (max-height: 560px) and (orientation: landscape) {
  .gallery__focus__item--opens .media .media__caption {
    width: var(--pw);
    max-width: none;
    white-space: nowrap;
  }
  .gallery__focus__item--opens .media__caption .caption__t {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gallery__focus__item--opens .media__caption .caption__sep {
    display: none;
  }
  .gallery__focus__item--opens .media__caption .caption__f {
    display: flex;
    justify-content: center;
    min-width: 0;
  }
  .gallery__focus__item--opens .media__caption .caption__title {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gallery__focus__item--opens .media__caption .caption__file {
    flex: none;
    white-space: pre;
  }
}
/* the text page has the screen to itself: the strip of plates steps aside
   while Info is open (on a phone it took a fifth of the reading room; on a
   desktop it stood beside the text, lined up with nothing) */
.gallery__thumbs {
  transition: opacity 0.3s var(--ease-soft);
}
body.js-info--opening .gallery__thumbs,
body.js-info--open:not(.js-info--closing) .gallery__thumbs {
  opacity: 0;
  pointer-events: none;
}
body.js-info--opening .gallery__thumbs__item,
body.js-info--open:not(.js-info--closing) .gallery__thumbs__item {
  pointer-events: none;
}

/* The bar: what you press, in capitals, at the foot in the middle. (Until
   2026-11-13 a chapter's title stood in capitals at the top centre, where the
   + is on every other page; the title is in the running head now, and on the
   plate's caption, and the + is on every page.) */
.gallery__bottom,
.reading__bottom {
  position: fixed;
  bottom: var(--bar-pad);
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  gap: calc(var(--sp) * 8);
  width: max-content;
  white-space: nowrap;
  perspective: 1000px;
}
/* (On a reading page Back sat in flow at the foot of the column until
   2026-11-13: the text scrolled, and a fixed bar would have printed over it.
   The page now scrolls between two bands of the sheet, see "the frame holds
   still" below, so its bar is where the bar is on every page.) */
@media (max-width: 768px) {
  /* a phone: still at the foot, under the strip of plates (until 2026-11-13
     it stood at the top, under the title) */
  .gallery__bottom {
    bottom: max(var(--bar-pad), env(safe-area-inset-bottom, 0px));
    gap: calc(var(--sp) * 6);
  }
}
.gallery__bottom .anchor,
.reading__bottom .anchor {
  display: block;
  position: relative;
  font-size: var(--fs-bar);
  line-height: var(--bar-h);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: translateY(50%) rotateX(-40deg);
  backface-visibility: hidden;
  opacity: 0;
}
/* pad the hit area up to 44px without moving the type */
.gallery__bottom .anchor::after,
.reading__bottom .anchor::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 44px;
  transform: translate(-50%, -50%);
}
@media (min-width: 769px) {
  .gallery__bottom .anchor:hover,
  .reading__bottom .anchor:hover {
    border-color: var(--ink);
  }
}
body.has--loaded .gallery__bottom .anchor,
body.has--loaded .reading__bottom .anchor,
html.js-swap--in .reading__bottom .anchor {
  transform: none;
  opacity: 1;
  transition: opacity 0.79s var(--ease), transform 0.79s var(--ease);
}
body.has--loaded .gallery__bottom .anchor:nth-child(2) { transition-delay: 0.03s; }
body.has--loaded .gallery__bottom .anchor:nth-child(3) { transition-delay: 0.06s; }
body.has--loaded .gallery__bottom .anchor:nth-child(4) { transition-delay: 0.09s; }
/* the contact sheet's name: in full, and "Sheet" on a phone (its name read
   out is the full one at every size, from its label) */
.anchor__short {
  display: none;
}
@media (max-width: 768px) {
  .anchor__long {
    display: none;
  }
  .anchor__short {
    display: inline;
  }
}
/* four words on the narrowest phones (Info, Sheet, Lightbox, Back) */
@media (max-width: 380px) {
  .gallery__bottom {
    gap: calc(var(--sp) * 4);
  }
}
body.js-info--opening .js-infoopener,
body.js-info--open:not(.js-info--closing) .js-infoopener {
  border-color: var(--ink);
}
body.js-index--opening .js-indexswitch,
body.js-index--open:not(.js-index--closing) .js-indexswitch {
  border-color: var(--ink);
}

/* info overlay */
.gallery__info {
  position: fixed;
  z-index: 9;
  top: calc(var(--bar-h) + var(--bar-pad) * 2);
  left: 50%;
  transform: translateX(-50%);
  height: calc(100svh - (var(--bar-h) + var(--bar-pad) * 2) * 2);
  width: calc(100vw - (var(--sp) * 6 + var(--sp) * 32 + 100px) * 2);
  display: flex;
  align-items: center;
  text-align: center;
  opacity: 0;
  overflow-y: auto;
  pointer-events: none;
  /* a tab stop only while open: hidden, not just transparent, when closed */
  visibility: hidden;
  transition: opacity 0.79s var(--ease), visibility 0s linear 0.79s;
}
@media (max-width: 768px) {
  /* between the top row and the bar: the strip of plates steps aside for it */
  .gallery__info {
    top: var(--stage-top);
    height: calc(100svh - var(--stage-top) - (var(--bar-h) + var(--bar-pad) * 2 + var(--sp) * 3) - env(safe-area-inset-bottom, 0px));
    width: calc(100vw - var(--sp) * 8);
  }
}
.gallery__info__inner {
  margin: auto;
  max-width: var(--measure);
  padding: calc(var(--sp) * 8) 0;
}
/* The chapter's text page opens as About does: one line of the register,
   then the page's one title in the largest capitals (since 2026-11-13, when
   the title left the top of the chapter for the running head). */
.info__title {
  font-size: var(--fs-hero);
  line-height: 1;
  text-wrap: balance;
  margin: 0 0 calc(var(--sp) * 8);
}
/* Metadata + collaborator sit in the small mono register, like the captions;
   the essay itself drops out of the all-caps display face into a reading face. */
.info__meta,
.reading__meta,
.lock__meta {
  text-wrap: balance;
}
.info__meta {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-mini);
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: calc(var(--sp) * 6);
}
.info__meta--end {
  margin-bottom: 0;
  margin-top: calc(var(--sp) * 6);
}
.info__quote {
  font-size: var(--fs-bar);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: calc(var(--sp) * 8);
}
.info__quote cite {
  display: block;
  margin-top: calc(var(--sp) * 3);
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: var(--fs-mini);
  letter-spacing: var(--track-reg);
  opacity: 0.65;
  text-transform: uppercase;
}
.info__para {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-read);
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  margin-bottom: calc(var(--sp) * 4);
}
.info__para:last-of-type {
  margin-bottom: 0;
}
/* the sequenced projects: each plate filed after the essay, under its figure */
.info__sequence {
  margin-top: calc(var(--sp) * 10);
}
.info__block {
  padding-top: calc(var(--sp) * 6);
  margin-top: calc(var(--sp) * 6);
  border-top: 1px solid rgba(12, 12, 12, 0.12);
}
.info__block .info__meta {
  margin-bottom: calc(var(--sp) * 2);
}
.info__blocktitle {
  font-size: var(--fs-bar);
  line-height: 1.15;
  margin-bottom: calc(var(--sp) * 2);
}
.info__quote--block {
  font-size: var(--fs-about);
  margin: calc(var(--sp) * 4) 0 calc(var(--sp) * 5);
}
.info__block .info__para {
  margin-bottom: calc(var(--sp) * 4);
}
body.js-info--open .gallery__info {
  opacity: 1;
  pointer-events: all;
  z-index: 12;
  visibility: visible;
  transition: opacity 0.79s var(--ease), visibility 0s;
}
/* it takes focus programmatically when it opens; no ring for that */
.gallery__info:focus {
  outline: none;
}
body.js-info--open .gallery__info .js-splitlines .line .line__inner {
  transform: none;
  opacity: 1;
}
body.js-info--closing .gallery__info .js-splitlines .line .line__inner {
  transform: translateY(-50%) rotateX(40deg);
  opacity: 0;
  transition-delay: 0s;
}

/* The contact sheet (2026-11-15; the bar's Index until then, a centred grid
   of loose thumbnails): the chapter's frames laid out whole, as strips of
   film on photographic paper, the plate on the stage ringed, the sheet's
   head written along its top edge. The frames fly from the film onto the
   sheet and back (main.js, openIndex / closeIndexToThumb), each one box that
   changes size by its picture's proportions; the sheet's measuring twin
   (.gallery__indexpseudo) lays the paper down while they fly, and lifts it
   as they fly back. */
.gallery__indexpseudo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100svh;
  padding-left: calc(var(--sp) * 4);
  padding-right: calc(var(--sp) * 4);
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.js-index--opening .gallery__indexpseudo,
body.js-gallery--preparing .gallery__indexpseudo {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.49s var(--ease-soft);
}
body.js-gallery--opening .gallery__indexpseudo {
  opacity: 0;
  visibility: visible;
  transition: opacity 0.49s var(--ease-soft);
}
.gallery__indexpseudo__item {
  visibility: hidden;
}
/* the paper: one sheet, for the twin and for the frames laid on it */
.gallery__indexpseudo__items,
body.js-index--open .gallery__thumbs {
  box-sizing: border-box;
  width: min(1040px, calc(100vw - var(--sp) * 8));
  margin: calc(var(--bar-h) + var(--bar-pad) * 2) auto;
  padding: 22px 26px 30px;
  background: var(--print);
  box-shadow: 0 0 0 1px rgba(12, 12, 12, 0.08), 0 22px 44px -30px rgba(12, 12, 12, 0.55);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px 0;
}
body.js-index--open .gallery__thumbs {
  transform: none !important;
  left: 0 !important;
}
/* A long sheet scrolls, and passes under the head and foot of the page as a
   reading page does: the bands of the sheet are laid while it is open (and
   lifted as its frames fly back), and the frames on it lie under them, the
   bar and the print standing on them. */
.band--sheet {
  display: none;
}
body.js-index--open:not(.js-gallery--preparing):not(.js-gallery--opening) .band--sheet {
  display: block;
}
body.js-index--open:not(.js-gallery--preparing):not(.js-gallery--opening) .gallery__thumbs {
  z-index: 7;
}
/* (the paper is lifted at once as the frames leave it: the twin's fades) */
body.js-gallery--preparing .gallery__thumbs,
body.js-gallery--opening .gallery__thumbs {
  background: none;
  box-shadow: none;
}
.sheet__head {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 24px;
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-reg);
  line-height: 1.6;
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  color: var(--muted);
}
.sheet__head b {
  font-weight: 400;
  color: var(--ink);
}
body.js-index--open .gallery__thumbs > .sheet__head {
  display: flex;
}
body.js-gallery--preparing .gallery__thumbs > .sheet__head,
body.js-gallery--opening .gallery__thumbs > .sheet__head {
  visibility: hidden;
}
/* a frame on the sheet: its picture a strip's height, 5px of film either
   side (so a row of frames is a strip), 9px over it, 28px under it */
.gallery__indexpseudo__item,
body.js-index--opening .gallery__thumbs__item,
body.js-index--open .gallery__thumbs__item {
  position: relative;
  box-sizing: border-box;
  flex: none;
  width: calc(var(--row) * var(--ar, 1.5) + 10px);
  padding: 9px 5px 28px;
  background: var(--film);
}
body.js-index--open .gallery__thumbs .thumb-num {
  left: 6px;
  bottom: 6px;
}
body.js-index--opening .gallery__thumbs__item {
  transition: all 0.79s var(--ease) !important;
  transition-delay: calc(var(--startdelay, 0) * 0.015s) !important;
}
@media (max-width: 768px) {
  .gallery__indexpseudo__items,
  body.js-index--open .gallery__thumbs {
    padding: 16px 14px 22px;
    margin-top: calc(var(--bar-h) + var(--bar-pad) * 2 + var(--sp) * 2);
    margin-bottom: calc(var(--bar-h) + var(--bar-pad) * 2 + var(--sp) * 4 + env(safe-area-inset-bottom, 0px));
  }
  body.js-index--open .gallery__thumbs {
    position: relative;
    top: inherit;
    left: inherit;
    bottom: inherit;
  }
}
body.js-index--open .gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.js-index--open .gallery__thumbs__item {
  transform: none !important;
  transition: none !important;
}
/* and back onto the film */
body.js-gallery--opening .gallery__thumbs__item {
  transition: all 0.79s var(--ease) !important;
  transition-delay: calc(var(--startdelay, 0) * 0.015s) !important;
  width: 82px;
  padding: 4px 9px 24px;
}
@media (max-width: 768px) {
  body.js-gallery--opening .gallery__thumbs__item {
    width: calc(46px * var(--ar, 1.5) + 10px);
    padding: 10px 5px 24px;
  }
}


/* ------------------------------------------------------------- site footer */
.site-footer {
  position: fixed;
  bottom: var(--bar-pad);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  pointer-events: none;
  display: none;
  transition: all 0.79s var(--ease) 0.2s;
  /* same treatment as the header: the covers scroll beneath Grid / List */
  mix-blend-mode: difference;
  color: #fff;
}
.site-footer.is--shown {
  display: block;
}
.viewswitch {
  display: flex;
  gap: calc(var(--sp) * 8);
  perspective: 1000px;
}
.viewswitch__item {
  display: block;
  position: relative;
  font-size: var(--fs-bar);
  line-height: var(--bar-h);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: translateY(50%) rotateX(-40deg);
  backface-visibility: hidden;
  opacity: 0;
  filter: blur(12px);
  transition:
    opacity 0.49s var(--ease),
    filter 0.49s var(--ease),
    transform 0.49s var(--ease);
}
.viewswitch__item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 44px;
  transform: translate(-50%, -50%);
}
.viewswitch__item:hover,
.viewswitch__item.is--active {
  border-color: #fff; /* inside the blended footer: reads as ink */
}
body.has--loaded .site-footer.is--shown,
html.js-swap--out .site-footer.is--shown,
html.js-swap--in .site-footer.is--shown {
  pointer-events: all;
}
body.has--loaded .site-footer.is--shown .viewswitch__item,
html.js-swap--out .site-footer.is--shown .viewswitch__item,
html.js-swap--in .site-footer.is--shown .viewswitch__item {
  transform: none;
  opacity: 1;
  filter: blur(0);
}
body.has--loaded .site-footer.is--shown .viewswitch__item:nth-child(2),
html.js-swap--out .site-footer.is--shown .viewswitch__item:nth-child(2),
html.js-swap--in .site-footer.is--shown .viewswitch__item:nth-child(2) {
  transition-delay: 0.03s;
}
body.js-nav--opening:not(.js-nav--closing) .site-footer,
body.js-nav--open:not(.js-nav--closing) .site-footer {
  opacity: 0;
  filter: blur(12px);
  transition: all 0.49s var(--ease);
}

/* -------------------------------------------------------------------- 404 */
.notfound {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--bar-h) + var(--bar-pad) * 2) calc(var(--sp) * 6);
  text-align: center;
}
.notfound__code {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-mini);
  letter-spacing: var(--track-reg);
  opacity: 0.65;
  margin-bottom: calc(var(--sp) * 4);
  text-transform: uppercase;
}
.notfound__title {
  font-size: var(--fs-hero);
  line-height: 1;
  font-weight: 800;
  margin-bottom: calc(var(--sp) * 6);
}
.notfound__body {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-read);
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  max-width: 44rem;
  margin: 0 auto calc(var(--sp) * 10);
}
.notfound__links {
  /* the bar: at the foot in the middle, as on every page */
  position: fixed;
  bottom: max(var(--bar-pad), env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  gap: calc(var(--sp) * 8);
  width: max-content;
  white-space: nowrap;
}
.notfound__links a {
  position: relative;
  font-size: var(--fs-bar);
  line-height: var(--bar-h);
  border-bottom: 2px solid transparent;
}
.notfound__links a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 44px;
  transform: translate(-50%, -50%);
}
.notfound__links a:hover {
  border-color: var(--ink);
}

/* --------------------------------------------------------- reading pages */
/* About (the Diary's three pages are set on ruled stock, below). The Info
   overlay's register as a page: one centred column (78rem, the overlay's measure), mono
   metadata, display headings, reading text in the S cut set left. */
.reading {
  min-height: 100svh;
  padding: calc(var(--bar-h) + var(--bar-pad) * 2 + var(--sp) * 14) calc(var(--sp) * 6)
    calc(var(--bar-h) + var(--bar-pad) * 2 + var(--sp) * 16);
}
.reading__inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(24px);
  transition: opacity 0.79s var(--ease), filter 0.79s var(--ease), transform 0.79s var(--ease);
}
body.has--loaded .reading__inner,
html.js-swap--in .reading__inner {
  opacity: 1;
  filter: none; /* at rest the plates in it sit under no filter at all */
  transform: none;
}
.reading__meta {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-mini);
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  line-height: 1.6;
  opacity: 0.65;
}
.reading__title {
  font-size: var(--fs-hero);
  line-height: 1;
  font-weight: 800;
  margin: calc(var(--sp) * 5) 0 calc(var(--sp) * 12);
  max-width: 100%;
}
.reading__subtitle {
  font-size: var(--fs-bar);
  line-height: 1.15;
  margin: calc(var(--sp) * -7) 0 calc(var(--sp) * 10);
}
.reading__label {
  width: 100%;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-mini);
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  opacity: 0.65;
  border-top: 1px solid rgba(12, 12, 12, 0.12);
  padding-top: calc(var(--sp) * 4);
  margin: calc(var(--sp) * 16) 0 calc(var(--sp) * 6);
}
.reading__chapter {
  font-size: var(--fs-h3);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 calc(var(--sp) * 8);
}
.reading__body {
  width: 100%;
  text-align: left;
}
.reading__body .info__para {
  margin-bottom: calc(var(--sp) * 4);
}
.reading__body .info__para:last-child {
  margin-bottom: 0;
}
.reading__body--centre .info__para {
  text-align: center;
}
.reading__sep {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-mini);
  opacity: 0.65;
  text-align: center;
  margin: calc(var(--sp) * 6) 0;
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
}
.reading__statement,
.reading__coda {
  width: 100%;
}
.reading__quote {
  font-size: var(--fs-about);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 calc(var(--sp) * 5);
}
.reading__coda .reading__quote {
  margin-bottom: calc(var(--sp) * 2);
}
/* About's statement is for reading too: the text face, set left like the
   biography above it (it was three centred paragraphs of capitals) */
.reading__statement {
  width: 100%;
  text-align: left;
}
.reading__statement .reading__quote {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-read);
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 calc(var(--sp) * 4);
}
.reading__statement .reading__quote:last-child {
  margin-bottom: 0;
}
/* the last entry of a list closes on the next section's rule, not on a rule
   of its own with an empty band between the two */
.reading__list li:last-child {
  border-bottom: 0;
}
.reading__entry {
  font-size: var(--fs-bar);
  line-height: 1.1;
  margin-bottom: calc(var(--sp) * 2);
}
.reading__body--tight {
  margin-top: calc(var(--sp) * 4);
}
.reading__list {
  list-style: none;
  width: 100%;
  /* names in a list, not things to press: the smallest capitals (an entry
     with its own heading, a film or an exhibition, keeps capitals M) */
  font-size: var(--fs-about);
  line-height: 1.15;
}
.reading__list .reading__entry {
  font-size: var(--fs-bar);
  line-height: 1.1;
}
.reading__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--sp) * 2);
  padding: calc(var(--sp) * 3) 0;
  border-bottom: 1px solid rgba(12, 12, 12, 0.12);
}
.reading__list .reading__entry {
  margin: 0;
}
/* an exhibition filed with its cover: the plate sits above the entry line */
.reading__list .reading__list__plate {
  padding-top: calc(var(--sp) * 6);
}
.reading__list .reading__list__plate .plate {
  margin-bottom: calc(var(--sp) * 4);
}
.reading__contact {
  font-size: var(--fs-h3);
  line-height: 1.1;
  border-bottom: 2px solid transparent;
  word-break: break-all;
}
.reading__contact:hover {
  border-color: var(--ink);
}
.reading__links {
  display: flex;
  gap: calc(var(--sp) * 8);
  margin-top: calc(var(--sp) * 6);
  font-size: var(--fs-bar);
  line-height: 1.1;
}
.reading__links a {
  border-bottom: 2px solid transparent;
}
.reading__links a:hover {
  border-color: var(--ink);
}
.reading__colophon {
  line-height: 1.9;
}
/* a picture filed on a reading page: a plate with its print edge and caption */
.plate {
  position: relative;
  margin: 0 0 calc(var(--sp) * 12);
}
.plate--portrait {
  width: min(40rem, 100%);
}
.plate--wide {
  /* the text's own measure (it was 56rem: a third width on the page, beside
     the portrait's and the column's) */
  width: 100%;
}
/* the plate a page opens on is seen whole with its line on the first screen:
   as tall as the window leaves it under the page's head, and as wide as that
   makes it (About's portrait stood 30px too tall for a 900px window, and its
   caption was cut through by the foot band) */
@media (min-width: 769px) {
  .plate--lead {
    width: min(40rem, 100%, max(24rem, calc((100svh - 41rem) * var(--ar, 0.75))));
  }
}
.plate .media {
  position: relative;
}
.plate img {
  width: 100%;
  height: auto;
}
/* its file line: under it, in the page's flow (a chapter's is hung under a
   plate that is itself placed) */
.plate .media__caption {
  position: static;
  display: block;
  transform: none;
  width: auto;
  max-width: none;
  padding-top: calc(var(--sp) * 2);
}
@media (max-width: 768px) {
  .reading {
    padding-left: calc(var(--sp) * 4);
    /* (the fore-edge's lines stand in the right margin: the text keeps as
       far from them as it does from the left edge; it ran to 8px of them) */
    padding-right: calc(var(--sp) * 4 + var(--fore-w));
  }
  .plate--portrait,
  .plate--wide {
    width: 100%;
  }
}

/* ------------------------------------------------------------------ diary */
/* The Writing section is the Diary: the photographer's notebook, bound into
   the back of the book (build.mjs, the diary block). Its three pages stay
   pages of the book — the running head, the folio, the gutter and the
   fore-edge are the chrome's own — but they are printed on the notebook's
   ruled stock: faint rules at a fixed pitch (--dy-rule) with one red margin
   rule, the rules belonging to the column (they scroll with the page and
   start under the running head). The text sits on the rules: the reading
   text's line is one rule and its baseline lands on a rule (--dy-rule-at is
   the baseline's depth in a line, measured for these cuts and sizes); every
   heading, note and caption takes whole rules and is set down onto a rule
   (the --dy-up-* shifts), and a tipped-in print takes whole rules too, so
   everything under it stays on the lines. Nothing here moves. (Every custom
   property here is --dy-*: the book's spreads have a --rule and a --pw of
   their own.)

   GT Standard's three cuts share their vertical metrics (ascent 970,
   descent 190), so a line of N px at size S puts its baseline at
   N/2 + 0.39 S; the sizes are chosen so that lands on a whole pixel in
   Chromium and WebKit alike (18 on 28, 16 on 26). */
.diary {
  /* the ruled sheet starts under the running head */
  padding: 56px calc(var(--sp) * 6) calc(var(--bar-h) + var(--bar-pad) * 2 + var(--sp) * 16);
}
.diary__page {
  --dy-rule: 28px;                            /* the pitch */
  --dy-rule-at: 21px;                         /* a rule's depth in its line: the reading text's baseline */
  --dy-rule-c: rgba(12, 12, 12, 0.11);        /* the rules: ink, faint (pale blue until 2026-11-13) */
  --dy-margin-c: color-mix(in srgb, var(--safelight) 52%, transparent); /* the margin rule: the safelight's red */
  --dy-ribbon-c: var(--safelight);            /* the ribbon: the same red, whole */
  --dy-margin: 180px;                      /* the margin, left of the red rule */
  --dy-gap: 32px;                          /* the red rule to the text */
  --dy-pad: 40px;                          /* the rules run on past the text */
  --dy-measure: 600px;
  --dy-fs: 18px;
  --dy-mono: 11px;
  /* each register set down onto a rule (Chromium's baseline, measured) */
  --dy-up-mono: 3px;                          /* the mono register, 11 on 28 */
  --dy-ribbon-x: calc(14px - var(--dy-margin));
  --dy-ribbon-w: 8px;
  position: relative;
  width: min(100%, calc(var(--dy-margin) + var(--dy-gap) + var(--dy-measure) + var(--dy-pad)));
  margin: 0 auto;
  padding: var(--dy-rule) 0 calc(var(--dy-rule) * 3);
  /* the rules: one 1px line per pitch, at the baseline's depth */
  background: linear-gradient(to bottom, var(--dy-rule-c) 0 1px, transparent 1px) 0 var(--dy-rule-at) / 100% var(--dy-rule) repeat-y;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--dy-fs);
  line-height: var(--dy-rule);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
/* the red margin rule, the full height of the column */
.diary__page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--dy-margin);
  width: 1px;
  background: var(--dy-margin-c);
  pointer-events: none;
}
/* the small register: the margin's notes, the page's line, captions, the
   way to an entry; uppercase mono, one rule a line, set down on the rule */
.diary__margin,
.diary__reg,
.diary__line,
.diary__cap,
.diary__more,
.diary__sep {
  position: relative;
  top: var(--dy-up-mono);
  font-family: var(--font-mono);
  font-size: var(--dy-mono);
  line-height: var(--dy-rule);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
/* display type: GT Standard, uppercase, whole rules */
.diary__title,
.diary__entry-title,
.diary__chapter-title,
.diary__sub {
  position: relative;
  font-family: var(--font-stack);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  overflow-wrap: break-word;
  /* The site's three sizes of capitals, each set down onto a rule. A line
     of k rules at size S has its baseline at k·R/2 + 0.39·S (the metrics
     above) and the last of its k rules lies at (k − 1)·R + A, so the line
     is moved by the difference, whatever the size works out to. */
  --k: 2;
  --s: var(--fs-bar);
  top: calc((var(--k) / 2 - 1) * var(--dy-rule) + var(--dy-rule-at) - 0.39 * var(--s));
  font-size: var(--s);
  line-height: calc(var(--dy-rule) * var(--k));
}
/* on the Diary's own page an entry's title opens the entry */
.diary__title-link {
  color: inherit;
}
@media (hover: hover) {
  .diary__title-link:hover {
    text-decoration: underline 2px;
    text-underline-offset: 0.18em;
  }
}
/* a page's one title: the Diary's, and an entry's on its own page */
.diary__title,
h1.diary__entry-title {
  --s: var(--fs-hero);
  --k: 3;
  /* It stands in a head margin, as the head of a notebook's page is left
     unruled: the rules stop under it, from the margin rule to the edge of
     the sheet. (At this size a line of capitals is two rules tall, and the
     rules ran through the letters like a strike-through.) */
  isolation: isolate;
}
.diary__title::before,
h1.diary__entry-title::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(1px - var(--dy-gap));
  right: calc(-1 * var(--dy-pad));
  background: var(--sheet) url("/sheet.png");
  background-size: 192px 192px;
}
/* a heading that takes two lines takes them evenly, never one word alone
   two rules down */
.diary__title,
.diary__entry-title,
.diary__chapter-title {
  text-wrap: balance;
}
.diary__sub {
  --s: var(--fs-about);
  --k: 1;
}

/* the page's head: the title and one line in the margin register */
.diary__head {
  padding: 0 var(--dy-pad) 0 calc(var(--dy-margin) + var(--dy-gap));
  margin-bottom: calc(var(--dy-rule) * 2);
}
/* an entry (and each of the essay's chapters): the margin, then the text */
.diary__row {
  display: grid;
  grid-template-columns: var(--dy-margin) minmax(0, 1fr);
  align-items: start;
}
.diary__margin {
  grid-column: 1;
  /* level with the title's baseline (a heading's line is its second rule) */
  margin: var(--dy-rule) 0 0;
  padding: 0 12px 0 32px;
  list-style: none;
  overflow-wrap: break-word;
  /* the mono has one weight: the Coda's label is an h2 and must not be
     thickened into a faux bold */
  font-weight: 400;
}
/* an entry on its own page opens on its title, the page's one title, which
   takes three rules: its notes are level with the third */
.diary__row:has(h1.diary__entry-title) > .diary__margin {
  margin-top: calc(var(--dy-rule) * 2);
}
/* the coda opens on a one-rule line, not a two-rule heading: its label is
   level with that line */
.diary__chapter--coda > .diary__margin {
  margin-top: 0;
}
/* a fact too long for the margin runs on under itself, indented, so every
   line that starts flush is a new fact */
.diary__notes li {
  display: block;
  padding-left: 2ch;
  text-indent: -2ch;
}
.diary__label {
  padding-left: calc(32px + 2ch);
  text-indent: -2ch;
}
.diary__text {
  grid-column: 2;
  position: relative;
  min-width: 0;
  padding: 0 var(--dy-pad) 0 var(--dy-gap);
  /* a print is sized from the column it sits in */
  container-type: inline-size;
}
/* one blank rule between blocks; a note under a title, the subtitle under
   the eyebrow and the lines of the coda follow on the next rule */
.diary__text > * + * {
  margin-top: var(--dy-rule);
}
.diary__text > .diary__entry-title + .diary__line,
.diary__text > .diary__coda + .diary__coda,
.diary__text > .diary__ribbon {
  margin-top: 0;
}
.diary__chapter {
  margin-top: calc(var(--dy-rule) * 2);
}
/* the Diary of Negatives' two sentences under the entry's title: a headnote
   in the reading text (on the rules like it), muted */
.diary__intro {
  color: var(--muted);
}
/* a break in the text, centred on the measure */
.diary__sep {
  text-align: center;
}
.diary__more {
  /* the line is as wide as its link */
  width: fit-content;
}
.diary__more a {
  position: relative;
  color: var(--ink);
}
/* the link's underline is the rule under its line, inked: a 1px line laid on
   the rule's own pixel row (--dy-rule-at into the line, less the register's
   set-down), placed by the layout rather than the font, so it lands on the
   rule in every engine and at every pixel density */
.diary__more::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--dy-rule-at) - var(--dy-up-mono));
  height: 1px;
  background: var(--ink);
  pointer-events: none;
}
@media (hover: hover) {
  .diary__more:hover::before {
    height: 2px;
  }
}
/* a line is a real tap target without moving its type */
.diary__more a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}
/* the end of a day's writing: a ruled gap and a fine double rule across the
   column, its first line on a rule */
.diary__end {
  height: var(--dy-rule);
  margin: calc(var(--dy-rule) * 2) 0 0;
  border: 0;
  background: linear-gradient(
    to bottom,
    transparent var(--dy-rule-at),
    rgba(12, 12, 12, 0.55) var(--dy-rule-at) calc(var(--dy-rule-at) + 1px),
    transparent calc(var(--dy-rule-at) + 1px) calc(var(--dy-rule-at) + 3px),
    rgba(12, 12, 12, 0.55) calc(var(--dy-rule-at) + 3px) calc(var(--dy-rule-at) + 4px),
    transparent calc(var(--dy-rule-at) + 4px)
  );
}

/* A photograph in the Diary is a plate like any other: bare on the sheet,
   its file line under it (until 2026-11-13 it was tipped in on a white paper
   border, with a shadow and four photo corners). Its height is a whole
   number of rules, the largest that fits the column at its own aspect
   (--dy-ar, from the build) and the screen's height less a rule above and
   below it (a phone on its side: the plate is always seen whole); its width
   follows, so the photograph is whole and untouched — no crop, filter, turn,
   tint or overlay. */
.diary__print {
  --dy-bd: 0px;                            /* (the paper border it used to have; the arithmetic below still reads it) */
  /* the widest print whose paper fits the small viewport less two rules
     (never under eight rules tall, however short the window) */
  --dy-fit: calc((max(100svh, var(--dy-rule) * 10) - 2 * var(--dy-rule) - 2 * var(--dy-bd)) * var(--dy-ar) + 2 * var(--dy-bd));
  --dy-pw: min(100cqi, var(--dy-fit));     /* the widest the print may be */
}
.diary__print--portrait {
  --dy-pw: min(100cqi, 400px, var(--dy-fit));
}
.diary__paper {
  position: relative;
  width: fit-content;
  padding: var(--dy-bd);
}
.diary__paper img {
  display: block;
  max-width: none;
  width: auto;
  height: calc(round(down, calc((var(--dy-pw) - 2 * var(--dy-bd)) / var(--dy-ar) + 2 * var(--dy-bd)), var(--dy-rule)) - 2 * var(--dy-bd));
}
@supports not (height: round(down, 10px, 1px)) {
  /* no rounding: the print fits the column and the rhythm may slip under it */
  .diary__paper img {
    width: calc(var(--dy-pw) - 2 * var(--dy-bd));
    height: auto;
  }
}
.diary__cap {
  margin-top: 0;
}

/* The ribbon: a narrow red bookmark at the latest entry, hanging from the
   top edge of that entry's page down the gutter side of the margin to beside
   the entry's title, where it ends in a swallowtail. On the entry's own page
   that is the top of the ruled page, where the red margin rule starts (the
   sheet's top edge above it would take the ribbon through the running head
   on a narrow page); on the index the latest entry follows the double rule
   that ends the day before, and the ribbon hangs from that rule, so it lies
   beside the entry it marks and nowhere else. It is long, and cut off where
   it hangs from: by the ruled page, or by the entry, whose box starts at the
   double rule (below). It lies in a lane of its own, clear of every note,
   line and print. */
.diary__page {
  overflow-y: clip;
}
.diary__ribbon {
  position: absolute;
  left: var(--dy-ribbon-x);
  bottom: calc(100% - var(--dy-rule) * 3);
  width: var(--dy-ribbon-w);
  height: 10000px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0) 35%, rgba(255, 255, 255, 0.1) 60%, rgba(0, 0, 0, 0.18)),
    var(--dy-ribbon-c);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 6px), 0 100%);
  pointer-events: none;
}
/* an entry after a double rule: its box starts right under the rule's
   second line (--dy-rule-at + 4px into its rule; the margins collapse to
   that), its first line two blank rules below the rule as before. The latest
   one clips the ribbon there, with a rule to spare at its foot for the tap
   target of its last line. */
.diary__end + .diary__entry {
  margin-top: calc(var(--dy-rule-at) + 4px - var(--dy-rule));
  padding-top: calc(var(--dy-rule) * 3 - var(--dy-rule-at) - 4px);
}
.diary__end + .diary__entry--latest {
  overflow-y: clip;
  padding-bottom: var(--dy-rule);
}

/* A phone: the margin's notes move above the title, one line, `·`-set,
   wrapping; the red rule stands 16px in from the left edge of the page with
   the text indented from it; the ruling, the prints and the ribbon stay. */
@media (max-width: 768px) {
  .diary {
    padding: 44px 0 calc(var(--bar-h) + var(--bar-pad) * 2 + var(--sp) * 16);
  }
  .diary__page {
    --dy-rule: 26px;
    --dy-rule-at: 19px;
    --dy-margin: 16px;
    --dy-gap: 14px;
    --dy-pad: 14px;
    --dy-fs: 16px;
    --dy-mono: 10px;
    --dy-up-mono: 2px;
    --dy-ribbon-x: calc(5px - var(--dy-margin) - var(--dy-gap));
    --dy-ribbon-w: 7px;
    width: auto;
    /* clear of the fore-edge */
    margin: 0 16px 0 0;
  }
  /* a phone's smaller capitals: the page's title takes two rules, not three
     (a heading keeps its two: the empty rule above it is its air) */
  .diary__title,
  h1.diary__entry-title {
    --k: 2;
  }
  .diary__row {
    display: block;
    padding: 0 var(--dy-pad) 0 calc(var(--dy-margin) + var(--dy-gap));
  }
  .diary__margin {
    margin: 0;
    padding: 0;
  }
  .diary__notes li,
  .diary__label {
    padding-left: 0;
    text-indent: 0;
  }
  /* one line, wrapping only between facts */
  .diary__notes li {
    display: inline;
    white-space: nowrap;
  }
  .diary__notes li:not(:last-child)::after {
    content: "\00a0· ";
    white-space: normal;
  }
  .diary__text {
    padding: 0;
  }
}

/* --------------------------------------------------- shared-element flip */
/* The clicked plate itself travels: a cover lifts off the work grid and lands
   in its project's focus stage (and back), a collage frame lands in /focus/.
   The clone rides above the swap veil so the plate stays sharp while the rest
   of the page washes. It is removed once the real stage beneath is opaque. */
.flip-clone {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(12, 12, 12, 0.12);
  transform-origin: 0 0;
  will-change: transform, opacity;
}

/* ------------------------------------------------------------ private lock */
/* A locked album shows the gallery chrome (title above, Back below) and one
   field in the middle. Nothing else: no plate, no copy from inside. */
.lock {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--bar-h) + var(--bar-pad) * 2) calc(var(--sp) * 6);
}
.lock__form {
  width: min(44rem, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--sp) * 4);
  text-align: center;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(24px);
  transition: opacity 0.79s var(--ease), filter 0.79s var(--ease), transform 0.79s var(--ease);
}
body.has--loaded .lock__form,
html.js-swap--in .lock__form {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
.lock__meta,
.lock__error {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-mini);
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  opacity: 0.65;
}
.lock__input {
  appearance: none;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 3px solid var(--ink);
  border-radius: 0;
  padding: calc(var(--sp) * 2) 0;
  margin-top: calc(var(--sp) * 2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-bar);
  letter-spacing: 0.2em;
  text-align: center;
  line-height: 1.2;
  caret-color: var(--ink);
  min-height: 44px;
}
.lock__input:focus {
  outline: none;
}
/* the album's name, for a password manager and for Safari's reading of the
   form: there, and not on show */
.lock__user {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* the field says what it is, in the register, under its rule */
.lock__label {
  display: block;
  margin-top: calc(var(--sp) * -2);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-reg);
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  color: var(--muted);
}
/* the album's title: with the field (the + has the top centre, as everywhere) */
.lock__title {
  font-weight: 800;
  font-size: var(--fs-bar);
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: calc(var(--sp) * 3);
}
.lock__input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}
.lock__row {
  perspective: 1000px;
}
.lock__enter {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-stack);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: var(--fs-bar);
  line-height: var(--bar-h);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transform: none;
  opacity: 1;
}
.lock__enter:hover,
.lock__form.is--checking .lock__enter {
  border-color: var(--ink);
}
.lock__form.is--checking .lock__input {
  opacity: 0.5;
}
.lock__error {
  min-height: 1.6em;
  opacity: 0;
  transition: opacity 0.49s var(--ease);
}
.lock__error.is--on {
  opacity: 0.65;
}
.lock__enter:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* The lock is a sealed print box (2026-11-14; Jason, of the prototype: "It
   looks good."): Quantum Memory's box, the qm-box rules further down, with
   this modifier. The album's name is the page's h1, on the lid; the tape
   seals it; the password is written on the rule under it. A wrong word and
   the lid is tried against its tape (main.js lifts it a few degrees and lets
   it drop); the right one and it opens, a sheet comes up, and the album
   takes the page. It stands drawn without the script too: every transform
   here is the shut box at rest, and --q is the width the form will have. */
.qm-box--lock {
  --q: calc(min(420px, 100vw - 52px) / 420);
  width: 100%;
  text-align: left;
}
.qm-box--lock .qm-box__scene {
  width: calc(var(--q) * 420);
  height: calc(var(--q) * 310);
  margin: 0 auto;
}
.qm-box--lock .qm-box__box {
  top: calc(var(--q) * 40);
  transform: rotateX(62deg) scale(1.08);
}
.qm-box--lock .qm-box__top .lock__title {
  left: calc(var(--q) * 22);
  right: calc(var(--q) * 62);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: calc(var(--q) * 34);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  text-align: center;
  color: var(--paper);
}
/* what is in the box: a sheet with nothing on it, 3:2, out of sight in the shut box */
.qm-box--lock .qm-box__print {
  top: calc(var(--q) * 165 - (var(--q) * 420 / 1.5 + var(--q) * 8) / 2);
  height: calc(var(--q) * 420 / 1.5 + var(--q) * 8);
  visibility: hidden;
}
.qm-box--lock .qm-box__print.is-out { visibility: visible; }
/* a short screen: less air between the parts, so the button stands clear of the bar */
@media (max-height: 620px) {
  .lock__form:has(.qm-box--lock) { gap: calc(var(--sp) * 2.5); }
}
/* a phone on its side: the box and the field stand side by side (one under
   the other, the button ran under Back: the box takes the height the title
   and its line used to) */
@media (max-height: 560px) and (min-aspect-ratio: 1 / 1) {
  .lock__form:has(.qm-box--lock) {
    width: auto;
    max-width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 300px);
    column-gap: calc(var(--sp) * 10);
    row-gap: calc(var(--sp) * 2.5);
    align-items: center;
    justify-items: center;
  }
  .qm-box--lock {
    --q: calc(min(420px, 44vw, (100svh - 150px) * 1.35) / 420);
    grid-column: 1;
    grid-row: 1 / span 4;
    width: calc(var(--q) * 420);
  }
  .lock__form:has(.qm-box--lock) > :not(.qm-box--lock) { grid-column: 2; }
  .lock__form:has(.qm-box--lock) .lock__input { align-self: end; }
  .lock__form:has(.qm-box--lock) .lock__error { align-self: start; }
}

/* Focus rings inside the blended name group (the grid's names) must be white
   for the same reason as the text: difference renders them as ink on paper.
   The contents' rows are not blended: their ring is ink. */
.view--grid .project-list-item:focus-visible {
  outline-color: #fff;
}
.view--list .project-list-item:focus-visible {
  outline-color: var(--ink);
  outline-offset: 2px;
}

/* -------------------------------------------------------- photobook home */
/* The home page is a book: a front spread (the name; the contents with real
   folios), then one spread per project, text left, first plate right. Every
   size inside a page is a fraction of the page width (--pw), and each mode has
   a fixed aspect, so a page lays out the same at any screen size: type, plate
   box and contents rows all scale together and nothing reflows mid-turn. */
.book-home {
  --rule: rgba(12, 12, 12, 0.14);
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: calc(var(--bar-pad) + var(--bar-h) + 12px) 16px calc(var(--bar-pad) * 0.75);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.book {
  --bw: min(88vw, calc((100svh - 170px) * 1.5), 1500px);
  --pw: calc(var(--bw) / 2);
  --fs-s: max(10px, calc(var(--pw) * 0.0165));
  /* the contents rows (and the back-of-the-book line beneath them): solved so
     all 22 rows plus that line always fit the page's free height in this
     mode, never below 8px */
  --toc-fs: max(8px, min(var(--fs-s), calc(var(--pw) * 0.0335 - 2px)));
  position: relative;
  display: flex;
  width: var(--bw);
  aspect-ratio: 3 / 2;
  /* WebKit lets the pages' content set an aspect-ratio box's minimum height;
     without this a phone page grows to twice the screen */
  min-height: 0;
  perspective: 3400px;
  filter: drop-shadow(0 18px 34px rgba(12, 12, 12, 0.13));
  touch-action: pan-y;
  outline-offset: 10px;
  /* enters by visibility and a short rise, never from opacity 0: Chrome does
     not credit an element first painted transparent as the page's LCP */
  visibility: hidden;
  transform: translateY(14px);
}
body.has--loaded .book,
html.js-swap--in .book,
html.has--landed .book {
  visibility: visible;
  transform: none;
  transition: transform 0.9s var(--ease);
}
.book__page {
  position: relative;
  flex: 1;
  -webkit-user-select: none;
  user-select: none;
  min-width: 0;
  background: var(--sheet);
  overflow: hidden;
  cursor: pointer;
}
.book__page--l { box-shadow: inset -22px 0 26px -22px rgba(12, 12, 12, 0.24); }
.book__page--r { box-shadow: inset 22px 0 26px -22px rgba(12, 12, 12, 0.24); }
/* the page block: one hairline per sheet already read, and per sheet to come */
.book__block {
  flex: none;
  margin: 5px 0;
  background: repeating-linear-gradient(90deg, rgba(12, 12, 12, 0.22) 0 1px, var(--sheet) 1px 3px);
  transition: width 0.78s var(--ease);
}
.book__block--l { width: calc(var(--done, 0) * 0.5px + 1px); }
.book__block--r { width: calc(var(--left, 44) * 0.5px + 1px); }

.book__inner {
  position: absolute;
  inset: 0;
  display: grid;
  /* minmax(0, …): a long unbroken title may never widen the page */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: calc(var(--pw) * 0.04);
  padding: calc(var(--pw) * 0.075) calc(var(--pw) * 0.08) calc(var(--pw) * 0.065);
}
.book__head,
.book__folio,
.book__cap,
.book__no,
.book__meta,
.book__role,
.book__works,
.book__label,
.book__toc,
.book__open {
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--fs-s);
  line-height: 1.25;
}
.book__head,
.book__folio,
.book__cap,
.book__no,
.book__meta,
.book__works,
.book__label {
  color: var(--muted);
}
.book__head--r,
.book__folio--r { text-align: right; }
.book__folio { font-variant-numeric: tabular-nums; }
.book__head--row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
}
/* the way back to the contents, printed in the running head of every text
   page; padded out to a real tap target without moving the line */
.book__head-link {
  color: var(--ink);
  padding: 12px 8px;
  margin: -12px -8px;
}
@media (hover: hover) {
  .book__head-link:hover { text-decoration: underline; text-underline-offset: 0.25em; }
}

/* front spread */
.book__front {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(var(--pw) * 0.022);
}
.book__name {
  font-family: var(--font-stack);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.9;
  font-size: calc(var(--pw) * 0.118);
  text-wrap: balance;
}
.book__role { color: var(--ink); }
.book__contents {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.book__label { margin-bottom: calc(var(--pw) * 0.02); flex: none; }
/* The rows give up their air before the list overflows its page. The line
   under the list wraps to a third row on a narrow page since Quantum Memory
   took the Index's place on it (2026-11-14), and the type was solved for
   two: across 575 screen sizes the list ran 4 to 13px over on 133 of them.
   Each row is a flex item that may shrink as far as its line and its rule;
   its link keeps its own padding and stays centred on the row, the rule
   drawn by the row. With room to spare nothing moves. */
.book__contents ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.book__contents li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 1 auto;
  min-height: calc(var(--toc-fs) * 1.15 + 1px);
  border-bottom: 1px solid var(--rule);
}
.book a {
  -webkit-user-drag: none; /* a swipe that starts on a link is still a swipe */
}
.book__toc {
  display: flex;
  flex: none;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: calc(var(--pw) * 0.0045) 0;
  line-height: 1.15;
  font-size: var(--toc-fs); /* solved per mode on .book */
  transition: padding-left 0.3s var(--ease-soft);
}
@media (max-height: 700px) {
  .book__toc { padding: calc(var(--pw) * 0.0034) 0; }
}
/* the contents page carries a fourth block (the back of the book) in the row
   under the list, whose tap rows stand 14px apart: less air between the
   page's blocks than the text pages have, so all of it fits at 8px type */
.book__inner--contents {
  gap: calc(var(--pw) * 0.02);
}
.book__toc-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.book__toc-folio { color: var(--muted); font-variant-numeric: tabular-nums; }
/* the titles in capitals (at the row's own size: the three cuts share their
   vertical metrics, so no row grows and all 22 still fit the page) */
.book__toc-title {
  font-family: var(--font-stack);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}
@media (hover: hover) {
  .book__toc:hover { padding-left: 0.6em; }
  .book__open:hover { text-decoration: underline; text-underline-offset: 0.25em; }
}
/* the back of the book, on the last line of the contents page: About, the
   Diary, Quantum Memory and the sealed album, each with its page. One
   wrapping line in the contents' own size, muted, the folios in ink; the
   links are padded to real tap targets without moving the line */
.book__back {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1.6em;
  /* each link's tap box reaches 7px past its line; the rows stand 14px apart
     so the boxes of a wrapped line never overlap (a tap on About used to land
     on Climate Change is Ole Mas, the row below) */
  row-gap: 14px;
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--toc-fs);
  line-height: 1.15;
  color: var(--muted);
}
.book__back-link {
  padding: 7px 6px;
  margin: -7px -6px;
  white-space: nowrap;
}
.book__back-folio { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .book__back-link:hover .book__back-title { text-decoration: underline; text-underline-offset: 0.25em; }
}

/* project spreads */
.book__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(var(--pw) * 0.024);
  min-height: 0;
  overflow: hidden;
}
.book__title {
  font-family: var(--font-stack);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  font-size: calc(var(--pw) * 0.094);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.book__quote {
  font-family: var(--font-stack);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
  font-size: max(12px, calc(var(--pw) * 0.03));
  max-width: 26em;
}
.book__lead {
  font-family: var(--font-text);
  font-size: max(12.5px, calc(var(--pw) * 0.0215));
  line-height: 1.55;
  max-width: 36em;
  color: rgba(12, 12, 12, 0.82);
}
/* set by the script when a page's words outgrow it (see fit in main.js) */
.book__text.is-tight .book__lead {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.book__text.is-tighter .book__lead { -webkit-line-clamp: 2; }
.book__text.is-tightest .book__quote { display: none; }
.book__open {
  align-self: flex-start;
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
  color: var(--ink);
}
.book__open::after { content: " \2192"; }
/* what you press inside the book is in capitals too, at the page's own
   small size (the row keeps its height: the cuts share their metrics) */
.book__open,
.book__head-link {
  font-family: var(--font-stack);
  font-weight: 800;
  letter-spacing: 0.02em;
}
/* a plate's caption opens with its title in ink, as under every plate */
.book__cap .caption__t {
  color: var(--ink);
}
.book__plate-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--pw) * 0.025);
  min-height: 0;
}
/* The plate box is the whole space the photograph may take; the photograph
   sits inside it at its own proportions. The box ignores the pointer so a tap
   beside a narrow plate still turns the page — only the photograph opens it. */
.book__plate {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.book__plate img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  pointer-events: auto;
  cursor: pointer;
}

/* the navigator under the book */
.book-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--fs-reg);
  visibility: hidden;
}
body.has--loaded .book-nav,
html.js-swap--in .book-nav,
html.has--landed .book-nav {
  visibility: visible;
}
.book-nav__btn {
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  /* the bar's arrows, as in the darkroom: capitals M */
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: var(--fs-bar);
  line-height: var(--bar-h);
}
.book-nav__btn:disabled { opacity: 0.25; cursor: default; }
.book-nav__count {
  /* one width for every label, the longest included, so the arrows on either
     side never move as the pages turn (they slid sideways under the pointer) */
  width: min(31em, calc(100vw - 150px));
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the turning leaf: a copy of the page, front and back */
.book__leaf {
  position: absolute;
  z-index: 10;
  transform-style: preserve-3d;
  pointer-events: none;
}
.book__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.book__face--back { transform: rotateY(180deg); }

/* One page at a time: phones, and any window too short for a spread. Portrait
   is a tall page, plate above its title; a short landscape screen is a wide
   page, plate beside the title. */
@media (max-width: 768px), (max-height: 560px) {
  .book-home {
    gap: 6px;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
  }
  .book {
    --bw: min(calc(100vw - 32px), calc((100svh - 150px) * 2 / 3), 520px);
    --pw: var(--bw);
    --fs-s: max(10px, calc(var(--pw) * 0.026));
    --toc-fs: max(8px, min(var(--fs-s), calc(var(--pw) * 0.0404 - 2.1px)));
    aspect-ratio: 2 / 3;
  }
  .book__block { margin: 4px 0; }
  .book__block--l { width: calc(var(--done, 0) * 0.3px + 1px); }
  .book__block--r { width: calc(var(--left, 22) * 0.3px + 1px); }
  .book__inner { padding: calc(var(--pw) * 0.075) calc(var(--pw) * 0.075) calc(var(--pw) * 0.06); }
  .book__name { font-size: calc(var(--pw) * 0.15); }
  .book__inner--one {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: calc(var(--pw) * 0.035);
  }
  .book__onetext {
    display: grid;
    gap: calc(var(--pw) * 0.022);
  }
  .book__inner--one .book__title { font-size: calc(var(--pw) * 0.084); }
  .book__inner--one .book__open { margin-top: 0; }
  .book-nav__count { min-width: 0; max-width: calc(100vw - 140px); }
  /* (set when About, Diary and Index shared the first row of the back line
     on a 320-wide page; since 2026-11-14 Quantum Memory stands where Index
     did and takes a row of its own here, About and Diary sharing the first) */
  .book__back { column-gap: 1.3em; }
}
@media (max-height: 560px) and (min-aspect-ratio: 1 / 1) {
  .book-home {
    padding-top: calc(var(--bar-pad) + var(--bar-h) + 4px);
    gap: 2px;
  }
  .book {
    --bw: min(calc(100vw - 120px), calc((100svh - 104px) * 8 / 5), 760px);
    --pw: var(--bw);
    --fs-s: max(10px, calc(var(--pw) * 0.017));
    --toc-fs: max(8px, min(var(--fs-s), calc(var(--pw) * 0.0294 - 2.9px)));
    aspect-ratio: 8 / 5;
  }
  .book__inner { padding: calc(var(--pw) * 0.045) calc(var(--pw) * 0.05) calc(var(--pw) * 0.04); gap: calc(var(--pw) * 0.022); }
  .book__inner--contents {
    gap: calc(var(--pw) * 0.01);
    padding-left: calc(var(--pw) * 0.04);
    padding-right: calc(var(--pw) * 0.04);
  }
  /* the type is at its 8px floor here, so the second row the back line needs
     since the album's rename (2026-11-13) comes out of the rows' air */
  .book__inner--contents .book__toc { padding: calc(var(--pw) * 0.0016) 0; }
  /* a wide page: a tighter gap on the back line (one row until the album's
     longer title of 2026-11-13; now About · Diary · Quantum Memory, then the
     album) */
  .book__back { column-gap: 1em; }
  .book__inner--contents .book__label { margin-bottom: calc(var(--pw) * 0.012); }
  .book__name { font-size: calc(var(--pw) * 0.09); }
  /* two columns: a block again (columns do not apply to a flex container)
     that does not shrink (a multi-column block squeezed for height spills
     further columns off the side of the page), so here the rows keep their
     air as before */
  .book__contents ol { display: block; min-height: auto; columns: 2; column-gap: calc(var(--pw) * 0.05); }
  .book__contents li { break-inside: avoid; }
  .book__toc { padding: calc(var(--pw) * 0.0025) 0; break-inside: avoid; }
  .book__inner--one {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: calc(var(--pw) * 0.045);
  }
  .book__inner--one .book__head { grid-column: 1 / -1; }
  .book__inner--one .book__plate-wrap { grid-row: 2; grid-column: 1; }
  .book__inner--one .book__onetext { grid-row: 2; grid-column: 2; align-content: end; }
  .book__inner--one .book__folio { grid-column: 1 / -1; }
  .book__inner--one .book__title { font-size: calc(var(--pw) * 0.05); }
}
/* without the script the two front pages stack, so the contents still reads */
@media (max-width: 768px), (max-height: 560px) {
  .book:not(.is-single) {
    flex-direction: column;
    aspect-ratio: auto;
    width: min(calc(100vw - 32px), 520px);
    --pw: min(calc(100vw - 32px), 520px);
  }
  .book:not(.is-single) .book__page { flex: none; aspect-ratio: 2 / 3; }
  .book:not(.is-single) .book__block { display: none; }
}

/* ------------------------------------------------------ the book's cover */
/* The book arrives closed, the first time in a visit (2026-11-14). Its cover
   is cloth the colour of the room, with one photograph tipped into a well
   pressed in the board and the name in foil. .book__cover is the closed book
   as an object: the board, the spine, the three edges of the page block, the
   back board and a ribbon, drawn over the right-hand page and turned in 3D by
   main.js (7b, the cover). Opened, the board lies where the left-hand page is,
   and its inside IS that page: the endpaper, in the safelight's red. Every
   size is a fraction of the board (--u: 1/548 of its width, or 1/732 of its
   height on a page wider than a book). Nothing here touches the photograph:
   the light on the cloth lies under the plate, never over it. */
.book.is-cover {
  perspective: none;
  transform-style: preserve-3d;
  touch-action: none;
}
/* main.js sets the object's turn every frame: the entrance's own transition
   on transform (above, at the same weight as these) would chase each one */
body.has--loaded .book.is-cover,
html.js-swap--in .book.is-cover,
html.has--landed .book.is-cover {
  transition: none;
}
.book-home.is-cover {
  perspective: 2400px;
  perspective-origin: 50% 46%;
}
/* the left-hand page stays in the document (it carries the h1) but is not
   drawn while the board is anywhere but flat on it */
.book.is-cover .book__page--l,
.book.is-cover .book__block--l { opacity: 0; }
.book.is-cover .book__block--r { opacity: var(--cov-e, 0); }
/* shut, the contents are under the board: out of reach of a pointer or a key */
.book.is-closed .book__page--r { visibility: hidden; }
.book__cover {
  --cw: var(--cov-w, 100px);
  --ch: var(--cov-h, 100px);
  --u: min(calc(var(--cw) / 548), calc(var(--ch) / 732));
  --t: calc(var(--u) * 44);
  --cloth: #221f1d;
  --foil: var(--paper);
  --foil-dim: rgba(245, 243, 240, 0.62);
  position: absolute;
  left: var(--cov-x, 50%);
  top: var(--cov-y, 0);
  width: var(--cw);
  height: var(--ch);
  z-index: 12;
  transform-style: preserve-3d;
  pointer-events: none;
  text-transform: none;
  letter-spacing: 0;
}
.book__cover[hidden] { display: none; }
.book__cover > * { position: absolute; }
.bkc__back,
.bkc__spine,
.bkc__front {
  background-color: var(--cloth);
  background-image: var(--cloth-grain);
  background-size: 180px 180px;
}
.bkc__shadow {
  inset: 6% -2% -5% 4%;
  background: rgba(0, 0, 0, 0.6);
  filter: blur(34px);
  transform: translateZ(calc(var(--t) * -1 - 46px));
  opacity: calc(1 - var(--cov-e, 0));
}
.bkc__back {
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(245, 243, 240, 0.11);
  transform: translateZ(calc(var(--t) * -1));
}
.bkc__spine {
  left: calc(var(--t) * -1);
  top: 0;
  width: var(--t);
  height: 100%;
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
  box-shadow: inset 0 0 0 1px rgba(245, 243, 240, 0.11), inset calc(var(--u) * 12) 0 calc(var(--u) * 14) calc(var(--u) * -10) rgba(0, 0, 0, 0.3);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--u) * 30) 0;
  white-space: nowrap;
  color: var(--foil);
}
.bkc__spine b {
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: calc(var(--u) * 25);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.bkc__spine span {
  font-family: var(--font-mono);
  font-size: calc(var(--u) * 10);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foil-dim);
}
/* the page block: the fore-edge ruled with its sheets; the head plain, the
   foot in its own shade (ruled, a face seen edge-on breaks into dashes) */
.bkc__edge { background-color: #f1efea; }
.bkc__edge--fore {
  left: 100%;
  top: 0;
  bottom: 0;
  width: calc(var(--t) - 2px);
  transform-origin: 0 50%;
  transform: rotateY(90deg);
  background-image: repeating-linear-gradient(90deg, rgba(12, 12, 12, 0.2) 0 1px, rgba(12, 12, 12, 0) 1px 3px);
}
.bkc__edge--top {
  left: 0;
  right: 0;
  top: calc(var(--t) * -1 + 2px);
  height: calc(var(--t) - 2px);
  transform-origin: 50% 100%;
  transform: rotateX(90deg);
}
.bkc__edge--bottom {
  left: 0;
  right: 0;
  top: 100%;
  height: calc(var(--t) - 2px);
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
  background-color: #45423f;
}
.bkc__ribbon {
  left: 76%;
  top: 100%;
  width: calc(var(--u) * 8);
  height: calc(var(--u) * 34);
  background: var(--safelight);
  transform: translateZ(calc(var(--t) * -0.5));
  opacity: calc(1 - var(--cov-e, 0));
}
/* the board: hinged on the spine; its outside is the cover, its inside the
   left-hand page */
.bkc__board {
  inset: 0;
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  pointer-events: auto;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  outline-offset: 6px;
}
.book.is-drag .bkc__board { cursor: grabbing; }
.bkc__board:focus-visible { outline: 2px solid var(--paper); }
.bkc__front {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto auto;
  padding: calc(var(--u) * 44) calc(var(--u) * 48) calc(var(--u) * 42);
  color: var(--foil);
  box-shadow: inset 0 0 0 1px rgba(245, 243, 240, 0.11);
  overflow: hidden;
}
/* the hinge: the board's groove, a hand's width in from the spine */
.bkc__front::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--u) * 26);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0)), linear-gradient(90deg, rgba(0, 0, 0, 0) calc(100% - 2px), rgba(0, 0, 0, 0.5) calc(100% - 2px) calc(100% - 1px), rgba(245, 243, 240, 0.07) calc(100% - 1px));
  pointer-events: none;
}
/* the room's light on the cloth: it crosses the board as the book turns */
.bkc__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) calc(var(--sh, 50%) - 38%), rgba(255, 255, 255, 0.075) var(--sh, 50%), rgba(255, 255, 255, 0) calc(var(--sh, 50%) + 38%));
}
.bkc__area {
  position: relative;
  container-type: size;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: calc(var(--u) * 26);
}
/* the well: pressed into the board, the plate's own shape, never wider or
   taller than the room the board leaves it */
.bkc__well {
  width: 100%;
  width: min(100cqw, calc((100cqh - var(--u) * 70) * var(--ar) + var(--u) * 14));
  margin: 0 0 0 calc(var(--u) * -7);
  padding: calc(var(--u) * 7);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 calc(var(--u) * 2) calc(var(--u) * 5) rgba(0, 0, 0, 0.9), inset 0 -1px 0 rgba(245, 243, 240, 0.09);
}
.bkc__well img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar);
  box-shadow: 0 0 0 1px rgba(245, 243, 240, 0.1);
  -webkit-user-drag: none;
}
.bkc__file,
.bkc__reg {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: max(8px, calc(var(--u) * 10.5));
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foil-dim);
}
.bkc__file { margin-top: calc(var(--u) * 12); }
.bkc__file .caption__t { color: var(--foil); }
.bkc__name {
  position: relative;
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: calc(var(--u) * 46);
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.bkc__reg {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-top: calc(var(--u) * 16);
  white-space: nowrap;
}
/* the endpaper: with the cover on the book, the page inside it is no longer
   the title page (the board carries the name) but the paper that holds the
   board to the book, in the one red, with the name set small at its foot */
.has-cover .book__page:has(> .book__inner--front) {
  background: url("/paper.png") 0 0 / 192px 192px, var(--safelight);
  background-blend-mode: multiply;
  color: var(--paper);
}
.has-cover .book__page--l:has(> .book__inner--front) { box-shadow: inset -22px 0 26px -22px rgba(0, 0, 0, 0.34); }
.has-cover .book__front { gap: calc(var(--pw) * 0.008); }
.has-cover .book__name {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-s);
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--paper);
}
.has-cover .book__role,
.has-cover .book__works { color: var(--paper); }

/* ----------------------------------------------------------------- About */
/* /about/ (2026-11-14; Jason, of the prototype: "love it"). A page of the
   book like Quantum Memory: the text in a reading column and, beside it
   (under the name on a phone), the photographer's own print, a sheet with two
   sides. The front is the portrait, whole: nothing is set on the photograph,
   the sheet is what moves. The back is the back of a print: the studio stamp
   in the safelight's red, the title in pencil, pasted labels (published in,
   exhibited, made with), the copyright stamp. main.js (7d) turns it over and,
   from 1100px, holds it in view beside the text (the page is carried by the
   glide, which a sticky position cannot follow). Only the face turned to the
   eye is ever drawn, each with its own perspective: no backface rule and no
   shared 3D space, which Safari and Chrome draw differently. Without the
   script the two sides stand one under the other. The back's sizes are
   fractions of the sheet's width (cqw). */
.reading.ab {
  padding-left: max(calc(var(--sp) * 6), var(--frame-x));
  padding-right: max(calc(var(--sp) * 6), var(--frame-x));
  --print: #fdfdfb;                 /* photographic paper: the border round the picture */
  --verso: #f1eee6;                 /* the back of the same sheet */
  --pencil: rgba(12, 12, 12, 0.5);
}
.reading__inner.ab__inner {
  display: block;
  max-width: 1100px;
  text-align: left;
}
.ab__hero,
.ab__body { max-width: 600px; }
.ab .reading__title.ab__title {
  margin: calc(var(--sp) * 3) 0 calc(var(--sp) * 6);
  line-height: 0.925;
}
.ab__sub {
  font-size: var(--fs-about);
  line-height: 1.27;
  text-wrap: balance;
}
.ab .reading__body { width: 100%; }
.ab .reading__body .info__para { max-width: none; }
.ab__show .plate { margin-bottom: calc(var(--sp) * 5); }
.ab__show + .ab__show { margin-top: calc(var(--sp) * 12); }
.ab__show .reading__entry { margin-bottom: calc(var(--sp) * 2); }
.ab .reading__entry + .reading__meta { margin-bottom: calc(var(--sp) * 2); }
.ab__fig { margin: calc(var(--sp) * 9) 0 calc(var(--sp) * 10); }
.ab__pin {
  --pw: min(100%, 424px);
  width: var(--pw);
  margin: 0 auto;
}
.ab-print {
  position: relative;
  display: grid;
  row-gap: 24px;                    /* until the script is live the two sides lie one under the other */
}
.ab-print__face {
  position: relative;
  grid-column: 1;
  width: 100%;
  margin: 0;
  aspect-ratio: var(--face, 0.7626);
  box-shadow: 0 0 0 1px rgba(12, 12, 12, 0.07);
  transform-origin: 50% 50%;
}
.ab-print__face--recto {
  background: var(--print);
  padding: 3.3%;
}
.ab-print__face--recto img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
}
.ab-print__face--verso {
  background: var(--verso) url("/sheet.png") repeat;
  background-blend-mode: multiply;
  container-type: size;
}
.ab-print__shadow { display: none; }
.ab-print.is-live {
  row-gap: 0;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ab-print.is-live.is-held { cursor: grabbing; }
.ab-print.is-live .ab-print__face { grid-row: 1; }
.ab-print.is-live .ab-print__shadow {
  display: block;
  position: absolute;
  inset: 5% 4% -2.5% 4%;
  background: rgba(12, 12, 12, 0.34);
  filter: blur(14px);
  opacity: 0.55;
  /* (it takes the pointer like the sheet it lies under: an element that
     ignores the pointer, passing the middle of the foot of the screen, is
     one of the things that stop Safari on an iPhone finding the foot band;
     see .band) */
}
.ab__cap {
  margin-top: calc(var(--sp) * 5);
  text-align: center;
  text-wrap: balance;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-reg);
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--muted);
}
.ab__cap .caption__t { color: var(--ink); }
.ab__turn {
  display: block;
  position: relative;
  margin: 14px auto 0;
  padding: 6px 2px 4px;
  background: none;
  border: 0;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}
.ab__turn::after { content: ""; position: absolute; inset: -12px -10px; } /* a 44px press */
.ab__turn[hidden] { display: none; }  /* without the script there is nothing for it to do */

/* the back of the print */
.ab-verso {
  height: 100%;
  padding: 6.4cqw 6cqw 5.6cqw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.4cqw;
}
.ab-verso__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3cqw;
}
.ab-stamp {
  flex: none;
  color: var(--safelight);
  border: 3px double var(--safelight);
  padding: 2.2cqw 2.8cqw 1.9cqw;
  transform: rotate(-2.2deg);
  transform-origin: 0 0;
  opacity: 0.92;
}
.ab-stamp b {
  display: block;
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: clamp(14px, 4.3cqw, 19px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.9cqw;
}
.ab-stamp span,
.ab-cstamp span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(8.5px, 2.25cqw, 10px);
  letter-spacing: var(--track-reg);
  line-height: 1.5;
  text-transform: uppercase;
}
.ab-pencil {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(9px, 2.5cqw, 11px);
  line-height: 1.5;
  text-transform: none;
  color: var(--pencil);
  text-align: right;
  max-width: 36cqw;
  transform: rotate(-0.8deg);
  padding-top: 0.6cqw;
}
.ab-verso__labels {
  display: flex;
  flex-direction: column;
  gap: 2.6cqw;
}
.ab-vlabel {
  background: var(--sheet);
  border: 1px solid rgba(12, 12, 12, 0.16);
  box-shadow: 0 1px 2px rgba(12, 12, 12, 0.09);
  padding: 2.5cqw 3.1cqw 2.6cqw;
}
.ab-vlabel:nth-child(1) { width: 66cqw; transform: rotate(-0.5deg); }
.ab-vlabel:nth-child(2) { width: 72cqw; margin-left: auto; transform: rotate(0.45deg); }
.ab-vlabel:nth-child(3) { transform: rotate(-0.25deg); }
.ab-vlabel h2 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(8.5px, 2.25cqw, 10px);
  letter-spacing: var(--track-reg);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.3cqw;
}
.ab-vlabel ul { list-style: none; }
.ab-vlabel li,
.ab-vlabel__t {
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: clamp(12px, 3.5cqw, 16px);
  line-height: 1.22;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ab-vlabel__m {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(8.5px, 2.25cqw, 10px);
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 0.8cqw;
}
.ab-vlabel__p {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: clamp(10.5px, 2.95cqw, 13px);
  line-height: 1.42;
  letter-spacing: 0;
  text-transform: none;
}
.ab-cstamp {
  align-self: flex-start;
  color: rgba(12, 12, 12, 0.72);
  border: 1px solid rgba(12, 12, 12, 0.55);
  padding: 1.5cqw 2.4cqw 1.3cqw;
  transform: rotate(1.1deg);
  transform-origin: 0 100%;
}
/* a small sheet (a narrow phone, a short window): the labels run the sheet's
   width, the publications run on in one line, and the type goes to the
   site's own floor, 8px */
@container (max-width: 330px) {
  .ab-verso { padding: 5.8cqw 5.4cqw 5cqw; gap: 1.6cqw; }
  .ab-verso__labels { gap: 2cqw; }
  .ab-vlabel:nth-child(n) { width: auto; margin-left: 0; padding: 2.2cqw 2.8cqw 2.3cqw; }
  .ab-vlabel ul { display: block; }
  .ab-vlabel li { display: inline; }
  .ab-vlabel li + li::before { content: " · "; }
  .ab-vlabel li, .ab-vlabel__t { font-size: 11.5px; }
  .ab-vlabel h2, .ab-vlabel__m, .ab-stamp span, .ab-cstamp span { font-size: 8px; }
  .ab-vlabel__p { font-size: 10px; line-height: 1.38; }
  .ab-stamp b { font-size: 13px; }
  .ab-stamp { padding: 1.8cqw 2.4cqw 1.5cqw; }
  .ab-pencil { font-size: 8.5px; }
  .ab-cstamp { padding: 1.2cqw 2cqw 1cqw; }
}
/* the smallest sheet there is (a 320px phone): the same, with less air */
@container (max-width: 300px) {
  .ab-verso { padding: 5cqw 5cqw 4.4cqw; gap: 1.2cqw; }
  .ab-verso__labels { gap: 1.5cqw; }
  .ab-vlabel:nth-child(n) { padding: 1.8cqw 2.6cqw 1.9cqw; }
}
@media (min-width: 1100px) {
  .reading__inner.ab__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr);
    column-gap: clamp(48px, 7vw, 100px);
    align-items: start;
  }
  .ab__hero { grid-column: 1; grid-row: 1; }
  .ab__body { grid-column: 1; grid-row: 2; max-width: none; margin-top: calc(var(--sp) * 9); }
  .ab__fig {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    margin: 0;
  }
  .ab__pin {
    margin: 0 0 0 auto;
    will-change: transform;
    /* as wide as the window's height lets the whole sheet, its line and its
       button stand between the two bands (held 5% of the window under the
       head band: 64 + 64 + about 127px round the sheet) */
    --pw: min(100%, max(260px, calc((95svh - 255px) * var(--face, 0.7626))));
  }
}
/* the narrowest phones: the sheet takes the page's margin down to 16px, so
   the back has a few more characters a line */
@media (max-width: 360px) {
  .ab__fig { margin-left: -10px; margin-right: -10px; }
}

/* -------------------------------------------------------- Quantum Memory */
/* /quantum-memory/ (2026-11-14): the framework the work stands on, on a page
   of its own. A page of the book, set on the sheet: the essay in a reading
   column, and beside each chapter the thing it describes, to be handled. 01
   is a print box (a 3D object: tray, lid, tape; --q is 1/420 of its stage);
   02 to 05 are hairline drawings (main.js, 7c). From 1100px the figure stands
   beside its chapter and is held in view while the chapter is read (main.js
   pins it: the page is carried by the glide, which a sticky position cannot
   follow); narrower, it stands under the chapter's heading. Without the
   script there is no box and no drawing, and plate 01 stands in the text. */
.reading.qm {
  padding-left: max(calc(var(--sp) * 6), var(--frame-x));
  padding-right: max(calc(var(--sp) * 6), var(--frame-x));
}
.reading__inner.qm__inner {
  display: block;
  max-width: 1100px;
  text-align: left;
}
.qm__chap + .qm__chap,
.qm__coda {
  margin-top: calc(var(--sp) * 34);
  padding-top: calc(var(--sp) * 14);
  border-top: 1px solid rgba(12, 12, 12, 0.14);
}
.qm__hero,
.qm__head,
.qm__body { max-width: 600px; }
.qm .reading__title.qm__title {
  margin: calc(var(--sp) * 3) 0 calc(var(--sp) * 6);
  line-height: 0.925;
  max-width: 6em;
}
.qm__sub {
  font-size: var(--fs-about);
  line-height: 1.27;
  margin-bottom: calc(var(--sp) * 5);
}
.qm .reading__body { width: 100%; }
.qm .reading__body .info__para { max-width: none; }
.qm__contents {
  list-style: none;
  margin-top: calc(var(--sp) * 11);
  border-bottom: 1px solid rgba(12, 12, 12, 0.14);
}
.qm__contents a {
  display: grid;
  grid-template-columns: 1.6em minmax(0, 1fr) auto;
  column-gap: calc(var(--sp) * 4);
  align-items: center;
  min-height: 44px;
  border-top: 1px solid rgba(12, 12, 12, 0.14);
}
.qm__no,
.qm__ph,
.qm__cap,
.qm__rail a {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-reg);
  letter-spacing: var(--track-reg);
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
}
.qm__ct {
  font-size: var(--fs-about);
  line-height: 1.27;
  padding: calc(var(--sp) * 2) 0;
  transition: transform 0.49s var(--ease);
}
@media (hover: hover) {
  .qm__contents a:hover .qm__ct { transform: translateX(8px); }
}
.qm__contents a:focus-visible .qm__ct { transform: translateX(8px); }
.qm__chap--first .qm__head {
  margin-top: calc(var(--sp) * 28);
  padding-top: calc(var(--sp) * 14);
  border-top: 1px solid rgba(12, 12, 12, 0.14);
}
.qm__head { margin-bottom: calc(var(--sp) * 5); }
.qm__head .reading__meta { margin-bottom: calc(var(--sp) * 2); }
.qm__h {
  font-size: var(--fs-bar);
  line-height: 1.25;
  text-wrap: balance;
}
.qm__plate { margin: calc(var(--sp) * 9) 0 calc(var(--sp) * 8); }
.qm__plate .plate { width: 100%; margin: 0; }
.qm .reading__sep { text-align: center; }
/* with the script, plate 01 is the one in the box */
.qm.is-live .qm__plate--boxed { display: none; }
.qm__fig { margin: calc(var(--sp) * 2) 0 calc(var(--sp) * 8); }
.qm__pin {
  max-width: 440px;
  margin: 0 auto;
  -webkit-user-select: none;
  user-select: none;
}
.qm__cap { margin-top: calc(var(--sp) * 2); }
.qm__cap .caption__t { color: var(--ink); }
.qm__cap button,
.qm__open {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  position: relative;
}
.qm__cap button { margin-left: 0.6em; }
.qm__cap button::after { content: ""; position: absolute; inset: -14px -8px; }
.qm-fig__count { display: block; color: var(--ink); }
.qm__line {
  font-size: var(--fs-bar);
  line-height: 1.25;
  text-wrap: balance;
}
.qm__line + .qm__line { margin-top: calc(var(--sp) * 2); }
.qm__coda { max-width: 760px; }
.qm__tally { margin-top: calc(var(--sp) * 12); }
.qm__rail { display: none; }
@media (min-width: 1100px) {
  .qm__chap {
    display: grid;
    grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr);
    column-gap: clamp(48px, 7vw, 100px);
    align-items: start;
  }
  .qm__chap > * { grid-column: 1; }
  .qm__chap > .qm__fig {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    margin: 0;
  }
  .qm__chap--first > .qm__fig { grid-row: 1 / span 3; }
  .qm__pin { margin: 0 0 0 auto; will-change: transform; }
  /* the chapters, down the fore-edge: where you are, and a way to the others */
  .qm.is-live .qm__rail {
    position: fixed;
    right: calc(var(--fore-w) + var(--sp) * 5);
    top: 50%;
    transform: translateY(-50%);
    z-index: 7;
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
  }
  .qm__rail a {
    display: block;
    position: relative;
    line-height: 24px;
    padding: 0 4px 0 22px;
    transition: color 0.2s var(--ease-soft);
  }
  .qm__rail a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--ink);
    transition: width 0.49s var(--ease);
  }
  .qm__rail a.is-on { color: var(--ink); }
  .qm__rail a.is-on::before { width: 16px; }
}
@media (max-width: 768px) {
  .qm__chap + .qm__chap,
  .qm__coda { margin-top: calc(var(--sp) * 22); padding-top: calc(var(--sp) * 10); }
  .qm__chap--first .qm__head { margin-top: calc(var(--sp) * 18); padding-top: calc(var(--sp) * 10); }
  .qm__contents a { grid-template-columns: 1.6em minmax(0, 1fr); }
  .qm__ph { display: none; }
}

/* 01, the sealed box */
.qm-box__scene {
  position: relative;
  width: 100%;
  height: calc(var(--q) * 400);
  perspective: 1500px;
  perspective-origin: 50% 38%;
  cursor: pointer;
  touch-action: manipulation;
}
.qm-box__world { position: absolute; inset: 0; transform-style: preserve-3d; }
.qm-box__box {
  position: absolute;
  left: calc(var(--q) * 24);
  top: calc(var(--q) * 104);
  width: calc(var(--q) * 372);
  height: calc(var(--q) * 262);
  transform-style: preserve-3d;
  transform: rotateX(62deg);
  text-transform: none;
  letter-spacing: 0;
}
.qm-box__box > *,
.qm-box__lid > * { position: absolute; }
.qm-box__shadow {
  inset: -4% -5% -16% -5%;
  background: rgba(12, 12, 12, 0.42);
  filter: blur(16px);
  transform: translateZ(-2px);
}
.qm-box__floor { inset: 0; background: #0d0c0b; }
.qm-box__wall { background: #181614; box-shadow: inset 0 0 0 1px rgba(245, 243, 240, 0.07); }
.qm-box__wall--f { left: 0; right: 0; top: calc(100% - calc(var(--q) * 40)); height: calc(var(--q) * 40); transform-origin: 50% 100%; transform: rotateX(-90deg); background: #1a1816; }
.qm-box__wall--b { left: 0; right: 0; top: 0; height: calc(var(--q) * 40); transform-origin: 50% 0; transform: rotateX(90deg); background: #131110; }
.qm-box__wall--l { left: 0; top: 0; bottom: 0; width: calc(var(--q) * 40); transform-origin: 0 50%; transform: rotateY(-90deg); background: #100f0e; }
.qm-box__wall--r { right: 0; top: 0; bottom: 0; width: calc(var(--q) * 40); transform-origin: 100% 50%; transform: rotateY(90deg); background: #100f0e; }
.qm-box__lid {
  left: calc(var(--q) * -3);
  top: calc(var(--q) * -3);
  right: calc(var(--q) * -3);
  bottom: calc(var(--q) * -3);
  transform-style: preserve-3d;
  transform-origin: 50% 0;
  transform: translateZ(calc(var(--q) * 40));
}
.qm-box__top {
  inset: 0;
  background: #1e1b19;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(245, 243, 240, 0.12);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.qm-box__under {
  inset: 0;
  background: #0f0e0d;
  transform: translateZ(-1px) rotateY(180deg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.qm-box__top > * { position: absolute; }
.qm-box__t {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: calc(var(--q) * 10.5);
  line-height: calc(var(--q) * 16);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--room-dim);
  white-space: nowrap;
}
.qm-box__tl { left: calc(var(--q) * 22); top: calc(var(--q) * 18); }
.qm-box__tr { right: calc(var(--q) * 56); top: calc(var(--q) * 18); }
.qm-box__bl { left: calc(var(--q) * 22); bottom: calc(var(--q) * 18); }
.qm-box__sup { left: calc(var(--q) * 30); right: calc(var(--q) * 62); top: 50%; height: calc(var(--q) * 60); margin-top: calc(var(--q) * -30); }
/* the two words stand in one place, as the two states do; main.js crosses
   them by the clock (a CSS transition here makes Safari drop the rest of the
   lid's print). They are decoration: one of the two is always a ghost, faint
   by design, and the states themselves are said in the essay's first
   sentence beside the box. So they are drawn as generated content (data-w),
   which is not text a reader or a contrast rule is asked to read. */
.qm-box__sup b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: calc(var(--q) * 40);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.1;
}
.qm-box__sup b::before { content: attr(data-w); }
.qm-box__sup b:first-child { opacity: 0.94; }
.qm-box__tape { position: absolute; right: calc(var(--q) * 26); top: 0; bottom: 0; width: calc(var(--q) * 11); background: var(--safelight); }
.qm-box__lip { background: #1b1917; box-shadow: inset 0 0 0 1px rgba(245, 243, 240, 0.08); }
.qm-box__lip--f { left: 0; right: 0; top: calc(100% - calc(var(--q) * 15)); height: calc(var(--q) * 15); transform-origin: 50% 100%; transform: rotateX(90deg); background: #211e1c; }
.qm-box__lip--b { left: 0; right: 0; top: 0; height: calc(var(--q) * 15); transform-origin: 50% 0; transform: rotateX(-90deg); }
.qm-box__lip--l { left: 0; top: 0; bottom: 0; width: calc(var(--q) * 15); transform-origin: 0 50%; transform: rotateY(90deg); background: #151312; }
.qm-box__lip--r { right: 0; top: 0; bottom: 0; width: calc(var(--q) * 15); transform-origin: 100% 50%; transform: rotateY(-90deg); background: #151312; }
.qm-box__wall--f .qm-box__tape { right: calc(var(--q) * 23); top: calc(var(--q) * 14); bottom: auto; height: calc(var(--q) * 17); }
/* the print: a sheet of paper with the photograph on it, whole. It is shown
   only once the sheet is flat to the reader, and then it comes up */
.qm-box__print {
  position: absolute;
  left: 0;
  top: calc(var(--q) * 235 - (var(--q) * 420 / var(--ar, 1.5) + var(--q) * 8) / 2);
  width: calc(var(--q) * 420);
  margin: 0;
  padding: calc(var(--q) * 4);
  background: var(--sheet);
  box-shadow: 0 0 0 1px rgba(12, 12, 12, 0.1), 0 calc(var(--q) * 22) calc(var(--q) * 34) calc(var(--q) * -22) rgba(12, 12, 12, 0.5);
}
.qm-box__print img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar, 1.5);
  visibility: hidden;
}
.qm-box__print img.is-up { visibility: visible; }
@keyframes qm-come-up {
  from { filter: contrast(0.04) brightness(1.92); }
  55% { filter: contrast(0.62) brightness(1.2); }
  to { filter: contrast(1) brightness(1); }
}
.qm-box__print img.is--coming-up { animation: qm-come-up 2.1s cubic-bezier(0.33, 0, 0.2, 1) both; }
.qm-box__print img.is--going { animation: qm-come-up 0.32s var(--ease-soft) reverse both; }
/* (balanced: when the caption takes two lines, as plate 01's does since it
   was put right on 2026-11-14, it breaks into two even lines and does not
   leave the state word alone on the second) */
.qm-box .qm__cap { text-align: center; min-height: 1.5em; text-wrap: balance; }
.qm__open {
  display: block;
  margin: calc(var(--sp) * 2) auto 0;
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: var(--fs-about);
  line-height: 44px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* 02 to 05, the drawings */
.qm-fig__draw svg { display: block; width: 100%; height: auto; overflow: visible; }
.qm-fig .ln { fill: none; stroke: var(--ink); stroke-opacity: 0.3; stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke-opacity 0.45s var(--ease-soft); }
.qm-fig .pt { fill: var(--ink); transition: fill-opacity 0.45s var(--ease-soft); }
.qm-fig .hit { fill: transparent; stroke: none; cursor: grab; outline-offset: -6px; }
.qm-fig .on { stroke: var(--safelight) !important; stroke-opacity: 1 !important; }
.qm-fig circle.on { fill: var(--safelight) !important; stroke: none !important; }
.qm-fig .ticks path { fill: none; stroke: var(--ink); stroke-opacity: 0.34; stroke-width: 1; vector-effect: non-scaling-stroke; }
.qm-fig .per { cursor: pointer; }
.qm-fig .per__ring { fill: var(--sheet); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke-opacity 0.5s var(--ease-soft); }
.qm-fig .per__dot { fill: var(--ink); transition: opacity 0.5s var(--ease-soft); }
@media (hover: hover) {
  .qm-fig .per:hover .per__dot { fill: var(--safelight); }
}
.qm-fig .per.gone { cursor: default; }
.qm-fig .per.gone .per__ring { stroke-opacity: 0.3; stroke-dasharray: 3 4; }
.qm-fig .per.gone .per__dot { opacity: 0; }
.qm-fig .lnk.gone { stroke-opacity: 0.12; stroke-dasharray: 2 5; }
.qm-fig .in { stroke: var(--ink); stroke-width: 1; stroke-opacity: 0; vector-effect: non-scaling-stroke; transition: fill-opacity 0.5s var(--ease-soft), stroke-opacity 0.5s var(--ease-soft); }
.qm-fig .in.gone { fill-opacity: 0; stroke-opacity: 0.42; }
.qm-fig .wave.is-obs { stroke-opacity: 1; stroke-width: 1.6; }
.qm-fig .wave.is-off { stroke-opacity: 0.09; }
.qm-fig .dot,
.qm-fig .obsl { opacity: 0; transition: opacity 0.25s linear; }
.qm-fig .dot.show,
.qm-fig .obsl.show { opacity: 1; }
.qm-fig .obsl { stroke-dasharray: 2 5; }
.qm-fig .vf__b { fill: none; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.qm-fig .vf { transform-box: fill-box; transform-origin: center; }
@keyframes qm-snap { from { transform: scale(0.9); } to { transform: scale(1); } }
.qm-fig .vf.snap { animation: qm-snap 0.32s var(--ease) both; }
@keyframes qm-frm { from { opacity: 0; } to { opacity: 1; } }
.qm-fig .frm { animation: qm-frm 0.5s var(--ease-soft) both; transition: opacity 0.6s var(--ease-soft); }
.qm-fig .frm.out { opacity: 0; }
.qm-fig .frm__r { fill: var(--sheet); fill-opacity: 0.82; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.qm-fig .frm__s { stroke: var(--safelight); stroke-width: 3; vector-effect: non-scaling-stroke; }
.qm-fig .frm__n { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; fill: var(--ink); fill-opacity: 0.62; }

/* --------------------------------------------------------- darkroom home */
/* The home page is the room where the book's pages are printed (build.mjs,
   darkroomHTML; main.js, initDarkroom). A dark room under a safelight: a
   drying line across the top with a place for every chapter's opening plate
   in the book's order, and a developing tray below it holding one print at a
   time (on a desktop the tray hugs a 3:2 box, the print in its middle; on a
   phone it hugs the print). Type is paper on the dark; the small register is
   the mono, the name the display face. Nothing here ever lies on a photograph:
   the grain and the safelight are the room's own ground, under everything,
   and the only thing that touches a plate is the develop-in, which ends at
   filter: none. Every size inside the room follows from a few lengths set
   per screen (a hung print's box, the line's gaps, the paper margin and the
   tray around it), and the print in the tray is the largest that fits. */

/* the room's ground runs under the page and the browser's own edges */
html:has(> body.is--darkroom),
body.is--darkroom,
body.is--darkroom #smoothscroll {
  background: var(--room);
}
.darkroom {
  --dim: rgba(245, 243, 240, 0.68);       /* 6.5:1 at the least on the room, under the safelight */
  --faint: rgba(245, 243, 240, 0.56);     /* the pencil of a place still to come; 5:1 at the least, under the safelight */
  --tray: #1c1b1a;
  --hw: 180px;                            /* a hung print: at most this wide */
  --hh: 150px;                            /* and this tall */
  --gap: 30px;                            /* between places on the line */
  --edge: var(--frame-x);                 /* the room's side margin: the frame's inset, so the name, the first print on the line and the totals share an edge */
  --m: 12px;                              /* the paper margin of the print in the tray */
  --tp: 24px;                             /* the tray around the sheet */
  --bar-h: 40px;                          /* the caption under the tray: two lines at most */
  --frame-h: 32px;                        /* the frame's rows, as on every page: the name and the section at the top, the bar and the page number at the foot */
  --frame-pad: calc(var(--sp) * 4);
  --bar-min: 360px;                       /* the caption's row at its narrowest (under a tall print in a small window) */
  --wire: clamp(64px, 29svh - 196px, 124px); /* how far down the wall the line is strung */
  --lx: calc(100% - 64px);                /* the safelight, high on the wall at the top right */
  --ly: 30px;
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  /* the safelight's glow on the ground, and the bench a little lighter at the
     foot; the grain is laid over both (::before) and under everything else */
  background:
    radial-gradient(360px 270px at var(--lx) var(--ly), rgba(196, 70, 30, 0.19) 0%, rgba(168, 56, 24, 0.085) 40%, rgba(150, 48, 20, 0) 74%),
    radial-gradient(130% 80% at 50% 108%, #1b1816 0%, var(--room) 58%);
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-reg);
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
}
/* the paper grain is baked opaque at the paper colour, so it can only give
   the dark its texture as a thin layer: over the ground, under the room */
.darkroom::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/paper.png") repeat;
  background-size: 192px 192px;
  opacity: 0.07;
  pointer-events: none;
}
/* the safelight itself: a small dim lamp on the wall; its light is on the
   ground only, and the line is strung below it */
.darkroom__lamp {
  position: absolute;
  left: var(--lx);
  top: var(--ly);
  width: 26px;
  height: 13px;
  translate: -50% -50%;
  border-radius: 2px;
  background: #170d0a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 18px 3px rgba(190, 64, 28, 0.2);
  pointer-events: none;
}
.darkroom__lamp::after {
  content: "";
  position: absolute;
  inset: 2px 3px;
  border-radius: 1px;
  background: radial-gradient(110% 150% at 50% 20%, #c95a32 0%, #93321a 52%, #571a0d 100%);
  opacity: 0.82;
}
.darkroom__seg { white-space: nowrap; }
.darkroom b { font-weight: 400; color: var(--paper); }

/* The name on the door is the frame's running head, where it stands on
   every page: the register, on the + opener's line, at the left. Here, on
   the first page, his role follows it. At the right, where a page names its
   section, the line's legend stands beside the lamp, and on a wide screen
   the room names itself before it. */
.darkroom__door {
  position: absolute;
  z-index: 2;
  top: var(--frame-pad);
  left: max(var(--frame-x), env(safe-area-inset-left, 0px));
  display: flex;
  align-items: baseline;
  gap: 1.6em;
  line-height: var(--frame-h);
  white-space: nowrap;
}
.darkroom__name {
  font: inherit;
  letter-spacing: inherit;
  color: var(--paper);
}
.darkroom__role {
  color: var(--dim);
}
/* under 1000px wide the role would reach the +: it starts under the name */
@media (max-width: 999px) {
  .darkroom__door {
    display: block;
    white-space: normal;
  }
  .darkroom__role {
    margin-top: -6px;
    line-height: 1.4;
  }
}

/* the drying line: the book's running order, one place per print. It scrolls
   sideways when it is longer than the screen (wheel and drag in main.js) */
.darkroom__line {
  position: relative;
  min-width: 0;
  padding-top: var(--wire);
}
.darkroom__legend {
  position: absolute;
  /* the frame's right-hand head: on the + opener's line, clear of the lamp
     (26px wide, centred 64px from the edge) */
  right: max(96px, env(safe-area-inset-right, 0px));
  top: var(--frame-pad);
  line-height: var(--frame-h);
  color: var(--dim);
  white-space: nowrap;
}
@media (min-width: 1280px) {
  .darkroom__legend::before {
    content: "The darkroom · ";
    color: var(--paper);
  }
}
/* a narrow window: the legend would reach the +, so it stands under the
   frame's row, over the line */
@media (min-width: 769px) and (max-width: 919px) {
  .darkroom__legend {
    top: calc(var(--wire) - 20px);
    right: max(var(--frame-x), env(safe-area-inset-right, 0px));
    line-height: 1.4;
  }
}
.darkroom__wired {
  position: relative;
}
.darkroom__wire {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 6px;
  height: 1px;
  background: rgba(245, 243, 240, 0.5);
  pointer-events: none;
}
.darkroom__row {
  position: relative; /* the places measure their offsets from it */
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  /* room above the wire for a lifted print, below the notes for a shadow */
  padding: 6px 0 14px var(--edge);
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-padding-inline: var(--edge);
  /* a sideways drag scrolls the line; two fingers still zoom the page */
  touch-action: pan-x pinch-zoom;
  cursor: grab;
}
.darkroom__row::-webkit-scrollbar { display: none; }
/* the trailing margin, which a scrolling row's own padding does not keep in
   every engine */
.darkroom__row::after {
  content: "";
  flex: none;
  width: max(1px, calc(var(--edge) - var(--gap)));
  height: 1px;
}
.darkroom__row.is-drag { cursor: grabbing; }
.darkroom__place {
  flex: none;
  display: flex;
}
.darkroom__hung {
  /* the print's box: as large as the place allows, at its own proportions */
  --iw: min(var(--hw), var(--hh) * var(--ar));
  --ih: min(var(--hh), var(--hw) / var(--ar));
  display: block;
  width: calc(var(--iw) + 8px);
  color: var(--dim);
  cursor: pointer;
  transform-origin: 50% 0;
  transition: transform 0.35s var(--ease);
  -webkit-user-drag: none;
}
.darkroom__clips {
  position: relative;
  display: block;
  height: 14px;
}
.darkroom__clips::before,
.darkroom__clips::after {
  content: "";
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(245, 243, 240, 0.82);
}
.darkroom__clips::before { left: 22%; }
.darkroom__clips::after { right: 22%; }
.darkroom__print {
  display: block;
  padding: 4px;
  background: var(--sheet);
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.8);
  /* shown and hidden outright: never a transition, not even the 0.01ms one
     reduced motion gives everything, which holds a print visible for a
     frame where it has just left */
  transition-property: none;
}
.darkroom__thumb {
  display: block;
  width: var(--iw);
  height: var(--ih);
  max-width: none;
  -webkit-user-drag: none;
}
/* the pencil note: the title on its line, the page on its own */
.darkroom__note {
  display: block;
  margin-top: 9px;
  color: var(--dim);
}
.darkroom__note-t {
  display: block;
  color: var(--paper);
  /* two lines at most: the full title is in the place's name */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.darkroom__note-p {
  display: block;
  white-space: nowrap;
}
/* not yet printed, or in the tray: the clips hang empty and the pencil keeps
   the place, faint where nothing has been printed yet. Before the script has
   set the night's work out, no print shows at all (the room without the
   script shows them all: the <noscript> block in build.mjs) */
.darkroom__hung.is-empty .darkroom__print,
.darkroom__hung.is-out .darkroom__print,
.darkroom:not(.is-ready) .darkroom__print {
  visibility: hidden;
}
/* The room is not shown until the script has set it out and its type is in
   (main.js adds is-lit): before that its parts stood where the stylesheet
   alone puts them and in stand-in faces, and moved when the script and then
   the faces arrived. Should the script never run, it is shown as it stands
   after five seconds; without scripting at all, at once (build.mjs). */
.darkroom:not(.is-lit) {
  visibility: hidden;
  animation: room-late 0s linear 5s forwards;
}
@keyframes room-late {
  to {
    visibility: visible;
  }
}
.darkroom__hung.is-empty .darkroom__note,
.darkroom__hung.is-empty .darkroom__note-t {
  color: var(--faint);
}
.darkroom__hung.is-out {
  cursor: default;
}
@media (hover: hover) {
  .darkroom__hung:not(.is-empty):not(.is-out):hover {
    transform: translateY(-5px);
  }
}
/* landed: it swings a little on its clips */
.darkroom__hung.is-swing {
  animation: darkroom-swing 1.2s cubic-bezier(0.3, 0.6, 0.3, 1) both;
}
@keyframes darkroom-swing {
  0% { transform: rotate(0deg); }
  22% { transform: rotate(1.1deg); }
  50% { transform: rotate(-0.55deg); }
  76% { transform: rotate(0.2deg); }
  100% { transform: rotate(0deg); }
}

/* the bench: the tray and its bar. Most of the prints are 3:2, so the tray
   hugs one box, a 3:2 print's at the largest that fits the bench (a size
   container): the bench's width, or its height less the bar (--boxw). Every
   print lies in the middle of that box at its own proportions (--ar, set per
   print), as large as the box allows: a square or 4:3 print with the tray's
   dark either side, a wider one with a little above and below. The tray is
   the same whatever the print, so nothing under it moves and Next stays
   under a pointer pressing it again. The bar under it takes the tray's
   width, but never less than the controls on one line beside a caption
   (--bar-min); under a narrower tray (a short window) it is wider than the
   tray and centred under it. */
.darkroom__bench {
  position: relative;
  z-index: 1;
  min-height: 0;
  container-type: size;
  display: grid;
  place-items: center;
}
.darkroom__desk {
  --boxw: min(100cqw - 2 * (var(--edge) + var(--tp) + var(--m)) - 2px, (100cqh - var(--bar-h) - 2 * (var(--tp) + var(--m)) - 2px) * 1.5);
  --boxh: calc(var(--boxw) / 1.5);
  --pw: min(var(--boxw), var(--boxh) * var(--ar));
  --bw: calc(var(--boxw) + 2 * (var(--m) + var(--tp)) + 2px);
  --barw: max(var(--bw), var(--bar-min));
  display: flex;
  flex-direction: column;
  align-items: center;
}
.darkroom__tray {
  position: relative;
  padding: var(--tp);
  background: var(--tray);
  border: 1px solid rgba(245, 243, 240, 0.14);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 6px var(--tray),
    inset 0 0 0 7px rgba(245, 243, 240, 0.045),
    inset 0 16px 36px rgba(0, 0, 0, 0.42),
    inset 0 -2px 8px rgba(0, 0, 0, 0.3);
  /* a sideways swipe is the room's (main.js); two fingers still zoom the
     page, to look closer at the print */
  touch-action: pan-y pinch-zoom;
  cursor: pointer;
}
/* the well is the tray's whole inside: a sheet sliding in comes from under
   the tray's edge, and is never seen half-way through anything else. On a
   desktop it is the 3:2 box, with the print in its middle */
.darkroom__well {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--boxw) + 2 * (var(--m) + var(--tp)));
  height: calc(var(--boxh) + 2 * (var(--m) + var(--tp)));
  margin: calc(-1 * var(--tp));
  padding: var(--tp);
  overflow: hidden;
  border-radius: 2px;
}
.darkroom__sheet {
  position: relative;
  display: block;
  box-sizing: border-box;
  margin-inline: auto;
  width: calc(var(--pw) + 2 * var(--m));
  height: calc(var(--pw) / var(--ar) + 2 * var(--m));
  padding: var(--m);
  background: var(--sheet);
  box-shadow: 0 30px 60px -14px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.5);
  transform: translateX(var(--dx, 0px));
  transition:
    transform var(--t, 0.45s) cubic-bezier(0.2, 0.7, 0.25, 1),
    translate 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  -webkit-user-drag: none;
}
@media (hover: hover) {
  .darkroom__sheet:hover {
    translate: 0 -3px;
    box-shadow: 0 44px 70px -16px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 0.5);
  }
}
.darkroom__sheet.is-still { transition: none; }
/* Waiting for its print to come down onto it, the sheet draws nothing: no
   paper, no shadow, no photograph (hidden outright, never faded, so a print
   is never seen half there: no transition at all, its shadow's included).
   The link itself stays, so the keyboard's focus on it, and its ring, stay
   where the print is landing. */
.darkroom__sheet.is-hold {
  background: transparent;
  box-shadow: none;
  transition: none;
}
.darkroom__sheet.is-hold > *,
.darkroom:not(.is-ready) .darkroom__sheet {
  visibility: hidden;
}
.darkroom__plate {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  -webkit-user-drag: none;
  /* hidden and shown outright (the develop-in below is its one transition) */
  transition-property: none;
}
/* the develop-in: the sheet comes up out of the white and resolves to the
   untouched photograph. The only effect a plate ever takes, only on a fresh
   print in the room's own cycle, and its end is filter: none */
.darkroom__plate.is-blank { filter: brightness(1.16) contrast(0.8); }
.darkroom__plate.is-dev { transition: filter 2.8s cubic-bezier(0.6, 0, 0.4, 1); }
/* the hold, a hairline along the tray's foot */
.darkroom__timer {
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 1px;
  background: rgba(245, 243, 240, 0.6);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}
.darkroom__bar {
  /* the tray's width (--barw, above): the caption starts where the tray does */
  width: var(--barw);
  min-height: var(--bar-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 6px;
}
/* The caption beside the controls, in three lines at most. Its parts keep
   whole, except the second (the place; the title, while it comes up), which
   may break within itself where the caption is narrow; a line still never
   starts with a '·' (it is held to the word before it). Where even three
   lines will not hold every caption (a short window: main.js measures them
   all), the room shows the short form instead (.is-short): two lines, the
   title, then the page and the place. The whole caption is still what is
   read out. */
.darkroom__cap {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--dim);
}
.darkroom__cap .darkroom__seg:nth-child(2) { white-space: normal; }
.darkroom__cap2 {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--dim);
}
.darkroom__cap2-t,
.darkroom__cap2-p {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.darkroom__cap2-t { color: var(--paper); }
.darkroom.is-short .darkroom__cap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.darkroom.is-short .darkroom__cap2 { display: block; }
/* The bar: what you press, in capitals, at the foot of the room in the
   middle, as on every page. The arrows step through the prints, with the
   count (the register: where you are) between them; then Pause, and the way
   into the book. */
.darkroom__ctl {
  --bar-gap: calc(var(--sp) * 8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--bar-gap);
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: var(--fs-bar);
  line-height: var(--frame-h);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.darkroom__btn {
  /* each word is its own 44px target (the box itself, not a pad laid over
     its neighbours) */
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--paper);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: underline 2px transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
}
@media (hover: hover) {
  .darkroom__btn:not([aria-disabled="true"]):hover { text-decoration-color: var(--paper); }
}
.darkroom__btn[aria-disabled="true"] {
  color: rgba(245, 243, 240, 0.3);
  cursor: default;
}
/* the count stands close between its arrows */
.darkroom__count {
  margin: 0 calc(var(--bar-gap) / -2);
  min-width: 5.2em;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-reg);
  letter-spacing: var(--track-reg);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* a print in the air, between the tray and the line */
.darkroom__fly {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 0;
  height: 0;
  pointer-events: none;
}
.darkroom__fly-p {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  background: var(--sheet);
}
.darkroom__fly-p img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

/* the foot of the room is the frame's: the totals at the left, the bar in
   the middle, and at the right the page number, which is the page the print
   in the tray is printed on in the book */
.darkroom__foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  /* the bar's words are 44px targets: the foot is padded so their type sits
     on the line the bar keeps on every page (its centre one bar's height
     and a pad from the bottom) */
  padding: 0 max(var(--frame-x), env(safe-area-inset-right, 0px)) calc(var(--frame-pad) + var(--frame-h) / 2 - 22px) max(var(--frame-x), env(safe-area-inset-left, 0px));
}
.darkroom__totals {
  color: var(--dim);
  line-height: 16px;
}
.darkroom__folio {
  justify-self: end;
  line-height: var(--frame-h);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

/* every focus ring in the room is paper, on the dark */
.darkroom a:focus-visible,
.darkroom button:focus-visible,
.darkroom [role="button"]:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}
.darkroom .darkroom__hung:focus-visible {
  outline-offset: 4px;
}

/* a short desktop window: smaller prints on the line, so the tray keeps the
   room. No place stands taller than a 3:2 print's (the square one hangs a
   little smaller here), and a pencilled title keeps to its two lines, as
   everywhere. (Not a phone on its side, which is as short but has its own
   layout, and its own rules for the line.) */
@media (min-width: 769px) and (min-height: 561px) and (max-height: 780px) {
  .darkroom {
    --hw: 156px;
    --hh: 104px;
    --gap: 26px;
  }
  .darkroom__row { padding-bottom: 8px; }
}
/* and shorter still (a 600px window): the line's prints smaller again, and
   the tray a little closer round the print */
@media (min-width: 769px) and (min-height: 561px) and (max-height: 660px) {
  .darkroom {
    --hw: 132px;
    --hh: 88px;
    --gap: 22px;
    --tp: 18px;
  }
}

/* A phone: one column, top to bottom — the name (the + at the top centre),
   the line, the tray at the full width with its caption under it, the
   controls, the totals, and the way into the book. The print in the tray is
   fitted to one box whatever its proportions (--box: main.js sets its
   height, --tray-h, to a 3:2 sheet's at the full width, or to what height is
   left), and the caption is always two lines (the title; the page and the
   place), each cut short with an ellipsis where it must be, the whole
   caption still read out; so nothing under the line moves from one print to
   the next, and Next stays under a finger pressing it again. The tray is
   always the full width, so it and its caption share their edges: a
   squarer print lies in the middle of it, and a wider one, shorter than its
   box, lies in the middle of the box, its caption lifted to sit under it.
   The spare height is five even gaps (the 1fr rows) between the name, the
   line, the box, the controls, the totals and the way into the book. */
@media (max-width: 768px) {
  .darkroom {
    /* no place on a phone's line stands taller than a 3:2 print's (the
       square one hangs a little smaller), so the line is only as deep as it
       must be */
    --hw: 110px;
    --hh: 73px;
    --gap: 18px;
    --edge: 14px;
    --m: 7px;
    --tp: 6px;
    --lx: calc(100% - 40px);
    --ly: 26px;
    --box: var(--tray-h, 40svh);
    grid-template-columns: minmax(0, 1fr);
    --frame-h: 24px;
    --frame-pad: calc(var(--sp) * 3);
    /* the name (on the + opener's line), the line, the tray and its caption,
       the totals, the bar: four even gaps between them */
    grid-template-rows: auto 1fr auto 1fr calc(var(--box) + 2 * (var(--m) + var(--tp)) + 2px) auto 1fr auto 1fr auto;
    padding: var(--frame-pad) 0 max(var(--frame-pad), env(safe-area-inset-bottom, 0px));
    font-size: var(--fs-reg);
    letter-spacing: var(--track-reg);
  }
  /* the name shares its line with the +; the role starts under it */
  .darkroom__door {
    grid-row: 1;
    position: static;
    display: block;
    padding: 0 var(--edge);
    white-space: normal;
  }
  .darkroom__role {
    margin-top: 8px;
    line-height: 1.4;
  }
  .darkroom__line {
    grid-row: 3;
    padding-top: 0;
  }
  .darkroom__legend {
    position: static;
    padding: 0 var(--edge);
    margin-bottom: 6px;
    line-height: 1.4;
  }
  .darkroom__row { padding-bottom: 4px; }
  .darkroom__note { letter-spacing: 0.03em; }
  .darkroom__bench,
  .darkroom__desk,
  .darkroom__bar,
  .darkroom__foot {
    display: contents;
  }
  .darkroom__desk {
    --pw: min(100vw - 2 * (var(--edge) + var(--tp) + var(--m)) - 2px, var(--box) * var(--ar));
  }
  .darkroom__tray {
    grid-row: 5;
    justify-self: center;
    align-self: center;
    min-width: calc(100vw - 2 * var(--edge));
  }
  /* the tray hugs the print here (the box is the row it stands in) */
  .darkroom__well {
    display: block;
    width: auto;
    height: auto;
  }
  /* the caption: its short form, always (the whole of it is read out) */
  .darkroom__cap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .darkroom__cap2 {
    display: block;
    grid-row: 6;
    align-self: start;
    padding: 9px var(--edge) 0;
    translate: 0 calc((var(--pw) / var(--ar) - var(--box)) / 2);
  }
  .darkroom__totals {
    grid-row: 8;
    padding: 0 var(--edge);
  }
  /* the bar, at the foot in the middle; the page number is on the caption's
     second line here, as it is under a plate on a chapter */
  .darkroom__ctl {
    --bar-gap: calc(var(--sp) * 5);
    grid-row: 10;
    min-height: 44px;
    padding: 0 var(--edge);
  }
  .darkroom__folio { display: none; }
  /* the narrowest phones: the five targets closer together */
  @media (max-width: 380px) {
    .darkroom__ctl {
      --bar-gap: 10px;
      padding: 0 6px;
    }
  }
}
/* a tall phone: its spare height goes first to the line, its prints larger
   (up to 140px wide on the tallest), and then to the gaps */
@media (max-width: 768px) and (min-height: 800px) {
  .darkroom {
    --hw: 120px;
    --hh: 80px;
    --gap: 20px;
  }
}
@media (max-width: 768px) and (min-height: 860px) {
  .darkroom {
    --hw: 140px;
    --hh: 93px;
    --gap: 22px;
  }
}
/* a short phone: smaller prints on the line, so the tray keeps the room */
@media (max-width: 768px) and (max-height: 700px) {
  .darkroom {
    --hw: 96px;
    --hh: 64px;
    --gap: 16px;
    padding-top: 12px;
  }
  .darkroom__note { margin-top: 6px; }
  .darkroom__clips { height: 11px; }
}
/* the smallest phones (320×568): the tray needs every line it can get, so a
   pencilled title keeps to one line (its full title is the place's name) */
@media (max-width: 768px) and (max-height: 600px) {
  .darkroom {
    --hw: 90px;
    --hh: 60px;
    --gap: 14px;
  }
  .darkroom__note-t { -webkit-line-clamp: 1; }
}
/* A phone on its side (any window this short and wide): the tray fills the
   height at the left, under the name; the line, the caption, the controls
   and the foot stand beside it. The tray's column is half the width, less
   where the column beside it would be too narrow for the controls on one
   line, so a square print and a wide one leave the other column alone; the
   caption keeps the room of its longest (--cap-h, main.js), so the controls
   stay put from print to print. Everything keeps inside the safe area of a
   phone with a notch and a home bar (--sl, --sr and the bottom inset), the
   safelight's lamp included, and the line's legend keeps clear of the lamp,
   breaking onto a second line where it must. */
@media (max-height: 560px) and (min-aspect-ratio: 1 / 1) {
  .darkroom {
    --hw: 96px;
    --hh: 64px;
    --gap: 16px;
    --edge: 16px;
    --m: 6px;
    --tp: 6px;
    --sl: max(var(--edge), env(safe-area-inset-left, 0px));
    --sr: max(var(--edge), env(safe-area-inset-right, 0px));
    --tw: min(50vw, 100vw - var(--sl) - var(--sr) - 288px);
    --tcol: calc(var(--tw) + 2 * (var(--tp) + var(--m)) + 2px);
    --lx: calc(100% - 26px - env(safe-area-inset-right, 0px));
    --ly: 20px;
    grid-template-columns: var(--tcol) minmax(0, 1fr);
    /* the spare height beside the tray in two even gaps, not one band */
    grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
    grid-template-areas:
      "tray line"
      "tray ."
      "tray bar"
      "tray ."
      "tray foot";
    column-gap: 22px;
    align-content: stretch;
    padding: 12px var(--sr) max(8px, env(safe-area-inset-bottom, 0px)) var(--sl);
    font-size: var(--fs-reg);
    letter-spacing: var(--track-reg);
  }
  /* the name and its role stop short of the + at the top centre */
  /* the name on the + opener's line; the role beside it where the column
     has the room, under it where it has not */
  .darkroom__door {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 1.6em;
    top: var(--frame-pad);
    left: var(--sl);
    max-width: calc(50vw - 20px - var(--sl));
    padding: 0;
    line-height: var(--frame-h);
    white-space: nowrap;
  }
  .darkroom__role {
    margin-top: 0;
    line-height: 1.4;
  }
  .darkroom__line {
    grid-area: line;
    padding-top: 0;
    /* the line runs on to the screen's edge, under the room's margin */
    margin-right: calc(-1 * var(--sr));
  }
  .darkroom__legend {
    position: static;
    padding: 0 calc(48px + env(safe-area-inset-right, 0px)) 0 0;
    margin: 0 0 6px;
    line-height: 1.4;
    white-space: normal;
  }
  .darkroom__row {
    padding-left: 0;
    padding-bottom: 6px;
    scroll-padding-inline: 0;
  }
  .darkroom__note {
    margin-top: 5px;
    letter-spacing: 0.03em;
  }
  /* a pencilled title keeps its two lines here (not a short phone's one,
     whose rule this width also meets) */
  .darkroom__note-t { -webkit-line-clamp: 2; }
  .darkroom__clips { height: 10px; }
  .darkroom__door,
  .darkroom__line,
  .darkroom__tray,
  .darkroom__cap,
  .darkroom__ctl,
  .darkroom__totals {
    grid-row: auto;
  }
  .darkroom__bench,
  .darkroom__desk {
    display: contents;
  }
  .darkroom__desk {
    --pw: min(var(--tw), var(--tray-h, calc(100svh - 100px)) * var(--ar));
  }
  .darkroom__tray {
    grid-area: tray;
    align-self: end;
    justify-self: center;
    min-width: 0;
  }
  .darkroom__well {
    display: block;
    width: auto;
    height: auto;
  }
  .darkroom__bar {
    grid-area: bar;
    display: flex;
    width: auto;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  /* (none of a portrait phone's placing of the caption, nor its short form:
     here the whole caption stands across its column, over the controls) */
  .darkroom__cap {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    align-self: stretch;
    min-height: var(--cap-h, 2.8em);
    padding: 0;
    translate: none;
  }
  .darkroom__cap2 { display: none; }
  /* a part of the caption longer than the column (a long place) breaks
     within itself; a line still never starts with a '·' (it is held to the
     word before it) */
  .darkroom__cap .darkroom__seg { white-space: normal; }
  /* the foot beside the tray: the totals, then the bar across the column,
     in the scale's smallest capitals (the column is narrow) */
  .darkroom__foot {
    grid-area: foot;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 2px 0 0;
  }
  .darkroom__totals { padding: 0; }
  .darkroom__ctl {
    --bar-gap: 8px;
    min-height: 44px;
    padding: 0;
    justify-content: flex-start;
    font-size: 19px;
    line-height: 24px;
  }
  /* (the column is too narrow for the count as well: the caption above the
     bar gives the page) */
  .darkroom__count { display: none; }
  .darkroom__folio { display: none; }
}
/* the smallest phones on their side (568×320, 640×360): the column beside
   the tray cannot hold the foot as well, so the foot runs along the bottom,
   as on a desktop: the totals under the tray, the way into the book beside
   them. The line's prints are smaller there, their pencilled titles kept to
   one line (main.js leaves the tray the height above the foot) */
@media (max-height: 360px) and (min-aspect-ratio: 1 / 1) {
  .darkroom {
    --foot-under: 1;
    --hw: 84px;
    --hh: 56px;
    --gap: 14px;
    grid-template-areas:
      "tray line"
      "tray ."
      "tray bar"
      "tray ."
      "totals ctl";
  }
  .darkroom__foot { display: contents; }
  .darkroom__tray { margin-bottom: 8px; }
  .darkroom__totals {
    grid-area: totals;
    align-self: center;
  }
  .darkroom__ctl {
    --bar-gap: 6px;
    grid-area: ctl;
    justify-self: start;
  }
  .darkroom__note-t { -webkit-line-clamp: 1; }
}

/* ------------------------------------------------------ pages of the book */
/* Every page except the home is a page of the book (build.mjs, shell()): the
   gutter shading on the left, the fore-edge — the stack of pages still to
   come — on the right, the running head on the + opener's line and the folio
   at the foot. All static markup: it shows without the script. The two edges
   live INSIDE #smoothscroll at a negative z-index, so they paint over the
   sheet and under everything on it — any photograph that reaches into their
   columns wins (gated), at rest and while the page turns (nothing here is
   lifted out of the page's snapshot). Where the page scrolls, the head and
   the folio are print on it, moving with it; on a chapter they are fixed and
   step aside from any plate that passes under them (see below). */
.edge {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
}
.edge--gutter {
  left: 0;
  /* the shade of the gutter: a hint of the book's fold, not a band of grey
     the name has to be read through (it was 150px wide and nearly twice as
     dark until 2026-11-13) */
  width: var(--gutter-w);
  background: var(--gutter-shade);
}
.edge--fore {
  right: 0;
  top: 6px;
  bottom: 6px;
  width: var(--fore-w);
  /* the pages still to come: fine lines three pixels apart, lighter (at one
     in two they shimmered on some screens) */
  background: var(--fore-lines);
  box-shadow: -1px 0 0 rgba(12, 12, 12, 0.1);
}
/* The running head and the folio. Inset from the page's own edges — the
   fore-edge on the right, the deepest gutter shade on the left — not from the
   screen's, and clear of a notch. */
.runhead,
.folio {
  --print-x: var(--frame-x);
  pointer-events: none;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-reg);
  line-height: var(--bar-h);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.runhead {
  top: var(--bar-pad);
  left: max(var(--print-x), env(safe-area-inset-left, 0px));
  right: max(var(--print-x), env(safe-area-inset-right, 0px));
  display: flex;
  justify-content: space-between;
  gap: 1em;
}
.folio {
  right: max(var(--print-x), env(safe-area-inset-right, 0px));
  font-variant-numeric: tabular-nums;
}
/* On a page that scrolls they are print on the page (build.mjs, pageChrome):
   the head at its top and the number at its foot, inside the glide wrapper,
   moving with the page — nothing ever passes under them. The wrapper stands
   at least a screen tall, so the foot is the foot of the screen on a short
   page. */
.runhead--page,
.folio--page {
  position: absolute;
  color: var(--muted);
}
.folio--page {
  bottom: var(--bar-pad);
}
#smoothscroll:has(> .folio--page) {
  min-height: 100vh;
  min-height: 100svh;
}
/* The frame holds still (2026-11-13). On a page that scrolls (About, the
   Diary and its entries, the Index of works) the head and the folio used to
   move with the page, off the screen, and the + stood alone over whatever
   passed under it: it struck through lines of text. Now the page scrolls
   between two bands of the sheet, one at the top and one at the foot, each
   the height of a bar's row; the name, the section, the +, the bar and the
   page number stand on them and hold still, as they do on a chapter. The
   bands are the page's own stock (the sheet and its grain, the gutter's
   shade at the left, the pages still to come at the right), so the page
   reads as one sheet with the text passing under its head and foot. They
   lie in the glide wrapper, fixed like the edges (two elements, .band,
   carried from page to page with the edges), over everything on the page
   and under the page's own fixed print. */
.band {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 8;
  height: calc(var(--bar-h) + var(--bar-pad) * 2);
  /* It takes the pointer: nothing under it is on show, so a link passing
     beneath must not take a tap through it. And it is an element, not a
     pseudo-element, for Safari on an iPhone (iOS 26), which draws the page
     on past both ends of the screen, behind the clock and behind its own
     floating bar, unless it finds a fixed element at that end; then it runs
     that element's colour on instead. It finds one by hit-testing the
     middle of the edge, 4px in, and wants an element nine tenths of the
     screen wide (WebKit, LocalFrameView::fixedContainerEdges). Without the
     bands being found, a strip of whatever was passing showed above the
     head band and below the foot band (seen in the simulator; no desktop
     engine can show it). Three things have to hold for it to find them:
     this is an element; the + and the bar's tap areas stay 5px clear of
     the edge at the middle (below); and the veil over the page is not
     there to be hit at rest (body::before, at the top of this sheet). */
  pointer-events: auto;
  background-color: var(--sheet);
  background-image:
    var(--gutter-shade),
    linear-gradient(rgba(12, 12, 12, 0.1), rgba(12, 12, 12, 0.1)),
    var(--fore-lines),
    url("/sheet.png");
  background-size: var(--gutter-w) 100%, 1px 100%, var(--fore-w) 100%, 192px 192px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
}
.band--head {
  top: 0;
  background-position: left top, right var(--fore-w) top 6px, right top 6px, 0 0;
  /* a hairline along the band's inner edge, the rule under a running head:
     without it a line of text passing under the band looked cut off by
     accident (a reviewer read it as a fault, 2026-11-13) */
  box-shadow: inset 0 -1px 0 rgba(12, 12, 12, 0.12);
}
.band--foot {
  bottom: 0;
  box-shadow: inset 0 1px 0 rgba(12, 12, 12, 0.12);
  height: calc(var(--bar-h) + var(--bar-pad) * 2 + env(safe-area-inset-bottom, 0px));
  background-position: left top, right var(--fore-w) bottom 6px, right bottom 6px, 0 0;
}
body.is--reading .runhead--page,
body.is--work .runhead--page,
body.is--reading .folio--page,
body.is--work .folio--page {
  position: fixed;
  z-index: 9;
}
body.is--reading .folio--page,
body.is--work .folio--page {
  bottom: max(var(--bar-pad), env(safe-area-inset-bottom, 0px));
}
.reading__bottom {
  bottom: max(var(--bar-pad), env(safe-area-inset-bottom, 0px));
}
/* How Safari on an iPhone finds the bands (WebKit, LocalFrameView::
   fixedContainerEdges): it hit-tests ONE point per edge of the screen, the
   middle of the edge, 4px in, and takes the first fixed element at least
   nine tenths of the screen wide among what it hit and its ancestors. On a
   phone the + and the bar stand 12px from the edge and their 44px tap areas
   reached to within 2px of it, in the middle, exactly on those points: the
   hit was the + (or Back), too small to count, and the band beneath was
   never seen. The tap areas stand 5px clear of the edge there (the same
   44px, moved 3px), so the point falls on the band. */
@media (max-width: 768px) {
  .navopener::after {
    transform: translate(-50%, calc(-50% + 3px));
  }
  .reading__bottom .anchor::after,
  .viewswitch__item::after {
    transform: translate(-50%, calc(-50% - 3px));
  }
}
/* On a chapter (and /focus/, and the album) the stage holds still and the
   plate changes: the two are fixed beside the +, the folio following the
   plate in view, white under a difference blend on desktop like the +. */
body > .runhead,
body > .folio {
  position: fixed;
  z-index: 997; /* under the menu sheet (998) and the + (999) */
  color: rgba(255, 255, 255, 0.62); /* under difference: the muted register */
  mix-blend-mode: difference;
}
body > .folio {
  bottom: max(var(--bar-pad), env(safe-area-inset-bottom, 0px));
}
/* Fixed print is never on a photograph: while a plate passes under it (the
   thumb rail, the Index) it is gone at once (main.js,
   watchChromeOverPlates), and fades back when the plate has gone. */
body > .runhead > span,
body > .folio {
  transition: opacity 0.18s var(--ease-soft);
}
body > .runhead > span.is--over,
body > .folio.is--over {
  opacity: 0;
  transition: none;
}
/* a chapter's running head opens with its title ("Kongo Dey · No. 01"); a
   phone prints the number alone, the title being on the plate's caption there
   (and the longest would reach the +) */
@media (max-width: 768px) {
  .runhead__t {
    display: none;
  }
}
/* The Index of works keeps the frame on a touch screen (2026-11-13): the
   name top-left as on every page, and the year in view filed where the
   section is, "Index · 2025". (Until then the year stood top-left in the
   name's place and the right was empty: the one page whose frame was
   different.) */
@media (hover: none), (max-width: 768px) {
  body.is--work .runhead__r {
    display: none;
  }
  body.is--work .years,
  body.is--work .years.years--label {
    left: auto;
    right: max(var(--frame-x), env(safe-area-inset-right, 0px));
    top: var(--bar-pad);
    align-items: flex-end;
  }
  body.is--work .years .years__item {
    color: var(--muted);
    font-size: var(--fs-reg);
    line-height: var(--bar-h);
    -webkit-text-stroke: 0;
  }
  body.is--work .years .years__item.is--active::before {
    content: "Index · ";
  }
}
/* a desktop's rail of years: the register's own grey, the year in view in
   ink, and clear of the page's edge (it was white under a difference blend
   at a third of its strength, 2.9:1 on the sheet, 5px from the fore-edge) */
@media (hover: hover) and (min-width: 769px) {
  body.is--work .years:not(.years--label) {
    right: calc(var(--fore-w) + var(--sp) * 5);
    mix-blend-mode: normal;
  }
  body.is--work .years:not(.years--label) .years__item {
    color: var(--muted);
    opacity: 1;
  }
  body.is--work .years:not(.years--label) .years__item.is--active,
  body.is--work .years:not(.years--label) .years__item:hover {
    color: var(--ink);
  }
  body.is--work .years:not(.years--label) .years__item:focus-visible {
    outline-color: var(--ink);
  }
}
/* a phone, or a phone on its side: the narrow edges, the smaller print */
@media (max-width: 768px), (max-height: 560px) {
  :root {
    --gutter-w: 30px;
    --fore-w: 9px;
  }
  .runhead,
  .folio {
    font-size: var(--fs-reg);
  }
}
@media (max-width: 768px) {
  /* a chapter's title is fixed top-centre and INFO / INDEX / BACK sit under
     it on a phone; the thumb strip owns the foot of the screen, and the page
     number rides on the caption line under the plate (.gallery__folio) */
  body:has(.gallery__thumbs) > .folio {
    display: none;
  }
}
/* the plate's page, on the phone caption line (built once per plate) */
.gallery__folio {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- analog layer */
/* Three moves, each in fixed places, none touching the photographs themselves:
   the paper has grain (body background, above), prints have edges, and a plate
   develops in once when its image first arrives. */

/* Print edge: drawn OUTSIDE the image box with a spread shadow, so it neither
   shifts layout nor covers a single pixel of the photograph. Reads only where
   a light image meets the paper — like a print edge should. */
.overview-item img,
.project-grid-item img,
.gallery__thumbs__item img,
.gallery__focus__item img,
.gallery__pseudo__item img,
.gallery__indexpseudo__item img,
.book__plate img,
.plate img,
.diary__paper img {
  box-shadow: 0 0 0 1px rgba(12, 12, 12, 0.12);
}

/* Develop-in: a freshly loaded plate resolves from slightly overexposed and
   flat to full density, the way paper comes up in the bath. Runs once per
   image (on its load event), never re-runs on revisit, and the final state is
   the untouched photograph. Reduced-motion zeroes it via the block below. */
@keyframes develop {
  from {
    filter: brightness(1.16) contrast(0.8);
  }
  to {
    filter: brightness(1) contrast(1);
  }
}
img.is--developing {
  animation: develop 0.55s cubic-bezier(0.33, 0, 0.2, 1) both;
}

/* (The frames' numerals, printed on the film and on the contact sheet, are
   set with the film, under "the chapter's film" above; until 2026-11-15
   they were stamped under the thumbnails only while the Index was open.) */

/* ------------------------------------------------------------- phones */
/* No mix-blend-mode on a phone. Safari composites a blended fixed layer against
   the scrolling page on the main thread, and there are three of them here (the
   +, Grid / List, the rail). Where a blend was doing legibility work on
   desktop, phones get ink: the names layer is hidden in grid view anyway, the
   list view hides the covers, and the rail is a paper-backed label. */
@media (max-width: 768px) {
  .site-header,
  .site-footer,
  .years,
  .register,
  .view--grid .projects__list,
  .view--list .projects__list {
    mix-blend-mode: normal;
  }
  .navopener__open::before,
  .navopener__open::after,
  .navopener__close::before,
  .navopener__close::after {
    background: var(--ink);
  }
  .site-footer,
  .view--grid .project-name,
  .view--list .project-name {
    color: var(--ink);
  }
  /* the covers scroll beneath Grid / List and there is no blend here: the
     glyphs carry a paper halo, like the year label */
  .viewswitch__item {
    -webkit-text-stroke: 4px var(--stock);
    paint-order: stroke fill;
  }
  /* the + never meets a cover on the work page now, but the home collage's
     centre column passes beneath it: halo the glyph too. A drop-shadow on the
     glyph outlines the union of both bars; a box-shadow per bar would paint
     paper across the other bar and break the + into three pieces. */
  .navopener__open,
  .navopener__close {
    filter: drop-shadow(1.5px 0 0 var(--stock)) drop-shadow(-1.5px 0 0 var(--stock))
      drop-shadow(0 1.5px 0 var(--stock)) drop-shadow(0 -1.5px 0 var(--stock));
  }
  .viewswitch__item:hover,
  .viewswitch__item.is--active {
    border-color: var(--ink);
  }
  .navopener:focus-visible,
  .viewswitch__item:focus-visible,
  .view--grid .project-list-item:focus-visible,
  .view--list .project-list-item:focus-visible {
    outline-color: var(--ink);
  }
}

/* ------------------------------------------------------------ page turn */
/* The whole site is one book, so moving between its pages turns the page.
   The View Transitions API snapshots what is on screen — the glide wrapper's
   eased position, the open menu, all of it — and that snapshot is the leaf.
   The spine is at the LEFT edge: going forward the old page lifts at its
   right edge and folds over to the left around the spine, the new page
   waiting beneath; going back the previous page comes back from the left and
   lays down over the current one. main.js (section 10e) puts js-turn, and
   js-turn--back for the way back, on <html> before the transition starts and
   takes them off when it settles. The veil above is the fallback where the
   API is missing or motion is reduced; a flying plate keeps the veil. */
@keyframes turn-forward {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(-180deg); }
}
@keyframes turn-back {
  from { transform: rotateY(-180deg); }
  to { transform: rotateY(0deg); }
}
::view-transition-group(root) {
  perspective: 3600px;
}
::view-transition-image-pair(root) {
  /* the UA isolates the pair, and isolation flattens 3D: without this the
     group's perspective never reaches the leaf */
  isolation: auto;
  transform-style: preserve-3d;
}
::view-transition-old(root),
::view-transition-new(root) {
  /* the UA cross-fades the two under plus-lighter; a leaf is opaque paper */
  animation: none;
  mix-blend-mode: normal;
  backface-visibility: hidden;
  transform-origin: left center;
}
html.js-turn:not(.js-turn--back)::view-transition-old(root) {
  z-index: 2;
  animation: turn-forward 780ms cubic-bezier(0.65, 0, 0.35, 1) both;
}
html.js-turn--back::view-transition-new(root) {
  z-index: 2;
  animation: turn-back 780ms cubic-bezier(0.65, 0, 0.35, 1) both;
}
/* Every piece of chrome turns with its own page — the +, Grid / List, the
   gutter, the fore-edge, the running head and the folio are print on that
   page, captured in its root snapshot exactly as composited (blends and all).
   Lifted out into groups of their own they stayed still but were drawn above
   both leaves: for the length of a turn the gutter tinted the photographs in
   its column and the running head printed on the open menu. Each page carries
   its own set, so the page beneath the leaf has its own. */
/* the register line would be caught mid-fade in the old snapshot */
html.js-turn .register {
  opacity: 0;
  transition: none;
}
/* Navigating from the open menu: the menu closes with no animation inside the
   transition callback (closeNavInstant in main.js), so the page under the
   turning leaf is clean and the old snapshot — the menu — is what turns. */
html.js-nav--instant .navscreen,
html.js-nav--instant .navscreen *,
html.js-nav--instant .navopener,
html.js-nav--instant .navopener * {
  transition: none !important;
  animation: none !important;
}

/* ------------------------------------------------------- reduced motion */
/* This design is built on perpetual motion (3D flips, a magnet rail, a glide
   wrapper, a collage that deals itself out). For anyone who asks the OS for
   reduced motion, keep the layout and the meaning but land everything in its
   resting state instead of animating into it. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  /* the frames do not fly between the film and the contact sheet: they are
     where they land (the flight's own !important rules outranked * above) */
  body.js-index--opening .gallery__thumbs__item,
  body.js-gallery--opening .gallery__thumbs__item {
    transition: none !important;
  }
  /* the page does not turn (main.js takes the veil instead); should a
     transition ever start, its pseudo-elements are not matched by * above */
  ::view-transition-group(*),
  ::view-transition-image-pair(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
  /* text that flips in from below: show it, don't rotate it */
  .js-splitlines .line .line__inner,
  .spine,
  .navscreen__anchors .anchor-item a,
  .gallery__bottom .anchor,
  .viewswitch__item,
  .wordmark__inner,
  .view--grid .project-name,
  .view--list .project-name {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .navopener__open {
    transform: none !important;
  }
  body.js-nav--opening:not(.js-nav--closing) .navopener__open,
  body.js-nav--open:not(.js-nav--closing) .navopener__open {
    opacity: 0 !important; /* with no fold, the + would print over the × */
  }
  /* the shelf is simply there: no volume rises, the line is already drawn */
  .shelf::after {
    transform: none !important;
  }
  .shelf__note {
    opacity: 1 !important;
  }
  .wordmark__register {
    opacity: 0.65 !important;
    filter: none !important;
  }
  .book,
  .book-nav {
    visibility: visible !important;
  }
  .reading__inner,
  .book,
  .years {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  /* the desktop rail keeps its vertical centring; a label never moves */
  .years {
    transform: none !important;
  }
  @media (hover: hover) and (min-width: 769px) {
    .years:not(.years--label) {
      transform: translateY(-50%) !important;
    }
  }
  /* the collage lands in place rather than flying from the centre stack */
  .overview-item,
  .overview-item .media {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .overview-item .media {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
  .gallery__thumbs__item {
    transform: none !important;
  }
}

/* --------------------------------------------------------------- a11y bits */
/* Available to screen readers, absent from the design. Used for page headings
   on views that carry no visible title. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Every focusable thing wears the same ink ring. The thumb rail and the index
   cells are role=button divs, so without naming them here they fell back to the
   browser's default blue — the one colour that appears nowhere in this design. */
.navopener:focus-visible {
  /* white like its bars, under the header's difference blend: ink on paper,
     light on the darkroom's dark (the ring is the +'s, so it prints as the +
     does wherever it stands; [role="button"] below leaves it alone) */
  outline: 2px solid #fff;
}
@media (max-width: 768px) {
  /* no blend on a phone: the ring is ink, like the bars (the darkroom and the
     reading pages set their own) */
  .navopener:focus-visible { outline-color: var(--ink); }
}
.book:focus-visible,
.book-nav__btn:focus-visible {
  outline: 2px solid var(--ink);
}
.js-content:focus {
  outline: none; /* the programmatic landing after a swap draws no ring */
}
/* read by screen readers after a swap, seen by no one */
.sr-announce {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.viewswitch__item:focus-visible {
  outline-color: #fff;
}
a:focus-visible,
.anchor:focus-visible,
.overview-item a:focus-visible,
.project-grid-item:focus-visible,
.project-list-item:focus-visible,
.navscreen__about:focus-visible,
[role="button"]:not(.navopener):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* --------------------------------------------------------------- lightbox */
/* A photograph on its own: whole, as large as the screen allows, on the
   darkroom's ground. main.js sizes the frame to the photograph's own
   proportions, so the frame is the photograph and never a crop of it. The
   print (the count, the controls, the caption) keeps to a band above and a
   band below, so nothing is ever printed on the photograph, and the bands
   fade when the pointer rests. Only the frame moves or fades, never the
   image inside it. */
.gallery__focus__item.is--active .media img,
.plate img,
.diary__print img {
  cursor: zoom-in;
}
.lightbox {
  --lb-ink: rgba(251, 250, 247, 0.74);   /* the sheet, dimmed: 9:1 on the room */
  --lb-band: 52px;
  --lb-side: 24px;
  position: fixed;
  inset: 0;
  z-index: 10001; /* above the + (999), the veil and a plate in flight (10000) */
  color: var(--lb-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-mini);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: var(--track-reg);
  /* every gesture on it is the lightbox's: a swipe steps, a swipe down puts
     it away, and the page beneath never scrolls */
  touch-action: none;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
}
.lightbox[hidden] {
  display: none;
}
.lightbox:focus {
  outline: none;
}
.lightbox:fullscreen {
  background: var(--room);
}
.lightbox::backdrop {
  background: var(--room);
}
.lightbox__ground {
  position: absolute;
  inset: 0;
  /* the room's own ground, as under the darkroom, the book and the shelf (it
     was the flat colour: a third dark) */
  background: var(--room) radial-gradient(130% 80% at 50% 108%, #1b1816 0%, var(--room) 58%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-soft);
  cursor: zoom-out;
}
.lightbox.is--on .lightbox__ground {
  opacity: 1;
}
.lightbox__ground::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/paper.png") repeat;
  background-size: 192px 192px;
  opacity: 0.07;
  pointer-events: none;
}
/* the room the photograph may take: the screen less the two bands */
.lightbox__stage {
  position: absolute;
  top: calc(var(--lb-band) + env(safe-area-inset-top, 0px));
  bottom: calc(var(--lb-band) + env(safe-area-inset-bottom, 0px));
  left: calc(var(--lb-side) + env(safe-area-inset-left, 0px));
  right: calc(var(--lb-side) + env(safe-area-inset-right, 0px));
  pointer-events: none;
}
.lightbox__frame {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  transition:
    transform 0.62s var(--ease),
    opacity 0.26s var(--ease-soft);
}
.lightbox__frame.is--out {
  opacity: 0;
  transition-duration: 0.62s, 0.16s;
}
.lightbox__frame.is--glide {
  transition:
    transform 0.26s cubic-bezier(0.2, 0.7, 0.3, 1),
    opacity 0.3s var(--ease-soft);
}
.lightbox__frame.is--still {
  transition: none;
}
.lightbox__frame img[hidden] {
  display: none;
}
.lightbox__frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}
/* the full file lies over the copy the page already had, and shows once it
   has arrived, so the photograph sharpens in place and never blinks */
.lightbox__img.is--waiting {
  visibility: hidden;
}
/* the photograph on the page while its copy is up in the lightbox, so the
   one that lifts off and lands again is the only one you see */
.is--lifted {
  visibility: hidden !important;
}
/* either half of the photograph steps that way */
.lightbox__half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
}
.lightbox__half--prev {
  left: 0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M19 8l-8 8 8 8' fill='none' stroke='%23141312' stroke-width='4.5'/%3E%3Cpath d='M19 8l-8 8 8 8' fill='none' stroke='%23fbfaf7' stroke-width='2'/%3E%3C/svg%3E") 16 16, w-resize;
}
.lightbox__half--next {
  right: 0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M13 8l8 8-8 8' fill='none' stroke='%23141312' stroke-width='4.5'/%3E%3Cpath d='M13 8l8 8-8 8' fill='none' stroke='%23fbfaf7' stroke-width='2'/%3E%3C/svg%3E") 16 16, e-resize;
}
.lightbox__half[hidden] {
  display: none;
}
.lightbox__bar {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--lb-band);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--sp) * 4);
  padding: 0 calc(var(--lb-side) - 4px + env(safe-area-inset-right, 0px)) 0 calc(var(--lb-side) - 4px + env(safe-area-inset-left, 0px));
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
}
.lightbox__bar--top {
  top: env(safe-area-inset-top, 0px);
}
.lightbox__bar--foot {
  bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: 1fr minmax(0, auto) 1fr;
}
.lightbox.is--on .lightbox__bar {
  opacity: 1;
  transition-delay: 0.22s;
}
.lightbox.is--on.is--quiet .lightbox__bar {
  opacity: 0;
  pointer-events: none;
  transition-duration: 0.9s;
  transition-delay: 0s;
}
.lightbox.is--on.is--pulled .lightbox__bar {
  opacity: 0;
  transition-duration: 0.2s;
  transition-delay: 0s;
}
.lightbox.is--quiet,
.lightbox.is--quiet * {
  cursor: none !important;
}
.lightbox__count {
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
}
.lightbox__tools {
  display: flex;
  gap: calc(var(--sp) * 4);
}
.lightbox__btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
  /* what you press is in capitals, here as everywhere (the smallest of the
     three sizes: the bands are narrow); the count and the caption between
     them are the register */
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: var(--fs-about);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-width: 44px;
  min-height: min(44px, var(--lb-band));
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  cursor: pointer;
  white-space: nowrap;
}
.lightbox__btn[hidden] {
  display: none;
}
.lightbox__btn .lightbox__word {
  border-bottom: 2px solid transparent;
}
@media (hover: hover) {
  .lightbox__btn:hover {
    color: var(--sheet);
  }
  .lightbox__btn:hover .lightbox__word {
    border-color: currentColor;
  }
}
.lightbox__btn[aria-pressed="true"] .lightbox__word {
  border-color: currentColor;
}
.lightbox__btn:focus-visible {
  outline: 1px solid var(--sheet);
  outline-offset: -4px;
}
.lightbox__prev {
  justify-self: start;
}
.lightbox__next {
  justify-self: end;
}
/* at either end of the sequence there is nowhere to go: the control stands
   aside, keeping its place so the caption does not move. It stays disabled
   where it was, so a click there does nothing (and is not a click on the
   ground, which closes) */
.lightbox__prev.is--end,
.lightbox__next.is--end {
  opacity: 0;
  cursor: default;
}
.lightbox__cap {
  min-width: 0;
  display: flex;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* the file numbers are the point of the line (the plate, and its page): a
   long title gives way to the ellipsis, never they */
.lightbox__cap .caption__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox__cap .caption__file {
  flex: none;
  white-space: pre;
}
/* the plate's title is in ink here too: on the room, that is the paper */
.lightbox__cap .caption__lead {
  color: var(--paper);
}
.lightbox__cap .gallery__folio {
  display: inline;
}
@media (max-width: 768px) {
  /* a narrow band: the title and the file numbers, without the place */
  .lightbox__cap .caption__place {
    display: none;
  }
  .lightbox {
    --lb-band: 48px;
    --lb-side: 0px;
    font-size: var(--fs-reg);
  }
  .lightbox__bar {
    padding: 0 calc(var(--sp) * 2 + env(safe-area-inset-right, 0px)) 0 calc(var(--sp) * 2 + env(safe-area-inset-left, 0px));
  }
  /* the arrows alone, so the caption keeps the width */
  .lightbox__prev .lightbox__word,
  .lightbox__next .lightbox__word {
    display: none;
  }
  .lightbox__bar--foot {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: calc(var(--sp) * 2);
  }
}
/* a phone on its side: every pixel of height is the photograph's */
@media (max-height: 500px) {
  .lightbox {
    --lb-band: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox__ground,
  .lightbox__frame,
  .lightbox__bar {
    transition: none !important;
  }
}

/* -------------------------------------------------------------- finishing */
/* Selecting text should stay in the palette rather than flashing system blue. */
::selection {
  background: var(--ink);
  color: var(--paper);
}
/* A photograph is not a file to drag out of the page, and on a phone the swipe
   gesture must not start a ghost-drag. */
.gallery__focus__item img,
.gallery__thumbs__item img,
.overview-item img,
.project-grid-item img,
.plate img,
.book__plate img {
  -webkit-user-drag: none;
  user-select: none;
}
/* No grey flash over the photographs when a tap lands. */
html {
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------- the room */
/* Two rooms (2026-11-13, "one book, two rooms"). The page is the sheet,
   where you read: the chapters, the Index, About, the Diary. The room is the
   darkroom's ground, where you look at things with the lights low: the
   prints on the line and in the tray (the home), the book lying open
   (/book/), the volumes on their shelf (the menu), one photograph alone (the
   lightbox). There is no third ground: the paper the book and the menu used
   to lie on is gone. Everything light in the room is paper; a volume and a
   page of the book are the sheet, as they are when you are on them. */

/* the book lies in the room */
html:has(> body.is--book),
body.is--book,
body.is--book #smoothscroll {
  background: var(--room);
}
/* the room's ground is the darkroom's wherever the room is: a little
   lighter at the foot, where the bench is, with the paper's grain as a thin
   layer over it (under the book, and behind the shelf) */
body.is--book .book-home,
.navscreen__inner {
  isolation: isolate;
  background: radial-gradient(130% 80% at 50% 108%, #1b1816 0%, var(--room) 58%);
}
body.is--book .book-home::before,
.navscreen__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/paper.png") repeat;
  background-size: 192px 192px;
  opacity: 0.07;
  pointer-events: none;
}
body.is--book .book {
  filter: drop-shadow(0 28px 54px rgba(0, 0, 0, 0.7));
}
/* shut or opening, the book is turned in 3D, which a filter would flatten;
   the closed book carries its own shadow (.bkc__shadow) */
body.is--book .book.is-cover {
  filter: none;
}
/* the open book's gutter lies under the +, on the screen's middle (the pages
   still to come at the right were counted into its width, and put the gutter
   11px to the left) */
@media (min-width: 769px) and (min-height: 561px) {
  body.is--book .book {
    translate: 11px 0;
  }
}
body.is--book .book-nav {
  color: var(--room-dim);
}
body.is--book .book-nav__btn {
  color: var(--paper);
}
body.is--book .book:focus-visible,
body.is--book .book-nav__btn:focus-visible {
  outline-color: var(--paper);
}

/* the shelf stands in the room */
.navscreen {
  background: var(--room);
  color: var(--paper);
}
.navscreen__inner {
  position: relative;
  color: var(--paper);
}
.shelf::after {
  background: var(--paper);
}
.spine {
  color: var(--ink);
}
.shelf__note {
  color: var(--room-dim);
}
.shelf__back {
  color: var(--paper);
}
.spine:focus-visible,
.navscreen a:focus-visible,
.navscreen [role="button"]:focus-visible {
  outline-color: var(--paper);
}
@media (hover: hover) {
  /* a hovered volume comes a little way off the shelf (its edge darkening
     meant nothing on the dark) */
  .spine:hover { translate: 0 -3px; }
  .spine.is--active:hover { translate: 0 -6px; }
  .navscreen__anchors .anchor-item a:hover { border-color: var(--paper); }
}

/* The + over the room and the × over the shelf: paper, with no halo (the
   halo is for a + that stands on the sheet with text passing under it).
   Under the header's difference blend on a desktop paper prints as paper on
   the dark; where there is no blend (a phone, a reading page) it is paper
   outright. */
body.is--darkroom .navopener__open::before,
body.is--darkroom .navopener__open::after,
body.is--book .navopener__open::before,
body.is--book .navopener__open::after,
body .navopener .navopener__close::before,
body .navopener .navopener__close::after {
  background: var(--paper);
}
body.is--darkroom .navopener__open,
body.is--book .navopener__open,
body .navopener .navopener__close {
  filter: none;
}
body.is--darkroom .navopener:focus-visible,
body.is--book .navopener:focus-visible,
body.js-nav--open .navopener:focus-visible,
body.js-nav--opening .navopener:focus-visible {
  outline-color: var(--paper);
}
/* While the menu is open, the canvas is the room's too: on iOS the sliver
   under the toolbar shows the page's canvas, which takes the root's ground. */
@media (max-width: 768px) {
  body.js-nav--opening,
  body.js-nav--open:not(.js-nav--closing) {
    background: var(--room);
  }
  html:has(> body.js-nav--opening),
  html:has(> body.js-nav--open:not(.js-nav--closing)) {
    background: var(--room);
  }
}

/* Lines of the register that run to two lines break evenly, and none leaves
   a word or a separator alone on a line (a phone's home: "2019–2025 ·" and
   then the rest; the colophon: "of the artist" alone). */
.reading__meta,
.reading__colophon,
.darkroom__totals,
.darkroom__legend,
.info__meta,
.diary__reg,
.navscreen__footer .copyright,
.book__works,
.shelf__note {
  text-wrap: balance;
}
