/* Plainspoken Home: shared style system (2026-11-06 harmonize pass). Loaded FIRST on every page; the page CSS loads second.
   Source: the approved DIY page (hw.css) + scratchpad/pages/STYLE_SYSTEM.md.
   Holds: fonts, tokens, base type, header, buttons, price anchor, assure lines, FAQ, counter band, phone buy bar, footer,
   focus/selection, skip link, the shared motion keyframes (pull, stamp, fade) and the reduced-motion base.
   A page CSS may only add: its accent (--acc, --acc-bg), its page background (--page) and page-specific components. */

@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-bold.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(/fonts/source-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(/fonts/source-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(/fonts/source-sans-700.woff2) format("woff2"); }

/* ===== tokens ===== */
:root {
  --card: #ffffff; --ink: #161616; --body: #26282b; --steel: #4f5357; --line: #c9c5bc;
  --yellow: #ffd100; --yellow-hi: #ffdc3d; --yellow-ink: #3a2f00;
  --green: #1d6f37; --green-bg: #e3f1e6; --amber: #8a5300; --amber-bg: #fff0c7; --red: #b8231a;
  --sign: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px; --gut: 16px; --ease: cubic-bezier(.16, 1, .3, 1);
  /* one radius pair and one shadow family for every card */
  --r: 10px; --r-in: 6px;
  --sh-1: 0 0 0 1px rgba(22,22,22,.06), 0 1px 2px rgba(0,0,0,.10), 0 8px 16px -8px rgba(0,0,0,.28);
  --sh-2: 0 0 0 1px rgba(22,22,22,.06), 0 2px 3px rgba(0,0,0,.10), 0 20px 40px -22px rgba(0,0,0,.55);
  --head: 64px;   /* sticky header incl. its 4px rule (70 + 4 on desktop) */
  /* ONE spacing scale: every layout gap, margin and padding on every page uses these */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --sec: var(--s-7);        /* section padding: 48px phone, 80px desktop (never more than 56 / 96) */
  --sec-head: var(--s-4);   /* section heading to its content: 16px phone, 24px desktop */
  --pad: 20px;              /* card inner padding: 20px phone, 28px desktop */
  /* defaults; each page sets its own book accent and light page background */
  --acc: #1d4f7a; --acc-bg: #e6edf3; --page: #e5e6e6;
}
@media (min-width: 760px) { :root { --gut: 28px; } }
@media (min-width: 1000px) { :root { --gut: 40px; --head: 74px; --sec: calc(var(--s-8) + var(--s-4)); --sec-head: var(--s-5); --pad: 28px; } }

/* ===== base type ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
body { margin: 0; background: var(--page); color: var(--body); font: 400 19px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--acc); text-underline-offset: .18em; text-decoration-thickness: 2px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, table { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--sans); font-weight: 700; letter-spacing: -.012em; line-height: 1.08; }
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h1, h2, h3, h4, dt { text-wrap: balance; }
p, dd, li, blockquote { text-wrap: pretty; }
.sign { font-family: var(--sans); font-weight: 700; letter-spacing: -.012em; line-height: 1.08; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.nw { white-space: nowrap; }
.wrap { max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ===== focus, selection, skip link ===== */
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); }
a, button, summary { -webkit-tap-highlight-color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.sr:focus { position: fixed; z-index: 99; left: 12px; top: 12px; width: auto; height: auto; clip: auto; overflow: visible; white-space: normal;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-in); background: var(--yellow); color: var(--ink); font-weight: 700; }

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: 58px; padding: 0 var(--s-5); border-radius: var(--r-in); border: 0; cursor: pointer;
  font: 700 22px/1 var(--sign); text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease); }   /* never box-shadow: a deeper hover shadow fades in on ::before */
.btn svg { width: 22px; height: 22px; flex: none; transition: transform .18s var(--ease); }
/* yellow buy button: a soft top-light gradient over the brand yellow (background-color stays the token, so hover can still fade),
   the inset bottom edge, a deeper hover shadow on ::before (faded in with opacity, never an animated box-shadow), and a gentle
   one-time glint on ::after. The button does not clip (overflow would cut ::before's shadow): the glint clips itself, its
   clip-path moving against its translate so only the part over the button ever paints (linear in each half keeps them in step). */
.btn-buy { position: relative; isolation: isolate; background-color: var(--yellow); color: var(--ink);
  background-image: linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,0) 52%, rgba(150,95,0,.10) 100%);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 8px 18px -10px rgba(90,70,0,.7); }
.btn-buy::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none;
  box-shadow: 0 14px 24px -12px rgba(90,70,0,.6); opacity: 0; transition: opacity .18s var(--ease); }
.btn-buy::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 43%, rgba(255,255,255,.2) 50%, rgba(255,255,255,0) 57%);
  transform: translateX(-100%); clip-path: inset(0 0 0 100%); }
