/* ShelfWeaver holding site. Look: approved "B. Reading Room" direction (design canvas, 2026-11-30).
   Fonts are self-hosted (OFL, see fonts/); no external requests, no inline styles (CSP in _headers).
   The font files are cached as immutable: give a changed font a new file name (…v3.woff2). */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/newsreader-latin.v2.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.v2.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #F6F1E7; --paper: #FFFDF8; --sunk: #ECE4D4; --ink: #1F1A15; --ink2: #4A4239; --muted: #6B6054;
  --line: rgba(31, 26, 21, .13); --shelf: #D9CDB6; --rib: #8A2B22; --ribh: #6A1F18; --onrib: #FFFFFF;
  --shadow: rgba(58, 42, 26, .16);
  /* Illustration: cloth-binding colours. The same in both themes, because books do not change at night. */
  --plum: #5A3B46; --ochre: #8A6A2E; --slate: #2F4F6B; --sage: #4F6A5A; --bark: #3B2F26; --wine: #7A2A24;
  --cream: #E9DFCB; --oncover: #FFFDF8; --oncream: #2A231C; --coverrib: #F2A592;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130F; --paper: #201B16; --sunk: #2B241E; --ink: #F2EBDF; --ink2: #CFC4B4; --muted: #A3978A;
    --line: rgba(242, 235, 223, .13); --shelf: #3A3129; --rib: #E8907C; --ribh: #F2B2A2; --onrib: #2A0E09;
    --shadow: rgba(0, 0, 0, .35);
    --cream: #D6CAB2;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--rib); text-underline-offset: 3px; }
a:hover { color: var(--ribh); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--rib); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--paper); padding: 10px 16px; border-radius: 10px; box-shadow: 0 2px 8px var(--shadow); }
.skip:focus { top: 12px; }

