/* Spine Seek website.
   One room: forest-green plaster, oak, brass and paper, after the reading rooms the app was drawn from.
   Type: EB Garamond for headings (a book face, with real italics), Atkinson Hyperlegible Next for
   everything else (the low-vision face the app offers). Both self-hosted, both SIL OFL.
   Shape rule: pills for things you press, 4px for surfaces, square corners for framed pictures. */

@font-face { font-family: "EB Garamond"; src: url("assets/fonts/EBGaramond.ttf") format("truetype"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("assets/fonts/EBGaramond-Italic.ttf") format("truetype"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("assets/fonts/AtkinsonHyperlegibleNext-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("assets/fonts/AtkinsonHyperlegibleNext-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("assets/fonts/AtkinsonHyperlegibleNext-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F7F3EA; --cell: #FFFCF6; --ink: #173E30; --ink-2: #4C5B49; --rule: #D5D0C4; --outline: #6B7366; --fill: #EAE5D9;
  --tint: #173E30; --on-tint: #FFFFFF; --brass: #B39A58;
  --series: #2D4373; --discovery: #3E6B35; --put-back: #A2461E; --unsure: #5F6436; --yours: #6E4C30; --read: #52604D; --on-verdict: #FFFFFF;
  --wall: #1F3B2E; --wall-ink: #F5F1E6; --wall-ink-2: #C7D1C5;
  --tex-paper: url("assets/tex-paper.png"); --tex-wall: url("assets/tex-wall.png"); --tex-cloth: url("assets/tex-cloth.png");
  --brass-frame: linear-gradient(135deg, #EBD28A, #8E7030 42%, #DFC476 58%, #70571D);
  --art-dim: 1;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1180px; --gutter: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.3, 1.5, .5, 1);
}
/* Dark follows the device unless the reader picked an appearance. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #141C17; --cell: #1E2922; --ink: #EEEDE5; --ink-2: #B4BDB2; --rule: #33413A; --outline: #8E9A90; --fill: #2A362F;
    --tint: #A8CB95; --on-tint: #13201A; --brass: #D7B062;
    --series: #8EA3D8; --discovery: #86B475; --put-back: #D9784A; --unsure: #AEB07A; --yours: #C29A72; --read: #B4BDB2; --on-verdict: #141C17;
    --wall: #1C3026; --art-dim: 0.86;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141C17; --cell: #1E2922; --ink: #EEEDE5; --ink-2: #B4BDB2; --rule: #33413A; --outline: #8E9A90; --fill: #2A362F;
  --tint: #A8CB95; --on-tint: #13201A; --brass: #D7B062;
  --series: #8EA3D8; --discovery: #86B475; --put-back: #D9784A; --unsure: #AEB07A; --yours: #C29A72; --read: #B4BDB2; --on-verdict: #141C17;
  --wall: #1C3026; --art-dim: 0.86;
}
:root[data-theme="contrast"] {
  color-scheme: light;
  --ink: #000000; --ink-2: #262B28; --rule: #000000; --outline: #000000; --fill: #E4E7DF; --tint: #0E2A20; --brass: #6B4F10;
  --series: #1C2E5A; --discovery: #22481F; --put-back: #7E2E0E; --unsure: #45472A; --yours: #4E3220; --read: #262B28;
  --wall: #0E2A20; --wall-ink: #FFFFFF; --wall-ink-2: #FFFFFF;
  --tex-paper: none; --tex-wall: none; --tex-cloth: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg) var(--tex-paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); font-variant-numeric: lining-nums; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; font-feature-settings: "kern", "liga", "clig"; }
h1 { font-size: clamp(2.9rem, 5.9vw, 5.1rem); line-height: 1.1; letter-spacing: -0.012em; }
h2 { font-size: clamp(2.2rem, 3.9vw, 3.4rem); line-height: 1.12; letter-spacing: -0.008em; }
h3 { font-size: 1.55rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lede { color: var(--ink-2); font-size: 1.1875rem; line-height: 1.55; max-width: 34em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--cell); color: var(--ink); padding: 10px 16px; border-radius: 999px; }

section { padding: 112px 0; }
.head { max-width: 44rem; margin-bottom: 56px; }
.head h2 { margin-bottom: 18px; }
@media (max-width: 760px) { section { padding: 76px 0; } .head { margin-bottom: 40px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border-radius: 999px; border: 1.5px solid var(--tint);
  background: var(--tint) var(--tex-cloth); color: var(--on-tint); font: 600 1.0625rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 16px -10px rgba(10, 30, 20, 0.6); transition: transform 0.25s var(--spring), opacity 0.15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn.light { background-color: #F7F3EA; border-color: #F7F3EA; color: #173E30; }
.btn.ghost { background: none; border-color: currentColor; color: inherit; box-shadow: none; }
.btn.small { min-height: 44px; padding: 0 22px; font-size: 1rem; }

/* ───────── Hero: the words sit on the wall of the photograph ───────── */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 0; min-height: min(100dvh, 880px); display: grid; grid-template-rows: auto 1fr; background: #1B3327; color: #F5F1E6; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 70%; filter: brightness(var(--art-dim)); transform-origin: 75% 70%; animation: settle 1.8s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(13, 26, 19, 0.8) 0%, rgba(13, 26, 19, 0.52) 36%, rgba(13, 26, 19, 0) 60%), linear-gradient(rgba(13, 26, 19, 0.5), rgba(13, 26, 19, 0) 20%); }
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.7rem/1 var(--serif); letter-spacing: -0.005em; }
.lockup svg { width: 38px; height: 36px; }
.mark .book { fill: currentColor; }
.mark .picked, .mark .shelf { fill: #D9BC6A; }
.mark .band { fill: #1B3327; }
.lockup .picked, .lockup .band { transition: transform 0.35s var(--spring); }
.lockup:hover .picked, .lockup:hover .band { transform: translateY(-4px); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { font-size: 1rem; text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; }
.hero-copy { align-self: center; padding-top: 16px; padding-bottom: 88px; }
.hero-copy > * { max-width: 35rem; animation: rise 0.9s var(--ease) both; }
.hero h1 { margin-bottom: 22px; }
.hero h1 + p { font-size: 1.25rem; line-height: 1.5; color: #E4E0D4; margin-bottom: 34px; animation-delay: 0.12s; max-width: 30rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; animation-delay: 0.24s; }
@keyframes settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .site-nav a:not(.btn) { display: none; }
  .hero { min-height: 0; display: block; }
  .hero::after { display: none; }
  .hero-copy { padding-top: 28px; padding-bottom: 40px; }
  .hero-img { position: static; aspect-ratio: 5 / 4; object-position: 86% 70%; }
}

/* Results screen */
.group { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11.5px; margin: 9px 0 5px; }
.chip { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; flex: none; color: var(--on-verdict); }
.chip svg { width: 11px; height: 11px; }
.c-series { background: var(--series); } .c-discovery { background: var(--discovery); }
.c-put-back { background: var(--put-back); } .c-unsure { background: var(--unsure); }
.c-yours { background: var(--yours); } .c-read { background: var(--read); }
.row { display: flex; gap: 8px; align-items: center; padding: 6px 8px; background: var(--cell); border-radius: 9px; }
.row + .row { margin-top: 4px; }
.cover { width: 24px; height: 35px; border-radius: 2px; flex: none; }
.row b { display: block; font-size: 11.5px; font-weight: 600; }
.row span { display: block; color: var(--ink-2); font-size: 10px; }
.row em { display: block; font-style: normal; font-size: 10px; font-weight: 600; margin-top: 1px; }
.t-series { color: var(--series); } .t-discovery { color: var(--discovery); } .t-put-back { color: var(--put-back); } .t-yours { color: var(--yours); }

/* ───────── The scan, told by scrolling ─────────
   Without JavaScript, or with Reduce Motion on, this is a still picture and a list.
   main.js adds .is-live and then drives --zoom, --open, --read and data-stage. */
.scene { background: #121A15; color: #F2F0E8; padding: 0; }
.scene .pin { padding: 96px 0; }
.scene-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center; }
.scene .opener { font-size: clamp(2.25rem, 4.6vw, 3.25rem); margin-bottom: 40px; }
.caps { list-style: none; margin: 0; padding: 0; }
.caps li + li { margin-top: 28px; }
.caps h3 { font-size: 1.5rem; margin-bottom: 6px; }
.caps p { color: #B9C2B7; max-width: 24em; }

.device { --pw: min(340px, 36svh); position: relative; width: calc(var(--pw) + 18px); font-size: calc(var(--pw) / 25); margin: 0 auto;
  transform: translateX(var(--tx, 0px)) scale(var(--zoom, 1)); transform-origin: 50% calc(9px + var(--pw) * 0.967); }
.cam { position: relative; border: 9px solid #2B302A; border-radius: calc(var(--pw) * 0.16); overflow: hidden; background: #0B0F0C; color: #F2F0E8; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.cam-top { height: calc(var(--pw) * 0.3); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0.8em; font-weight: 600; position: relative; }
.cam-top::before { content: ""; position: absolute; top: 0.7em; left: 50%; width: 30%; height: 1.9em; margin-left: -15%; border-radius: 1em; background: #000; }
.cam-top .found { display: none; }
.vf { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.vf img { width: 100%; height: 100%; object-fit: cover; }
.vf .scrim { position: absolute; inset: 0; background: #0B0F0C; opacity: calc(var(--open, 0) * 0.5); }
.boxes { position: absolute; inset: 0; transition: opacity 0.4s; }
.boxes i { position: absolute; border: 1.5px solid rgba(255, 252, 246, 0.92); border-radius: 2px; opacity: clamp(0, calc((var(--seen, 1) - var(--d)) * 14), 1); }
.sweep { position: absolute; left: 0; right: 0; height: 16%; top: calc(var(--seen, 0) * 116% - 16%); background: linear-gradient(transparent, rgba(155, 212, 136, 0.32)); border-bottom: 2px solid #9BD488; opacity: var(--sweep-o, 0); }
.mark-box { position: absolute; border: 2px solid; border-radius: 3px; opacity: 0; transition: opacity 0.3s; }
.mark-box.m-read { left: 14.5%; top: 37%; width: 9.6%; height: 26.2%; border-color: #C9D2C6; background: rgba(82, 96, 77, 0.3); }
.mark-box.m-back { left: 32.5%; top: 3.6%; width: 10%; height: 26.4%; border-color: #E9A17C; background: rgba(162, 70, 30, 0.3); }
.pick { position: absolute; left: 24.2%; top: 40.3%; width: 5.5%; height: 22.9%; border: 2.5px solid #E5C272; border-radius: 3px; box-shadow: 0 0 0 999em rgba(8, 12, 9, 0.66); opacity: 0; transition: opacity 0.5s; }
.cam-bottom { height: calc(var(--pw) * 0.42); display: grid; place-items: center; }
.cam-bottom span { width: 4em; height: 4em; border-radius: 50%; background: #F2F0E8; box-shadow: 0 0 0 0.25em #0B0F0C, 0 0 0 0.45em #F2F0E8; }
.sheet { position: absolute; inset: 0; background: var(--bg); color: var(--ink); transform: translateY(103%); transition: transform 0.7s cubic-bezier(.2,.85,.25,1); font-size: 11px; line-height: 1.3; }
.screen { position: absolute; inset: 0; padding: 44px 14px 14px; display: flex; flex-direction: column; text-align: left; }
.screen .bar { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 10.5px; margin-bottom: 6px; }
.screen .title { font: 700 21px/1.1 var(--serif); letter-spacing: -0.015em; }
.screen .sub { color: var(--ink-2); margin: 3px 0 8px; }
.stars { color: #8A6A1F; letter-spacing: 1px; }

.tags { position: absolute; left: 9px; top: calc(9px + var(--pw) * 0.3); width: var(--pw); height: calc(var(--pw) * 4 / 3); pointer-events: none; }
.tag { position: absolute; display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0.9em 0.55em 0.6em; border-radius: 1em; background: #FFFCF6; color: #173E30; line-height: 1.25; white-space: nowrap; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(10px) scale(0.86); transition: opacity 0.3s, transform 0.45s cubic-bezier(.3,1.6,.5,1); }
.tag .chip { width: 1.9em; height: 1.9em; border-radius: 0.5em; background: var(--c); color: #fff; }
.tag .chip svg { width: 1.25em; height: 1.25em; }
.tag b { display: block; font-weight: 700; }
.tag span span { display: block; color: #52604D; }
.t-read { --c: #52604D; left: 3%; top: 64.5%; }
.t-back { --c: #A2461E; left: 26%; top: 31%; }
.t-pick { --c: #2D4373; left: 33%; top: 47%; font-size: 1.1em; }

[data-stage="2"] .t-read, [data-stage="3"] .t-read, [data-stage="3"] .t-back, [data-stage="4"] .t-pick { opacity: 1; transform: none; }
[data-stage="2"] .m-read, [data-stage="3"] .m-read, [data-stage="3"] .m-back { opacity: 1; }
[data-stage="4"] .pick, [data-stage="5"] .pick { opacity: 1; }
[data-stage="4"] .boxes, [data-stage="5"] .boxes { opacity: 0; }
[data-stage="5"] .sheet { transform: none; }
.scene:not([data-stage="0"]):not([data-stage="1"]) .cam-top .found { display: inline; }
.scene:not([data-stage="0"]):not([data-stage="1"]) .cam-top .counting { display: none; }

.scene.is-live { height: 440vh; }
.is-live .pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; display: grid; align-items: center; }
.is-live .opener { position: absolute; inset: 0; z-index: 3; margin: 0; padding: 0 24px; display: grid; place-items: center; text-align: center; font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); opacity: var(--open, 1); pointer-events: none; }
.is-live .device { will-change: transform; }
.is-live .caps { position: relative; min-height: 13rem; }
.is-live .caps li { position: absolute; inset: 0 auto auto 0; margin: 0; opacity: 0; transform: translateY(18px); transition: opacity 0.4s, transform 0.5s; }
.is-live .caps li.on { opacity: 1; transform: none; }
.is-live .caps h3 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.08; margin-bottom: 14px; letter-spacing: -0.015em; }
.is-live .caps p { font-size: 1.25rem; }
@media (max-width: 860px) {
  .scene-grid { grid-template-columns: 1fr; gap: 40px; }
  .is-live .scene-grid { gap: 12px; }
  .is-live .device { --pw: min(250px, 28svh); }
  .is-live .caps { min-height: 9.5rem; }
  .is-live .caps h3 { font-size: 1.7rem; margin-bottom: 8px; }
  .is-live .caps p { font-size: 1.0625rem; }
}
.is-live .scene-grid { width: 100%; }
/* At the pick, the camera leans in on the chosen spine. */
.vf-in { position: absolute; inset: 0; transform-origin: 26.95% 51.75%; transition: transform 0.9s cubic-bezier(.3,.8,.2,1); }
[data-stage="4"] .vf-in, [data-stage="5"] .vf-in { transform: scale(1.45); }
@media (prefers-reduced-motion: reduce) { .vf-in { transition: none; } }
[data-stage="0"] .counting { visibility: hidden; }
/* Real covers in the app screens. */
img.cover { object-fit: cover; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
/* Scene type and room */
.scene { background-color: #111813; background-image: var(--tex-wall), radial-gradient(70% 90% at 78% 46%, rgba(255, 214, 160, 0.10), rgba(255, 214, 160, 0) 62%), linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.3)); }
.is-live .caps h3 { font-weight: 500; line-height: 1.1; }
.is-live .opener { font-weight: 500; line-height: 1.05; }
.screen .title { font-weight: 600; font-size: 23px; }

/* ───────── The wall: plaster, beams, frames ───────── */
.wall { position: relative; padding: 156px 0 120px; background-color: var(--wall);
  background-image: var(--tex-wall), radial-gradient(90% 60% at 16% 4%, rgba(255, 214, 160, 0.13), rgba(255, 214, 160, 0) 65%), linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.22));
  color: var(--wall-ink); --ink: var(--wall-ink); --ink-2: var(--wall-ink-2); --rule: rgba(245, 241, 230, 0.18); }
.wall::before, .wall::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; background: #4A3524 url("assets/beam.webp") center / 100% 100%; }
.wall::before { top: 0; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45); }
.wall::after { bottom: 0; height: 22px; box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.3); }
.wall.lead::after, .wall.cont::before { display: none; }
.wall.cont { padding-top: 24px; padding-bottom: 150px; background-image: var(--tex-wall), linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)); }
.wall :focus-visible { outline-color: #EBD28A; }
:root[data-theme="contrast"] .wall::before, :root[data-theme="contrast"] .wall::after { background: #000; box-shadow: none; }
@media (max-width: 760px) { .wall { padding: 108px 0 72px; } .wall::before { height: 30px; } .wall.cont { padding-bottom: 100px; } }

.gallery { float: right; display: flex; align-items: flex-end; gap: 22px; margin: -8px 0 24px 56px; }
.frame { width: 128px; border: 7px solid #B8963F; border-image: var(--brass-frame) 1; background: #EFE6CF; box-shadow: 0 14px 24px -6px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.35); }
.frame.f2 { width: 164px; } .frame.f3 { width: 108px; margin-bottom: 34px; }
@media (max-width: 900px) { .gallery { float: none; margin: 0 0 36px; gap: 14px; } .frame { width: 84px; border-width: 5px; } .frame.f2 { width: 106px; } .frame.f3 { width: 72px; margin-bottom: 20px; } }

/* The six verdicts: cloth swatches, no rules between them */
.verdict-grid { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 56px; margin: 0; }
.verdict-grid dt { font: 500 1.6rem/1.2 var(--serif); margin: 18px 0 6px; }
.verdict-grid dd { margin: 0; color: var(--ink-2); max-width: 22em; }
.swatch { width: 52px; height: 52px; border-radius: 4px; display: grid; place-items: center; color: var(--on-verdict); background-image: var(--tex-cloth);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 4px rgba(0, 0, 0, 0.28), 0 4px 10px rgba(0, 0, 0, 0.35); transition: transform 0.3s var(--spring); }
.swatch svg { width: 27px; height: 27px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.4)); }
.verdict-grid > div:hover .swatch { transform: rotate(-6deg) scale(1.08); }
.c-series { background-color: var(--series); } .c-discovery { background-color: var(--discovery); } .c-put-back { background-color: var(--put-back); }
.c-unsure { background-color: var(--unsure); } .c-yours { background-color: var(--yours); } .c-read { background-color: var(--read); }
@media (max-width: 900px) { .verdict-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; } }
@media (max-width: 520px) { .verdict-grid { grid-template-columns: 1fr; } }

/* The bookseller's note, framed */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.split h2 { margin-bottom: 18px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 44px; } }
.note { --ink: #173E30; --ink-2: #4C5B49; --rule: #D9CDAE; color: #173E30; padding: 34px 34px 26px; background: #F4EBD5 var(--tex-paper);
  border: 12px solid #B8963F; border-image: var(--brass-frame) 1;
  box-shadow: 0 30px 44px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.3), inset 0 0 34px rgba(124, 92, 40, 0.16); }
.note-title { font: 500 2.1rem/1.1 var(--serif); }
.note-sub { color: var(--ink-2); font-size: 0.9375rem; margin: 4px 0 6px; }
.note dl { margin: 0; }
.note dt { font: 500 italic 1.3rem/1.3 var(--serif); padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--rule); }
.note dd { margin: 10px 0 0; display: flex; gap: 16px; align-items: flex-start; }
.note dd img { width: 52px; height: 78px; object-fit: cover; flex: none; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22); }
.note dd b { display: block; font-weight: 600; }
.note dd span { display: block; font: 400 1.2rem/1.4 var(--serif); color: var(--ink-2); }
.note .sample { margin-top: 20px; font-size: 0.875rem; color: var(--ink-2); }
@media (max-width: 500px) { .note { padding: 24px 20px 20px; border-width: 9px; } }

/* ───────── Paper sections ───────── */
/* Where it is: one wide framed photograph */
.finder { margin: 0; position: relative; }
.shot { position: relative; overflow: hidden; border: 9px solid #B8963F; border-image: var(--brass-frame) 1; box-shadow: 0 26px 40px -22px rgba(23, 62, 48, 0.55); }
.shot img { width: 100%; }
.shot span { position: absolute; border: 3px solid #E5C272; border-radius: 4px; box-shadow: 0 0 0 999em rgba(8, 12, 9, 0.6); }
.closeup { position: absolute; right: 4%; bottom: -44px; width: 13%; aspect-ratio: 3 / 5; object-fit: cover; border: 6px solid #B8963F; border-image: var(--brass-frame) 1; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.55); }
.finder figcaption { margin-top: 20px; color: var(--ink-2); max-width: 70%; }
@media (max-width: 760px) { .closeup { width: 22%; bottom: -30px; } .finder figcaption { max-width: 72%; } }

/* Library: four cells, four different surfaces */
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; }
.cell { border-radius: 4px; padding: 30px 30px 32px; background: var(--cell); display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; }
.cell h3 { margin-bottom: 8px; }
.cell p { color: var(--ink-2); }
.cell.covers { grid-row: span 2; padding: 0; overflow: hidden; justify-content: flex-start; background: var(--fill); }
.cell.covers img { width: 100%; padding: 26px 26px 0; }
.cell.covers div { padding: 22px 30px 30px; }
.cell.cloth { grid-column: span 2; background: var(--wall) var(--tex-cloth); color: #F5F1E6; }
.cell.cloth p { color: #C7D1C5; max-width: 30em; }
.cell.rule { background: none; box-shadow: inset 0 0 0 1.5px var(--rule); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .cell.covers { grid-row: auto; grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .cell.covers, .cell.cloth { grid-column: auto; } .cell { min-height: 0; } }

/* Privacy: four plain statements */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 72px; margin: 0; max-width: 60rem; }
.facts dt { font: 500 1.45rem/1.25 var(--serif); margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--ink-2); }
.text-link { display: inline-block; margin-top: 40px; font-weight: 600; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; gap: 28px; } }

/* Reading & Display */
.alt { background: var(--cell) var(--tex-paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.plain-list b { display: block; font: 500 1.35rem/1.25 var(--serif); }
.plain-list li { color: var(--ink-2); }
.plain-list li b { color: var(--ink); }
.appearance { border: 0; padding: 0; margin: 34px 0 0; }
.appearance legend { padding: 0; margin-bottom: 12px; font: 500 1.15rem var(--serif); font-variant-caps: all-small-caps; letter-spacing: 0.06em; color: var(--ink-2); }
.appearance div { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--fill); padding: 4px; border-radius: 999px; }
.appearance button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 400 1rem var(--sans); cursor: pointer; }
.appearance button[aria-pressed="true"] { background: var(--cell); font-weight: 600; box-shadow: 0 0 0 1.5px var(--outline); }
@media (max-width: 520px) { .appearance div { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 26px; } }

/* Questions */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 500 1.5rem/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.75rem/1 var(--sans); color: var(--ink-2); flex: none; transition: transform 0.3s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 40em; }

/* Closing: the wall again, a throw over the beam, the rug underfoot */
.closing { text-align: center; margin-top: 150px; padding-bottom: 140px; }
.closing h2 { margin-bottom: 14px; }
.closing h2 + p { max-width: 30em; margin: 0 auto 32px; font-size: 1.25rem; color: var(--wall-ink-2); }
.closing small { display: block; margin-top: 18px; font-size: 0.9375rem; color: var(--wall-ink-2); }
.closing-books { position: absolute; z-index: 1; bottom: calc(100% - 3px); right: max(6vw, calc((100vw - var(--wrap)) / 2 + 24px)); height: 215px; width: auto; filter: brightness(var(--art-dim)); }
.throw { position: absolute; z-index: 1; top: -12px; left: max(5vw, calc((100vw - var(--wrap)) / 2 + 24px)); width: 200px; height: auto; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.45)) brightness(var(--art-dim)); }
@media (max-width: 1000px) { .throw { display: none; } }
@media (max-width: 760px) { .closing { margin-top: 96px; } .closing-books { height: 120px; right: 24px; } }
.rug { height: 104px; background: #7A3B26 url("assets/rug.webp") center 6% / max(100%, 1100px) auto; box-shadow: inset 0 12px 18px -8px rgba(0, 0, 0, 0.55); margin-bottom: 40px; }
:root[data-theme="contrast"] .throw, :root[data-theme="contrast"] .rug { display: none; }
.site-footer { padding: 0 0 56px; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { display: inline-block; padding: 6px 0; }

/* Things rise into place as they come into view (only once main.js is running). */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.8s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .finder.reveal .shot span { opacity: 0; transition: opacity 0.6s 0.5s; }
.js .finder.reveal.in .shot span { opacity: 1; }
.js .finder.reveal .closeup { opacity: 0; transform: translateY(20px) scale(0.9); transition: opacity 0.5s 0.9s, transform 0.6s 0.9s var(--spring); }
.js .finder.reveal.in .closeup { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img, .hero-copy > * { animation: none; }
  .js .reveal, .js .finder.reveal .shot span, .js .finder.reveal .closeup { opacity: 1; transform: none; transition: none; }
  .btn, .swatch, .lockup .picked, .lockup .band, .faq summary::after { transition: none; }
  .btn:hover, .lockup:hover .picked, .lockup:hover .band, .verdict-grid > div:hover .swatch { transform: none; }
  .tag, .sheet, .pick, .boxes, .vf-in { transition: none; }
}

.hero-copy { width: 100%; }

.shot span { left: 24.2%; top: 18.7%; width: 5.5%; height: 73.9%; }

/* ───────── Real screens from the app ───────── */
.sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen-shot { display: block; width: 100%; border: 9px solid #20231F; border-radius: 13% / 6.2%; background: #20231F; box-shadow: 0 30px 50px -26px rgba(10, 30, 20, 0.7); }
.hung { max-width: 320px; margin: 0 auto; }
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; max-width: 980px; margin: 0 auto; }
.screens figure { margin: 0; }
.screens figure:nth-child(2) { transform: translateY(36px); }
.screens figcaption { margin-top: 18px; text-align: center; font: 500 1.3rem/1.25 var(--serif); }
.real-note { margin: 84px auto 0; max-width: 40em; text-align: center; color: var(--ink-2); }
@media (max-width: 760px) {
  .screens { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 12px; max-width: none; }
  .screens figure { flex: 0 0 70%; scroll-snap-align: center; }
  .screens figure:nth-child(2) { transform: none; }
  .real-note { margin-top: 36px; text-align: left; }
}

/* ───────── Six sections: the device showcase and the three reasons ───────── */
.wall { padding-bottom: 132px; }
.devices { position: relative; display: grid; grid-template-columns: 0.72fr 1.3fr 0.6fr; align-items: end; gap: 0; max-width: 1000px; margin: 8px auto 0; }
.dev { margin: 0; position: relative; }
.dev img { display: block; width: 100%; background: #20231F; box-shadow: 0 36px 60px -28px rgba(0, 0, 0, 0.8); }
.dev.pad img { border: 14px solid #20231F; border-radius: 4.6% / 3.2%; }
.dev.pro img { border: 9px solid #20231F; border-radius: 13% / 6.2%; }
.dev.duo img { border: 9px solid #20231F; border-radius: 9% / 6.4%; }
.dev.duo { z-index: 1; margin-right: -16%; margin-bottom: -4%; }
.dev.pro { z-index: 1; margin-left: -22%; margin-bottom: -4%; }
.wall .real-note { margin: 64px auto 72px; color: var(--wall-ink-2); text-align: center; }
.also { margin: 56px 0 0; max-width: 44em; color: var(--wall-ink-2); font-size: 1.125rem; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.three h3 { font-size: 1.75rem; margin-bottom: 10px; }
.three p { color: var(--ink-2); }
.three .text-link { margin-top: 16px; }
.three .appearance { margin-top: 20px; }
.three .appearance button { padding: 0 13px; }
@media (max-width: 900px) { .three { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 760px) {
  .devices { display: flex; align-items: center; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 28px; max-width: none; }
  .dev { flex: none; scroll-snap-align: center; margin: 0 !important; }
  .dev.pro { order: -1; width: 62%; } .dev.pad { width: 84%; } .dev.duo { width: 66%; }
  .wall .real-note { margin: 28px 0 48px; text-align: left; }
}

/* Apple's own product bezels, used as supplied: straight on, not overlapped, cropped, shadowed or tilted.
   Sized true to life against each other and stood on an oak ledge. */
.devices { grid-template-columns: 0.77fr 0.712fr 0.293fr; gap: 0 5.5%; max-width: 1040px; align-items: end; justify-content: center; padding: 0 4% 0; margin-top: 24px; }
.dev, .dev.duo, .dev.pro { margin: 0; z-index: auto; }
.dev img, .dev.pad img, .dev.pro img, .dev.duo img { border: 0; border-radius: 0; background: none; box-shadow: none; }
.devices::after { content: ""; grid-column: 1 / -1; height: 20px; margin: 0 -4.4%; border-radius: 3px; background: #6E4B2A var(--tex-beam, url("assets/beam.webp")) center / auto 100% repeat-x; box-shadow: 0 22px 30px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.site-footer small { font-size: 0.8125rem; }
@media (max-width: 760px) {
  .devices { gap: 26px; align-items: flex-end; padding: 0 var(--gutter) 28px; margin-top: 8px; }
  .devices::after { display: none; }
  .dev.pro { order: -1; width: 48%; } .dev.pad { width: 80%; } .dev.duo { width: 88%; }
}

/* The scan scene: the bookcase itself, out of focus behind the phone, as if you were standing at it. */
.scene .pin { background: #111813 url("assets/scene-bg.webp") center / cover no-repeat; position: relative; isolation: isolate; }
.is-live .pin { position: sticky; }
.scene .pin::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(10, 16, 12, 0.88), rgba(10, 16, 12, 0.72) 38%, rgba(10, 16, 12, 0.28) 72%, rgba(10, 16, 12, 0.4)), linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, 0.45)); }
@media (max-width: 860px) { .scene .pin::before { background: linear-gradient(rgba(10, 16, 12, 0.86), rgba(10, 16, 12, 0.7) 26%, rgba(10, 16, 12, 0.4) 46%, rgba(10, 16, 12, 0.55)); } }
:root[data-theme="contrast"] .scene .pin { background-image: none; }
