/* QuotesVault website, October 2026 (QuotesVault 1.4).
   Paper, ink and ochre from the app (QV.Palette), Spectral for quotes and headings, Seravek for
   everything else. Light and dark follow the visitor's system setting, as the app does.
   Files under /assets are served as immutable: change this file's name when you change it. */

:root {
  --paper: #FAF8F3;
  --raised: #F3EEE4;
  --page: #FCF9F2;
  --ink: #1E1C18;
  --muted: #6B665D;
  --faint: #8A847A;
  --ochre: #96601F;
  --pencil: #9A3B2E;
  --hair: #E3DCCF;
  --pill: #EEE8DD;
  --frame: #1A1712;
  --shadow: rgba(48, 32, 12, .2);
  --serif: 'Spectral', 'Iowan Old Style', Georgia, serif;
  --sans: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
  --ease: cubic-bezier(.3, .7, .2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161512;
    --raised: #1C1B19;
    --page: #201E1A;
    --ink: #EDE8DE;
    --muted: #A39D92;
    --faint: #7A756C;
    --ochre: #D9A45A;
    --pencil: #E08F7C;
    --hair: #2E2C27;
    --pill: #26241F;
    --frame: #000000;
    --shadow: rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ochre); text-decoration: none; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 6px; }
.serif { font-family: var(--serif); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 56px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { margin: 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ochre); font-weight: 600; }
.badge { display: block; }
.badge img { height: 100%; width: auto; }
.badge-dark { display: none; }
@media (prefers-color-scheme: dark) { .badge-light { display: none; } .badge-dark { display: block; } }

