/* OpenRamble · Proof
 * A letterpress shop seen from above. Spoken words are set as metal type, the honest
 * proofreader marks only deletions, the marked sorts go to the hellbox, and the line
 * is pulled as a proof on warm paper.
 * Rule of the page: red means delete. Nothing else is red.
 */

@font-face {
  font-family: "EB Garamond";
  src: url(../fonts/eb-garamond/eb-garamond-latin.woff2) format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2619, U+261E, U+2766-2767, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  src: url(../fonts/eb-garamond/eb-garamond-cyrillic.woff2) format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "EB Garamond";
  src: url(../fonts/eb-garamond/eb-garamond-italic-latin.woff2) format("woff2");
  font-weight: 400 800; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2619, U+261E, U+2766-2767, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  src: url(../fonts/eb-garamond/eb-garamond-italic-cyrillic.woff2) format("woff2");
  font-weight: 400 800; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Plex Mono";
  src: url(../fonts/ibm-plex-mono/ibm-plex-mono-400-latin.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url(../fonts/ibm-plex-mono/ibm-plex-mono-500-latin.woff2) format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pencil";
  src: url(../fonts/nothing-you-could-do/nothing-you-could-do-latin.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --table: #dcd2c0;
  --table-2: #d3c8b4;
  --paper: #f4efe5;
  --paper-2: #ede6d8;
  --cotton: #f8f4ec;
  --ink: #1d1b19;
  --ink-2: #39342f;
  --ink-3: #675f56;
  --red: #c23a22;
  --graphite: #57534e;
  --shade: 60 44 26;

  --serif: "EB Garamond", "Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Pencil", "Bradley Hand", "Segoe Print", cursive;

  --gut: clamp(16px, 3vw, 40px);
  --sheet-w: min(1100px, calc(100vw - 2 * var(--gut)));
  --rail: 0px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-press: cubic-bezier(.3, 0, .2, 1);

  color-scheme: light;
}
@media (min-width: 900px) {
  :root { --rail: 230px; --sheet-w: min(1100px, calc(100vw - var(--rail) - 2 * var(--gut) + 40px)); }
}

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--table);
  background-image: url(paper.webp);
  background-size: 512px;
  background-blend-mode: multiply;
  color: var(--ink);
  font: 400 19px/1.5 var(--serif);
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-kerning: normal;
  font-feature-settings: "kern", "liga", "clig";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (pointer: fine) {
  body { cursor: url(pencil.svg) 2 30, auto; }
  a, button, [role="button"] { cursor: pointer; }
}
img, svg { display: block; }
a { color: inherit; }
p { margin: 0; }
em, i { font-style: italic; }
code { font-family: var(--mono); font-size: .82em; font-variant-numeric: normal; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: var(--paper); text-decoration: none; border-radius: 2px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(29, 27, 25, .86); color: var(--paper); }

.sc {
  font-variant-caps: all-small-caps;
  letter-spacing: .1em;
  font-variant-numeric: oldstyle-nums;
}
.pnote {
  font-family: var(--hand);
  color: var(--graphite);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: .01em;
}

/* --------------------------------------------------------------- masthead */
.mast {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 22px;
  height: 64px; padding: 0 var(--gut);
  transition: transform .5s var(--ease-out), background-color .4s;
}
.mast.is-solid {
  background-color: rgba(220, 210, 192, .94);
  box-shadow: 0 1px 0 rgba(var(--shade) / .14), 0 8px 18px -12px rgba(var(--shade) / .35);
}
.mast.is-hidden { transform: translateY(-100%); }
.mast-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.mast-mark img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 1px 2px rgba(var(--shade) / .3); }
.mast-name { font-size: 22px; font-weight: 500; letter-spacing: -.005em; }
.mast-label {
  font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: 16px; color: var(--ink-2);
  padding-left: 22px; border-left: 1px solid rgba(29, 27, 25, .25); line-height: 1.2;
}
.mast .btn { margin-left: auto; }
@media (max-width: 860px) { .mast-label { display: none; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.35em;
  font: 500 18px/1 var(--serif); letter-spacing: .015em;
  text-decoration: none; border-radius: 2px; border: 0;
  transition: transform .18s var(--ease-press), box-shadow .18s var(--ease-press);
}
.btn-ink {
  color: var(--cotton);
  background-color: var(--ink);
  background-image: url(ink.webp);
  background-size: 160px;
  box-shadow: 0 -1px 0 rgba(var(--shade) / .25), 0 1px 0 rgba(255, 252, 244, .9), inset 0 0 0 1px rgba(0, 0, 0, .35);
}
.btn-ink:hover { transform: translateY(1px); box-shadow: 0 -1px 0 rgba(var(--shade) / .2), 0 1px 0 rgba(255, 252, 244, .7), inset 0 2px 4px rgba(0, 0, 0, .5); }
.btn-ink:active { transform: translateY(2px); }
.btn-sm { min-height: 44px; font-size: 17px; padding: 0 1.1em; }
.btn-lg { min-height: 64px; font-size: 24px; padding: 0 1.6em; }

/* ----------------------------------------------------------------- scenes */
main { position: relative; display: block; overflow-x: clip; }
.scene { position: relative; }
.bench { display: contents; }
.deco { position: absolute; pointer-events: none; }

/* Paper sheets. The paper is painted on ::before so that a deckled edge can be cut
   with clip-path without cutting the shadow (::after) or the type. */
.sheet {
  position: relative; z-index: 2; isolation: isolate;
  width: var(--sheet-w);
  margin-left: max(var(--gut), calc((100vw - var(--sheet-w) - var(--rail)) * .55));
  padding: clamp(56px, 7vw, 104px) clamp(22px, 7.5vw, 120px) clamp(64px, 7vw, 104px);
  transform-origin: 50% 0;
}
.sheet::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0) 40%, rgba(var(--shade) / .05)),
    url(paper.webp);
  background-size: auto, auto, 512px;
  background-blend-mode: normal, normal, multiply;
  clip-path: var(--deckle, none);
}
.sheet::after {
  content: ""; position: absolute; inset: 3px 2px 2px 4px; z-index: -2; border-radius: 3px;
  box-shadow:
    0 1px 1px rgba(var(--shade) / .22),
    0 4px 8px -2px rgba(var(--shade) / .16),
    0 22px 44px -18px rgba(var(--shade) / .38),
    0 60px 90px -50px rgba(var(--shade) / .30);
}
.sheet[data-sig]::marker { content: none; }

/* sheets underneath: same paper, older, at a lower depth */
.under {
  z-index: 0; border-radius: 2px;
  background-color: var(--paper-2);
  background-image: linear-gradient(170deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 60%), url(paper.webp);
  background-size: auto, 512px; background-blend-mode: normal, multiply;
  box-shadow: 0 1px 1px rgba(var(--shade) / .2), 0 14px 30px -14px rgba(var(--shade) / .4);
}

/* signature mark at the foot of each sheet: A, B, C… */
.sig {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-size: 15px; color: var(--ink-3); letter-spacing: .06em;
}
.folio {
  position: absolute; bottom: 24px; font-size: 15px; color: var(--ink-3);
  font-variant-numeric: oldstyle-nums;
}

.kicker { font-size: 16px; color: var(--ink-3); margin-bottom: 18px; }