.btn-buy.shine::after { animation: btn-sheen .5s linear .3s backwards; }   /* backwards: ends off-button, hover can glint again */
.btn-buy.settle { animation: btn-settle .45s var(--ease) .2s backwards;   /* backwards: leaves :active free afterwards */ }
.btn-buy:active { transform: translateY(1px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2), 0 3px 8px -6px rgba(90,70,0,.6); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 var(--s-4); font-size: 18px; }
.btn .arw { transition: transform .2s var(--ease); }
@keyframes btn-sheen { 0% { transform: translateX(-100%); clip-path: inset(0 0 0 100% round var(--r-in)); }
  50% { transform: none; clip-path: inset(0 round var(--r-in)); } 100% { transform: translateX(100%); clip-path: inset(0 100% 0 0 round var(--r-in)); } }
@keyframes btn-sheen-h { 0% { transform: translateX(-100%); clip-path: inset(0 0 0 100% round var(--r-in)); }
  50% { transform: none; clip-path: inset(0 round var(--r-in)); } 100% { transform: translateX(100%); clip-path: inset(0 100% 0 0 round var(--r-in)); } }   /* the same glint under its own name, so hover replays it after .shine */
@keyframes btn-settle { 0% { transform: scale(.96); } 55% { transform: scale(1.02); } 100% { transform: none; } }
@media (hover: hover) and (pointer: fine) {
  .btn-buy:hover { background-color: var(--yellow-hi); color: var(--ink); transform: translateY(-1px); }
  .btn-buy:hover::before { opacity: 1; }
  .btn-buy:hover svg { transform: translateY(2px); }
  .btn-buy:hover::after { animation: btn-sheen-h .5s linear both; }   /* one glint per hover; clipped away on leave */
  .btn-buy:active { transform: translateY(1px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2), 0 3px 8px -6px rgba(90,70,0,.6); }
  .btn-buy:active::before { opacity: 0; }
  .btn-dark:hover { background: #2b2c2e; color: #ffe98a; }
  .btn-dark:hover .arw { transform: translateX(3px); }
  .btn-dark:active { transform: translateY(1px); }
}
/* focus stays a visible ring on every button: the outline sits outside the clipped sheen */
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ===== header ===== */
.top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 4px solid var(--ink); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); height: 60px; }
.top img { height: 30px; width: auto; }
@media (max-width: 370px) { .top img { height: 26px; } .top .btn-sm { font-size: 16px; padding: 0 var(--s-3); } }

/* ===== price anchor + assure lines (under every paid buy button) ===== */
.anchor { font: 600 17px/1.35 var(--sans); color: var(--ink); margin-bottom: var(--s-5); }
.assure { list-style: none; padding: 0; margin-top: var(--s-3); display: grid; gap: var(--s-2); font-size: 16.5px; line-height: 1.35; color: var(--body); }
.assure li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-2); }
.assure svg { width: 20px; height: 20px; margin-top: 1px; color: var(--green); }
.assure a, .counter .assure a { color: inherit; font-weight: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* ===== FAQ: max 3 questions ===== */
.faq { padding: var(--sec) 0; }
.faq h2 { font-size: 30px; margin-bottom: var(--sec-head); }
.faq dl { border-top: 3px solid var(--ink); max-width: 780px; }
.faq dl > div { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.faq dt { font: 700 19px/1.3 var(--sans); color: var(--ink); }
.faq dd { margin-top: var(--s-2); font-size: 18px; max-width: 65ch; }   /* answers keep a reading measure in the wide desktop column */
.faq dl + details { margin-top: var(--s-5); }

/* ===== collapsed details: ONE style on every page (the canonical .details). A white card; the summary row is the whole
   48px+ tap target with the book-accent chevron that turns over when open; the card's inner padding is --pad.
   Pages may only set its width/position and lay out what is inside, never its card, summary or chevron. ===== */
details, .details { background: var(--card); color: var(--body); border-radius: var(--r); box-shadow: var(--sh-1); padding: 0 var(--pad); }
details[open], .details[open] { padding-bottom: var(--pad); }
details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: 48px; margin: 0 calc(var(--pad) * -1); padding: var(--s-3) var(--pad); border-radius: var(--r);
  font: 700 19px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); text-align: left; }
details > summary::-webkit-details-marker { display: none; }
details > summary > :is(h2, h3, span) { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; }
details > summary > svg { width: 22px; height: 22px; flex: none; color: var(--acc); transition: transform .3s var(--ease); }
details[open] > summary > svg { transform: rotate(180deg); }
details > summary:focus-visible { outline-offset: 2px; }
/* inside the dark counter band the card stays a white card with dark text */
.counter details p, .counter details li { color: var(--body); }
.counter details :is(h3, h4) { color: var(--ink); }
.counter details a:not(.btn) { color: var(--acc); }

