/* Once Over's site: the stocktake (~/OnceOver/design/SITE-OVERHAUL-PLAN-2026-11-26.md). An inspection sheet that
   follows the system as the app does: cool graph paper by day, blue-black at night. Ink is a file counted with a
   second copy; red pencil (the app's persimmon) is a file with no second copy, and nothing else, besides the one
   filled button. Onest says things; Spline Sans Mono records them.

   Contrast, measured on the sheet / card by day and at night:
     day   ink #15191D 15.3 / 16.4 · ink-2 #3F4850 8.6 / 9.2 · muted #5F6973 5.1 / 5.5 · red #A33C17 5.3 / 5.7 · white on red 6.5
     night ink #E8ECEF 15.6 / 14.2 · ink-2 #B7C0C8 10.0 / 9.1 · muted #8A949D 6.0 / 5.5 · red #EF8A62 7.4 / 6.7 · sheet on red 7.4 */

@font-face { font-family: 'Onest'; src: url('fonts/Onest-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Spline Sans Mono'; src: url('fonts/SplineSansMono-Variable.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }

:root {
  --sheet: #ECEFF1; --sheet-2: #E3E7EA; --card: #F7F9FA;
  --ink: #15191D; --ink-2: #3F4850; --muted: #5F6973; --faint: #A9B2BA;
  --rule: rgba(21, 25, 29, 0.13); --rule-2: rgba(21, 25, 29, 0.3);
  --grid: rgba(54, 86, 117, 0.045); --grid-major: rgba(54, 86, 117, 0.085);
  --red: #A33C17; --on-red: #FFFFFF; --stripe: #F1DDD3;
  --night: rgba(54, 86, 117, 0.28);
  --shadow: 0 1px 2px rgba(21, 25, 29, 0.06), 0 14px 40px rgba(21, 25, 29, 0.08);
  --display: 'Onest', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gap: 2px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sheet: #0E1216; --sheet-2: #131920; --card: #151B21;
    --ink: #E8ECEF; --ink-2: #B7C0C8; --muted: #8A949D; --faint: #4A545D;
    --rule: rgba(232, 236, 239, 0.12); --rule-2: rgba(232, 236, 239, 0.28);
    --grid: rgba(140, 175, 210, 0.04); --grid-major: rgba(140, 175, 210, 0.075);
    --red: #EF8A62; --on-red: #0E1216; --stripe: #4A2E24;
    --night: rgba(140, 175, 210, 0.22);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 48px rgba(0, 0, 0, 0.35);
  }
}
@media (prefers-contrast: more) { :root { --gap: 3px; --rule: var(--rule-2); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--ink); background-color: var(--sheet);
  font: 400 17px/1.55 var(--display); font-feature-settings: 'tnum' 1, 'lnum' 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* Engineering paper: a fine grid every 8 px, a stronger one every 40 px. */
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  background-position: -1px -1px;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p, dl, dd, ul, ol { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--card); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.oo-wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ── The two voices ──────────────────────────────────────────────────────────────────────────── */
.cap { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cap.ink { color: var(--ink); }
.oo-eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.cap a { text-decoration: none; }
h1 { font-size: clamp(46px, 7.6vw, 112px); line-height: .92; letter-spacing: -.05em; }
h1 .ghost { display: block; }
/* The question, drawn as the empty second copy: an outline, never a grey. */
.ghost { color: transparent; -webkit-text-stroke: 1.4px var(--ink); }
@supports not (-webkit-text-stroke: 1px black) { .ghost { color: var(--muted); } }
.filled { color: var(--ink); }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; letter-spacing: -.035em; }
h2.oo-big { font-size: clamp(38px, 6vw, 88px); line-height: .98; letter-spacing: -.045em; }
h2.oo-big .ghost { -webkit-text-stroke-width: 1.2px; }
h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.oo-sub { font-size: 17px; color: var(--ink-2); max-width: 58ch; }
.oo-sub.narrow { max-width: 54ch; }
.oo-sub.small { font-size: 15px; }
.oo-fine { font-size: 14px; color: var(--muted); }

/* ── Header and button ───────────────────────────────────────────────────────────────────────── */
.oo-top { position: fixed; inset: 0 0 auto; z-index: 10; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); transition: background .3s, box-shadow .3s; }
.oo-top.solid { background: color-mix(in srgb, var(--sheet) 88%, transparent); backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px); box-shadow: 0 1px 0 var(--rule); }
.oo-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.oo-mark b { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.oo-mark small { display: block; font: 500 11px/1.3 var(--mono); color: var(--muted); letter-spacing: .02em; }
.oo-glyph { width: 26px; height: 14px; flex: none; }
.oo-top nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.oo-top nav a { text-decoration: none; color: var(--ink-2); }
.oo-top nav a:hover { color: var(--ink); }
.oo-top > .oo-btn { opacity: 0; pointer-events: none; transition: opacity .25s; }
.oo-top.past > .oo-btn { opacity: 1; pointer-events: auto; }
.oo-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; border-radius: 10px; background: var(--red); color: var(--on-red); font: 600 15px/1 var(--display); text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; }
.oo-btn:hover { filter: brightness(1.06); }
.oo-btn.alt { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.oo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.oo-status { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.oo-status i { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* ── The tally: pencil strokes in ink and red ───────────────────────────────────────────────── */
.tally { display: block; overflow: visible; max-width: 100%; }
.tally line { stroke-width: 1.45; stroke-linecap: round; }
.tally .cross { stroke-width: 1.2; }
.m-here, .m-chg { stroke: var(--red); }
.m-both { stroke: var(--ink); }
.m-cloud { stroke: var(--red); stroke-dasharray: 2.2 2; }
.m-wait { stroke: var(--faint); }
.tally.big line { stroke-width: 1.7; }
.tally.big .cross { stroke-width: 1.4; }
.tally.specimen { width: 26px; height: 18px; }
.tally.closing line { stroke-width: 1.2; }

/* ── The sheet head: a rule with registration ticks ─────────────────────────────────────────── */
.oo-sheet-head { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 14px; border-top: 1px solid var(--rule-2); margin-bottom: clamp(32px, 4vw, 56px); }
.oo-sheet-head::before, .oo-sheet-head::after { content: ""; position: absolute; top: -6px; width: 1px; height: 11px; background: var(--ink); }
.oo-sheet-head::before { left: 0; } .oo-sheet-head::after { right: 0; }

/* ── Hero ─────────────────────────────────────────────────────────────────────────────────────── */
.oo-hero { padding-top: clamp(88px, 9vw, 120px); }
/* The headline and its side copy share one row on wide screens, so the stocktake starts in the first view. */
.oo-hero-text { display: grid; grid-template-columns: auto minmax(260px, 380px); justify-content: space-between; gap: 24px 48px; align-items: end; }
.oo-hero-text > .cap { grid-column: 1 / -1; }
.oo-hero h1 { white-space: nowrap; }
.oo-side { display: grid; gap: 20px; padding-bottom: 8px; }
.oo-lede { font-size: 17px; color: var(--ink-2); }
.oo-price-line { font: 400 12px/1.6 var(--mono); color: var(--muted); }
.oo-instrument { margin-top: clamp(36px, 4vw, 56px); }
.oo-instrument .oo-sheet-head { margin-bottom: 18px; }

/* ── A sheet: the stocktake, and its recount ─────────────────────────────────────────────────── */
.oo-sheet { position: relative; }
.oo-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) repeat(4, 84px) 88px; gap: 14px; align-items: center; min-height: 48px; border-top: 1px solid var(--rule); }
.oo-sheet.recount .oo-row { grid-template-columns: 150px minmax(0, 1fr) 96px repeat(3, 84px) 88px; }
.oo-row.head { min-height: 34px; border-top: 0; }
.oo-row.head span { font: 500 10px/1.25 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.oo-row .r, .oo-row .n { text-align: right; }
.oo-row .name { font-weight: 500; }
.n { font: 400 13px/1 var(--mono); color: var(--ink-2); font-feature-settings: 'tnum' 1; }
.n.needs { color: var(--red); }
.n.zero { color: var(--faint); }
.n.size { color: var(--muted); }
.oo-row.total { border-top: 3px double var(--rule-2); min-height: 54px; }
.oo-row.total .name, .oo-row.total .n { color: var(--ink); font-weight: 500; }
.oo-row.total .n.needs { color: var(--red); }
.tally-cell, .since-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pencil { position: absolute; left: -10px; right: -10px; top: 0; height: 0; border-top: 1px solid var(--ink); opacity: 0; pointer-events: none; transition: top .42s var(--ease), opacity .35s; }
.pencil::before { content: ""; position: absolute; left: 0; top: -4.5px; border: 4px solid transparent; border-left: 7px solid var(--ink); }
/* The recount: with a backup, every file only on this Mac that hasn't changed is counted in ink. */
.oo-sheet.recount .tally-cell .m-here { transition: stroke .5s var(--ease); transition-delay: calc(var(--k) * 4ms); }
.oo-sheet.recount.after .tally-cell .m-here { stroke: var(--ink); }
.oo-sheet.recount .since-cell, .oo-sheet.recount .oo-row > :nth-child(4), .oo-sheet.recount .oo-row > :nth-child(5) { transition: opacity .5s var(--ease); }
.oo-sheet.recount:not(.after) .since-cell, .oo-sheet.recount:not(.after) .oo-row > :nth-child(4), .oo-sheet.recount:not(.after) .oo-row > :nth-child(5) { opacity: .15; }
.oo-band { display: flex; gap: var(--gap); height: 8px; margin-top: 24px; border-radius: 3px; overflow: hidden; }
.oo-band i { display: block; min-width: 3px; }
.b-noSecondCopy { background: var(--red); }
.b-twoCopies, .b-unchangedSinceBackup { background: var(--ink); }
.b-onlyICloud { background: repeating-linear-gradient(135deg, var(--red) 0 2px, var(--stripe) 2px 7px); }
.b-waiting { box-shadow: inset 0 0 0 1.5px var(--muted); }
.oo-instrument figcaption { display: grid; gap: 14px; margin-top: 30px; }
.oo-answer { max-width: 32ch; font-weight: 500; font-size: clamp(22px, 2.5vw, 32px); line-height: 1.22; letter-spacing: -.025em; text-wrap: pretty; }
.oo-answer.small { font-size: clamp(20px, 2vw, 26px); max-width: 40ch; margin-top: 26px; }

/* ── Sections ─────────────────────────────────────────────────────────────────────────────────── */
.oo-section { padding-top: clamp(96px, 11vw, 160px); }
.oo-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.oo-split .oo-sub { max-width: 46ch; }
.oo-toggle { display: inline-flex; padding: 3px; border-radius: 9px; border: 1px solid var(--rule); background: var(--card); }
.oo-toggle button { font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 10px 13px; border-radius: 6px; cursor: pointer; }
.oo-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }

/* The key */
.oo-key { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.oo-key dl { display: grid; }
.oo-key dl > div { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 6px 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.oo-key dt { display: flex; align-items: center; gap: 12px; }
.oo-key dd { color: var(--ink-2); font-size: 16px; }
.oo-note { grid-column: 2; font: 400 13px/1.6 var(--mono); color: var(--ink-2); padding: 14px 16px; border-left: 2px solid var(--ink); background: var(--card); max-width: 60ch; }

/* The iCloud trap */
.oo-closeup { margin: clamp(32px, 4vw, 48px) 0 0; position: relative; }
.oo-closeup-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.oo-closeup-row .name { display: grid; gap: 4px; font-weight: 500; }
.oo-closeup-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.oo-closeup-key > span { display: inline-flex; align-items: center; gap: 10px; }
.oo-closeup-key .needs { color: var(--red); }
.oo-closeup-key .cap { margin-left: auto; }
.oo-trap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px 64px; margin-top: 44px; }
.oo-trap > div { display: grid; gap: 16px; align-content: start; }
.oo-stat { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.2; font-weight: 500; }
.oo-stat b { color: var(--red); font-weight: 600; }
.oo-margin { list-style: none; padding: 0 0 0 22px; border-left: 1px solid var(--ink); display: grid; gap: 24px; }
.oo-margin li { display: grid; gap: 6px; }
.oo-margin p { color: var(--ink-2); font-size: 16px; }

/* Recounted after a backup */
.oo-statement { margin-top: clamp(72px, 9vw, 120px); font-size: clamp(30px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; max-width: 22ch; }
.oo-statement .ghost { display: block; -webkit-text-stroke-width: 1.1px; }
#backup .oo-sub.narrow { margin-top: 26px; }

/* The drive */
.oo-drive { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px 64px; margin-top: clamp(32px, 4vw, 48px); align-items: start; }
.oo-drive-facts { display: grid; gap: 22px; }
.oo-drive-facts dl { display: grid; }
.oo-drive-facts dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule); }
.oo-drive-facts dd { font-size: 16px; }
.oo-drive-facts dd.big { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.oo-ledger { position: relative; }
.oo-lrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) 110px 90px; gap: 12px; align-items: center; min-height: 34px; border-top: 1px solid var(--rule); font: 400 12.5px/1.3 var(--mono); color: var(--ink-2); }
.oo-lrow.head { border-top: 0; min-height: 28px; font-size: 10px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.oo-lrow .r { text-align: right; }
.oo-lrow.latest { color: var(--ink); font-weight: 500; }
.manifest .oo-lrow.latest span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }

/* The figures */
.oo-figures { padding-top: clamp(96px, 11vw, 160px); }
.oo-figures ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.oo-figures li { display: grid; gap: 10px; padding: 28px 28px 30px 0; }
.oo-figures li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.oo-figures b { font-size: clamp(56px, 9vw, 132px); font-weight: 600; letter-spacing: -.05em; line-height: .9; color: var(--red); }
.oo-figures .cap { max-width: 26ch; color: var(--ink-2); }

/* The condition report */
.oo-report { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.oo-col { display: grid; gap: 36px; align-content: start; }
.oo-group ul { list-style: none; padding: 0; margin-top: 12px; }
.oo-group li { border-top: 1px solid var(--rule); }
.oo-group a { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; padding: 15px 0 17px; text-decoration: none; }
.oo-group .box { grid-row: span 3; width: 13px; height: 13px; margin-top: 3px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--red); }
.oo-group .quiet .box { box-shadow: inset 0 0 0 1.5px var(--faint); }
.oo-group b { font-weight: 600; font-size: 16px; line-height: 1.3; }
.oo-group span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.oo-group em { font-style: normal; }
.oo-group a:hover b { text-decoration: underline; text-underline-offset: .18em; }

/* Photos, a checklist the reader can tick */
.oo-photos { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 72px; align-items: start; }
.oo-photos > div { display: grid; gap: 20px; }
.oo-photos .oo-sheet-head { margin-bottom: 8px; }
.oo-checklist { list-style: none; padding: 0; }
.oo-checklist li { position: relative; border-top: 1px solid var(--rule); }
.oo-checklist li:last-child { border-bottom: 1px solid var(--rule); }
.oo-checklist input { position: absolute; left: 0; top: 22px; width: 18px; height: 18px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--ink); cursor: pointer; background: var(--card); }
.oo-checklist input:checked { background: var(--ink); box-shadow: none; }
.oo-checklist input:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--sheet); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.oo-checklist label { display: grid; gap: 4px; padding: 18px 0 18px 36px; color: var(--ink-2); cursor: pointer; }
.oo-checklist input:checked + label { color: var(--muted); }