/* Navigation */
.site-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-nav.is-scrolled { border-bottom-color: var(--hair); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links .badge { height: 40px; }

/* Sections */
.section { padding: 112px 0; }
.section.raised { background: var(--raised); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.section-head { margin-bottom: 56px; max-width: 680px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.02em; line-height: 1.06; }
.section-head p { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: var(--muted); }

/* Phones */
.phone { position: relative; width: 100%; aspect-ratio: 1320 / 2868; border-radius: 12.5% / 5.75%; overflow: hidden; background: #FAF8F3; box-shadow: 0 0 0 6px var(--frame), 0 34px 80px var(--shadow), 0 10px 24px rgba(48, 32, 12, .12); }
.phone img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 40px 0 96px; }
.hero h1 { margin: 22px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(50px, 7.4vw, 98px); line-height: 1; letter-spacing: -.028em; }
.hero h1 sup { font-size: .3em; font-weight: 500; margin-left: .1em; }
.hero .lede { margin: 30px 0 0; max-width: 530px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.cta .badge { height: 52px; }
.cta span { font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 250px; }
.footnote { margin: 56px 0 0; padding-top: 16px; border-top: 1px solid var(--hair); max-width: 530px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.footnote b { color: var(--ochre); margin-right: 8px; }
.hero-phone { position: relative; width: 330px; max-width: 100%; }
.annot { position: absolute; left: 43%; top: 54.1%; transform: translateY(-50%); display: flex; align-items: center; pointer-events: none; }
.annot i { width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); flex: none; }
.annot b { width: 200px; height: 1px; background: var(--ochre); flex: none; }
.annot p { margin: 0 0 0 12px; width: 140px; font-family: var(--serif); font-style: italic; font-size: 14.5px; line-height: 1.42; color: var(--muted); }
.annot p span { font-style: normal; }

/* Real or misquote? */
.game { max-width: 780px; margin: 0 auto; background: var(--page); border-radius: 18px; padding: 36px 40px 34px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 22px 48px rgba(40, 28, 12, .1); }
.game-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--faint); }
.game-credit { margin: 26px 0 0; }
.game-credit .name { position: relative; display: inline-block; }
.strike { position: absolute; left: -5px; right: -5px; top: 50%; height: 12px; margin-top: -6px; color: var(--pencil); animation: draw .55s cubic-bezier(.6, .1, .3, 1) .15s both; }
.tick { display: inline-block; margin-left: 8px; vertical-align: -4px; color: var(--ochre); animation: pop .4s cubic-bezier(.2, .8, .2, 1) .15s both; }
.game-quote { margin: 14px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.7vw, 32px); line-height: 1.34; }
.game-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.game-buttons button { height: 56px; border-radius: 14px; background: var(--paper); font-size: 17px; font-weight: 600; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.game-buttons button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(40, 28, 12, .12); }
.game-real { border: 1.5px solid var(--ink); color: var(--ink); }
.game-fake { border: 1.5px solid var(--pencil); color: var(--pencil) !important; }
.game-reveal { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hair); animation: rise .45s ease both; }
.game-verdict { margin: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.game-verdict strong { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.game-verdict strong.is-fake { color: var(--pencil); }
.game-verdict span { font-size: 15px; font-weight: 600; color: var(--muted); }
.game-story { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.game-source { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.5; color: var(--faint); }
.game-next { display: flex; justify-content: flex-end; margin-top: 22px; }
.button { height: 48px; padding: 0 24px; border-radius: 24px; border: 0; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 600; cursor: pointer; }
.button.ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--hair); }
.game-done { text-align: center; padding: 18px 0 6px; animation: rise .45s ease both; }
.game-done .score { margin: 12px 0 0; font-family: var(--serif); font-size: 64px; line-height: 1; font-weight: 300; }
.game-done p.note { margin: 18px auto 0; max-width: 520px; font-size: 17px; color: var(--muted); }
.game-done .button { margin-top: 26px; }

/* Take a closer look */
.cl { display: grid; grid-template-columns: 44px minmax(0, 430px) minmax(0, 1fr); column-gap: 32px; align-items: center; }
.cl-steps { display: flex; flex-direction: column; gap: 12px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pill); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .3s; }
.round:disabled { opacity: .35; cursor: default; }
.cl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pill { position: relative; }
.pill-bg { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 180px); border-radius: 28px; background: var(--pill); transition: width .55s var(--ease); }
.pill.is-open .pill-bg { width: 100%; }
.pill-head, .pill-body { position: relative; display: grid; }
.pill-head { grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease); }
.pill.is-open .pill-head { grid-template-rows: 0fr; }
.pill-head > div, .pill-body > div { overflow: hidden; min-height: 0; }
.pill-btn { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 26px 0 17px; border: 0; background: transparent; font-size: 17px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: opacity .25s; }
.pill.is-open .pill-btn { opacity: 0; }
.pill-body { grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.pill.is-open .pill-body { grid-template-rows: 1fr; }
.pill-body p { margin: 0; padding: 24px 28px 26px; font-size: 17px; line-height: 1.52; color: var(--muted); opacity: 0; transition: opacity .3s ease; }
.pill.is-open .pill-body p { opacity: 1; transition: opacity .45s ease .2s; }
.pill-body strong { color: var(--ink); font-weight: 600; }
.ic { display: inline-block; vertical-align: -2px; margin: 0 2px; color: var(--ink); }
.replay { display: inline; margin: 0 0 0 4px; padding: 0; border: 0; background: none; color: var(--ochre); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 740px; }
.stage .phone-box { position: relative; width: 340px; max-width: 72vw; }
.stage .close { position: absolute; top: 0; right: 0; opacity: 0; pointer-events: none; }
.stage.is-active .close { opacity: 1; pointer-events: auto; }
.cl-caption { display: none; }

/* The route to each feature, played inside the phone */
.tap { position: absolute; width: 12%; aspect-ratio: 1; margin: -6% 0 0 -6%; border-radius: 50%; background: rgba(40, 30, 20, .22); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .75), 0 2px 10px rgba(0, 0, 0, .18); opacity: 0; pointer-events: none; animation: tap .65s cubic-bezier(.3, .7, .3, 1) both; }
.dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .2); animation: fade .35s ease both; }
.sheet { position: absolute; inset: 0; animation: sheet .55s cubic-bezier(.32, .72, 0, 1) both; }
.full { animation: fade .22s ease both; }
.swap { animation: fade .14s linear both; }
.menu { animation: menu .3s cubic-bezier(.2, .9, .3, 1) both; }
.zen-in { animation: fade .5s ease both; }
.heart { position: absolute; left: 8.106%; top: 61.367%; width: 4.621%; height: 1.987%; color: #96601F; animation: beat .7s cubic-bezier(.2, .8, .2, 1) both; }
.heart svg { width: 100%; height: 100%; }

/* Every morning, everywhere */
.every { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.devices { position: relative; height: 560px; }
.devices .ipad { position: absolute; left: 150px; top: 0; width: 372px; aspect-ratio: 2064 / 2752; border-radius: 24px; overflow: hidden; background: #FAF8F3; box-shadow: 0 0 0 7px var(--frame), 0 30px 70px var(--shadow); }
.devices .ipad img, .devices .watch img { width: 100%; height: 100%; }
.devices .lock-box { position: absolute; left: 0; top: 96px; width: 210px; height: 456px; }
.lock { position: absolute; left: 0; top: 0; width: 440px; height: 956px; transform: scale(.4773); transform-origin: left top; border-radius: 55px; overflow: hidden; background: linear-gradient(170deg, #4A515D 0%, #6F6B67 46%, #A98F71 100%); box-shadow: 0 0 0 13px var(--frame), 0 40px 90px rgba(30, 22, 10, .35); color: #FFFFFF; font-family: -apple-system, 'SF Pro Display', system-ui, sans-serif; }
.lock .island { position: absolute; left: 50%; top: 15px; width: 128px; height: 37px; margin-left: -64px; border-radius: 19px; background: #000000; }
.lock .date { position: absolute; left: 0; right: 0; top: 85px; text-align: center; font-size: 21px; font-weight: 600; opacity: .92; }
.lock .time { position: absolute; left: 0; right: 0; top: 113px; text-align: center; font-size: 104px; line-height: 1; font-weight: 600; letter-spacing: -2px; }
.lock .widget { position: absolute; left: 55px; right: 55px; top: 245px; display: flex; gap: 11px; }
.lock .widget::before { content: ""; width: 3px; border-radius: 2px; background: rgba(255, 255, 255, .9); flex: none; }
.lock .widget small { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; opacity: .78; }
.lock .widget span { display: block; font-family: var(--serif); font-size: 16.5px; line-height: 1.25; }
.lock .note { position: absolute; left: 27px; right: 27px; top: 404px; padding: 17px 19px; border-radius: 26px; background: rgba(255, 255, 255, .28); display: flex; gap: 15px; align-items: flex-start; }
.lock .note img { width: 43px; height: 43px; border-radius: 10px; flex: none; }
.lock .note div { flex: 1; min-width: 0; }
.lock .note b { display: block; font-size: 16.5px; line-height: 1.2; }
.lock .note span { display: block; margin-top: 3px; font-size: 15.5px; line-height: 1.3; }
.lock .note i { font-style: normal; font-size: 14px; opacity: .8; flex: none; }
.devices .watch { position: absolute; left: 446px; top: 330px; width: 150px; aspect-ratio: 422 / 514; border-radius: 36px; overflow: hidden; background: #000000; box-shadow: 0 0 0 6px var(--frame), 0 20px 44px rgba(20, 14, 6, .3); }
.feats { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.feats li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; }
.feats .feat-icon { color: var(--ochre); padding-top: 1px; }
.feats h3 { margin: 0; font-size: 17px; font-weight: 600; }
.feats p { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* Make a page */
.maker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 72px; align-items: center; }
.card-stage { display: flex; align-items: center; justify-content: center; min-height: 640px; border-radius: 28px; background: var(--raised); }
.card { position: relative; width: 340px; height: 425px; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; background-color: var(--card-bg); background-size: cover; box-shadow: 0 28px 56px rgba(40, 28, 12, .22), 0 4px 10px rgba(40, 28, 12, .08); transition: width .55s var(--ease), height .55s var(--ease), padding .55s var(--ease), background-color .4s; }
.card .rule { display: block; width: 28px; height: 2px; background: var(--card-rule); }
.card .who { margin: 16px 0 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--card-label); }
.card .words { margin: 12px 0 0; font-family: var(--serif); line-height: 1.36; letter-spacing: -.005em; color: var(--card-ink); }
.card .src { margin: 14px 0 0; font-family: var(--serif); font-style: italic; line-height: 1.4; color: var(--card-src); }
.card .colophon { position: absolute; bottom: 15px; display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--card-colo); }
.card .colophon span { display: flex; align-items: center; gap: 6px; }
.card .colophon em { font-style: normal; letter-spacing: .04em; text-transform: none; font-weight: 400; }
.card .clock { position: absolute; left: 0; right: 0; top: 7%; text-align: center; color: var(--card-ink); font-family: -apple-system, 'SF Pro Display', system-ui, sans-serif; display: none; }
.card .clock p { margin: 0; font-size: 13px; font-weight: 600; opacity: .85; }
.card .clock strong { display: block; margin-top: 2px; font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -1px; }
.card.is-wall .clock { display: block; }
.card.is-wall .colophon { display: none; }
.card .art { position: absolute; left: 0; right: 0; top: 120px; height: 150px; background-size: 150% auto; background-repeat: no-repeat; background-position: center 12%; display: none; }
.card.has-art .art { display: block; }
.maker-label { margin: 0 0 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ochre); font-weight: 600; }
.maker-label span { margin-left: 8px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); }
.chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.chip { height: 56px; border: 0; border-radius: 12px; cursor: pointer; font-family: var(--serif); font-size: 17px; background-size: cover; background-position: center top; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .2s; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px #96601F; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.size { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 14px; border: 1.5px solid var(--hair); background: transparent; cursor: pointer; transition: border-color .2s, background .2s; }
.size[aria-pressed="true"] { border-color: var(--ochre); background: var(--page); }
.size i { display: block; border-radius: 3px; border: 1.5px solid currentColor; }
.size b { font-size: 15px; }
.size small { font-size: 12px; color: var(--muted); }
.pl-hourglass { background-image: url(../v14/plate-hourglass.webp); background-position: center top; }
.pl-sphere { background-image: url(../v14/plate-sphere.webp); background-position: center top; }
.pl-olive { background-image: url(../v14/plate-olive.webp); background-position: center bottom; }
.pl-inkwash { background-image: url(../v14/plate-inkwash.webp); background-position: center top; }

/* Read it as it was written */
.book { position: relative; max-width: 1040px; margin: 0 auto; }
.spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-radius: 6px; background: var(--page); box-shadow: 0 1px 0 var(--hair), 0 3px 0 var(--page), 0 4px 0 var(--hair), 0 6px 0 var(--page), 0 7px 0 var(--hair), 0 34px 64px rgba(48, 32, 12, .16); }
.leaf-l, .leaf-r { position: relative; min-height: 420px; padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.leaf-l { background: linear-gradient(to left, rgba(70, 48, 16, .09), rgba(70, 48, 16, 0) 16%); }
.leaf-r { background: linear-gradient(to right, rgba(70, 48, 16, .09), rgba(70, 48, 16, 0) 16%); }
.leaf-l .kicker, .leaf-r .kicker { font-size: 12px; letter-spacing: .22em; }
.orig { margin: 26px 0 0; line-height: 1.4; white-space: pre-line; }
.f-latin { font-family: var(--serif); }
.f-greek { font-family: 'Noto Serif', 'Times New Roman', serif; }
.f-persian { font-family: 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', serif; }
.f-chinese { font-family: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif; }
.f-deva { font-family: 'Noto Serif Devanagari', 'Kohinoor Devanagari', 'Nirmala UI', serif; }
.leaf-r .rule { display: block; width: 28px; height: 2px; background: var(--ochre); margin-bottom: 22px; }
.en { margin: 16px 0 0; font-family: var(--serif); font-size: 28px; line-height: 1.38; letter-spacing: -.005em; white-space: pre-line; }
.en-src { margin: 22px 0 0; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; color: var(--muted); }
.turning { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: left center; backface-visibility: hidden; border-radius: 0 6px 6px 0; background: linear-gradient(to right, rgba(70, 48, 16, .14), rgba(70, 48, 16, .03) 28%), var(--page); opacity: 0; pointer-events: none; }
.turning.go { animation: leaf .75s cubic-bezier(.5, .05, .3, 1) both; }
.inked { animation: ink .8s cubic-bezier(.2, .7, .2, 1) .25s both; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 44px; }
.tabs button { height: 44px; padding: 0 20px; border-radius: 22px; border: 1px solid var(--hair); background: transparent; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Contents */
.toc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 72px; align-items: start; }
.toc ol { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hair); }
.toc li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 18px; padding: 18px 0; border-top: 1px solid var(--hair); }
.spine { width: 30px; height: 44px; border-radius: 2px 4px 4px 2px; display: flex; align-items: center; justify-content: center; box-shadow: inset 4px 0 0 rgba(0, 0, 0, .16); }
.toc-row { display: flex; align-items: baseline; gap: 10px; }
.toc-row h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.25; white-space: nowrap; }
.toc-row .dots { flex: 1; min-width: 24px; border-bottom: 2px dotted var(--faint); opacity: .55; transform: translateY(-5px); }
.toc-row .count { font-family: var(--serif); font-size: 17px; color: var(--muted); white-space: nowrap; }
.toc li p { margin: 4px 0 0; font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.4; color: var(--muted); }
.lib-side { position: sticky; top: 104px; }
.library-card { position: relative; background: #F4EBD8; border-radius: 16px; padding: 22px 24px 24px; border: 1px solid rgba(138, 86, 25, .28); box-shadow: 0 18px 40px rgba(60, 40, 20, .22); color: #211C16; }
.library-card::after { content: ""; position: absolute; inset: 6px; border-radius: 11px; border: 1px solid rgba(138, 86, 25, .22); pointer-events: none; }
.library-card .top { display: flex; justify-content: space-between; align-items: center; color: #8A5619; }
.library-card .top span { font-size: 12px; letter-spacing: .22em; font-weight: 600; }
.library-card h3 { margin: 12px 0 18px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
.shelf { display: flex; align-items: flex-end; gap: 3px; padding-top: 4px; border-bottom: 3px solid #D6C7AD; }
.shelf i { display: block; width: 16px; border-radius: 2px 2px 0 0; box-shadow: inset -2px 0 0 rgba(0, 0, 0, .18); }
.shelf .more { display: flex; width: 20px; height: 54px; margin-left: 5px; border: 1.5px dashed rgba(138, 86, 25, .55); border-bottom: 0; border-radius: 2px 2px 0 0; align-items: center; justify-content: center; color: #8A5619; font-size: 13px; font-weight: 700; font-style: normal; box-shadow: none; }
.library-card p { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: #6E6456; }
.library-card a { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; margin-top: 18px; height: 50px; border-radius: 25px; background: #8A5619; color: #FFF8EC; font-size: 16px; font-weight: 600; }
.library-card a:hover { background: #774912; color: #FFF8EC; }
.lib-note { margin: 22px 4px 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--hair); padding: 56px 0 72px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; }
.colophon-text { margin: 14px 0 0; max-width: 580px; font-family: var(--serif); font-size: 18px; line-height: 1.62; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-links small { margin-top: 12px; color: var(--faint); font-size: 14px; }

/* Support, privacy and terms */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 56px 104px; }
.doc h1 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 52px); letter-spacing: -.02em; line-height: 1.08; }
.doc .updated { margin: 0 0 40px; font-size: 15px; color: var(--muted); }
.doc h2 { margin: 44px 0 12px; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.25; }
.doc h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 600; }
.doc p, .doc li { font-size: 17px; line-height: 1.7; color: var(--muted); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc details { border-top: 1px solid var(--hair); padding: 4px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--hair); }
.doc summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative; font-size: 18px; font-weight: 600; color: var(--ink); }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 300; color: var(--ochre); }
.doc details[open] summary::after { content: "\2212"; }
.doc details p { margin: 0 0 18px; }
.contact-card { margin: 32px 0; padding: 26px 28px; border-radius: 16px; background: var(--raised); border: 1px solid var(--hair); }
.contact-card h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.contact-card p { margin: 0 0 8px; }
.contact-email { display: inline-block; margin-top: 8px; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: var(--paper) !important; text-decoration: none !important; font-weight: 600; }

/* Motion */
@keyframes tap { 0% { opacity: 0; transform: scale(1.5); } 28% { opacity: 1; transform: scale(1); } 48% { transform: scale(.8); } 70% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes menu { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes beat { 0% { transform: scale(.3); opacity: 0; } 35% { transform: scale(1.3); opacity: 1; } 55% { transform: scale(.9); } 75% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ink { from { opacity: 0; filter: blur(5px); transform: translateY(6px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes leaf { 0% { opacity: 1; transform: perspective(2200px) rotateY(0deg); } 100% { opacity: 1; transform: perspective(2200px) rotateY(-179deg); } }

/* Phones and small tablets. On the iPhone Duo's cover display (466 pt) the page takes this
   layout; unfolded (951 x 669 pt) it keeps two columns with the gap between them on the fold. */
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .nav-links a:not(.badge) { display: none; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 16px 0 72px; }
  .annot { display: none; }
  .hero-phone { margin: 0 auto; }
  .game { padding: 28px 22px 26px; }
  .cl { grid-template-columns: 1fr; row-gap: 14px; }
  .cl-steps { display: none; }
  .cl-list { order: 1; }
  .cl-caption { order: 2; }
  .stage { order: 3; min-height: 0; }
  .stage .phone-box { width: 230px; }
  .stage .close { top: auto; bottom: 0; right: 0; }
  .cl-list { flex-direction: row; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .cl-list::-webkit-scrollbar { display: none; }
  .pill { flex: none; scroll-snap-align: start; }
  .pill-bg { width: 100% !important; }
  .pill.is-open .pill-bg { background: var(--ink); }
  .pill.is-open .pill-head { grid-template-rows: 1fr; }
  .pill.is-open .pill-btn { opacity: 1; color: var(--paper); }
  .pill-btn { height: 48px; padding: 0 18px 0 14px; font-size: 16px; }
  .pill-body { display: none; }
  .cl-caption { display: block; min-height: 104px; }
  .cl-caption .hint { color: var(--faint); }
  .cl-caption p { margin: 0; font-size: 17px; line-height: 1.52; color: var(--muted); animation: rise .35s ease both; }
  .cl-caption strong { color: var(--ink); }
  .every { grid-template-columns: 1fr; gap: 40px; }
  .devices { transform: scale(.56); transform-origin: left top; margin-bottom: -246px; }
  .maker { grid-template-columns: 1fr; gap: 36px; }
  .card-stage { min-height: 560px; }
  .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spread { grid-template-columns: 1fr; }
  .leaf-l { border-bottom: 1px solid var(--hair); }
  .leaf-l, .leaf-r { padding: 40px 28px; min-height: 0; }
  .turning { display: none; }
  .toc { grid-template-columns: 1fr; gap: 48px; }
  .toc-row h3 { white-space: normal; font-size: 20px; }
  .lib-side { position: static; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 32px; }
  .doc { padding: 40px 20px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
