/* Ayton Press: one design system for every page.
   Tokens first, then a theme per line (body class), then the shared parts of the listicle template.
   Slab headings (Zilla Slab) and Atkinson Hyperlegible body type on every page; senior pages set 21px body type. */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1f1a14;
  --ink-soft: #4a4037;
  --accent: #3f7255;          /* text-safe accent: 5.3:1 on --bg */
  --accent-ink: #ffffff;      /* text on a filled accent */
  --accent-tint: #dfeae2;
  --ring: #b98a5e;
  --line: #cfd6cf;
  --focus: #1f5fbf;
  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Verdana, sans-serif;
  --base: 19px;
  --radius: 14px;
  --wrap: 1080px;
}
/* Puzzle Over Coffee: diner-mug green on jadeite white */
.line-senior { --bg: #f3f6f2; --ink: #23180f; --ink-soft: #4d4036; --accent: #3f7255; --accent-tint: #d9e8dd;
  --line: #c9d3cb; --base: 21px; }
/* the kids' science line: lab-notebook blue and signal orange */
.line-kids { --bg: #f4f6fa; --ink: #141b2b; --ink-soft: #3f4a5e; --accent: #1d5fa8; --accent-tint: #dbe7f5;
  --ring: #d9822b; --line: #cdd5e2; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body { --bg: #17130f; --surface: #221c16; --ink: #f4ede4; --ink-soft: #d2c6b8;
    --accent: #8cc7a2; --accent-ink: #10140f; --accent-tint: #24392c; --ring: #c79a6c; --line: #3e352c;
    --focus: #8db8ff; color-scheme: dark; }
  :root:not([data-theme="light"]) body.line-kids { --bg: #10141d; --surface: #182031; --ink: #eef2f9;
    --ink-soft: #c4cde0; --accent: #8fbcf0; --accent-ink: #0b1220; --accent-tint: #1f3352; --line: #2e3a52; }
}
:root[data-theme="dark"] body { --bg: #17130f; --surface: #221c16; --ink: #f4ede4; --ink-soft: #d2c6b8;
  --accent: #8cc7a2; --accent-ink: #10140f; --accent-tint: #24392c; --ring: #c79a6c; --line: #3e352c;
  --focus: #8db8ff; color-scheme: dark; }
:root[data-theme="dark"] body.line-kids { --bg: #10141d; --surface: #182031; --ink: #eef2f9; --ink-soft: #c4cde0;
  --accent: #8fbcf0; --accent-ink: #0b1220; --accent-tint: #1f3352; --line: #2e3a52; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: var(--base);
  line-height: 1.55; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: clamp(24px, 3vw, 28px); }
p { margin: 0; max-width: 64ch; }
/* Lines break between phrases, never leaving one word alone; a short sentence wrapped by the `keep` filter stays on
   one line wherever it fits (Alon: "US coins and aluminum foil do not stick" must be one row). */
p, li, figcaption, summary, blockquote, dd { text-wrap: pretty; }
.keep { display: inline-block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 56px; }
.stack { display: grid; gap: 16px; align-content: start; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 10px 14px; z-index: 5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.preview-note { background: var(--accent-tint); color: var(--ink); border-radius: 0 0 10px 10px; padding: 10px 16px;
  font-size: 17px; }

/* header */
header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand svg { width: 56px; height: 56px; flex: none; }
.brand b { font-family: var(--display); font-size: 30px; display: block; line-height: 1; }
.brand small { color: var(--ink-soft); font-size: 16px; }
.top nav a { font-size: 17px; color: var(--ink-soft); }

/* buyer switch: plain links, one address per version */
.who { display: grid; gap: 10px; }
.who p { font-weight: 700; }
.who ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.who a { display: inline-flex; align-items: center; min-height: 56px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--accent); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.92em; }
.who a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.hero > * { min-width: 0; }
.kicker { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.lede { font-size: 1.1em; color: var(--ink-soft); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { font: inherit; font-weight: 700; font-size: 20px; min-height: 58px; padding: 12px 24px; border-radius: 12px;
  border: 2px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn.alt { background: transparent; color: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.note { font-size: 17px; color: var(--ink-soft); }

/* the puzzle of the day: a saucer with a coffee ring */
.today { position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: 18px;
  padding: 26px; display: grid; gap: 16px; overflow: hidden; }
.today::after { content: ""; position: absolute; right: -46px; top: -46px; width: 150px; height: 150px;
  border-radius: 50%; border: 9px solid var(--ring); opacity: .22; pointer-events: none; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; min-height: 60px; }
.tiles span { width: 54px; height: 60px; display: grid; place-items: center; font-family: var(--display);
  font-size: 32px; background: var(--accent-tint); border-radius: 8px; }
.clue { color: var(--ink-soft); }
label { font-weight: 700; }
input[type="text"], input[type="email"] { font: inherit; width: 100%; min-height: 58px; padding: 8px 14px;
  border-radius: 10px; border: 2px solid var(--ink-soft); background: var(--bg); color: var(--ink); }
#guess { font-size: 24px; letter-spacing: .08em; text-transform: uppercase; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.result { min-height: 1.6em; font-weight: 700; }

/* the listicle */
.reasons { display: grid; gap: 28px; counter-reset: reason; }
.reasons > h2 { max-width: 24ch; }
.reason { display: grid; grid-template-columns: 72px 1fr; gap: 6px 22px; padding-top: 26px;
  border-top: 2px solid var(--line); }
.reason::before { counter-increment: reason; content: counter(reason); grid-row: span 3; font-family: var(--display);
  font-size: 54px; line-height: 1; color: var(--accent); font-weight: 700; }
.reason .body { display: grid; gap: 12px; min-width: 0; }
.reason ul.facts { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.reason figure { margin: 6px 0 0; max-width: 460px; }
.reason figure img { border: 2px solid var(--line); border-radius: 8px; background: #fff; }
figcaption { font-size: 16px; color: var(--ink-soft); margin-top: 6px; }
.jump { font-weight: 700; }

.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 720px; }
.counts div { border-top: 3px solid var(--accent); padding-top: 8px; font-size: 18px; }
.counts b { font-family: var(--display); font-size: 34px; display: block; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { border: 2px solid var(--line); border-radius: 8px; background: #fff; }

/* the offer: every button on the page scrolls here */
.offer { background: var(--surface); border: 3px solid var(--accent); border-radius: 22px; padding: clamp(20px, 4vw, 40px);
  display: grid; gap: 24px; scroll-margin-top: 16px; }
.menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.menu > article { background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: grid; gap: 12px; align-content: start; min-width: 0; }
.menu > article.best { border-color: var(--accent); }
.price { font-family: var(--display); font-size: 34px; }
.price small { font-family: var(--body); font-size: 17px; color: var(--ink-soft); }
.tag { justify-self: start; font-size: 15px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
  background: var(--accent-tint); color: var(--ink); }
.guarantee { border-left: 6px solid var(--accent); padding: 6px 0 6px 18px; }

.faq { display: grid; gap: 10px; }
details { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 14px 18px; }
summary { font-weight: 700; cursor: pointer; min-height: 32px; }
details p { margin-top: 10px; }

/* home: the press's own page, set like a printer's colophon (ink on paper, the three lines in their own colours) */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.press { --red: #b8322f; --green: #3f7255; --blue: #1d5fa8; --violet: #6b3fa0; }
.press ::selection { background: var(--ink); color: var(--bg); }
.masthead { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 40px 0 8px; }
.mast-roundel { width: clamp(120px, 22vw, 168px); height: auto; margin-bottom: 10px; }
.masthead h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 8vw, 84px); line-height: 1;
  letter-spacing: -0.01em; max-width: none; }
.mast-line { font-size: 17px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 6px 18px; max-width: none;
  box-shadow: 0 -4px 0 -2px var(--bg), 0 -5px 0 -2px var(--ink), 0 4px 0 -2px var(--bg), 0 5px 0 -2px var(--ink); }
.about { justify-self: center; max-width: 34em; text-align: center; }
.about p { font-family: var(--display); font-weight: 600; font-size: clamp(25px, 3.4vw, 36px); line-height: 1.3;
  max-width: none; }
.rule-head { display: flex; align-items: center; gap: 18px; font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 30px; }
.rule-head::after { content: ""; flex: 1; border-top: 1px solid var(--ink); }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 34px; }
.book { display: grid; grid-template-rows: auto 1fr; gap: 22px; min-width: 0; }
.book .cover { display: flex; align-items: flex-end; justify-content: center; height: 290px; padding: 0 8%;
  border-bottom: 6px solid var(--ink); }
.book .cover img { max-height: 262px; width: auto; border-radius: 2px 5px 5px 2px;
  box-shadow: 0 2px 3px rgba(31, 26, 20, .25), 0 14px 26px -8px rgba(31, 26, 20, .35); }
.book-text { display: grid; gap: 10px; align-content: start; }
.book h3 { font-size: clamp(25px, 2.6vw, 30px); }
.book h3 a { color: var(--ink); text-decoration: none; }
.book .for { font-weight: 700; color: var(--line-c); }
.book.senior { --line-c: var(--green); } .book.kids { --line-c: var(--blue); } .book.escape { --line-c: var(--violet); } .book.etb { --line-c: var(--red); }
.book .facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 17px; color: var(--ink-soft); }
.book .facts li { padding-left: 16px; position: relative; }
.book .facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px;
  background: var(--line-c); border-radius: 50%; }
.visit { justify-self: start; margin-top: 6px; font-weight: 700; color: var(--ink); text-decoration-color: var(--line-c);
  text-decoration-thickness: 3px; text-underline-offset: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.visit:hover, .book h3 a:hover { color: var(--line-c); }
.press .how { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.press .how div { border-top: 3px double var(--ink); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.press .how dt { font-family: var(--display); font-weight: 700; font-size: 26px; }
.press .how dd { margin: 0; color: var(--ink-soft); }
.write { justify-self: center; text-align: center; display: grid; justify-items: center; gap: 12px;
  padding: 44px clamp(16px, 5vw, 64px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  width: 100%; }
.write .mail { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 4vw, 36px); }
.write .mail a { color: var(--ink); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .press { --red: #f08a86; --green: #8cc7a2; --blue: #8fbcf0; --violet: #c4a6ef; } }
:root[data-theme="dark"] .press { --red: #f08a86; --green: #8cc7a2; --blue: #8fbcf0; --violet: #c4a6ef; }
@media (prefers-reduced-motion: no-preference) {
  .book .cover img { transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s cubic-bezier(.16, 1, .3, 1); }
  .book:hover .cover img { transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 4px 6px rgba(31, 26, 20, .2), 0 26px 36px -10px rgba(31, 26, 20, .4); }
}
@media (max-width: 1060px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .shelf, .press .how { grid-template-columns: 1fr; }
  .book { grid-template-columns: 38% 1fr; grid-template-rows: none; gap: 18px; align-items: start; }
  .book .cover { height: auto; padding: 0 0 0; border-bottom-width: 4px; }
  .book .cover img { max-height: none; }
}
@media (max-width: 480px) { .book { grid-template-columns: 1fr; } .book .cover { padding: 0 18%; } }

footer.foot { color: var(--ink-soft); font-size: 16px; border-top: 2px solid var(--line); padding-top: 20px;
  display: grid; gap: 10px; }
footer.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

.legal { max-width: 760px; }
.legal h2 { margin-top: 18px; font-size: 28px; }
.legal p, .legal li { max-width: 70ch; }

@media (max-width: 820px) {
  .hero, .menu, .lines { grid-template-columns: 1fr; }
  /* on a phone the pages sit in a swipeable row, each big enough to read */
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .gallery figure { scroll-snap-align: start; }
  .counts { grid-template-columns: repeat(2, 1fr); }
  .reason { grid-template-columns: 1fr; }
  .reason::before { grid-row: auto; font-size: 40px; }
  .tiles span { width: 44px; height: 52px; font-size: 26px; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .who a { transition: background .15s, color .15s; } }

/* the Ayton Press roundel (art/brand/): in the home header and the footer of every page */
.brand .roundel { width: 64px; height: 64px; flex: none; }
.foot-mark { display: inline-block; margin-bottom: 10px; }
.foot-mark img { width: 72px; height: 72px; display: block; }

/* the shop: one form, every pack and book, one checkout */
.to-shop { margin-top: 34px; text-align: center; max-width: none; }
.shop-intro { justify-items: start; padding-top: 12px; }
.shop-form { display: grid; gap: 56px; }
.shop-group .rule-head { margin-bottom: 6px; }
.shop-group .rule-head a { color: var(--ink); text-decoration: none; }
.shop-group .rule-head a:hover { color: var(--line-c); }
.items { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px 30px; }
.item { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; padding-top: 18px;
  border-top: 1px solid var(--line); }
.item img { width: 96px; border-radius: 2px 4px 4px 2px; box-shadow: 0 2px 3px rgba(31, 26, 20, .2), 0 10px 18px -8px rgba(31, 26, 20, .35); }
.item-text { display: grid; gap: 8px; align-content: start; min-width: 0; }
.item h3 { font-size: 21px; line-height: 1.25; }
.item-price { font-family: var(--display); font-weight: 700; font-size: 24px; }
.item-price small { font-family: var(--body); font-weight: 400; font-size: 16px; color: var(--ink-soft); }
.pick { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 12px;
  border: 2px solid var(--line-c); border-radius: 999px; cursor: pointer; justify-self: start; font-size: 18px; }
.pick input { width: 22px; height: 22px; accent-color: var(--line-c); margin: 0; }
.pick:has(input:checked) { background: var(--line-c); color: #fff; }
.pick:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.basket { position: sticky; bottom: 12px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 20px; padding: 14px 16px 14px 24px; background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 0 10px 30px -10px rgba(31, 26, 20, .35); }
.basket-sum { font-weight: 700; font-size: 20px; }
.basket .btn:disabled { opacity: .45; cursor: not-allowed; }
.shop .guarantee { max-width: 760px; display: flex; gap: 18px; align-items: center; border-left: 0; padding: 0; }
.shop .seal { width: 76px; height: 76px; flex: none; }

/* who we are, on the home page */
.people-text { display: grid; gap: 16px; max-width: 46em; }
.people-text p { font-size: 1.08em; max-width: none; }
.people-text p:first-child { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; }
.how-link { margin-top: 22px; font-weight: 700; max-width: none; }
.how-link a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* the shop: real pages from inside each product */
.inside { grid-column: 1 / -1; margin-top: 4px; }
.inside summary { cursor: pointer; font-weight: 700; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
.inside-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.inside-pages img { border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 0 6px 14px -8px rgba(31, 26, 20, .35); }

/* the early readers form */
.early-form { max-width: 640px; }
.early-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: grid; gap: 6px; margin: 0; }
.early-form legend { font-weight: 700; padding: 0 6px; }
.early-form .choice { font-weight: 400; display: flex; gap: 10px; align-items: center; min-height: 40px; }
.early-form .choice input { width: 20px; height: 20px; accent-color: var(--accent); }
.early-form label .note { display: block; font-weight: 400; }

/* picture credits: complete, one tap away (L118) */
footer.foot details.credits { background: none; border: 0; padding: 0; }
footer.foot details.credits summary { font-weight: 400; min-height: 32px; }
footer.foot details.credits p { margin-top: 6px; font-size: 14px; }

.standards-line { font-size: 14px; color: var(--ink-soft); font-family: ui-monospace, monospace; }
/* The sign-up reward (Alon, 2026-10-26) */
.reward { font-weight: 700; margin: 0; }
.price.soon { font-size: 26px; line-height: 1.15; }
.price.soon small { display: block; margin-top: 4px; }

/* The cart (Alon, 2026-11-02): a button that follows the page, and a drawer from the right (full width on a phone) */
.cart-open { position: fixed; z-index: 60; top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font: 700 17px var(--body); cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.cart-count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 15px; line-height: 26px; text-align: center; }
.cart-shade { position: fixed; inset: 0; z-index: 70; background: rgba(10, 8, 6, .45); }
.cart-drawer { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); overflow-y: auto;
  background: var(--surface); color: var(--ink); padding: max(16px, env(safe-area-inset-top, 0px)) 20px 32px;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .25); font-size: 18px; display: grid; align-content: start; gap: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .cart-drawer:not([hidden]) { animation: cart-in .22s ease-out; }
  @keyframes cart-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
body.cart-is-open { overflow: hidden; }
.cart-drawer header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-drawer h2 { font-size: 28px; }
.cart-close { font: 700 30px/1 var(--body); width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; }
.cart-body { display: grid; gap: 14px; }
.cart-body .btn { font-size: 18px; min-height: 52px; }
.cart-body .btn.small { font-size: 16px; min-height: 44px; padding: 8px 14px; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line.more { border-top: 0; padding-top: 0; margin-top: -8px; color: var(--ink-soft); font-size: 16px; }
.cart-name b { font-weight: 700; }
.cart-line.more .cart-name b { font-weight: 400; }
.cart-was { color: var(--ink-soft); font-size: 15px; }
.cart-right { display: grid; justify-items: end; gap: 6px; }
.cart-amt { font-weight: 700; white-space: nowrap; }
.cart-qty { display: flex; align-items: center; gap: 6px; }
.cart-qty button { min-width: 40px; min-height: 40px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg);
  color: var(--ink); font: 700 18px var(--body); cursor: pointer; }
.cart-qty button:disabled { opacity: .4; cursor: default; }
.cart-n { min-width: 22px; text-align: center; font-weight: 700; }
.cart-qty .cart-remove, .cart-right > .cart-remove { border: 0; background: none; color: var(--accent); text-decoration: underline;
  font-size: 15px; min-width: 0; padding: 4px; }
.cart-free { background: var(--accent-tint); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; font-size: 17px; }
.cart-free-track { height: 10px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.cart-free-track span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s; }
.cart-offer { border: 2px dashed var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; font-size: 17px; }
.cart-bump { border-style: solid; border-color: var(--accent); background: var(--accent-tint); }
.cart-bump label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 700; }
.cart-bump input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.cart-ship { border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; margin: 0; }
.cart-ship legend { font-weight: 700; padding: 0 6px; }
.cart-ship .row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.cart-ship select, .cart-ship input[type=text] { font: inherit; font-size: 17px; min-height: 48px; padding: 8px 10px; border-radius: 10px;
  border: 2px solid var(--ink-soft); background: var(--bg); color: var(--ink); width: 100%; }
.cart-level { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; cursor: pointer; }
.cart-level input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.cart-total { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; }
.cart-total dd { margin: 0; text-align: right; font-weight: 700; }
.cart-total dt:last-of-type, .cart-total dd:last-of-type { font-size: 22px; padding-top: 6px; border-top: 2px solid var(--line); }
.cart-pay { width: 100%; }
.cart-pay:disabled { opacity: .6; cursor: progress; }
.cart-empty { font-size: 20px; }
/* Stripe's checkout in a panel on our page (Alon, 2026-11-02): full screen on a phone, a centred sheet on a desktop */
.pay-sheet { position: fixed; inset: 0; z-index: 90; background: rgba(10, 8, 6, .55); display: grid; place-items: center;
  padding: max(0px, env(safe-area-inset-top, 0px)) 0 0; }
.pay-box { width: min(560px, 100vw); height: min(92vh, 100%); overflow-y: auto; background: #fff; color: #1f1a14;
  border-radius: 18px; display: grid; grid-template-rows: auto 1fr; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.pay-box header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 6px 20px;
  position: sticky; top: 0; background: #fff; z-index: 1; font-size: 18px; }
.pay-box .cart-close { color: #1f1a14; border-color: #d8d2c8; }
.pay-mount { padding: 0 6px 16px; }
.pay-ship { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 4px 20px 10px; font-size: 16px; }
.pay-ship label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pay-ship select { font: inherit; min-height: 40px; padding: 4px 8px; border-radius: 8px; border: 2px solid #b8b0a4; background: #fff; color: #1f1a14; }
.pay-ship .note { color: #4a4037; font-size: 14px; }
.pay-wait { padding: 48px 20px; text-align: center; color: #4a4037; font-size: 18px; }
@media (max-width: 600px) { .pay-box { height: 100%; border-radius: 0; } }

/* the printed book offered on the order page after its PDF (Alon, 2026-11-02) */
.after-offer { border: 3px solid var(--accent); border-radius: 18px; padding: 18px; display: grid; gap: 16px; background: var(--surface);
  grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 720px) { .after-offer { grid-template-columns: 220px 1fr; } }
.after-offer #offer-img img { width: 100%; max-width: 260px; border-radius: 10px; justify-self: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.after-offer h1 { font-size: clamp(30px, 5vw, 44px); }
.paid-ok { font-weight: 700; background: var(--accent-tint); border-radius: 12px; padding: 12px 16px; }
.paid-ok span { color: var(--accent); margin-right: 6px; }

/* Buy now beside Add to cart (Alon, 2026-11-02) */
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-row .btn.accent { flex: 1 1 auto; }
.buy-row .btn.alt { flex: 0 1 auto; }
.ship-deal { font-weight: 700; font-size: 17px; }

[dir="rtl"] .skip { left: auto; right: -9999px; }
[dir="rtl"] .skip:focus { right: 16px; }
/* ---- No small print (Alon, 2026-11-10: "a whole page touting books without small print has a ton of small print").
   Every sentence a buyer needs is at least 17 px on a phone; side notes that do not earn that size are gone: the small
   spaced-out labels above headings, the "Instant download . Prints at home" strips. tools/small_print.mjs measures
   every page at 390 px and tests/test_sites.py fails on anything smaller. */
.kicker, .glow .kicker, .trust, .glow .trust, .trust-line, .glow .trust-line, .scene figcaption span { display: none !important; }
figcaption, small, td, th, .tag, .note, .lede, .standards-line, .early-line, .source-line, .lang-switch,
.price small, .item-price small, .brand small, .compact p:not(.price), .menu p:not(.price), .shot-wrap figcaption, .film-wrap figcaption,
.fan figcaption { font-size: 17px !important; }
.glow .hero-product .fan figcaption { display: block; }
.mosaic .tile-text span, .line-kiosk li > span, .tug-pick button { font-size: 17px !important; }
.counts-strip span, .row-text span, .journey span, .journey li.count a, .voice-row footer, .proof li, .ev-badge span,
.ev-steps span, .bar-value, .topic-wall b, .reason .plates figcaption, .facts li, .facts li .keep { font-size: 17px !important; }