/* Keep watch */
.oo-watch { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px 64px; margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.oo-watch > div { display: grid; gap: 18px; }
.oo-week { margin: 0; display: grid; }
.oo-week-axis { display: grid; grid-template-columns: 64px minmax(0, 1fr); font: 500 10px/1 var(--mono); color: var(--muted); height: 18px; }
.oo-week-axis > div { position: relative; }
.oo-week-axis > div span { position: absolute; transform: translateX(-50%); }
.oo-week-axis > div span:first-child { transform: none; }
.oo-week-axis > div span:last-child { transform: translateX(-100%); }
.oo-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; height: 30px; border-top: 1px solid var(--rule); }
.oo-day .track { position: relative; height: 100%; }
.oo-day .night { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--night) 0 1px, transparent 1px 5px); }
.oo-day .check { position: absolute; top: 7px; bottom: 7px; width: 1.5px; background: var(--ink); }
.oo-day .note { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ink); }
.oo-week figcaption { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 12px; border-top: 1px solid var(--rule); font: 500 10px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.oo-week figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 14px; height: 10px; }
.sw.night { background: repeating-linear-gradient(135deg, var(--muted) 0 1px, transparent 1px 4px); }
.sw.check { width: 2px; background: var(--ink); }
.sw.note { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.oo-note-card { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; max-width: 420px; padding: 13px 15px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.oo-note-card .oo-icon { border-radius: 8px; }
.oo-note-app { display: flex; justify-content: space-between; font: 500 10px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.oo-note-app b { color: var(--ink-2); font-weight: 500; }
.oo-note-title { font-size: 15px; font-weight: 600; margin-top: 3px; }
.oo-note-body { font-size: 14px; color: var(--ink-2); }
.oo-menubar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--sheet-2); font: 400 12px/1 var(--mono); color: var(--ink-2); }
.oo-menubar .item { order: -1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.oo-menubar .item .oo-glyph { width: 20px; height: 11px; }
.oo-menubar .item b { font-weight: 600; }
.oo-ledger.hist .oo-lrow { grid-template-columns: 110px minmax(0, 1fr) 64px; min-height: 30px; }
.oo-ledger.hist .tally-cell em { font-style: normal; color: var(--ink); white-space: nowrap; }
.oo-ledger.hist .needs { color: var(--red); }

/* How it looks */
.oo-looks-list { list-style: none; padding: 0; margin-top: clamp(36px, 4vw, 56px); display: grid; gap: clamp(56px, 7vw, 96px); }
.oo-looks-list li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; align-items: start; }
.oo-looks-text { display: grid; gap: 8px; position: sticky; top: 100px; }
.oo-looks-text p { color: var(--ink-2); font-size: 15px; }
.oo-looks-list img { border-radius: 12px; box-shadow: var(--shadow); }

/* Private, price, questions */
.oo-private-line { margin-top: 28px; }
.oo-private .oo-sub { margin-top: 16px; }
.oo-price { display: grid; margin-top: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule-2); }
.oo-prow { display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px; gap: 16px; align-items: center; min-height: 44px; border-top: 1px solid var(--rule); font-size: 16px; color: var(--ink-2); }
.oo-prow.head { border-top: 0; min-height: 64px; align-items: end; padding-bottom: 10px; }
.oo-prow .c { display: grid; justify-items: center; align-content: center; gap: 2px; }
.oo-prow.head b { font-size: 28px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.oo-prow .tick { width: 16px; height: 12px; color: var(--ink); }
.oo-prow > :nth-child(3) { background: color-mix(in srgb, var(--ink) 4%, transparent); align-self: stretch; }
.oo-price-foot { display: grid; gap: 14px; justify-items: start; margin-top: 28px; }
.oo-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.oo-faq > div:first-child { display: grid; gap: 14px; align-content: start; }
.oo-qs details { border-top: 1px solid var(--rule); }
.oo-qs details:last-child { border-bottom: 1px solid var(--rule); }
.oo-qs summary { list-style: none; cursor: pointer; padding: 19px 36px 19px 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; position: relative; }
.oo-qs summary::-webkit-details-marker { display: none; }
.oo-qs summary::after { content: '+'; position: absolute; right: 4px; top: 15px; font: 400 22px/1 var(--mono); color: var(--muted); transition: transform .25s var(--ease); }
.oo-qs details[open] summary::after { transform: rotate(45deg); }
.oo-qs details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }
.oo-new details { border-top: 1px solid var(--rule); padding: 14px 0; }
.oo-new summary { display: flex; gap: 16px; cursor: pointer; }
.oo-new summary span { color: var(--muted); }