/* letterpress impression on display type: inked per word, bitten into the paper */
[data-press] .w {
  display: inline-block;
  color: transparent;
  background-color: var(--ink);
  background-image: url(ink.webp);
  background-size: 190px;
  background-position: var(--ix, 0) var(--iy, 0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: .011em rgba(12, 11, 10, .55);
  filter: drop-shadow(0 -.016em .012em rgba(var(--shade) / .38)) drop-shadow(0 .024em .006em rgba(255, 253, 247, .95));
  opacity: var(--io, 1);
  padding: .12em .1em .3em .16em;
  margin: -.12em -.1em -.3em -.16em;
}
.q-low [data-press] .w { filter: none; }

/* ------------------------------------------------------------------- hero */
.hero { padding-top: 84px; padding-bottom: 72px; z-index: 3; }
.sheet-hero {
  min-height: calc(100svh - 84px - 34px);
  display: flex; flex-direction: column; justify-content: center;
  rotate: -.35deg;
  padding-top: clamp(64px, 8vh, 96px);
  padding-bottom: clamp(70px, 9vh, 104px);
}
.sheet-hero::before {
  background-color: var(--cotton);
  background-image:
    radial-gradient(110% 80% at 15% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0) 45%, rgba(var(--shade) / .06)),
    url(paper.webp);
  background-size: auto, auto, 720px;
}
.hero-type { position: relative; z-index: 1; }
.js .hero-type { opacity: 0; animation: reveal-safety .01s 3.4s forwards; }
.js.intro-go .hero-type { opacity: 1; animation: none; }
@keyframes reveal-safety { to { opacity: 1; } }
.press-band {
  position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--shade) / 0), rgba(var(--shade) / .07) 46%, rgba(255, 252, 244, .5) 50%, rgba(var(--shade) / .1) 53%, rgba(var(--shade) / 0));
}
.display {
  margin: 0 0 clamp(26px, 3.4vh, 40px);
  font-size: clamp(46px, 7.2vw, 106px);
  line-height: .99;
  font-weight: 440;
  letter-spacing: -.014em;
  max-width: min(8.4em, 100%);
  font-variant-numeric: lining-nums;
}
.display em { font-weight: 430; letter-spacing: -.01em; }
.display .gone { margin-left: -.18em; }
.lede {
  max-width: 31em;
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.46;
  color: var(--ink-2);
  text-shadow: 0 1px 0 rgba(255, 253, 247, .8);
  text-wrap: pretty;
}
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 30px; margin-top: clamp(28px, 4vh, 44px); }
.try {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 20px; font-style: italic; color: var(--ink-2);
  text-decoration: none; border-bottom: 1px solid rgba(29, 27, 25, .3); line-height: 1.1;
}
.try:hover { border-bottom-color: var(--ink); }
.fist { font-style: normal; font-size: 28px; line-height: 1; transform: translateY(-1px); }
.req-mini { margin-top: 14px; font-size: 16px; color: var(--ink-3); }

