/* ============================================================
   The Panorama: keepsake styles (final, seven routes).
   The same sheet as the board, unfolded: cover, the film on deep
   sky, one chapter per route on paper, photographs on sky, GECO's
   dedication in the key colour, the register, and what we carry
   down on spruce. Tokens and rules are recorded in DESIGN.md.
   ============================================================ */

:root {
  --paper: #f4f6f8;
  --ink: #14213d;
  --ink-2: #3a4763;
  --rule: #c5cddb;
  --sky: #1e4eac;
  --sky-deep: #153585;
  --peri: #96a9e1;
  --spruce: #1f5a45;
  --sun: #f2a900;
  --wash: #24345c;           /* hover on the key colour */
  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: max(20px, calc((100vw - 70rem) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; background: var(--paper); scrollbar-color: var(--ink) var(--paper); }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.5;
  color: var(--ink); background: var(--paper); -webkit-text-size-adjust: 100%;
}
::selection { background: var(--sun); color: var(--ink); }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--paper); }

.skip { position: fixed; left: 12px; top: -80px; z-index: 60; background: var(--paper); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }

.roundel {
  display: inline-grid; place-items: center; flex: none; width: 1.75em; height: 1.75em; border-radius: 50%;
  background: var(--route, var(--ink)); color: var(--on, #fff); border: 2px solid var(--ink);
  font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1;
}
/* GECO and the film are not routes: a square mark in the key colour, never a numbered roundel */
.roundel--key { border-radius: 2px; background: var(--ink); color: var(--paper); }
.roundel--key svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- preview bar: only when this page is the preview opened from the board ---------- */
.preview-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap;
  background: var(--sun); color: var(--ink); padding: 8px var(--gutter); font-size: .9375rem; line-height: 1.35;
}
.preview-bar[hidden] { display: none; }
.preview-bar b { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.preview-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px 6px 8px; flex: none;
  background: var(--ink); color: var(--paper); border-radius: 2px; font-weight: 700; text-decoration: none;
}
.preview-back:hover { background: var(--sky); }
.preview-back svg, .index-board svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- cover ---------- */
.cover { position: relative; min-height: calc(100svh - var(--bar-h, 0px)); overflow: hidden; background: var(--sky); color: var(--paper); isolation: isolate; }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cover-title { position: absolute; left: 4.1vw; top: 2.6vw; width: 34vw; min-width: 17rem; }
.cover-title h1 { font-weight: 800; font-size: clamp(2.75rem, 4.4vw, 5.25rem); line-height: .9; letter-spacing: -.012em; text-transform: uppercase; }
/* In the sky the whole block scales with the art, so its last line keeps its distance from the ridge
   at any wide window. The lower bounds (14px, 12.5px) are reached at 1250px, which is exactly where
   the title leaves the sky for the boxed block below: no sky title is ever set at a floor size. */