/* The sheet, closed */
.oo-end { padding-bottom: clamp(96px, 11vw, 150px); }
.oo-end h2 { font-size: clamp(44px, 7vw, 104px); letter-spacing: -.05em; line-height: .95; margin-bottom: clamp(32px, 4vw, 48px); }
.oo-closed { margin: 0; }
.oo-closed-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px; gap: 14px; align-items: center; min-height: 56px; border-top: 3px double var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.oo-closed-row .name { font-weight: 500; display: grid; gap: 4px; }
.oo-closed-row .n { text-align: right; color: var(--ink); }
.oo-closed figcaption { display: grid; gap: 14px; }
.oo-signed { display: inline-flex; align-items: center; gap: 10px; }
.oo-signed .tick { width: 16px; height: 12px; color: var(--ink); }
.oo-end-cta { margin-top: 40px; }

/* ── Footer ───────────────────────────────────────────────────────────────────────────────────── */
.oo-foot { border-top: 1px solid var(--rule-2); padding: 56px var(--pad) 40px; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; display: grid; gap: 30px; }
.oo-foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.oo-foot-top nav { display: flex; gap: 24px; font-size: 15px; }
.oo-foot-top nav a { text-decoration: none; color: var(--ink-2); }
.oo-colophon { display: flex; align-items: center; gap: 12px; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.oo-colophon .tally.specimen { width: 16px; }
.oo-foot-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); }