.wrap { max-width: 1264px; margin: 0 auto; padding: 0 32px; }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.2; color: var(--ink); text-decoration: none; padding: 6px 0; }
.brand:hover { color: var(--ink); }
.mark { width: 14px; height: 26px; background: var(--rib); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 7px), 0 100%); flex: none; }
.mark.sm { width: 10px; height: 18px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 5px), 0 100%); }
.navlinks { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.navlinks a { color: var(--ink2); text-decoration: none; padding: 11px 0; }
.navlinks a:hover { color: var(--ink); text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 22px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn.lg { min-height: 52px; padding: 0 28px; font-size: 17px; border-radius: 26px; }
.btn.pri { background: var(--rib); color: var(--onrib); }
.btn.pri:hover { background: var(--ribh); color: var(--onrib); }
.btn.sec { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.sec:hover { background: var(--sunk); color: var(--ink); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Type */
.eyebrow { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.big { font-weight: 500; font-size: clamp(40px, 4.7vw, 68px); line-height: 1.04; letter-spacing: -0.018em; margin: 20px 0 24px; }
.big .turn { display: block; color: var(--rib); }
.h2 { font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1.12; letter-spacing: -0.012em; margin: 12px 0 16px; }
.h3 { font-weight: 600; font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink2); max-width: 620px; margin: 0; }
.prose { color: var(--ink2); max-width: 620px; margin: 16px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.note { margin: 16px 0 0; max-width: 520px; }
.pill { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 5px 14px 5px 12px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink2); }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 13px; background: var(--sunk); font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink2); }

/* Layout */
.hero { padding: 88px 0 104px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.sect { padding: 96px 0; border-top: 1px solid var(--line); }
.sect.band { background: var(--sunk); border-top: 0; }
.sect.band + .sect { border-top: 0; }
.head { max-width: 720px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.plainlist { list-style: none; margin: 0; padding: 0; }
.head + .grid3, .head + .grid4, .head + .timeline { margin-top: 48px; }

/* Cards */
.card { background: var(--paper); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line), 0 2px 8px var(--shadow); padding: 28px; }
.card p { margin: 0; color: var(--ink2); }
.ic { flex: none; color: var(--rib); display: block; margin-bottom: 16px; }

/* Bookcase illustration (public-domain titles). Decorative: the figure carries one text alternative. */
.art { margin: 0; }
.case { container-type: inline-size; background: var(--paper); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line), 0 2px 8px var(--shadow), 0 28px 48px -28px var(--shadow); padding: 32px 28px 22px; }
.spines { --row: 184px; display: flex; align-items: flex-end; gap: 3px; padding: 0 10px; overflow: hidden; border-bottom: 4px solid var(--shelf); box-shadow: 0 10px 12px -10px var(--shadow); }
.sp { flex: none; width: 34px; height: calc(var(--row) * var(--h, .9)); border-radius: 3px 3px 0 0; writing-mode: vertical-rl; text-align: center; white-space: nowrap; overflow: hidden; font-family: var(--serif); font-size: 13px; font-weight: 500; line-height: 34px; letter-spacing: .01em; color: var(--oncover);
  background-color: var(--plum);
  background-image: linear-gradient(var(--band), var(--band)), linear-gradient(var(--band), var(--band));
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 12px, 0 calc(100% - 12px);
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, .07), inset -2px 0 0 rgba(0, 0, 0, .14);
  --band: rgba(255, 253, 248, .38); }
.sp.thin { width: 28px; line-height: 28px; }
.sp.wide { width: 42px; line-height: 42px; font-size: 14px; }
.t2 { --h: .84; } .t3 { --h: .9; } .t4 { --h: .95; } .t5 { --h: 1; }
.plum { background-color: var(--plum); } .ochre { background-color: var(--ochre); } .slate { background-color: var(--slate); }
.sage { background-color: var(--sage); } .bark { background-color: var(--bark); } .wine { background-color: var(--wine); }
.cream { background-color: var(--cream); color: var(--oncream); --band: rgba(42, 35, 28, .32); }
.sp.lean { transform: rotate(-8deg); transform-origin: bottom left; margin-left: 25px; }
.flat { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.fb { display: block; width: 110px; height: 26px; border-radius: 3px 0 0 3px; padding: 0 9px; overflow: hidden; white-space: nowrap; font-family: var(--serif); font-size: 12px; font-weight: 500; line-height: 26px; color: var(--oncover); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); }
.fb.short { width: 96px; }
.fb.cream { color: var(--oncream); }

.stand, .caps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.26fr); column-gap: clamp(12px, 4.4cqi, 24px); padding: 0 14px; }
.stand { align-items: end; padding-top: 30px; border-bottom: 4px solid var(--shelf); box-shadow: 0 10px 12px -10px var(--shadow); }
.caps { padding-top: 14px; }
.cap { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.cap b { display: block; font-weight: 600; color: var(--ink); }
.cov { position: relative; aspect-ratio: 17 / 25; border-radius: 4px 6px 6px 4px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 14px 12px 13px; overflow: hidden; color: var(--oncover); font-family: var(--serif); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10), inset 5px 0 0 rgba(0, 0, 0, .10), 0 3px 10px var(--shadow); }
.cov.tall { aspect-ratio: 16 / 25; }
.cov.square { aspect-ratio: 1; }
.cov .title { font-size: 16px; font-size: clamp(10px, 3.7cqi, 17px); font-weight: 500; line-height: 1.12; overflow-wrap: anywhere; text-wrap: balance; }
.cov .by { font-family: var(--sans); font-size: 10px; font-size: clamp(9px, 2.2cqi, 11px); font-weight: 500; line-height: 1.3; letter-spacing: .02em; opacity: .86; }
.cov .rib { position: absolute; top: 0; right: 14%; width: 11px; background: var(--coverrib); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 6px), 0 100%); }
.cov .rib.r1 { height: 46%; } .cov .rib.r2 { height: 30%; } .cov .rib.r3 { height: 22%; }
.cov .motif { position: absolute; left: 17px; top: 14px; display: block; color: var(--oncover); opacity: .8; }
.cov .motif svg { display: block; width: 100%; height: auto; }
.cov.tall .motif { width: 46%; }
.cov.square .motif { width: 52%; }
.cov.plain .motif { width: 30%; }
.artnote { margin: 14px 4px 0; font-size: 13px; color: var(--muted); }
/* The shelf drops books, not type size, as the bookcase narrows. */
@container (max-width: 469px) { .flat { display: none; } }
@container (max-width: 359px) { .sp:nth-child(n+7):not(.lean) { display: none; } }
@container (max-width: 311px) { .sp:nth-child(n+5):not(.lean) { display: none; } }
@container (max-width: 279px) { .stand, .caps { column-gap: 8px; } .cov { padding: 8px 6px; } .cap { font-size: 12px; } }