.margin-marks { position: absolute; top: 0; bottom: 0; right: 0; width: clamp(70px, 9.4vw, 118px); z-index: 1; }
@media (min-width: 861px) { .hero .kicker { display: none; } }
.dele {
  width: 40px; height: 56px; color: var(--red); overflow: visible;
  filter: url(#f-pencil);
}
.dele use { stroke-dasharray: 1; stroke-dashoffset: 1; }
.dele.is-on use { stroke-dashoffset: 0; transition: stroke-dashoffset .42s var(--ease-press); }
.dele-hero { position: absolute; left: 50%; margin-left: -30px; top: 0; width: 60px; height: 84px; }
.pnote-size {
  position: absolute; right: 26px; white-space: nowrap; rotate: -3deg; text-align: right;
  opacity: 0; transition: opacity .6s .2s;
}
.pnote-size.is-on { opacity: 1; }
.pnote-size::before {
  content: ""; position: absolute; left: -26px; top: 50%; width: 20px; height: 1px;
  background: var(--graphite); opacity: .6; transform: rotate(8deg);
}

.strike-hero, .stick-marks, .galley-marks {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible; z-index: 3;
}
.mark-dele { color: var(--red); filter: url(#f-pencil); }
.mark-ink { filter: url(#f-pencil); }
.mark-path { fill: none; stroke: var(--red); stroke-linecap: round; stroke-linejoin: round; }
.mark-conc { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; filter: url(#f-pencil); }

.reg { position: absolute; width: 22px; height: 22px; overflow: visible; }
.reg-k { color: rgba(29, 27, 25, .82); }
.reg-r { color: var(--red); transform: translate(.7px, -.5px); opacity: .8; mix-blend-mode: multiply; }
.r-tl { left: 18px; top: 18px; }
.r-tr { right: 18px; top: 18px; }
.r-bl { left: 18px; bottom: 18px; }
.r-br { right: 18px; bottom: 18px; }
.slug {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  font: 400 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(29, 27, 25, .5); white-space: nowrap;
}
.thumb { position: absolute; right: 30%; bottom: 7%; width: 74px; height: 94px; rotate: -18deg; opacity: .9; overflow: visible; }

/* decor around the first proof */
.u1 { left: calc(max(var(--gut), calc((100vw - var(--sheet-w) - var(--rail)) * .55)) + 26px); top: 112px; width: var(--sheet-w); height: calc(100svh - 120px); rotate: 1.3deg; }
.u2 { left: calc(max(var(--gut), calc((100vw - var(--sheet-w) - var(--rail)) * .55)) - 20px); top: 140px; width: var(--sheet-w); height: calc(100svh - 150px); rotate: -2.1deg; }
.case { right: -200px; top: 92px; width: 520px; height: 330px; rotate: 7deg; z-index: 1; filter: blur(.5px); }
.case-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 22px rgba(var(--shade) / .35)); }
.gauge-v {
  left: calc(max(var(--gut), calc((100vw - var(--sheet-w) - var(--rail)) * .55)) - 44px);
  top: 21vh; width: 36px; height: min(62vh, 620px); rotate: 1.6deg; z-index: 4;
  filter: drop-shadow(3px 6px 4px rgba(var(--shade) / .32));
}
.pencil-obj {
  width: 520px; height: 37px; z-index: 5;
  width: 430px; height: 31px;
  right: calc(var(--rail) + 60px); bottom: 150px; rotate: -17deg;
  filter: drop-shadow(10px 16px 8px rgba(var(--shade) / .34));
}
.pencil-svg { width: 100%; height: 100%; overflow: visible; }
.pencil-stamp { font: 500 9.5px var(--mono); letter-spacing: .32em; fill: #f2c48e; opacity: .85; }

/* gauges (rulers): brushed steel with engraved ticks */
.gauge-face {
  position: absolute; inset: 0; border-radius: 2px;
  background-color: #b6b9bb;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .06) 70%, rgba(255, 255, 255, .25)), url(brushed.webp);
  background-size: auto, 256px 512px;
  background-blend-mode: normal, soft-light;
  box-shadow: inset 0 0 0 1px rgba(40, 44, 48, .35), inset 1px 1px 0 rgba(255, 255, 255, .55);
  overflow: hidden;
}
.gauge-face svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gauge-face text { font: 500 8.5px var(--mono); fill: #2c2f33; letter-spacing: .06em; }

/* ------------------------------------------------------------- hellbox */
.hellrail { position: sticky; top: calc(100svh - 196px); height: 0; z-index: 30; pointer-events: none; }
.hellbox {
  position: absolute; right: max(18px, calc(var(--rail) * .5 - 98px)); top: 0;
  width: 196px; height: 150px; rotate: -4deg;
  filter: drop-shadow(0 14px 16px rgba(var(--shade) / .36));
}
.hb-box {
  position: absolute; left: 0; right: 0; top: 0; height: 112px; border-radius: 4px;
  background: #c9b691 url(wood.webp); background-size: 320px;
  box-shadow: inset 0 0 0 1px rgba(80, 60, 30, .35), inset 1px 1px 0 rgba(255, 245, 220, .5);
}
.hb-floor {
  position: absolute; inset: 11px; border-radius: 2px; overflow: hidden;
  background: #8d7a5c url(wood.webp); background-size: 280px; background-blend-mode: multiply;
  box-shadow: inset 0 9px 12px -4px rgba(30, 20, 8, .7), inset 7px 0 10px -6px rgba(30, 20, 8, .55), inset -4px 0 8px -6px rgba(30, 20, 8, .4);
}
.hb-sorts { position: absolute; inset: 0; }
.hb-sort {
  position: absolute; display: block;
  font: 400 15px/1 var(--serif); color: #1d1b19;
  padding: 2px 1.5px 1px; background: linear-gradient(#cbc8c0, #a9a69e);
  box-shadow: inset 0 0 0 .5px rgba(30, 28, 24, .35), 1px 2px 2px rgba(20, 14, 6, .45);
}
.hb-front {
  position: absolute; left: 0; right: 0; top: 108px; height: 34px; border-radius: 0 0 4px 4px;
  background: #b29d78 url(wood.webp); background-size: 300px; background-blend-mode: multiply;
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, .5), inset 0 -2px 4px rgba(40, 28, 10, .35);
  display: flex; align-items: center; padding-left: 14px;
}
.hb-label {
  font: 500 15px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase;
  color: var(--red); opacity: .92; mix-blend-mode: multiply;
}
.hb-tally { position: absolute; right: 8px; top: 112px; width: 82px; height: 28px; overflow: visible; }
.hb-tally path { fill: none; stroke: #3d3a36; stroke-width: 1.5; stroke-linecap: round; filter: url(#f-pencil); }

/* --------------------------------------------------------------- gesture */
.gesture { margin-top: -26px; z-index: 4; }
.sheet-gesture { rotate: .5deg; text-align: center; }
.steps {
  margin: 0 auto; font-weight: 440; font-size: clamp(34px, 4.9vw, 72px); line-height: 1.04; letter-spacing: -.01em;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .32em;
}
.step { transition: color .25s, opacity .25s; white-space: nowrap; }
.step-sep { color: var(--ink-3); font-weight: 400; }
.cmd { display: inline-block; width: .74em; height: .74em; vertical-align: -.04em; }
.steps .cmd { width: .7em; height: .7em; vertical-align: -.02em; stroke-width: 1.4; }
.press-on .step { opacity: .32; }
.press-on .step.is-now { opacity: 1; }
.lede-c { margin: 22px auto 0; text-align: center; }

.press { position: relative; margin: clamp(70px, 9vh, 92px) auto 0; max-width: 940px; }
.press-row { display: grid; grid-template-columns: minmax(250px, .62fr) 1fr; gap: 28px; align-items: center; margin-top: clamp(28px, 4vh, 40px); }

.stick {
  --sort-fs: clamp(19px, 2.65vw, 36px);
  position: relative; margin: 0 auto; width: 100%;
  border-radius: 4px 4px 6px 6px;
  background-color: #a9adb0;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .08)), url(brushed.webp);
  background-size: auto, 384px 512px; background-blend-mode: normal, soft-light;
  box-shadow: 0 2px 2px rgba(var(--shade) / .3), 0 18px 34px -16px rgba(var(--shade) / .55), inset 0 0 0 1px rgba(35, 40, 45, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
  padding: 0 0 0 0;
  text-align: left;
}
.stick-back {
  position: relative; height: 26px; border-radius: 4px 4px 0 0;
  background-color: #c3c6c8;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .18)), url(brushed.webp);
  background-size: auto, 384px 512px; background-blend-mode: normal, soft-light;
  box-shadow: inset 0 -1px 0 rgba(30, 34, 38, .45), 0 3px 5px rgba(20, 24, 28, .25);
  z-index: 2;
}
.stick-scale { position: absolute; left: 34px; right: 70px; top: 3px; bottom: 3px; }
.stick-scale svg { width: 100%; height: 100%; }
.stick-scale text { font: 500 8px var(--mono); fill: #33373b; letter-spacing: .05em; }
.stick-bed {
  position: relative; padding: 12px 64px 30px 36px; min-height: calc(var(--sort-fs) * 1.6 + 46px);
  box-shadow: inset 0 10px 12px -8px rgba(20, 24, 28, .45);
}
.stick-lines {
  display: flex; flex-wrap: wrap; align-content: flex-start; row-gap: calc(var(--sort-fs) * .42);
  font: 400 var(--sort-fs)/1 var(--serif); min-height: calc(var(--sort-fs) * 2.74);
}
.stick-head {
  position: absolute; left: 0; top: 0; bottom: 0; width: 26px; border-radius: 4px 0 0 6px;
  background: linear-gradient(90deg, #d0d3d5, #a2a6a9 60%, #8c9093);
  box-shadow: inset -1px 0 0 rgba(30, 34, 38, .4), 3px 0 5px rgba(20, 24, 28, .25);
  z-index: 3;
}
.stick-knee {
  position: absolute; top: 0; bottom: 0; right: 14px; width: 30px; z-index: 3;
  background: linear-gradient(90deg, #8e9295, #c9ccce 40%, #9a9ea1);
  box-shadow: inset 0 0 0 1px rgba(30, 34, 38, .4), -4px 0 6px rgba(20, 24, 28, .28);
  border-radius: 2px;
  transition: transform .35s var(--ease-press);
}
.knee-lever {
  position: absolute; left: 50%; top: 38%; width: 12px; height: 46px; margin-left: -6px; border-radius: 6px;
  background: linear-gradient(90deg, #6f7376, #b8bbbd 45%, #7d8184);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
}

/* sorts: one piece of metal type per character */
.wd { display: inline-flex; flex: none; }
.s, .q {
  position: relative; display: inline-block; flex: none;
  height: 1.16em; line-height: 1.16em; padding: 0 .012em;
  color: #161412;
  background: linear-gradient(180deg, #dcd9d1 0%, #c9c6bd 50%, #b8b5ac 100%);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .5), inset -1px 0 0 rgba(48, 44, 38, .32), inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -1px 0 rgba(48, 44, 38, .25);
  text-shadow: 0 -.5px 0 rgba(255, 255, 255, .25);
  transform-origin: 50% 60%;
}
.s::after, .q::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .36em;
  background: linear-gradient(180deg, #96938b 0 34%, #57544e 34% 44%, #b2afa7 44% 52%, #7f7c75 52% 100%);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .14), inset -1px 0 0 rgba(0, 0, 0, .3);
}
.q {
  width: .26em; padding: 0;
  background: linear-gradient(180deg, #b0ada5, #a29f97);
  box-shadow: inset 0 .22em .26em -.14em rgba(30, 28, 24, .42), inset 1px 0 0 rgba(255, 255, 255, .25), inset -1px 0 0 rgba(48, 44, 38, .22);
}
.q::after { background: linear-gradient(180deg, #8c8981, #7a776f); }
.s.is-del, .q.is-del { }
.s.patina { background: linear-gradient(180deg, #cfcbc1 0%, #bdb9af 50%, #aaa79d 100%); }
.s.cap-swap .c-new { position: absolute; inset: 0; text-align: center; opacity: 0; }
.s.cap-swap.is-swapped .c-old { opacity: 0; }
.s.cap-swap.is-swapped .c-new { opacity: 1; }

.pnote-flip {
  position: absolute; right: -6px; top: -66px; width: 380px; text-align: right; rotate: 2deg; font-size: 19px;
}

.hold-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
.hold {
  display: inline-flex; align-items: center; gap: 18px; min-height: 64px; padding: 6px 22px 6px 8px;
  font: italic 400 24px/1 var(--serif); color: var(--ink);
  background: none; border: 0; border-radius: 6px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.hold-sort {
  position: relative; display: block; width: 76px; height: 70px;
  transition: transform .14s var(--ease-press);
}
.hold-face {
  position: absolute; left: 0; right: 0; top: 0; height: 56px; border-radius: 3px;
  display: grid; place-items: center; color: #161412;
  background: linear-gradient(180deg, #e2dfd8, #c8c5bc 55%, #b3b0a7);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .8), inset -1px -1px 0 rgba(48, 44, 38, .35);
}
.hold-face .cmd { width: 34px; height: 34px; stroke-width: 2; }
.hold-sort::after {
  content: ""; position: absolute; left: 0; right: 0; top: 56px; height: 14px; border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, #96938b 0 30%, #57544e 30% 42%, #b2afa7 42% 52%, #7f7c75 52% 100%);
  box-shadow: 0 10px 14px -6px rgba(var(--shade) / .55);
}
.hold-label { border-bottom: 1px solid rgba(29, 27, 25, .3); padding-bottom: 3px; }
.hold:hover .hold-label { border-bottom-color: var(--ink); }
.hold.is-down .hold-sort { transform: translateY(5px) scale(.985); }
.hold.is-down .hold-sort::after { height: 9px; box-shadow: 0 4px 6px -3px rgba(var(--shade) / .55); }
.help { font-size: 15.5px; color: var(--ink-3); }
.pnote-turn { opacity: 0; transform: translateY(6px) rotate(-2deg); transition: opacity .6s, transform .6s var(--ease-out); font-size: 21px; }
.pnote-turn.is-on { opacity: 1; transform: translateY(0) rotate(-2deg); }

.proofs { position: relative; min-height: 110px; }
.slip {
  position: relative; isolation: isolate; text-align: left;
  padding: 26px 34px 24px; min-height: 96px;
  rotate: -.6deg;
}
.slip::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cotton) url(paper.webp); background-size: 600px; background-blend-mode: multiply;
  box-shadow: 0 1px 1px rgba(var(--shade) / .25), 0 10px 22px -12px rgba(var(--shade) / .5);
}
.slip-no { position: absolute; top: 8px; left: 34px; font: 400 15px/1 var(--hand); color: var(--graphite); }
.printed {
  font-size: clamp(20px, 2.1vw, 30px); line-height: 1.3; color: var(--ink);
  text-shadow: 0 -.5px .3px rgba(var(--shade) / .3), 0 .8px 0 rgba(255, 253, 247, .95);
}
.printed-wait { color: var(--ink-3); font-style: italic; font-size: .8em; text-shadow: none; }
.roller {
  position: absolute; top: -10px; bottom: -10px; left: 0; width: 42px; border-radius: 21px / 8px; z-index: 2;
  background: linear-gradient(90deg, #6d7174, #c9cccd 30%, #f2f3f2 46%, #a7abad 68%, #5f6366);
  box-shadow: 6px 0 10px rgba(var(--shade) / .35);
  opacity: 0; pointer-events: none;
}
.foot { margin-top: clamp(30px, 4.6vh, 48px); font-size: 16px; color: var(--ink-3); }

/* ---------------------------------------------------------------- clean */
.clean { margin-top: -30px; z-index: 5; }
.sheet-galley { rotate: -.4deg; }
.clean-head { max-width: 760px; }
.display-2 {
  margin: 0 0 24px; font-size: clamp(52px, 8vw, 128px); line-height: .96; font-weight: 440; letter-spacing: -.016em;
}
.display-3 {
  margin: 0 0 22px; font-size: clamp(38px, 4.7vw, 72px); line-height: 1.02; font-weight: 440; letter-spacing: -.012em;
  text-wrap: balance;
}
.body { color: var(--ink-2); text-shadow: 0 1px 0 rgba(255, 253, 247, .7); text-wrap: pretty; }
.body-l { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; max-width: 32em; }

.fig { margin: clamp(56px, 9vh, 96px) 0 0; position: relative; }
.cap { font-size: 18px; color: var(--ink-2); font-style: italic; margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cap .sc { font-style: normal; color: var(--ink-3); font-size: 16px; }
.pnote-inline { font-style: normal; font-size: 18px; rotate: -2deg; display: inline-block; margin-left: 8px; }

.galley {
  --sort-fs: clamp(18px, 2.3vw, 32px);
  position: relative; display: block; margin-right: 156px;
  padding: 14px 22px 26px 22px; border-radius: 4px;
  background-color: #b4b0a4;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .1)), url(brushed.webp);
  background-size: auto, 384px 512px; background-blend-mode: normal, soft-light;
  box-shadow: inset 0 0 0 1px rgba(40, 38, 32, .35), inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 12px 14px -10px rgba(20, 18, 14, .5), 0 14px 26px -14px rgba(var(--shade) / .5);
}
.galley::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 4px; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .35);
}
.galley-lines {
  display: flex; flex-wrap: wrap; row-gap: calc(var(--sort-fs) * .42);
  font: 400 var(--sort-fs)/1 var(--serif);
}
.galley-margin {
  position: absolute; left: calc(100% + 12px); top: 0; bottom: 0; width: 144px;
  display: flex; flex-wrap: nowrap; align-content: center; align-items: center; gap: 0; color: var(--red);
}
.galley-margin .dele { width: 24px; height: 36px; flex: none; }
.galley-margin .conc {
  font: 400 30px/1 var(--hand); color: var(--red); margin: 0 1px; opacity: 0; transition: opacity .3s;
  filter: url(#f-pencil);
}
.galley-margin .conc.is-on { opacity: .9; }
.slip-fig { margin-top: 22px; max-width: 100%; width: fit-content; min-width: min(420px, 100%); rotate: .5deg; padding: 20px 30px 18px; min-height: 0; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .5s var(--ease-out); }
.fig.is-printed .slip-fig { opacity: 1; transform: none; }
.slip-fig .printed { opacity: 0; }
.fig.is-printed .slip-fig .printed { opacity: 1; }
.fig.is-done .slip-fig .printed { opacity: 1; }

.fig-kept { margin-top: clamp(64px, 10vh, 110px); }
.kept-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; margin-top: 14px; }
.kept-line {
  font-size: clamp(22px, 2.3vw, 32px); color: var(--ink);
  text-shadow: 0 -.5px .3px rgba(var(--shade) / .3), 0 .8px 0 rgba(255, 253, 247, .95);
}
.kept-word { position: relative; display: inline-block; }
.kept-word::after {
  content: ""; position: absolute; left: -7px; right: -7px; top: -4px; bottom: -6px;
  border: 1.4px dashed rgba(87, 83, 78, .7); border-radius: 50%;
  opacity: 0; transform: scale(.85) rotate(-4deg); transition: opacity .5s, transform .6s var(--ease-out);
}
.kept-note { opacity: 0; transform: translateY(4px) rotate(-2deg); transition: opacity .6s .25s, transform .6s .25s; }
.fig-kept.is-on .kept-word::after { opacity: 1; transform: scale(1) rotate(-4deg); }
.fig-kept.is-on .kept-note { opacity: 1; transform: translateY(0) rotate(-2deg); }

.measured {
  margin-top: clamp(56px, 9vh, 90px); padding-top: 20px; max-width: 40em;
  border-top: 1px solid rgba(29, 27, 25, .22);
  font-size: 18px; color: var(--ink-2);
}
.measured a, .ink-link { white-space: nowrap; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.measured a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 6px; }
.ink-link { font-size: 20px; font-style: italic; display: inline-block; min-height: 44px; line-height: 44px; }

/* ---------------------------------------------------------------- where */
.where { margin-top: 70px; z-index: 6; }
.sheet-where { rotate: .35deg; margin-left: max(var(--gut), calc((100vw - var(--sheet-w)) * .5 + 30px)); }
.where-pair { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 6vh, 64px); align-items: start; }
.letter, .tty { margin: 0; }
.letter-paper {
  position: relative; isolation: isolate; padding: 34px 36px 38px; rotate: -1deg; min-height: 230px;
}
.letter-paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #fbf8f1 url(paper.webp); background-size: 520px; background-blend-mode: multiply;
  box-shadow: 0 1px 1px rgba(var(--shade) / .25), 0 14px 26px -14px rgba(var(--shade) / .5);
  background-image:
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(29, 27, 25, .1) 33px 34px),
    url(paper.webp);
  background-size: auto, 520px;
  background-position: 0 27px, 0 0;
}
.lp { font-size: clamp(18px, 1.42vw, 21px); line-height: 34px; color: var(--ink); text-wrap: pretty; }
.lp2 { text-indent: 1.6em; transition: transform .7s var(--ease-out); }
.said-cmd { color: var(--ink-3); font-style: italic; transition: opacity .4s; }
.pilcrow {
  display: inline-block; margin-left: .25em; color: var(--ink); opacity: 0; transform: scale(.6);
  transition: opacity .35s, transform .5s var(--ease-out);
}
.where-step-1 .letter .said-cmd { opacity: .25; text-decoration: line-through; text-decoration-color: rgba(29, 27, 25, .5); }
.letter.is-done .said-cmd { display: none; }
.letter.is-done .pilcrow { opacity: 1; transform: none; }
.letter .lp2 { margin-top: 0; }
.letter.is-done .lp2 { margin-top: 34px; }

.tape {
  position: relative; isolation: isolate; height: 196px; overflow: hidden; rotate: 1.2deg;
  padding: 0 34px;
}
.tape::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-color: #fbf9f3;
  background-image:
    radial-gradient(circle at 13px 50%, var(--paper) 0 4.2px, rgba(var(--shade) / .35) 4.6px, transparent 5.4px),
    radial-gradient(circle at calc(100% - 13px) 50%, var(--paper) 0 4.2px, rgba(var(--shade) / .35) 4.6px, transparent 5.4px),
    linear-gradient(90deg, transparent 25px, rgba(29, 27, 25, .16) 25px 26px, transparent 26px calc(100% - 26px), rgba(29, 27, 25, .16) calc(100% - 26px) calc(100% - 25px), transparent calc(100% - 25px)),
    url(paper.webp);
  background-size: 100% 18px, 100% 18px, auto, 480px;
  background-blend-mode: normal, normal, normal, multiply;
  box-shadow: 0 1px 1px rgba(var(--shade) / .25), 0 14px 26px -14px rgba(var(--shade) / .5);
}
.tape::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 44px;
  background: linear-gradient(180deg, rgba(var(--shade) / .22), rgba(var(--shade) / 0));
}
.tape-feed { position: absolute; left: 0; right: 0; bottom: 22px; padding: 0 44px; }
.tl { font: 400 15.5px/26px var(--mono); color: #23211e; letter-spacing: .01em; font-variant-numeric: normal; }
.tl + .tl { margin-top: 10px; }
.prompt { color: var(--ink-3); }
.tl-next { display: none; }
.ret-key {
  display: inline-grid; place-items: center; width: 30px; height: 26px; margin-left: 8px; vertical-align: -6px;
  font: 500 15px/1 var(--mono); color: var(--ink); border: 1px solid rgba(29, 27, 25, .55); border-radius: 4px;
  box-shadow: 0 2px 0 rgba(29, 27, 25, .45);
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .2s, box-shadow .15s;
}
.caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -3px; background: rgba(29, 27, 25, .8); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tty.is-done .said-cmd { display: none; }
.tty.is-done .ret-key { opacity: 1; transform: none; }
.tty.is-pressed .ret-key { transform: translateY(2px); box-shadow: 0 0 0 rgba(29, 27, 25, .45); }
.tty.is-done .tl-next { display: block; }

/* -------------------------------------------------------------- private */
.private { margin-top: 64px; z-index: 7; }
.sheet-chase {
  rotate: -.5deg; display: grid; grid-template-columns: 1fr minmax(260px, .82fr); gap: clamp(28px, 5vw, 80px); align-items: center;
}
.chase-art { position: relative; height: clamp(500px, 64vh, 600px); --ch: 61%; }

/* The lock-up, seen from above on the imposing stone: a steel chase; inside it the line of type
   between two leads, end-grain furniture all round, and two quoins against the chase. Loose,
   every piece leaves a hairline of stone and the sorts sit crooked; when .is-locked, the keys
   turn, the quoins expand and the whole forme closes up toward the near corner, tight. */
.chase {
  position: absolute; left: 0; right: 0; top: 0; height: var(--ch); border-radius: 3px; overflow: hidden;
  background-color: #a9acaa;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 32%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .24)),
    url(brushed.webp);
  background-size: auto, 384px 512px; background-blend-mode: normal, soft-light;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, .75), inset -1px -1px 0 rgba(30, 32, 34, .55),
    0 2px 3px rgba(var(--shade) / .35), 12px 26px 34px -14px rgba(var(--shade) / .6);
}
/* the warm key light, from the upper left */
.chase::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(90% 75% at 8% 0%, rgba(255, 206, 140, .62), rgba(255, 206, 140, 0) 64%),
    radial-gradient(85% 75% at 100% 100%, rgba(24, 10, 0, .42), rgba(24, 10, 0, 0) 64%);
  mix-blend-mode: soft-light;
}
/* and the glint it throws along the steel as the forme locks */
.chase::before {
  content: ""; position: absolute; inset: 0 -60%; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(104deg, rgba(255, 238, 206, 0) 42%, rgba(255, 238, 206, .6) 50%, rgba(255, 238, 206, 0) 58%);
  mix-blend-mode: soft-light;
}
.is-locked .chase::before { animation: glint 1.2s 1.05s ease-out both; }
@keyframes glint { 0% { translate: -45% 0; opacity: 0; } 20% { opacity: 1; } 100% { translate: 45% 0; opacity: 0; } }
.chase-stamp, .chase-caption {
  position: absolute; z-index: 2; white-space: nowrap;
  font: 500 8.5px/14px var(--mono); letter-spacing: .22em; text-transform: uppercase;
  color: rgba(40, 42, 44, .7); text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.chase-stamp { top: 0; left: 0; right: 0; text-align: center; }
.chase-caption { bottom: 0; left: 16px; }
.bed {
  position: absolute; inset: 14px; border-radius: 1px;
  background: radial-gradient(130% 100% at 18% 0%, #42433f, #272825 72%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .65), inset 2px 3px 7px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .5);
}
.forme {
  --g: 2.5px;
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr 22px;
  grid-template-rows: 22px 1fr .8fr 4px auto 4px .7fr 1.1fr;
  grid-template-areas:
    ".   qh  .   ."
    "fa1 fa1 fa2 fa2"
    "fb  fb  fb  qs"
    "fl  lt  fr  qs"
    "fl  ty  fr  qs"
    "fl  lb  fr  qs"
    "fc  fc  fc  qs"
    "fd1 fd2 fd2 fd2";
}
.q-head { grid-area: qh; } .q-side { grid-area: qs; }
.f-a1 { grid-area: fa1; } .f-a2 { grid-area: fa2; } .f-b { grid-area: fb; } .f-c { grid-area: fc; }
.f-d1 { grid-area: fd1; } .f-d2 { grid-area: fd2; } .f-l { grid-area: fl; } .f-r { grid-area: fr; }
.l-top { grid-area: lt; } .l-bot { grid-area: lb; } .lock-type { grid-area: ty; }
/* loose offsets: the foot and the near side bear on the chase; each piece further from them
   carries one more hairline of slack, so nothing overlaps while it is loose */
.pc { translate: var(--ux, 0px) var(--uy, 0px); transition: translate .7s cubic-bezier(.5, 0, .2, 1.25) .35s; }
.is-locked .pc { translate: 0 0; }
.f-d2 { --ux: var(--g); }
.f-c { --uy: calc(var(--g) * -1); }
.f-l, .f-r, .lead, .lock-type { --uy: calc(var(--g) * -2); }
.lead, .lock-type { --ux: var(--g); }
.f-r { --ux: calc(var(--g) * 2); }
.f-a1, .f-a2, .f-b { --uy: calc(var(--g) * -3); }
.f-a2 { --ux: var(--g); }
/* end grain: growth rings round a pith outside the block, rays from it, the log's own tone */
.furn {
  border-radius: 1.5px;
  background-color: #c99f72;
  background-image:
    linear-gradient(135deg, rgba(255, 234, 200, .42), rgba(255, 234, 200, 0) 40%, rgba(58, 28, 8, .26)),
    repeating-conic-gradient(from var(--ra, 0deg) at var(--gx, 30%) var(--gy, 160%), rgba(96, 52, 20, 0) 0deg 1.7deg, rgba(96, 52, 20, .12) 1.7deg 2deg),
    repeating-radial-gradient(circle at var(--gx, 30%) var(--gy, 160%), rgba(112, 62, 26, 0) 0 calc(var(--rp, 3px) * .58), rgba(112, 62, 26, .34) calc(var(--rp, 3px) * .8), rgba(112, 62, 26, 0) var(--rp, 3px)),
    url(wood.webp);
  background-size: auto, auto, auto, 260px;
  background-position: 0 0, 0 0, 0 0, var(--wx, 0) var(--wy, 0);
  background-blend-mode: normal, multiply, multiply, multiply;
  filter: brightness(var(--br, 1));
  box-shadow: inset 1px 1px 0 rgba(255, 240, 210, .6), inset -1px -1px 0 rgba(64, 34, 10, .55), 0 1px 2px rgba(8, 6, 3, .6);
}
.lead { background: linear-gradient(180deg, #b0b3b4, #6c6f72); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 1px rgba(0, 0, 0, .55); }
.lock-type { display: flex; font: 400 clamp(25px, 2.5vw, 36px)/1 var(--serif); }
.lock-type .s::after, .lock-type .q::after { display: none; }
.lock-type .s, .lock-type .q { translate: var(--jx, 0px) var(--jy, 0px); rotate: var(--jr, 0deg); transition: translate .45s cubic-bezier(.3, 0, .2, 1.5) .55s, rotate .45s cubic-bezier(.3, 0, .2, 1.5) .55s; }
.is-locked .lock-type .s, .is-locked .lock-type .q { translate: 0 0; rotate: 0deg; }
/* quoins: an outer wedge against the chase and an inner one the key drives out */
.quoin { position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .7)); }
.quoin-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.q-brush { opacity: .4; mix-blend-mode: multiply; }
.q-edge { fill: none; stroke: rgba(28, 30, 32, .75); stroke-width: .9; vector-effect: non-scaling-stroke; }
.quoin .w-in { transition: translate .7s cubic-bezier(.5, 0, .2, 1.25) .35s; }
.q-head .w-in { translate: 0 calc(var(--g) * -3); }
.q-side .w-in { translate: calc(var(--g) * 2) 0; }
.is-locked .quoin .w-in { translate: 0 0; }
.quoin-key {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #f2f3f2, #8d9092 60%, #55585a);
  box-shadow: 0 0 0 1.5px #3a3d3f, 1px 2px 3px rgba(0, 0, 0, .55);
  rotate: -80deg; transition: rotate .75s cubic-bezier(.45, 0, .2, 1.15);
}
.quoin-key::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 6px; margin: -3px 0 0 -20px; border-radius: 3px;
  background: linear-gradient(180deg, #e2e4e3, #7c7f81);
  box-shadow: inset 0 0 0 .5px rgba(30, 32, 34, .6), 0 1px 2px rgba(0, 0, 0, .55);
}
.q-side .quoin-key::after { rotate: 90deg; }
.is-locked .quoin-key { rotate: 0deg; }
.sign-hook {
  position: absolute; left: 50%; top: calc(var(--ch) - 12px); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8d3a1, #8c6d34 70%, #5a431c);
  box-shadow: 1px 2px 2px rgba(0, 0, 0, .35); z-index: 3;
}
.sign {
  position: absolute; left: 50%; top: calc(var(--ch) - 7px); width: min(250px, 80%); margin-left: calc(min(250px, 80%) / -2);
  transform-origin: 50% 0; z-index: 2;
  filter: drop-shadow(8px 14px 9px rgba(var(--shade) / .4));
}
.sign-string { width: 100%; height: 62px; overflow: visible; }
.sign-card {
  position: relative; isolation: isolate; margin-top: -4px; padding: 20px 22px 18px; text-align: center;
}
.sign-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 3px;
  background: #f9f5ec url(paper.webp); background-size: 400px; background-blend-mode: multiply;
  box-shadow: inset 0 0 0 5px #f9f5ec, inset 0 0 0 6px rgba(29, 27, 25, .7), inset 0 0 0 8px #f9f5ec, inset 0 0 0 8.6px rgba(29, 27, 25, .55);
}
.sign-card::after {
  content: ""; position: absolute; left: 50%; top: 9px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: #d9cfbd; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .35);
}
.sign-orn { display: block; font-size: 22px; line-height: 1; color: var(--ink-2); margin: 6px 0 6px; }
.sign-text { font-size: 21px; line-height: 1.25; font-style: italic; color: var(--ink); text-wrap: balance; }
.sign-rule { display: block; width: 46px; height: 1px; margin: 12px auto 0; background: rgba(29, 27, 25, .5); }

/* ----------------------------------------------------------------- fast */
.fast { margin-top: 70px; z-index: 8; }
.sheet-specimen { rotate: .4deg; margin-left: max(var(--gut), calc((100vw - var(--sheet-w)) * .5 - 30px)); }
.fast-h { max-width: 15em; }
.gauge-h { position: relative; height: 58px; margin: clamp(46px, 7vh, 70px) 0 clamp(70px, 10vh, 100px); rotate: -.6deg; filter: drop-shadow(3px 8px 6px rgba(var(--shade) / .3)); }
.gauge-needle {
  position: absolute; left: 0; top: -18px; height: 32px; width: 2px; background: var(--ink);
  transform: translateX(var(--x, 0px)); transition: none;
}
.gauge-needle span { position: absolute; left: -6px; top: -2px; border: 7px solid transparent; border-top: 9px solid var(--ink); border-bottom: 0; }
.gauge-k, .gauge-m { position: absolute; top: 66px; font-size: 19px; white-space: nowrap; }
.gauge-k { left: 2%; rotate: -2deg; }
.gauge-m { left: var(--mx, 70%); transform: translateX(-30%); rotate: 2deg; opacity: 0; transition: opacity .5s; }
.gauge-h.is-on .gauge-m { opacity: 1; }

.specimen { border-top: 1px solid rgba(29, 27, 25, .22); padding-top: 22px; }
.sp-label { font-size: 15px; color: var(--ink-3); margin-bottom: 14px; }
.sp { position: relative; color: var(--ink); line-height: 1.12; padding-left: clamp(0px, 4.2vw, 60px); }
.sp-size {
  position: absolute; left: 0; top: .42em; font: 400 11px/1 var(--mono); color: var(--ink-3); letter-spacing: .04em;
}
.sp-size::after { content: " pt"; }
.sp-1 { font-size: clamp(48px, 6.6vw, 96px); font-weight: 440; letter-spacing: -.012em; }
.sp-1 .sp-size { top: 1.05em; font-size: 11px; }
.sp-2 { font-size: clamp(30px, 3.4vw, 48px); margin-top: 4px; }
.sp-3 { font-size: clamp(24px, 2.25vw, 32px); margin-top: 10px; }
.sp-4 { font-size: clamp(19px, 1.7vw, 24px); margin-top: 12px; color: var(--ink-2); }
.sp-2 .sp-size, .sp-3 .sp-size, .sp-4 .sp-size { top: 50%; transform: translateY(-50%); }

/* ----------------------------------------------------------------- also */
.also { margin-top: 70px; z-index: 9; }
.sheet-title { rotate: -.3deg; text-align: center; width: min(860px, calc(100vw - 2 * var(--gut))); margin-left: auto; margin-right: auto; }
.also-h { margin: 0; font-size: clamp(44px, 5.4vw, 80px); font-weight: 440; font-style: italic; letter-spacing: -.01em; line-height: 1; }
.orn { font-size: 30px; color: var(--ink-2); margin: 18px 0 8px; line-height: 1; }
.orn-end { margin: 26px 0 0; }
.also-list { list-style: none; margin: 0 auto; padding: 0; max-width: 36em; }
.also-list li { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; padding: 16px 0; color: var(--ink-2); text-wrap: balance; }
.also-list li + li { border-top: 1px solid rgba(29, 27, 25, .14); }
.also-list .sc { color: var(--ink); font-size: 1.05em; }
.also-list code { display: inline-block; font-size: .78em; padding: 2px 8px; background: rgba(29, 27, 25, .06); border-radius: 2px; color: var(--ink); }

/* ------------------------------------------------------------- colophon */
.colophon { margin-top: 70px; padding-bottom: 120px; z-index: 10; }
.sheet-colophon { rotate: .3deg; text-align: center; margin-left: max(var(--gut), calc((100vw - var(--sheet-w)) * .5)); }
.device { width: 120px; height: 120px; margin: 0 auto 26px; color: var(--ink); }
.device-svg { width: 100%; height: 100%; overflow: visible; }
.device-dele { color: var(--red); filter: url(#f-pencil); }
/* the bookend: the last sheet waits blank until the roller pulls it, then the dele is written */
.colophon-type { position: relative; z-index: 1; }
.colophon-type.is-waiting { opacity: 0; }
.device.is-pending .device-dele { stroke-dasharray: 1; stroke-dashoffset: 1; }
.device.is-pending.is-on .device-dele { stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease-press); }
.device-text { font: 500 9px var(--mono); letter-spacing: .32em; text-transform: uppercase; fill: var(--ink-2); }
.sheet-colophon .display-2 { margin-bottom: 18px; }
.free-line { margin: 0 auto 6px; }
.final-cta { margin: clamp(40px, 6vh, 64px) auto 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.req { font-size: 16px; color: var(--ink-3); max-width: 34em; }
.credits { margin: clamp(60px, 9vh, 96px) auto 0; max-width: 38em; font-size: 15.5px; line-height: 1.55; color: var(--ink-3); border-top: 1px solid rgba(29, 27, 25, .18); padding-top: 22px; }
.credits-h { font-size: 15px; color: var(--ink-3); margin-bottom: 8px; }
.credits-set { margin-top: 8px; font-style: italic; }

/* deeper sheets for each later scene */
.u3 { left: calc(max(var(--gut), calc((100vw - var(--sheet-w) - var(--rail)) * .55)) - 22px); top: 40px; width: var(--sheet-w); height: 80%; rotate: -1.6deg; }
.u4 { left: calc(max(var(--gut), calc((100vw - var(--sheet-w) - var(--rail)) * .55)) + 24px); top: 60px; width: var(--sheet-w); height: 60%; rotate: 1.4deg; }
.u5 { left: calc(max(var(--gut), calc((100vw - var(--sheet-w)) * .5 + 30px)) - 26px); top: 30px; width: var(--sheet-w); height: 85%; rotate: -1.9deg; }
.u6 { left: calc(max(var(--gut), calc((100vw - var(--sheet-w)) * .5 + 30px)) + 20px); top: 50px; width: var(--sheet-w); height: 85%; rotate: 1.5deg; }
.u7 { left: calc(max(var(--gut), calc((100vw - var(--sheet-w)) * .5 - 30px)) - 18px); top: 34px; width: var(--sheet-w); height: 85%; rotate: -1.2deg; }
.u8 { left: calc(50% - min(430px, 50vw - var(--gut)) + 24px); top: 26px; width: min(860px, calc(100vw - 2 * var(--gut))); height: 90%; rotate: 2deg; }
.u9 { left: calc(max(var(--gut), calc((100vw - var(--sheet-w)) * .5)) - 24px); top: 40px; width: var(--sheet-w); height: 80%; rotate: -1.4deg; }

/* --------------------------------------------------------------- review */
.review {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 70;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 0 10px; height: 44px; border-radius: 22px;
  background: rgba(244, 239, 229, .94);
  box-shadow: 0 0 0 1px rgba(29, 27, 25, .16), 0 10px 24px -12px rgba(var(--shade) / .6);
  font-size: 15px; white-space: nowrap;
}
.review a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px;
  color: var(--ink-3); text-decoration: none; font-variant-caps: all-small-caps; letter-spacing: .09em; font-size: 16px;
}
.review a:hover { color: var(--ink); }
.review a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.review span { color: rgba(29, 27, 25, .3); }

/* ------------------------------------------------------- flying sorts */
.flyers { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.fly { position: absolute; left: 0; top: 0; will-change: transform; }
.fly .s, .fly .q { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .5), inset -1px 0 0 rgba(48, 44, 38, .32), inset 0 1px 0 rgba(255, 255, 255, .75), 0 10px 14px -4px rgba(20, 14, 6, .45); }
.fly-ink { color: var(--ink); white-space: pre; }
.fly-mark { position: absolute; left: 0; top: 0; overflow: hidden; pointer-events: none; }
.fly-mark .mark-ink { filter: none; }

/* soft window light over the whole table */
.lamp {
  position: fixed; inset: 0; pointer-events: none; z-index: 55;
  background:
    radial-gradient(140% 100% at 12% -10%, rgba(255, 250, 238, .16), rgba(255, 250, 238, 0) 55%),
    radial-gradient(120% 90% at 100% 110%, rgba(var(--shade) / .14), rgba(var(--shade) / 0) 60%);
}

/* -------------------------------------------- scroll-driven depth (compositor) */
@supports (animation-timeline: view()) {
  .js [data-depth] {
    animation: depth linear both;
    animation-timeline: view();
    animation-range: cover;
  }
  .js .hero [data-depth] {
    animation-name: depth-top;
    animation-timeline: scroll(root);
    animation-range: 0px 1000px;
  }
  .js .sheet[data-tilt] {
    animation: tilt linear both;
    animation-timeline: view();
    animation-range: cover;
  }
}
@keyframes depth {
  from { transform: translate3d(0, calc(var(--d, 0) * (50vh + 50%)), 0); }
  to { transform: translate3d(0, calc(var(--d, 0) * -1 * (50vh + 50%)), 0); }
}
@keyframes depth-top {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, calc(var(--d, 0) * -1000px), 0); }
}
@keyframes tilt {
  from { transform: perspective(1800px) rotateX(2.2deg) translateY(10px); }
  50% { transform: perspective(1800px) rotateX(0deg) translateY(0); }
  to { transform: perspective(1800px) rotateX(-1.6deg) translateY(-6px); }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 899px) {
  :root { --sheet-w: calc(100vw - 2 * var(--gut)); }
  .sheet { margin-left: var(--gut); padding: 54px 22px 62px; }
  .sheet-hero { grid-template-columns: 1fr; min-height: calc(100svh - 84px - 26px); rotate: -.25deg; align-content: start; padding-top: 58px; }
  .margin-marks { position: absolute; right: 10px; top: 0; width: 60px; height: 100%; }
  .dele-hero { left: auto; right: 4px; margin-left: 0; width: 36px; height: 50px; }
  .hero .kicker { font-size: 13.5px; letter-spacing: .08em; text-wrap: balance; }
  .pnote-size { display: none; }
  .gauge-v, .case { display: none; }
  .pencil-obj { width: 300px; height: 22px; right: -120px; bottom: 30px; rotate: -16deg; }
  .u1, .u2, .u3, .u4, .u5, .u6, .u7, .u9 { left: calc(var(--gut) + 6px); width: calc(100vw - 2 * var(--gut) - 6px); }
  .hellrail { position: fixed; top: auto; bottom: 64px; left: 0; right: 0; }
  /* a drawer: only its wooden edge shows in the gutter until sorts fall into it */
  .hellbox { right: 0; top: auto; bottom: 0; width: 88px; height: 70px; rotate: -5deg; translate: 66px 0; transition: translate .5s var(--ease-out); }
  .hellbox.is-open { translate: -10px 0; }
  .hb-box { height: 50px; }
  .hb-floor { inset: 7px; }
  .hb-front { top: 46px; height: 22px; padding-left: 6px; }
  .hb-label { font-size: 8px; letter-spacing: .18em; }
  .hb-tally { top: 49px; width: 26px; right: 4px; height: 18px; }
  .hb-sort { font-size: 10px; }
  .slug { font-size: 8.5px; letter-spacing: .1em; top: 18px; }
  .reg { width: 16px; height: 16px; }
  .r-tl, .r-tr { top: 14px; } .r-bl, .r-br { bottom: 14px; }
  .r-tl, .r-bl { left: 12px; } .r-tr, .r-br { right: 12px; }
  .pnote-flip { position: static; width: auto; max-width: 100%; text-align: center; margin: 14px auto 0; rotate: -1deg; font-size: 17px; }
  .stick-bed { padding: 10px 40px 22px 30px; }
  .press { margin-top: 40px; }
  .steps { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 40px; }
  .step-sep { display: none; }
  .dele-note { display: none; }
  .press-row { grid-template-columns: 1fr; gap: 22px; }
  .hold-row { align-items: center; text-align: center; }
  .stick-head { width: 20px; }
  .stick-knee { width: 22px; right: 8px; }
  .stick-scale { left: 26px; right: 40px; }
  .galley { padding: 12px 14px 22px 14px; margin-right: 0; }
  .galley-margin { position: static; height: 40px; width: auto; margin-top: 10px; justify-content: flex-end; }
  .where-pair { grid-template-columns: 1fr; }
  .sheet-chase { grid-template-columns: 1fr; }
  .chase-art { height: 470px; --ch: 56%; }
  .sp { padding-left: 0; }
  .sp-size { display: none; }
  .thumb { width: 56px; height: 72px; left: auto; right: 8%; bottom: 3.5%; }
  .review { gap: 0; padding: 0 4px; }
  .review a { padding: 0 6px; font-size: 14.5px; }
  .colophon { padding-bottom: 110px; }
}
@media (max-width: 380px) {
  .review a { padding: 0 4px; font-size: 13.5px; letter-spacing: .06em; }
}

/* ----------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-depth] { animation: none !important; transform: none !important; }
  .caret { opacity: 1; }
  .dele use { stroke-dashoffset: 0; }
  .pnote-size, .gauge-m, .kept-note { opacity: 1; }
  .fig-kept .kept-word::after { opacity: 1; transform: scale(1) rotate(-4deg); }
  .kept-note { transform: rotate(-2deg); }
}

@media (forced-colors: active) {
  [data-press] .w { color: CanvasText; background: none; -webkit-text-stroke: 0; filter: none; }
}

/* One accumulating pile, with the same tools beside every proof. */
.dele-note { position: absolute; top: 28px; right: 12px; width: 102px; font-size: 17px; text-align: right; transform: rotate(-6deg); }
.galley .is-del { color: #696456; background: none; box-shadow: none; text-shadow: none; }
.galley .is-del::after { opacity: .18; }
.said-cmd { position: relative; display: inline-flex; margin: 0 .3em; font: 400 18px/1 var(--serif); }
.command-marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .scene { position: sticky; top: min(76px, calc(100svh - var(--scene-height, 900px) - 70px)); }
  /* --dwell is how long the sheet before stays pinned and uncovered: its time to finish */
  .scene:not(.hero) { margin-top: calc(var(--dwell, 0px) - 12px); }
  .gesture { --dwell: 24vh; }
  .clean { --dwell: 64vh; }
  .where { --dwell: 56vh; }
  .private { --dwell: 52vh; }
  .fast { --dwell: 48vh; }
  .also { --dwell: 40vh; }
  .colophon { --dwell: 32vh; }
  .scene .sheet { margin-left: max(var(--gut), calc((100vw - var(--sheet-w) - var(--rail)) * .55)); }
  .js .sheet[data-tilt] { animation: none; }
  .sheet-title { width: var(--sheet-w); }
}
@media (prefers-reduced-motion: reduce) {
  .pc, .quoin .w-in, .lock-type .s, .lock-type .q { translate: none !important; rotate: none !important; }
  .quoin-key { rotate: 0deg !important; }
}