/* ── Privacy and notify ─────────────────────────────────────────────────────────────────────── */
.oo-doc { max-width: 760px; margin: 0 auto; padding: 140px var(--pad) 96px; }
.oo-doc h1 { font-size: clamp(40px, 6vw, 72px); white-space: normal; margin: 14px 0 12px; }
.oo-meta { font: 400 12px/1.4 var(--mono); color: var(--muted); margin-bottom: 36px; }
.oo-prose h2 { font-size: 24px; letter-spacing: -.02em; margin: 44px 0 14px; }
.oo-prose p, .oo-prose li { color: var(--ink-2); }
.oo-prose ul { padding-left: 20px; }
.oo-prose li { margin: 8px 0; }
.oo-prose strong { color: var(--ink); font-weight: 600; }
.oo-notify { display: grid; gap: 18px; justify-items: start; }
.oo-notify .oo-icon { border-radius: 20px; box-shadow: var(--shadow); }
.oo-form { display: grid; gap: 10px; width: 100%; max-width: 520px; margin-top: 10px; }
.oo-form label { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.oo-form .row { display: flex; gap: 10px; }
.oo-form input[type="email"] { flex: 1; min-width: 0; font: 400 17px var(--display); color: var(--ink); background: var(--card); border: 1px solid var(--rule-2); border-radius: 10px; padding: 0 14px; min-height: 44px; }
.oo-form .error { color: var(--ink); font-weight: 600; }
.oo-form .hp { position: absolute; left: -9999px; }

/* ── Motion: one verb, counting. Only with JavaScript and without Reduce Motion (early.js adds .js). ──────── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-in] { opacity: 0; transform: translateY(12px); animation: oo-in .9s var(--ease) forwards; animation-delay: calc(var(--d) * 90ms + 60ms); }
  @keyframes oo-in { to { opacity: 1; transform: none; } }
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].seen { opacity: 1; transform: none; }
  /* A sheet waits, blank, until the pencil reaches each row; then each stroke is drawn in turn. */
  .js [data-sheet].armed [data-row] .tally line { opacity: 0; }
  .js [data-sheet].armed [data-row].counted .tally line { opacity: 1; transition: opacity .12s linear; transition-delay: calc(var(--k) * var(--per, 10ms)); }
  .js [data-sheet].armed [data-row].counted .tally line.m-here { transition: opacity .12s linear, stroke .5s var(--ease); transition-delay: calc(var(--k) * var(--per, 10ms)), calc(var(--k) * 4ms); }
  .js [data-sheet] .pencil.on { opacity: 1; }
  .js .oo-instrument .oo-band { transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
  .js .oo-instrument.done .oo-band { transform: none; }
  .js .oo-instrument [data-settle] { opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease) .3s, transform .8s var(--ease) .3s; }
  .js .oo-instrument.done [data-settle] { opacity: 1; transform: none; }
  .js [data-sheet].armed .oo-lrow[data-row], .js [data-sheet].armed .oo-day { opacity: 0; transition: opacity .35s var(--ease); }
  .js [data-sheet].armed .oo-lrow[data-row].counted, .js [data-sheet].armed .oo-day.counted { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ── Narrower screens ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .oo-top nav { display: none; }
  .oo-top > .oo-btn { margin-left: auto; }
  .oo-hero-text { grid-template-columns: minmax(0, 1fr); }
  .oo-hero h1 { white-space: normal; }
  .oo-side { max-width: 560px; }
  .oo-report { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  body { font-size: 16px; }
  .oo-top { height: 58px; gap: 12px; }
  .oo-top > .oo-btn { min-height: 40px; padding: 10px 14px; font-size: 14px; }
  /* The sheets keep the folder, the tally and the count with no second copy. */
  .oo-row, .oo-sheet.recount .oo-row { grid-template-columns: 92px minmax(0, 1fr) 60px; gap: 10px; }
  .oo-row > :nth-child(n+4) { display: none; }
  .oo-sheet.recount .oo-row > :nth-child(3) { display: none; }
  .oo-sheet.recount .oo-row > :nth-child(4) { display: block; }
  .oo-row .name { font-size: 15px; }
  .oo-closeup-row, .oo-closed-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .oo-closed-row .n { text-align: left; }
  .oo-key, .oo-trap, .oo-drive, .oo-photos, .oo-watch, .oo-faq, .oo-split { grid-template-columns: minmax(0, 1fr); }
  .oo-key dl > div { grid-template-columns: minmax(0, 1fr); }
  .oo-note { grid-column: 1; }
  .oo-closeup-key .cap { margin-left: 0; }
  .oo-lrow { grid-template-columns: minmax(0, 1fr) 86px 70px; font-size: 11.5px; }
  .oo-lrow > :nth-child(2) { display: none; }
  .oo-ledger.hist .oo-lrow { grid-template-columns: 76px minmax(0, 1fr) 48px; }
  .oo-ledger.hist .oo-lrow > :nth-child(2) { display: flex; }
  .oo-figures ul { grid-template-columns: minmax(0, 1fr); }
  .oo-figures li, .oo-figures li + li { padding: 24px 0; border-left: 0; }
  .oo-figures li + li { border-top: 1px solid var(--rule); }
  .oo-report { grid-template-columns: minmax(0, 1fr); }
  .oo-prow { grid-template-columns: minmax(0, 1fr) 64px 64px; font-size: 15px; }
  .oo-prow.head b { font-size: 21px; }
  .oo-looks-list li { grid-template-columns: minmax(0, 1fr); }
  .oo-looks-text { position: static; }
  .oo-foot-fine { display: grid; }
}

/* ── The film: a sheet of its own, the video set into it like a plate; the play button in ink, since red marks only
   files with no second copy (and the page's one filled button) ───────────────────────────────────────────────── */
.oo-film-frame { position: relative; margin: clamp(28px, 4vw, 48px) 0 0; padding: clamp(8px, 1vw, 12px); background: var(--card); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow); }
.oo-film video { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 9px; background: var(--sheet-2); }
.oo-film video.tall { aspect-ratio: 9 / 16; }
.oo-film-frame:has(video.tall) { max-width: 420px; margin-inline: auto; }
.oo-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--rule-2); cursor: pointer; color: var(--sheet); background: var(--ink); display: grid; place-items: center; box-shadow: 0 16px 44px rgba(0, 0, 0, .28), 0 0 0 9px color-mix(in srgb, var(--sheet) 55%, transparent); transition: transform .25s var(--ease); }
.oo-play[hidden] { display: none; }
.oo-play:hover { transform: scale(1.05); }
.oo-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.oo-play svg { width: 30px; height: 30px; margin-left: 4px; }
.oo-film-cap { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .oo-play { transition: none; } }