/* ===== closing counter band ===== */
.counter { background: var(--ink); color: #e9eaeb; padding: var(--sec) 0; border-top: 10px solid var(--yellow); }
.counter-in { display: grid; gap: var(--s-5); align-items: start; }
.counter img { width: 140px; transform: rotate(-2deg); box-shadow: 0 24px 40px -18px rgba(0,0,0,.9); }
.counter h2 { color: #fff; font-size: 32px; }
.counter .price { margin-top: var(--s-4); font: 700 64px/.9 var(--sign); color: var(--yellow); }
.counter p { margin-top: var(--s-3); font-size: 18px; color: #d3d5d7; }
.counter .anchor { color: #fff; margin-bottom: 0; }
.counter .btn { margin-top: var(--s-5); width: 100%; max-width: 440px; }
.counter .assure { color: #d3d5d7; max-width: 440px; }   /* ends where the button ends */
.counter .assure svg { color: #7fd99a; }
.counter .free { margin-top: var(--s-5); font-size: 18px; }
.counter .free a { display: inline-block; }   /* "the free house guide" never splits mid-phrase */
.counter a:not(.btn) { color: #fff; }
.counter :focus-visible { outline-color: #fff; }   /* the ink ring would vanish on the ink band */
/* the buy button on the ink band: no brown drop under it (it reads muddy on ink); hover = the lift + glint + a faint yellow glow */
.counter .btn-buy { box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.counter .btn-buy::before { box-shadow: 0 10px 26px -12px rgba(255,209,0,.42); }
.counter .btn-buy:active { box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
/* phones: the art (first child: a cover, or a page's fan) sits beside the heading in one row, never alone above it;
   the rest of the copy runs full width below. A single cover is 96px; a fan sizes its own covers. */
@media (max-width: 759px) {
  .counter-in { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-4); row-gap: 0; align-items: center; }
  .counter-in > :first-child { grid-row: 1; grid-column: 1; }
  .counter-in > img:first-child { width: 96px; }
  .counter-in > :first-child + div { display: contents; }
  .counter-in > :first-child + div > * { grid-column: 1 / -1; }
  .counter-in > :first-child + div > h2 { grid-column: 2; grid-row: 1; font-size: 28px; }
  .counter .counter-in > :first-child + div > h2 + * { margin-top: var(--s-5); }
}

/* ===== footer (v2, 2026-11-12): brand line + quiet icons, then 3 link groups, then one short legal line.
   The HTML comes from 12_SEO/tools/chrome.py footer(); site_update.py writes it into every page.
   Only pages with the phone buy bar reserve room for it: a .bar-room spacer after the footer ===== */
footer { padding: var(--s-7) 0 calc(var(--s-6) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--steel); }
footer ul { list-style: none; padding: 0; }
.ft-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.ft-brand { grid-column: 1 / -1; }
.ft-logo { font: 700 20px/1.2 var(--sans); color: var(--ink); text-decoration: none; }
.ft-brand p { margin-top: var(--s-2); max-width: 38ch; }
.ft-soc { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.ft-soc a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--steel); transition: color .15s, border-color .15s; }
.ft-soc svg { width: 19px; height: 19px; }
.ft-soc a:hover { color: var(--ink); border-color: var(--ink); }
.ft-h { margin-bottom: var(--s-1); font: 700 14px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.ft-col a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--steel); text-decoration: none; }
.ft-col a:hover { color: var(--acc); text-decoration: underline; }
.ft-legal { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 759px) { .ft-col:last-child { grid-column: 1 / -1; } .ft-col:last-child ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); } }   /* phone: About links 2 x 2 */
@media (min-width: 760px) { .ft-in { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ft-in { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--s-6); } .ft-brand { grid-column: auto; } }
.bar-room { height: calc(76px + env(safe-area-inset-bottom)); }   /* the bar's height + air: the bar never covers the last footer line */

/* ===== sticky phone buy bar: shown once the hero is gone, hidden while the counter band is on screen, hidden >= 1000px ===== */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 3px solid var(--ink);
  padding: var(--s-2) var(--gut) calc(var(--s-2) + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  transform: translateY(115%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
.bar.on { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
.bar-t { display: grid; justify-items: start; gap: 3px; font: 600 16px/1.05 var(--sans); color: var(--steel); white-space: nowrap; }
.bar .price-tag { padding: 3px 10px 3px 19px; }
.bar .price-tag::before { left: 7px; width: 6px; height: 6px; margin-top: -3px; }
.bar .price-tag b { font-size: 24px; }
.bar .btn { min-height: 50px; font-size: 20px; padding: 0 var(--s-4); }
.bar .btn { white-space: nowrap; }
@media (max-width: 370px) { .bar { gap: var(--s-2); } .bar .btn { font-size: 18px; padding: 0 var(--s-3); } .bar-dup { display: none; } }   /* 320px: one-line label; the tag beside shows the price */

/* ===== breakpoints ===== */
@media (min-width: 760px) {
  h1 { font-size: 48px; }
  .counter-in { grid-template-columns: 180px 1fr; }
  .counter img { width: 170px; }
}
@media (min-width: 1000px) {
  body { font-size: 20px; }
  h1 { font-size: 64px; }
  h2 { font-size: 36px; }
  .top-in { height: 70px; }
  .top img { height: 38px; }
  .faq h2 { font-size: 40px; }
  /* the heading takes the left third, the questions (and any details under them) the right two thirds */
  .faq .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 var(--s-7); align-items: start; }
  .faq .wrap > * { grid-column: 2; }
  .faq .wrap > h2 { grid-column: 1; grid-row: 1 / span 4; margin-bottom: 0; }
  .counter-in { grid-template-columns: 220px 1fr; gap: var(--s-7); }
  .counter img { width: 210px; }
  .counter h2 { font-size: 44px; }
  .bar, .bar-room { display: none; }
  footer { padding-bottom: var(--s-6); }
}

/* ===== shared motion grammar: a "pull" reveal for revealed answers, a "stamp" for prices, a fade for reduced motion ===== */
/* the clip reaches past the card on every side so its shadow is revealed with it, not cut off */
@keyframes pull-tag { from { clip-path: inset(0 -40px 100% -40px); } to { clip-path: inset(-40px -40px -70px -40px); } }
@keyframes stamp { from { transform: scale(1.12) rotate(-2deg); } to { transform: none; } }   /* prices are never faded, only pressed into place */
@keyframes fade-in { from { opacity: .3; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  /* keep colour changes, drop movement */
  .btn, .bar, .btn svg, .btn .arw { transition-property: background-color, color, visibility; }
  .btn:hover, .btn:active, .btn:hover svg, .btn:hover .arw { transform: none !important; }
  .btn-buy::after { display: none; }                      /* no sheen */
  .btn-buy.settle, .btn-buy.shine::after, .btn-buy:hover::after { animation: none !important; }
  details > summary > svg { transition: none; }
}

/* ===== shared price tag (owner: "highlight the price") — use for every prominent price on every page =====
   <span class="price-tag"><b>$24.99</b><small>PDF · 40 problems</small></span>   (small line optional)
   Yellow shelf tag with a punched hole, slight tilt; .price-tag--lg for hero prices, .price-tag--dark on yellow/dark grounds. */
.price-tag { position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px 6px 22px; border-radius: var(--r-in);
  background: linear-gradient(180deg, #ffdc3d 0%, var(--yellow) 60%, #f4c400 100%); color: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.14), 0 6px 14px -8px rgba(90,70,0,.55); transform: rotate(-1.5deg); transform-origin: 0 50%; line-height: 1; white-space: nowrap; }
.price-tag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--card); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.price-tag b { font: 700 32px/1 var(--sign); letter-spacing: .005em; font-variant-numeric: tabular-nums; }
.price-tag small { font: 600 16px/1.1 var(--sans); color: var(--yellow-ink); }
.price-tag--lg { padding: 8px 18px 8px 26px; }
.price-tag--lg b { font-size: 46px; }
.price-tag--dark { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); }
.price-tag--dark small { color: #d6d8da; }
@media (min-width: 1000px) { .price-tag b { font-size: 36px; } .price-tag--lg b { font-size: 56px; } }
@keyframes tag-stamp { from { transform: scale(1.06) rotate(-3.5deg); } to { transform: rotate(-1.5deg); } }   /* never fades the price */
@media (prefers-reduced-motion: no-preference) { .price-tag.stamp-in { animation: tag-stamp .28s cubic-bezier(.2,.8,.3,1) both; } }

/* coordinator: reduced motion must not keep the hidden bar button visible (no visibility transition on buttons) */
@media (prefers-reduced-motion: reduce) { .btn, .btn svg, .btn .arw { transition-property: background-color, color; } .bar { transition-property: visibility; } }

/* ===== SEO wiring (2026-11-12, staging): header "Free how-tos" link + how-to cards (hub pages, homepage block) ===== */
.top-r { display: flex; align-items: center; gap: var(--s-4); }
.top-link { display: inline-flex; align-items: center; min-height: 44px; font: 700 17px/1 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; white-space: nowrap; }
.top-link:hover { text-decoration-color: var(--ink); }
.tl-short { display: none; }
@media (max-width: 420px) { .top-r { gap: var(--s-3); } .tl-long { display: none; } .tl-short { display: inline; } .top-link { font-size: 16px; } }
@media (max-width: 370px) { .top-link { font-size: 15px; } }

.ht-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.ht-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-4); align-items: center; height: 100%; padding: var(--s-3); border-radius: var(--r); background: var(--card); box-shadow: var(--sh-1); color: var(--body); text-decoration: none; transition: transform .18s var(--ease); }
.ht-th { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-in); background: #fbf6ea; border: 1px solid #e4dcc6; overflow: hidden; padding: 6px; }
.ht-th svg { width: 100%; height: 100%; }
.ht-t { display: grid; gap: 2px; }
.ht-k { font: 700 14px/1.2 var(--sign); text-transform: uppercase; letter-spacing: .05em; color: var(--acc); }
.ht-q { font: 700 19px/1.2 var(--sans); color: var(--ink); }
.ht-p { font-size: 16px; line-height: 1.35; color: var(--steel); }
@media (hover: hover) and (pointer: fine) { .ht-card:hover { transform: translateY(-2px); } .ht-card:hover .ht-q { color: var(--acc); } }
@media (min-width: 760px) { .ht-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ht-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* homepage block: small, after the book offers */
.ht-home { padding-top: var(--sec); }
.ht-home-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.ht-home-h h2 { font-size: 26px; }
.ht-home-h a { font-weight: 700; }
.ht-home .ht-card { grid-template-columns: 72px minmax(0, 1fr); }
.ht-home .ht-q { font-size: 18px; }

/* hub page */
.hub-in { padding-bottom: var(--sec); }
.hub-in .ht-list { margin-top: var(--s-4); }
.hub-more { margin-top: var(--s-6); max-width: 60ch; font-size: 18px; }

/* ===== book hero kit (2026-11-25): the first screen of the three book pages answers who made it, why pay, and how good
   it is, without a scroll. One structure on every book page:
     <section class="bk [page skin]"><div class="wrap bk-in">
       <div class="bk-head">  kicker, h1, the "why pay" line, the who-made line
       <div class="bk-proof"> 4 real inside pages (tap to enlarge) + note
       <div class="bk-card">  cover + price tag + facts lines, buy button, free sample link
   Phone: stacked in that order. >= 1000px: head over proof on the left, the card on the right.
   A page CSS only skins it (backgrounds, the head's colors); sizes and spacing live here. ===== */
.bk { position: relative; }
.bk-in { display: grid; gap: 10px; padding-top: var(--s-3); padding-bottom: var(--s-5); }
.bk-kick { font: 700 17px/1.2 var(--sans); color: var(--steel); }
.bk-head h1 { font-size: 30px; line-height: 1.06; text-wrap: balance; }
.bk-head h1 .h1-k { display: block; margin-bottom: var(--s-1); font: 700 17px/1.2 var(--sans); letter-spacing: 0; }
.bk-why { margin-top: var(--s-2); font: 400 18px/1.4 var(--sans); color: var(--body); }
.bk-why b { color: var(--ink); }

/* real pages sit on a tinted panel (each page skin may recolor it) */
.bk-proof { padding: 10px; border-radius: var(--r); background: var(--acc-bg); }
/* real pages: 4 across, a white page with a soft shadow, a magnifier corner, a short name under each */
.bk-pages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.bk-pg { position: relative; display: grid; gap: 4px; color: inherit; text-decoration: none; border-radius: 3px; }
.bk-ph { position: relative; display: block; transition: transform .2s var(--ease); }
.bk-pg img { width: 100%; aspect-ratio: 612 / 792; height: auto; background: #fff; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(22,22,22,.16), 0 1px 2px rgba(0,0,0,.14), 0 10px 18px -10px rgba(0,0,0,.5); }
.bk-pg i { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; }
.bk-pg i svg { width: 15px; height: 15px; }
.bk-cap { font: 700 14px/1.15 var(--sans); text-align: center; text-wrap: balance; }
.bk-click { display: none; }
@media (hover: hover) and (pointer: fine) { .bk-tap { display: none; } .bk-click { display: inline; } }
.bk-note { margin-top: 6px; font: 600 16px/1.3 var(--sans); color: var(--steel); }
@media (hover: hover) and (pointer: fine) { .bk-pg:hover .bk-ph { transform: translateY(-3px); } .bk-pg:hover .bk-cap { text-decoration: underline; text-underline-offset: .2em; } }

/* the card: what it is and what it costs, then the one button */
.bk-card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-2); padding: 14px var(--s-4) var(--s-3); display: grid; gap: var(--s-2); }
/* the facts: two to four fixed lines, each with a green tick; separators live inside a line, never at its end */
.bk-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font: 600 17px/1.35 var(--sans); color: var(--ink); }
.bk-facts li { position: relative; padding-left: 22px; }
.bk-facts li::before { content: ""; position: absolute; left: 3px; top: .3em; width: 6px; height: 11px; border: solid var(--green); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.bk-card .btn-buy { width: 100%; }
/* the choice (2026-11-25, owner: the Home Set is the main offer): "This book" or "All 3 books", CSS only, no script.
   Two radio inputs sit first in the card; each tile is their <label>; the facts list and the buy link that match the
   checked one are shown (sibling selectors, so it also works without :has). No CSS at all: both links show, both work. */
fieldset.bk-card { position: relative; margin: 0; min-width: 0; border: 0; }
.bk-r { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.bk-pick-h { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* the group's name for screen readers; the radio dots say it on screen */
.bk-pick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.bk-opt { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-areas: "dot t" ". p" ". s";
  column-gap: 8px; align-items: center; min-height: 48px; padding: 8px 10px; border: 2px solid var(--line); border-radius: var(--r-in); background: #fff; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) { .bk-opt { transition: border-color .15s, background-color .15s, box-shadow .15s; } }
.bk-opt::before { content: ""; grid-area: dot; width: 22px; height: 22px; box-sizing: border-box; border: 2px solid var(--steel); border-radius: 50%; background: #fff; }
.bk-opt-t { grid-area: t; font: 700 17px/1.2 var(--sans); color: var(--ink); }
.bk-opt-p { grid-area: p; font: 700 30px/1.05 var(--sign); color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 2px; }
.bk-opt-s { grid-area: s; font: 600 15px/1.25 var(--sans); color: var(--steel); }
.bk-opt-set .bk-opt-s { color: var(--green); font-weight: 700; }
.bk-badge { position: absolute; top: -12px; right: 8px; padding: 4px 8px; border-radius: 4px; background: var(--ink); color: #fff; font: 700 14px/1 var(--sans); }   /* true: the lowest price per book */
.bk-all3 { font: 600 16px/1.3 var(--sans); color: var(--body); }
.bk-all3 a { color: var(--acc); text-underline-offset: .15em; }
@media (hover: hover) and (pointer: fine) { .bk-opt:hover { border-color: var(--ink); } }
#pk-one:checked ~ .bk-pick .bk-opt-one, #pk-set:checked ~ .bk-pick .bk-opt-set { border-color: var(--ink); background: #fff8d6; box-shadow: 0 0 0 1px var(--ink); }
#pk-one:checked ~ .bk-pick .bk-opt-one::before, #pk-set:checked ~ .bk-pick .bk-opt-set::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px #fff; }
#pk-one:focus-visible ~ .bk-pick .bk-opt-one, #pk-set:focus-visible ~ .bk-pick .bk-opt-set { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 1px var(--ink), 0 0 0 6px var(--yellow); }
.bk-facts-set, .bk-card .bk-buy-set { display: none; }
#pk-set:checked ~ .bk-facts-one, #pk-set:checked ~ .bk-buy-one { display: none; }
#pk-set:checked ~ .bk-facts-set { display: grid; }
#pk-set:checked ~ .bk-buy-set { display: flex; }
@media (forced-colors: active) {   /* Windows high contrast drops backgrounds and shadows: mark the chosen tile with an outline */
  #pk-one:checked ~ .bk-pick .bk-opt-one, #pk-set:checked ~ .bk-pick .bk-opt-set { outline: 3px solid Highlight; outline-offset: -6px; }
  #pk-one:checked ~ .bk-pick .bk-opt-one::before, #pk-set:checked ~ .bk-pick .bk-opt-set::before { forced-color-adjust: none; background: Highlight; border-color: Highlight; box-shadow: inset 0 0 0 4px Canvas; }
  #pk-one:focus-visible ~ .bk-pick .bk-opt-one, #pk-set:focus-visible ~ .bk-pick .bk-opt-set { outline: 3px solid CanvasText; outline-offset: 3px; }   /* focus: outside, selection: inside */
}
.bk-sample { margin: calc(var(--s-2) * -1) 0; font: 700 17px/1.3 var(--sans); text-align: center; }
.bk-sample a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-2); color: var(--acc); }
.bk-who { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-2); margin-top: var(--s-2); font-size: 17px; line-height: 1.4; color: var(--body); }   /* the byline: under the why line, so "who made this" is read before the pages */
.bk-who svg { width: 20px; height: 20px; margin-top: 2px; color: var(--acc); }
.bk-who a { color: var(--acc); font-weight: 700; white-space: nowrap; padding: 12px 4px; margin: 0 -4px; }   /* inline padding: a 48px tall hit area, no extra line height */

@media (min-width: 600px) {
  .bk-in { gap: var(--s-4); }
  .bk-pages { gap: var(--s-4); }
  .bk-cap { font-size: 15px; }
}
@media (min-width: 760px) {
  .bk-head h1 { font-size: 44px; }
  .bk-why { font-size: 20px; }
}
@media (min-width: 1000px) {
  .bk-in { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); grid-template-areas: "head card" "proof card"; column-gap: var(--s-7); row-gap: var(--s-6);
    align-items: start; padding-top: var(--s-7); padding-bottom: var(--s-7); }
  .bk-head { grid-area: head; }
  .bk-proof { grid-area: proof; margin: 0; padding: var(--s-4); }
  .bk-card { grid-area: card; align-self: center; padding: var(--pad); gap: var(--s-4); }
  .bk-head h1 { font-size: 54px; }
  .bk-head h1 .h1-k, .bk-kick { font-size: 20px; }
  .bk-why { font-size: 21px; max-width: 34em; }
  .bk-cap { font-size: 16px; }
  .bk-note { font-size: 17px; }
  .bk-facts { font-size: 18px; }
  .bk-all3 { font-size: 17px; }
  .bk-opt { padding: 12px 14px; column-gap: 10px; }
  .bk-opt-t { font-size: 18px; }
  .bk-opt-p { font-size: 38px; }
  .bk-opt-s { font-size: 16px; }
  .bk-sample { font-size: 18px; }
  .bk-who { font-size: 17.5px; }
}
/* short phone screens (in-app browsers and most phones in a browser, up to 840px tall; 2026-11-25: was 760, raised when the
   book/set choice made the card taller): the same content, tighter, so the Buy button stays in view */
@media (max-width: 599px) and (max-height: 840px) {
  .bk-in { gap: 6px; padding-top: var(--s-2); padding-bottom: var(--s-4); }
  .bk-why { margin-top: 6px; }
  .bk-who { margin-top: 6px; }
  .bk-proof { padding: var(--s-2) var(--s-3); }
  .bk-pg img { aspect-ratio: 1; object-fit: cover; object-position: top; }   /* the top of each page: a shorter strip, captions keep their width */
  .bk-note { margin-top: var(--s-1); }
  .bk-card { padding: 8px var(--s-3); gap: 5px; }
  .bk-facts { line-height: 1.3; gap: 0; }
  .bk-note { display: none; }   /* the zoom icons say it; the room goes to the "All 3 books" line */
  .bk-all3 { font-size: 15px; line-height: 1.25; }
  .bk-card { padding-top: 12px; }
  .bk-opt { padding: 8px 8px 4px; row-gap: 0; }
  .bk-badge { top: -10px; padding: 3px 6px; font-size: 13px; }
  .bk-opt-p { font-size: 24px; margin-top: 0; }
  .bk-opt-s { font-size: 15px; line-height: 1.15; }
  .bk-card .bk-facts { font-size: 16px; line-height: 1.22; }
  .bk-sample { margin: -6px 0 -10px; }
}
/* gentle motion: the pages settle in once, a few px, one after another; the price is never faded */
@media (prefers-reduced-motion: no-preference) {
  .bk-pages li { animation: bk-in .45s var(--ease) both; }
  .bk-pages li:nth-child(2) { animation-delay: .06s; } .bk-pages li:nth-child(3) { animation-delay: .12s; } .bk-pages li:nth-child(4) { animation-delay: .18s; }
}
@keyframes bk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== page viewer (base.js): a real page in a dialog. Phones open the book's own Phone-edition screens (one column,
   screen width); "Print page" shows the letter page, which zooms to near print size and pans by scrolling. ===== */
dialog.zv { width: min(100vw - 16px, 920px); max-width: none; max-height: calc(100vh - 16px); padding: 0; border: 0; border-radius: var(--r); background: #fff; box-shadow: var(--sh-2); overflow: auto; }
dialog.zv::backdrop { background: rgba(22,22,22,.82); }
.zv-bar { position: sticky; top: 0; left: 0; z-index: 1; display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); background: #fff; border-bottom: 3px solid var(--ink); }
.zv-bar p { flex: 1; min-width: 0; font: 700 16px/1.25 var(--sans); color: var(--ink); }
.zv-h { display: block; margin-top: 2px; font-weight: 600; font-size: 16px; color: var(--steel); }
.zv-h:empty { display: none; }
.zv-bar button { all: unset; box-sizing: border-box; cursor: pointer; flex: none; min-width: 48px; min-height: 48px; padding: 0 12px; border-radius: var(--r-in);
  font: 700 18px/48px var(--sign); text-transform: uppercase; letter-spacing: .03em; text-align: center; white-space: nowrap; }
.zv-bar button[hidden] { display: none; }
.zv-bar button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); }
.zv-bar .zv-m, .zv-bar .zv-z { background: var(--yellow); color: var(--ink); }
.zv-bar .zv-x { background: var(--ink); color: #fff; }
.zv-box img { display: block; width: 100%; height: auto; }
.zv:not(.ph) .zv-box img { cursor: zoom-in; }
.zv.ph .zv-box img + img { border-top: 2px dashed var(--line); }   /* where one phone screen ends and the next begins */
dialog.zv.big .zv-box img { width: max(960px, 150%); max-width: none; cursor: zoom-out; }   /* zoomed: body text near print size */
.zv-box img { -webkit-user-drag: none; user-select: none; }
@media (hover: hover) and (pointer: fine) { dialog.zv.big .zv-box img { cursor: grab; } dialog.zv.dragging .zv-box img { cursor: grabbing; } }
@media (max-width: 420px) { .zv-bar { padding-left: var(--s-3); } .zv-bar button { padding: 0 10px; font-size: 17px; } }
@media (prefers-reduced-motion: no-preference) { dialog.zv[open] { animation: fade-in .18s ease-out; } }

/* ===== mobile pass (2026-11-27): phones first =====
   1. The buy-button glint slides its gradient inside the button. It used to move the whole ::after box by translateX(100%),
      which pushed the page 300+px wider while it ran; phones then let the page slide sideways (and Chrome kept it wide).
      Same look, same timing: the 14%-wide light band crosses from off the left edge to off the right edge.
   2. Tap targets: the header logo and the stand-alone text links (one link on its own line) get a 44px-high touch area.
      Vertical padding on an inline link does not move the text, so nothing shifts. Links inside sentences are left as they are.
   3. The "All 3 books" line stays 16px on short phones too (it was 15px to fit; the buy button still fits on a 360x780 screen).
   4. The footer legal paragraph is 16px like the rest of the footer (was 14px). */
.btn-buy::after { transform: none; clip-path: none; background-image: linear-gradient(115deg, rgba(255,255,255,0) 47.67%, rgba(255,255,255,.2) 50%, rgba(255,255,255,0) 52.33%);
  background-repeat: no-repeat; background-size: 300% 100%; background-position: 100% 0; }
@keyframes btn-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes btn-sheen-h { from { background-position: 100% 0; } to { background-position: 0 0; } }
.top-in > a:first-child { display: flex; align-items: center; min-height: 44px; }
.bk-free a, .bk-more a, .t > a, th > a { padding-block: 10px; margin-block: -10px; }   /* one link per line: 24-25px text -> 44-45px */
.crumbs a { padding-block: 12px; margin-block: -12px; }
.ft-legal { font-size: 16px; }   /* the footer's one reading paragraph (was 14px) */
.byline time { white-space: nowrap; }   /* articles at 16px: "Nov 2026" stays on one line */
@media (max-width: 599px) and (max-height: 840px) { .bk-all3 { font-size: 16px; } }

/* ===== hub book line (2026-11-27, owner-approved): one compact card under the hub title naming the book, + the free guide ===== */
.hub-book { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "cv t" "go go"; gap: var(--s-2) var(--s-3); align-items: center;
  max-width: 760px; margin-top: var(--s-3); padding: var(--s-3) var(--s-4) var(--s-1); border-radius: var(--r); background: var(--card); box-shadow: var(--sh-1); }
.hub-book-cv { grid-area: cv; display: block; }   /* the cover opens the book page too (touch/mouse; the text link is the keyboard path) */
.hub-book img { width: 44px; height: auto; border-radius: 2px; box-shadow: 0 4px 10px -6px rgba(0,0,0,.6); }
.hub-book-t { grid-area: t; font: 600 17px/1.35 var(--sans); color: var(--ink); }
.hub-book-go { grid-area: go; display: flex; flex-wrap: wrap; column-gap: var(--s-5); }
.hub-book-go a { display: inline-flex; align-items: center; min-height: 44px; font: 700 17px/1.2 var(--sans); }
@media (min-width: 760px) { .hub-book { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "cv t go"; padding: var(--s-3) var(--s-4); }
  .hub-book img { width: 52px; } .hub-book-go { flex-wrap: nowrap; } }

/* ===== sample pages: text version (12_SEO/tools/sample_text.py) ===== */
.spt { margin-top: var(--s-6); }
.spt-in { max-width: 680px; font-size: 18px; line-height: 1.5; color: var(--body); }
.spt-in section { padding-top: var(--s-5); margin-top: var(--s-5); border-top: 1px solid var(--line); }
.spt-in h3 { font: 700 22px/1.25 var(--sans); color: var(--ink); margin: 0 0 var(--s-3); }
.spt-in h3 span { display: block; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--steel); margin-bottom: 2px; }
.spt-in h4 { font: 700 18px/1.3 var(--sans); color: var(--ink); margin: var(--s-4) 0 var(--s-2); }
.spt-in p, .spt-in li { margin: 0 0 var(--s-2); overflow-wrap: anywhere; }
.spt-in ol, .spt-in ul { margin: 0 0 var(--s-3); padding-left: 1.4em; }
.spt-in li > ul { margin-top: var(--s-2); }
.spt-in .spt-note { font-size: 16px; color: var(--steel); }
.spt-in .spt-lead { font-weight: 700; color: var(--ink); }
.spt-in .spt-fig, .spt-in .spt-src { font-size: 16px; color: var(--steel); }
.spt-in .spt-stop li::marker { color: #b8231a; }

/* day 2 (2026-11-13): /how-tos/ landing page section headings */
.hub-in .ht-sec { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.hub-in .ht-sec h2 { font-size: 26px; }
/* 2026-11-19 prices: the header buy button keeps "Get the book · $24.99" on one line on phones (two-decimal prices are wider) */
@media (max-width: 599px) { .top-r a.btn-sm { white-space: nowrap; font-size: 16px; padding: 0 10px; } }
@media (max-width: 370px) { .top-r a.btn-sm { font-size: 14px; padding: 0 8px; } }