.cover-sub { margin-top: .9vw; font-weight: 500; font-size: clamp(.875rem, 1.12vw, 1.3rem); line-height: 1.3; max-width: 23em; }
.cover-from { margin-top: .5em; font-weight: 700; font-size: clamp(.78125rem, 1vw, 1.125rem); }
.cover-go {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 2px;
  font-weight: 700; text-decoration: none; box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .75);
}
.cover-go:hover { background: var(--sun); }
.cover-wait {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: min(30rem, calc(100% - 40px));
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 2px; padding: 12px 18px; font-weight: 600; text-align: center;
}
.cover-wait[hidden] { display: none; }
:root:not([data-ready="true"]) .cover-go { visibility: hidden; }
.cover-go svg, .btn-print svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* The reveal: the sheet prints pass by pass, every route climbs, the summit lands last. */
@media (prefers-reduced-motion: no-preference) {
  .cover-art .pa-pass { animation: pass .55s var(--ease) both; }
  .cover-art .pa-sky { animation-delay: .1s; }
  .cover-art .pa-snow { animation-delay: .4s; }
  .cover-art .pa-shadow { animation-delay: .7s; }
  .cover-art .pa-key { animation-delay: .95s; }
  .cover-art .pa-forest { animation-delay: 1.2s; }
  .cover-art .pa-valley { animation-delay: 1.45s; }
  @keyframes pass { from { opacity: 0; transform: translate(12px, -8px); } }

  .kp-routes .pa-route path { stroke-dasharray: 1; animation: climb 1s cubic-bezier(.45, 0, .2, 1) both; animation-delay: calc(1.9s + var(--d, 0s)); }
  @keyframes climb { from { stroke-dashoffset: -1; } to { stroke-dashoffset: 0; } }
  .kp-routes .pa-roundel, .kp-routes .pa-summit-mark { animation: appear .3s linear both; animation-delay: calc(2.8s + var(--d, 0s)); }
  .kp-routes .pa-summit-mark { animation-delay: 3.9s; }
  .kp-chip { animation: appear .28s linear both; animation-delay: calc(3.1s + var(--d, 0s)); }
  @keyframes appear { from { opacity: 0; } }
  .kp-medal { transform-box: fill-box; transform-origin: center; animation: land .8s var(--ease) both; animation-delay: 4.3s; }
  @keyframes land { from { opacity: 0; transform: scale(.72); } }
  .cover-title { animation: rise .7s var(--ease) both; animation-delay: .5s; }
  .cover-go { animation: appear .5s linear both; animation-delay: 4.9s; }
  @keyframes rise { from { opacity: 0; translate: 0 14px; } }
}

/* ---------- index ---------- */
.index {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: stretch; gap: 8px;
  background: var(--ink); color: var(--paper); padding: 0 var(--gutter); min-height: 54px;
}
.index-routes, .index-more, .index-lead { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.index-routes::-webkit-scrollbar, .index-more::-webkit-scrollbar { display: none; }
.index-lead:empty { display: none; }
.index-lead { flex: none; border-right: 1px solid #45547a; padding-right: 8px; }
.index a .roundel--key { background: var(--paper); color: var(--ink); }
.index a[aria-current] .roundel--key { background: var(--ink); color: var(--paper); }
.index [hidden] { display: none; }
.index-board { font-weight: 700 !important; }
.index-routes { flex: 1; min-width: 0; }
.index li { display: flex; flex: none; }
.index a {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 12px; min-height: 54px; white-space: nowrap;
  text-decoration: none; font-weight: 500; font-size: .9375rem;
}
.index a .roundel { font-size: 13px; border-color: var(--paper); }
.index a:hover { background: var(--wash); }
/* seven routes must all be in sight: where their names do not fit (keepsake.js sets data-tight), a route
   away from the current chapter is its roundel, its name still read out */
.index[data-tight] .index-routes a:not([aria-current]) .nm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.index[data-tight] .index-routes a { padding-left: 9px; padding-right: 9px; }
.index a[aria-current] { background: var(--paper); color: var(--ink); }
.index a[aria-current] .roundel { border-color: var(--ink); }
.index a:focus-visible { outline-color: var(--sun); outline-offset: -4px; box-shadow: none; }
.index-more { border-left: 1px solid #45547a; padding-left: 8px; }

/* ---------- the film: one screen on deep sky ---------- */
.filmsec { background: var(--sky-deep); color: var(--paper); padding: 84px var(--gutter) 76px; scroll-margin-top: 54px; }
.filmsec[hidden], .geco[hidden], .views[hidden] { display: none; }
.film-figure { margin-top: 40px; max-width: 64rem; }
.film-screen { background: #000; border: 3px solid var(--paper); box-shadow: 0 30px 44px -22px rgba(0, 0, 0, .8); }
.film-screen video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film-screen video:focus-visible { outline-color: var(--sun); box-shadow: none; }
.film-print, .film-print-note { display: none; }
.film-missing { margin-top: 14px; padding: 10px 14px; background: var(--paper); color: var(--ink); font-weight: 600; border-radius: 2px; }
.film-missing[hidden] { display: none; }

/* ---------- route chapters ---------- */
.chapter { padding: 84px var(--gutter) 64px; scroll-margin-top: 54px; }
.chapter + .chapter { border-top: 2px solid var(--ink); }
.chapter-head { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.chapter-head .roundel { font-size: clamp(1.75rem, 3.4vw, 2.75rem); border-width: 3px; }
.chapter-head h2 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.75rem); line-height: .95; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; }
.chapter-meta { margin-top: 8px; color: var(--ink-2); }
.chapter-empty { margin-top: 28px; color: var(--ink-2); }

.route { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 92px; margin-top: 62px; padding: 44px 0 30px; }
.route::before {              /* the route itself */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 10px; margin-left: -5px;
  background: var(--route); border-radius: 5px; box-shadow: 0 0 0 2.5px var(--ink);
}
.route::after {               /* the trailhead */
  content: ""; position: absolute; left: 50%; bottom: -10px; width: 26px; height: 26px; margin-left: -13px;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--ink);
}
.route-cap {                  /* the summit end */
  position: absolute; left: 50%; top: -24px; transform: translateX(-50%); width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--ink); display: grid; place-items: center; z-index: 1;
}
.route-cap svg { width: 24px; height: 24px; fill: var(--ink); }
.col { display: flex; flex-direction: column; gap: 34px; }
.col-r { padding-top: 70px; }
.col-l { align-items: flex-end; }

.slip {
  position: relative; width: min(100%, 31rem); padding: 22px 24px 12px;
  background: var(--slip, #fff); border-radius: 2px;
  box-shadow: 0 1px 0 rgba(20, 33, 61, .16), 0 16px 26px -14px rgba(0, 0, 0, .5);
  transform: rotate(calc(var(--tilt, 0) * .6deg));
}
.slip::before {               /* pinned to the route */
  content: ""; position: absolute; top: 20px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--route); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--paper);
}
.slip::after { content: ""; position: absolute; top: 29.5px; width: 36px; height: 3px; background: var(--ink); }
.col-l .slip::before { right: -57px; } .col-l .slip::after { right: -36px; }
.col-r .slip::before { left: -57px; }  .col-r .slip::after { left: -36px; }
.slip[data-len="short"] { width: min(100%, 24rem); }