/* Real cover art: public-domain scans (sources and licences in CREDITS.md), cropped and resized only.
   Cloth covers as before; the drawn motif gives way to a picture pasted on the front, as on many old bindings. */
.cov .plate { position: absolute; left: 9%; top: 8%; width: 82%; height: 55%; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 253, 248, .55), 0 0 0 3px rgba(0, 0, 0, .12), 0 2px 5px rgba(0, 0, 0, .3); }
.cov.tall .plate { height: 56%; }
.cov.square .plate { height: 50%; }
.cov .rib { z-index: 1; background: linear-gradient(to right, rgba(60, 20, 12, .28), rgba(60, 20, 12, 0) 2px calc(100% - 2px), rgba(60, 20, 12, .28)) var(--coverrib); }

/* Spine labels. Each spine is one solid cloth colour taken from its own painting (then nudged so neighbours differ and the
   set sits with the Reading Room palette) and carries one small framed picture from that painting, like a pasted spine label.
   The title always sits on the plain cloth: the padding keeps it clear of the label, and a single rule marks the other end.
   --lf is the label's share of the spine height, --lo its distance from the end of the spine, --far the room kept at the
   other end. The defaults sit on the row so that each book's own rule can change them; long titles get a shorter label
   and no rule. */
.spines { --lf: .26; --lo: 10px; --far: 15px; }
.sp.lab, .fb.lab { position: relative; --frame: rgba(255, 253, 248, .5); }
.sp.lab { --lh: calc(var(--row) * var(--h) * var(--lf));
  padding: calc(var(--lo) + var(--lh) + 3px) 0 var(--far);
  background-image: linear-gradient(var(--band), var(--band)); background-size: 100% 1px; background-position: 0 calc(100% - 11px); }