.note-photo { display: block; width: 100%; height: auto; border: 8px solid #fff; background: #fff; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .55); margin-bottom: 16px; }
.note-prompt { font-weight: 600; font-size: .9375rem; line-height: 1.3; color: var(--deep, var(--ink-2)); margin-bottom: 4px; }
.note-prompt em, .carry-prompt em { font-style: normal; font-weight: 800; }
.note-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; max-width: 65ch; text-wrap: pretty; }
.note-author { text-align: right; margin-top: 10px; font-size: 1.15rem; line-height: 1.15; padding: 0 2px 4px; }

/* ---------- section heads ---------- */
.section-head { max-width: 40rem; }
.section-head h2 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.75rem); line-height: .95; text-transform: uppercase; text-wrap: balance; }
.section-head p { margin-top: 14px; font-size: 1.125rem; }

/* ---------- views from the route: prints on sky ---------- */
.views { background: var(--sky); color: var(--paper); padding: 88px var(--gutter) 72px; scroll-margin-top: 54px; }
.plates { columns: 3 250px; column-gap: 34px; margin-top: 50px; }
.plate {
  break-inside: avoid; margin: 0 0 36px; background: #fff; color: var(--ink); padding: 12px 12px 12px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 22px 30px -16px rgba(0, 0, 0, .8);
  transform: rotate(calc(var(--tilt, 0) * 1.1deg));
}
.plate img { display: block; width: 100%; height: auto; }
.plate figcaption { display: flex; align-items: center; gap: 9px; margin-top: 11px; font-size: .9375rem; line-height: 1.3; color: var(--ink-2); }
.plate figcaption b { color: var(--ink); font-weight: 700; margin-right: 3px; }
.plate .roundel { font-size: 12px; }