.sp.lab.low { padding: var(--far) 0 calc(var(--lo) + var(--lh) + 3px); background-position: 0 11px; }
.sp.lab::before, .fb.lab::before { content: ""; position: absolute; border-radius: 1.5px; background: rgba(0, 0, 0, .16) var(--pic) center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--frame), 0 1px 2px rgba(0, 0, 0, .28); }
.sp.lab::before { left: 4px; right: 4px; top: var(--lo); height: var(--lh); }
.sp.lab.low::before { top: calc(100% - var(--lo) - var(--lh)); }
.sp.lab.long { --far: 6px; --band: transparent; }
.fb.lab { width: 124px; padding: 0 6px 0 30px; }
.fb.lab.short { width: 110px; }
.fb.lab::before { left: 4px; top: 4px; width: 21px; height: 17px; }
.s-dracula { --pic: url("covers/label-dracula.webp"); background-color: #2E4450; }
.s-jane-eyre { --pic: url("covers/label-jane-eyre.webp"); background-color: #D2CDC1; --lf: .25; }
.s-middlemarch { --pic: url("covers/label-middlemarch.webp"); background-color: #48553A; --lf: .21; --lo: 9px; }
.s-time-machine { --pic: url("covers/label-time-machine.webp"); background-color: #332B33; --lf: .19; --lo: 8px; }
.s-treasure-island { --pic: url("covers/label-treasure-island.webp"); background-color: #8A5343; --lf: .23; }
.s-walden { --pic: url("covers/label-walden.webp"); background-color: #DBDBC5; --lf: .27; }
.s-persuasion { --pic: url("covers/label-persuasion.webp"); background-color: #77592E; --lf: .27; --lo: 11px; }
.s-kidnapped { --pic: url("covers/label-kidnapped.webp"); background-color: #6A5057; --lf: .23; --lo: 9px; }
.s-odyssey { --pic: url("covers/label-odyssey.webp"); background-color: #2F5068; }
.s-bleak-house { --pic: url("covers/label-bleak-house.webp"); background-color: #4A3222; }
.sp.lab.pale { color: var(--oncream); --band: rgba(42, 35, 28, .32); --frame: rgba(42, 35, 28, .38); }
@media (prefers-color-scheme: dark) {
  .s-jane-eyre { background-color: #C2BDB1; }
  .s-walden { background-color: #C9C9B2; }
}
/* The lying books are 14 px longer than before to make room for a label, so they leave the shelf 14 px sooner. */
@container (max-width: 483px) { .flat { display: none; } }
/* Phone: the row is shorter and the type is not, so labels sit closer to the end and the long titles keep a slimmer band. */
@media (max-width: 640px) {
  .spines { --lo: 8px; }
  .s-middlemarch { --lf: .14; --lo: 6px; --far: 5px; --band: transparent; }
  /* Too little room beside the long title on phones: this one spine goes without its label. */
  .s-time-machine.lab { padding: 6px 0; background-image: none; }
  .s-time-machine.lab::before { display: none; }
  .s-treasure-island { --lf: .17; --lo: 7px; --far: 6px; --band: transparent; }
  .s-kidnapped { --lf: .2; }
}

/* The caption points to the full credits on the privacy page instead of naming twelve artists. */
.artnote p { margin: 0; }
.page .credits { margin: 12px 0 16px; padding-left: 20px; color: var(--ink2); }
.page .credits li { margin: 4px 0; }
.page .credits b { font-weight: 600; color: var(--ink); }

/* One app instead of five */
.stack { padding: 0; overflow: hidden; }
.stack ul { list-style: none; margin: 0; padding: 0; }
.stack li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 17px 24px; border-bottom: 1px solid var(--line); }
.stack li span { color: var(--muted); }
.stack li b { font-weight: 600; text-align: right; }
.stack .all { background: var(--sunk); padding: 18px 24px; display: flex; gap: 10px; align-items: center; font-family: var(--serif); font-size: 20px; line-height: 1.3; }

/* Promises */
.num { width: 32px; height: 32px; border-radius: 16px; background: var(--sunk); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; margin-bottom: 16px; }

/* Timeline: one rail, three stops */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline li { position: relative; padding: 32px 40px 0 0; border-top: 2px solid var(--shelf); }
.timeline li::before { content: ""; position: absolute; left: 0; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--rib); }
.timeline li.now::before { background: var(--rib); }
.timeline p { margin: 0; color: var(--ink2); }
.when { display: block; font-size: 14px; font-weight: 600; color: var(--rib); margin-bottom: 8px; }
.timeline .btn { margin-top: 20px; }

/* Questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; padding: 16px 0; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; flex: none; width: 24px; text-align: center; font-family: var(--sans); font-size: 26px; font-weight: 400; line-height: 1; color: var(--rib); }
.faq details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.faq summary:hover { color: var(--rib); }
.faq p { margin: 0; padding: 0 48px 24px 0; color: var(--ink2); max-width: 640px; }

/* Follow */
.follow { position: relative; padding: 56px; }
.follow > .mark { position: absolute; top: 0; right: 56px; width: 22px; height: 52px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 10px), 0 100%); }
.ways { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ways li { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 40px 4px 0; }
.ways li + li { padding-left: 40px; border-left: 1px solid var(--line); }
.ways li:last-child { padding-right: 0; }
.ways p { flex: 1; }
.ways .btn { margin-top: 20px; }
.ways .tag { margin: 26px 0 6px; min-height: 32px; padding: 2px 14px; border-radius: 16px; }

/* Plain pages */
.page { padding: 72px 0 96px; max-width: 720px; }
.page .big { margin-top: 14px; }
.page h2 { font-size: 26px; font-weight: 500; margin: 40px 0 10px; }
.page p { color: var(--ink2); }
.feedcard { margin-top: 40px; }
.feedcard .h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.feedcard p + p { margin-top: 12px; }
.addr { overflow-wrap: anywhere; }
.addr code { display: inline-block; padding: 8px 12px; border-radius: 8px; background: var(--sunk); color: var(--ink); font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; font-size: 14px; user-select: all; }

/* Footer */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; font-size: 14px; }
.foot p { margin: 0; }
.foot .who { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.foot .tm { font-family: var(--sans); font-size: 11px; font-weight: 500; align-self: flex-start; margin-left: -6px; color: var(--muted); }
.foot nav { grid-row: span 2; display: flex; gap: 4px 24px; flex-wrap: wrap; justify-content: flex-end; }
.foot nav a { color: var(--ink2); text-decoration: none; display: inline-block; padding: 10px 0; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot .fonts { grid-column: 1 / -1; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 1080px) {
  .hero { gap: 48px; }
  .split { gap: 48px; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .navlinks { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 64px 0 80px; gap: 56px; }
  .big { font-size: clamp(40px, 7vw, 56px); }
  .art { max-width: 560px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline li { padding: 0 0 40px 32px; border-top: 0; border-left: 2px solid var(--shelf); }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { left: -8px; top: 0; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .ways li, .ways li + li { padding: 28px 0; border-left: 0; }
  .ways li + li { border-top: 1px solid var(--line); }
  .ways li:first-child { padding-top: 0; }
  .ways li:last-child { padding-bottom: 0; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot nav { grid-row: auto; justify-content: flex-start; margin-top: 8px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 48px 0 64px; gap: 48px; }
  .sect { padding: 64px 0; }
  .lead { font-size: 17px; }
  .big { margin: 16px 0 20px; }
  .btns { margin-top: 28px; }
  .head + .grid3, .head + .grid4, .head + .timeline { margin-top: 32px; }
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px; }
  .stack { padding: 0; }
  .stack li, .stack .all { padding-left: 20px; padding-right: 20px; }
  .case { padding: 22px 12px 16px; border-radius: 16px; }
  .spines { --row: 152px; padding: 0 6px; }
  .stand, .caps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.16fr); column-gap: 12px; padding-left: 6px; padding-right: 6px; }
  .stand { padding-top: 24px; }
  .cov { padding: 10px 7px 9px; }
  .cov .motif { left: 12px; top: 11px; }
  .faq summary { font-size: 20px; min-height: 60px; }
  .faq p { padding-right: 0; }
  .follow { padding: 32px 24px; }
  .follow > .mark { right: 24px; width: 18px; height: 40px; }
  .ways { margin-top: 28px; }
  .nav .btn { padding: 0 16px; }
  .page { padding: 48px 0 72px; }
  .addr code { font-size: 13px; padding: 8px 10px; }
}

@media (max-width: 360px) {
  .nav { gap: 12px; }
  .brand { font-size: 22px; gap: 8px; }
  .nav .btn { padding: 0 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .navlinks a, .foot nav a, .faq summary { transition: background-color .15s ease, color .15s ease; }
}

/* Windows contrast themes: shadows and background paint are dropped, so draw real edges instead. */
@media (forced-colors: active) {
  .btn, .card, .case, .pill, .tag, .num, .cov, .sp, .fb { border: 1px solid CanvasText; }
  .btn { border-color: ButtonText; }
  .btn.pri { border-width: 2px; }
  .mark, .cov .rib, .timeline li.now::before { forced-color-adjust: none; background: CanvasText; }
  .spines, .stand { border-bottom-color: CanvasText; }
  .timeline li { border-color: CanvasText; }
  .timeline li::before { border-color: CanvasText; background: Canvas; }
  .cov .motif, .cov .by { opacity: 1; }
  .ic { color: CanvasText; }
  .sect.band { border-top: 1px solid CanvasText; border-bottom: 1px solid CanvasText; }
  .cov .plate { box-shadow: none; outline: 1px solid CanvasText; }
  .sp.lab::before, .fb.lab::before { box-shadow: none; outline: 1px solid CanvasText; }
}