/* ---------- from GECO: not a route, so no route ink. The first message is the dedication,
   reversed out of the key colour; the second sits under it; staff notes are ruled white cards. ---------- */
.geco { background: #fff; padding: 88px var(--gutter) 76px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); scroll-margin-top: 54px; }
.geco-lead { display: grid; gap: 30px; margin-top: 46px; max-width: 58rem; }
.tribute { border-radius: 2px; }
.tribute--first {
  background: var(--ink); color: var(--paper); padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 60px) clamp(30px, 5vw, 52px);
  box-shadow: inset 0 0 0 10px var(--ink), inset 0 0 0 12px rgba(244, 246, 248, .5);
}
.tribute--second { background: var(--paper); border: 3px solid var(--ink); padding: clamp(22px, 4vw, 40px) clamp(20px, 4vw, 44px); max-width: 46rem; }
.tribute header { padding-bottom: 18px; margin-bottom: 22px; border-bottom: 3px solid var(--paper); }
.tribute--second header { border-bottom-color: var(--ink); padding-bottom: 14px; margin-bottom: 18px; }
.tribute-name { font-weight: 800; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.tribute--second .tribute-name { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
.tribute-title { margin-top: 10px; font-size: 1.125rem; font-weight: 500; color: var(--peri); }
.tribute--second .tribute-title { color: var(--ink-2); font-size: 1.0625rem; margin-top: 6px; }
.tribute-body { font-size: clamp(1.1875rem, 2vw, 1.4375rem); line-height: 1.55; max-width: 62ch; overflow-wrap: anywhere; text-wrap: pretty; }
.tribute--second .tribute-body { font-size: 1.125rem; line-height: 1.6; }
.tribute-body p + p { margin-top: .85em; }
.tribute-prompt { font-weight: 600; }
.tribute-prompt em { font-style: normal; font-weight: 800; }
.staff-head { display: flex; align-items: center; gap: 12px; margin-top: 60px; font-size: 1rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.staff-head .roundel { font-size: 15px; }
.staff-n { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.staff-notes { columns: 3 260px; column-gap: 28px; margin-top: 26px; }
.staff-notes .slip {
  break-inside: avoid; width: auto; margin: 0 0 26px; background: #fff; padding: 20px 22px 12px;
  box-shadow: 0 0 0 2px var(--ink), 0 14px 22px -14px rgba(0, 0, 0, .45); transform: rotate(calc(var(--tilt, 0) * .35deg));
}
.staff-notes .slip::before, .staff-notes .slip::after { content: none; }
.staff-notes .note-prompt { color: var(--ink-2); }

/* ---------- summit register ---------- */
.register { padding: 88px var(--gutter) 72px; scroll-margin-top: 54px; }
.register-rows { margin-top: 44px; border-bottom: 2px solid var(--ink); }
.register-row { display: grid; grid-template-columns: 15rem 1fr; gap: 12px 28px; align-items: start; padding: 22px 0 20px; border-top: 2px solid var(--ink); }
.register-row h3 { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; padding-top: 4px; }
.register-row h3 .roundel { font-size: 15px; }
.sigs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 34px; font-size: 1.3rem; line-height: 1.5; }
.sig { display: inline-block; transform: rotate(calc(var(--tilt, 0) * 2.2deg)); white-space: nowrap; }
.sig--set { font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transform: none; align-self: center; }

/* ---------- what we carry down ---------- */
.carry { background: var(--spruce); color: var(--paper); padding: 88px var(--gutter) 80px; scroll-margin-top: 54px; }
.carry-list { columns: 2 320px; column-gap: 64px; margin-top: 50px; }
.carry-list li { break-inside: avoid; padding: 0 0 34px; }
.carry-prompt { font-size: .9375rem; font-weight: 600; color: #c4e6d2; }
.carry-body { font-size: clamp(1.25rem, 2vw, 1.5625rem); font-weight: 500; line-height: 1.28; margin-top: 4px; overflow-wrap: anywhere; text-wrap: pretty; }
.carry-by { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; font-size: 1.1rem; }
.carry-team { font-size: .875rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #c4e6d2; }

/* ---------- colophon ---------- */
.colophon { background: var(--ink); color: var(--paper); padding: 56px var(--gutter) 72px; display: grid; gap: 14px; justify-items: start; position: relative; }
.colophon-bar { display: flex; max-width: 100%; }
.colophon-bar span { flex: 0 1 34px; height: 20px; }
.colophon-line { font-size: 1.25rem; font-weight: 600; }
.colophon-fine { color: #c3cbe0; }
.colophon-board a { font-weight: 700; text-underline-offset: 3px; }
.colophon-board a:hover { color: var(--sun); }
.colophon-board[hidden] { display: none; }
.colophon a:focus-visible { outline-color: var(--sun); box-shadow: none; }
.colophon-by { position: absolute; right: var(--gutter); bottom: 28px; margin: 0; color: #9aa6c4; font-size: 0.75rem; letter-spacing: 0.04em; }
@media (max-width: 34rem) { .colophon-by { position: static; justify-self: start; margin-top: 6px; } }
.btn-print {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; margin-top: 10px;
  font: inherit; font-weight: 700; color: var(--ink); background: var(--paper); border: 2px solid var(--paper); border-radius: 2px; cursor: pointer;
}
.btn-print:hover { background: var(--sun); border-color: var(--sun); }
.btn-print:focus-visible { outline-color: var(--sun); box-shadow: none; }

/* the prototype control keeps clear of the cover's button */
.proto-bar { left: auto !important; right: max(10px, env(safe-area-inset-right)); align-items: flex-end !important; }
@media (max-width: 760px) { .proto-bar { bottom: 92px !important; } }

/* ---------- phones ---------- */
/* When the frame is too narrow or too tall for the sky to hold the title, it becomes the map's boxed title block. */
@media (max-width: 1250px), (max-aspect-ratio: 4/3) {
  .cover-title {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; min-width: 0;
    background: var(--ink); padding: 20px max(20px, 4vw) calc(94px + env(safe-area-inset-bottom)); border-top: 3px solid var(--paper);
  }
  .cover-title h1 { font-size: clamp(3.1rem, 8vw, 5rem); }
  .cover-sub { margin-top: 10px; max-width: 34rem; font-size: 1.0625rem; }
  .cover-from { font-size: 1rem; margin-top: .5rem; }
  .cover-go { bottom: calc(22px + env(safe-area-inset-bottom)); left: max(20px, 4vw); right: auto; transform: none; justify-content: center; }
}
/* on a small laptop or a wide tablet (1000px and up) the boxed block lies down: title left, lines and the button right, so the map keeps most of the cover */
@media (min-width: 1000px) and (max-width: 1250px), (min-width: 1000px) and (max-aspect-ratio: 4/3) {
  .cover-title {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(28px, 4vw, 56px); align-items: end;
    padding: 20px calc(max(20px, 4vw) + 230px) 22px max(20px, 4vw);
  }
  .cover-title h1 { grid-row: 1 / span 2; font-size: clamp(3rem, 6.4vw, 4.75rem); }
  .cover-sub { margin-top: 0; align-self: end; max-width: 30rem; text-wrap: balance; }
  .cover-from { align-self: start; text-wrap: balance; }
  .cover-go { left: auto; right: max(20px, 4vw); bottom: 26px; }
}
@media (max-width: 760px) {
  .cover-go { right: 20px; }
  .index { padding: 0 6px; overflow-x: auto; scrollbar-width: none; }
  .index::-webkit-scrollbar { display: none; }
  .index a { padding: 6px 9px; }
  .index-routes, .index-more { flex: none; overflow: visible; }
  .chapter { padding: 60px 18px 48px; }
  .route { grid-template-columns: 1fr; padding: 40px 0 26px 40px; margin-top: 50px; }
  .route::before, .route::after, .route-cap { left: 12px; }
  .col { gap: 28px; }
  .col-l { align-items: stretch; }
  .col-r { padding-top: 28px; }
  .slip, .slip[data-len="short"] { width: 100%; padding: 20px 18px 10px; }
  .col-l .slip::before, .col-r .slip::before { left: -39px; right: auto; }
  .col-l .slip::after, .col-r .slip::after { left: -18px; right: auto; width: 18px; }
  .views, .register, .carry, .geco, .filmsec { padding: 60px 18px 52px; }
  .film-figure { margin-top: 28px; }
  .film-screen { margin: 0 -18px; border-width: 3px 0; }
  .geco-lead { margin-top: 32px; gap: 22px; }
  .staff-head { margin-top: 44px; }
  .register-row { grid-template-columns: 1fr; }
  .sigs { gap: 2px 26px; }
}

/* ---------- print: one section per page, tints kept ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #fff; font-size: 11pt; }
  .skip, .index, .cover-go, .btn-print, .colophon-fine, .preview-bar, .cover-wait, .colophon-board, .film-missing { display: none !important; }
  .cover, .views, .carry, .colophon, .slip, .plate, .roundel, .route::before, .slip::before, .filmsec, .tribute, .film-screen {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  /* paper cannot play a film: the still stands in for it, with a line that says where the film is */
  .filmsec { padding: 8mm; break-before: page; break-inside: avoid; }
  .film-figure { margin-top: 8mm; max-width: none; }
  .film-screen { box-shadow: none; border-width: 1.5pt; }
  .film-screen video { display: none; }
  .film-print { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .film-print-note { display: block; margin-top: 4mm; font-size: 11pt; }
  .geco { padding: 0 0 6mm; border: 0; break-before: page; }
  .geco-lead { margin-top: 8mm; gap: 6mm; max-width: none; }
  .tribute { break-inside: avoid; }
  .tribute--first { padding: 10mm 12mm; }
  .tribute--second { padding: 7mm 9mm; max-width: none; }
  .tribute-name { font-size: 26pt; }
  .tribute--second .tribute-name { font-size: 18pt; }
  .tribute-body, .tribute--second .tribute-body { font-size: 12pt; }
  .staff-head { margin-top: 10mm; }
  .staff-notes { columns: 3; column-gap: 6mm; margin-top: 5mm; }
  .staff-notes .slip { margin-bottom: 5mm; border: 1pt solid var(--ink); padding: 4mm 5mm 3mm; }
  .cover { min-height: 0; height: 262mm; break-after: page; }
  /* Flat inks on paper: pattern fills and blend modes rasterise and bloat a PDF from 1.5 MB to 33 MB. */
  .cover-art [fill^="url(#pa-"] { display: none; }
  .cover-art .pa-pass { mix-blend-mode: normal !important; }
  .cover-title { left: 0; right: 0; top: auto; bottom: 0; width: auto; background: var(--ink); padding: 8mm 10mm; border-top: 2pt solid var(--paper); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cover-title h1 { font-size: 34pt; }
  .cover-sub, .cover-from { font-size: 11pt; margin-top: 2mm; max-width: none; }
  .chapter { padding: 0 0 8mm; break-before: page; border: 0 !important; }
  .chapter-head h2, .section-head h2 { font-size: 26pt; }
  .route { column-gap: 22mm; margin-top: 12mm; padding-top: 10mm; }
  .col { gap: 7mm; }
  .slip, .plate, .register-row, .carry-list li { break-inside: avoid; box-shadow: none; }
  .slip { border: .5pt solid rgba(20, 33, 61, .35); transform: none; }
  .col-l .slip::before { right: -14.4mm; } .col-l .slip::after { right: -11mm; width: 11mm; }
  .col-r .slip::before { left: -14.4mm; }  .col-r .slip::after { left: -11mm; width: 11mm; }
  .views, .register, .carry { padding: 8mm; break-before: page; }
  .register { padding: 0; }
  .plates { columns: 3; margin-top: 8mm; }
  .plate { transform: none; }
  .carry-list { margin-top: 8mm; }
  .colophon { padding: 8mm; margin-top: 8mm; break-inside: avoid; }
  .colophon-by { position: static; justify-self: start; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
