/* Generated by website/build.mjs from src/constants/theme.ts: the Sugar Maple colours, light and dark. */
:root { --background: #F1F5F3; --surface: #FFFFFF; --surface-sunk: #E7EDEA; --hairline: #D7E0DB; --text: #13201A; --secondary: #475750; --tertiary: #5E6E67; --action: #13201A; --on-action: #FFFFFF; --maple: #B8192B; --on-maple: #FFFFFF; --correct: #1C7547; --wrong: #B23A0E; --correct-soft: #E2F1E8; --wrong-soft: #F9E6DE; --leaf-bare: #CBD6D0; --leaf-gold: #C98A12; --leaf-light: #5E9F71; --leaf-green: #2F7D50; --gold-text: #8E5D00; }
@media (prefers-color-scheme: dark) { :root { --background: #0C1310; --surface: #15201B; --surface-sunk: #101915; --hairline: #26322C; --text: #EAF1ED; --secondary: #A6B4AD; --tertiary: #86958E; --action: #EAF1ED; --on-action: #0C1310; --maple: #FF6467; --on-maple: #0C1310; --correct: #4CCB8B; --wrong: #FF8A5C; --correct-soft: #16301F; --wrong-soft: #3A2016; --leaf-bare: #34403A; --leaf-gold: #F0B44A; --leaf-light: #3E8A5F; --leaf-green: #5DC48C; --gold-text: #F0B44A; } }
/* CitizenCA website: Sugar Maple (docs/design.md), 2026. Frost and spruce neutrals, ink for actions, green as the
   one accent, the leaf ramp for the maple, and maple red only in the flag mark. The colour tokens above this line are
   generated from src/constants/theme.ts by build.mjs.

   The look: glass where something floats over the page (the header, chips), capsule buttons, large concentric
   corners (32 on panels, 24 inside them, 18 on rows), display type set lighter and tighter, and the app's own screens
   as the pictures. One continuous frost canvas with a little grain; panels and tiles carry the surfaces.

   Motion comes in two layers, and the page reads completely without either:
   - CSS: the first screen arrives once, and the hero's phones open a little as the page scrolls (scroll-driven, where
     the browser has it), only when motion isn't reduced;
   - main.js adds `.js` (the demos work) and `.motion` (GSAP is loaded and motion isn't reduced). Only `.motion` ever
     hides anything before it animates. */

@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('/fonts/AtkinsonHyperlegibleNext_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('/fonts/AtkinsonHyperlegibleNext_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --display: 'Figtree', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'Atkinson', 'Verdana', system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 8.5vw, 120px);
  /* One radius scale: panels, then what sits inside them, then rows; capsules for anything you press. */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --pill: 999px;
  /* Glass: a translucent surface, a hairline edge and a lit top edge. Solid where transparency is reduced. */
  --glass: color-mix(in srgb, var(--surface) 68%, transparent);
  --glass-edge: color-mix(in srgb, var(--text) 9%, transparent);
  --glass-shine: rgba(255, 255, 255, 0.75);
  --shadow-float: 0 1px 1px rgba(19, 32, 26, 0.04), 0 14px 36px -14px rgba(19, 32, 26, 0.24);
  --shadow-raised: 0 8px 20px rgba(19, 32, 26, 0.1);
  --tint: color-mix(in srgb, var(--leaf-green) 14%, transparent);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header: 84px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --glass: color-mix(in srgb, var(--surface) 62%, transparent);
    --glass-edge: rgba(234, 241, 237, 0.09);
    --glass-shine: rgba(255, 255, 255, 0.06);
    --shadow-float: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
    --shadow-raised: 0 12px 28px rgba(0, 0, 0, 0.45);
    --tint: color-mix(in srgb, var(--leaf-green) 18%, transparent);
  }
}
@media (prefers-reduced-transparency: reduce) { :root { --glass: var(--surface); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header); }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
/* A little grain on the canvas, behind everything, so the frost isn't a flat fill. */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.12 0 0 0 0 0.1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { body::before { opacity: 0.035; filter: invert(1); } }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
[tabindex='-1']:focus { outline: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.6rem, 1.4rem + 4.2vw, 5rem); line-height: 1; letter-spacing: -0.045em; }
h2 { font-weight: 700; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.04em; }
h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.leaf { display: block; overflow: visible; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 760px; }
.muted { color: var(--secondary); }
.aside { font-size: 16px; color: var(--secondary); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 30; padding: 10px 16px; border-radius: var(--pill); background: var(--action); color: var(--on-action); font-family: var(--display); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* The leaf ramp. Leaves are drawn in currentColor, so a class sets the colour and the theme follows. */
/* A leaf grows grey, amber, light green, green (mastered). Red is the brand's maple: decoration and the pressed leaf only. */
.tone-bare { color: var(--leaf-bare); }
.tone-gold { color: var(--leaf-gold); }
.tone-light { color: var(--leaf-light); }
.tone-green { color: var(--leaf-green); }
.tone-red { color: var(--maple); }
.branch { fill: var(--tertiary); }
.bough .bud, .bough .sway { transform-box: view-box; transform-origin: 0 0; }
.l0 { --i: 0; } .l1 { --i: 1; } .l2 { --i: 2; } .l3 { --i: 3; } .l4 { --i: 4; }
.l5 { --i: 5; } .l6 { --i: 6; } .l7 { --i: 7; } .l8 { --i: 8; } .l9 { --i: 9; }

/* ---------- Buttons: capsules ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--pill); background: var(--action); color: var(--on-action); font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.button.small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.button:hover { background: color-mix(in srgb, var(--action) 86%, var(--leaf-green)); text-decoration: none; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 20px 6px 14px; border-radius: var(--pill); background: var(--action); color: var(--on-action); text-decoration: none; }
.store .icon { width: 24px; height: 24px; }
.store > span { display: grid; line-height: 1.1; text-align: left; }
.store-small { font-size: 12px; }
.store-name { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.store.soon { background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 var(--glass-shine); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
.store.soon .store-small { color: var(--secondary); }
@media (max-width: 419px) {
  .store { gap: 8px; min-height: 48px; padding: 6px 14px 6px 12px; }
  .store .icon { width: 20px; height: 20px; }
  .store-name { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, a.store, .choice, .flip-button, .listen, .again, .lang-chip { transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
  .button .icon { transition: transform 240ms var(--ease-out); }
  .button:hover .icon:last-child { transform: translateX(3px); }
  .button:active, a.store:active, .flip-button:active, .listen:active, .again:active, .lang-chip:active { transform: scale(0.97); }
}

/* ---------- Header: a floating glass bar ---------- */
header.site { position: sticky; top: 0; z-index: 20; padding-top: 12px; }
header.site .bar { display: flex; align-items: center; gap: 16px; min-height: 60px; max-width: 1160px; margin-inline: auto; padding: 8px 8px 8px 14px; border-radius: var(--pill); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 var(--glass-shine), var(--shadow-float); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
nav.top { display: flex; gap: 2px; margin-left: auto; }
nav.top a { padding: 8px 13px; border-radius: var(--pill); color: var(--secondary); font-size: 16px; text-decoration: none; }
nav.top a:hover { color: var(--text); background: var(--surface-sunk); }
header.site .button { margin-left: 6px; }
@media (max-width: 979px) { nav.top { display: none; } header.site .button { margin-left: auto; } }
@media (max-width: 380px) { header.site .button { padding: 0 14px; font-size: 15px; } }

footer.site { padding-block: 56px 40px; color: var(--secondary); font-size: 15px; }
footer.site .brand { color: var(--text); font-size: 20px; }
footer.site .brand img { width: 30px; height: 30px; border-radius: 9px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); align-items: start; padding-top: 40px; border-top: 1px solid var(--hairline); }
.footer-brand { display: grid; gap: 14px; max-width: 30rem; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { color: var(--text); }
.footer-more { display: grid; gap: 12px; }
.footer-more a { color: var(--text); }
.footer-fine { margin-top: 40px; font-size: 14px; }
@media (max-width: 859px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
main > section { padding-block: var(--section); }
.band { background: var(--surface); }
.section-head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > p:not(.aside) { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); color: var(--secondary); }
.lede { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--secondary); max-width: 32em; }
.independent { font-size: 15px; color: var(--secondary); max-width: 34em; }

/* The intro: the branch draws itself, the leaves bud one by one, then a wave of growth turns them green. */
@keyframes branch-draw { to { stroke-dashoffset: 0; } }
@keyframes bud { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes autumn {
  0% { color: var(--leaf-bare); }
  28% { color: var(--leaf-gold); }
  60% { color: var(--leaf-light); }
  100% { color: var(--leaf-green); }
}
@keyframes sway { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

/* ---------- The fifteen line ---------- */
.mark .fill { position: absolute; inset: 0; background: var(--action); transform-origin: 50% 100%; transition: background-color 450ms ease; }
.mark:not(.on) .fill { transform: scaleY(0); }

/* ---------- Try a question (the home page and the blog) ---------- */
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.try-copy { display: grid; gap: 18px; align-content: start; }
.try-copy > p:not(.aside) { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); color: var(--secondary); }
@media (min-width: 980px) { .try-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; } .try-copy { position: sticky; top: calc(var(--header) + 24px); } }
.quiz { display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); border-radius: var(--r-xl); background: var(--background); }
.quiz-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.quiz-chapter { display: flex; align-items: center; gap: 12px; }
.quiz-leaf { display: block; transition: transform 600ms var(--spring); }
.quiz-leaf .leaf { width: 40px; height: 40px; }
.quiz-tone { color: var(--leaf-bare); transition: color 650ms ease; }
.quiz-where { display: grid; line-height: 1.25; font-size: 15px; color: var(--secondary); }
.quiz-state { font-family: var(--display); font-weight: 700; color: var(--text); }
.quiz.answered .quiz-leaf { transform: translateY(-4px) rotate(-12deg); }
.quiz.answered .quiz-tone { color: var(--leaf-green); }
.listen, .flip-button, .again { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--pill); background: var(--surface-sunk); color: var(--text); font-family: var(--display); font-weight: 700; font-size: 16px; cursor: pointer; }
.listen:hover, .flip-button:hover, .again:hover { background: var(--hairline); }
.listen[aria-pressed='true'] { background: var(--action); color: var(--on-action); }
.listen[hidden], .flip-button[hidden], .again[hidden] { display: none; }
.quiz-stem { font-family: var(--body); font-weight: 700; font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem); line-height: 1.35; letter-spacing: 0; text-wrap: pretty; }
.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.choice-item, .choice { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); font-size: 18px; line-height: 1.35; }
.js .choice-item { display: block; min-height: 0; padding: 0; background: none; }
.choice { width: 100%; border: 2px solid transparent; text-align: left; cursor: pointer; }
.choice:hover { border-color: var(--hairline); }
.choice[aria-disabled='true'] { cursor: default; }
.choice[aria-disabled='true']:hover { border-color: transparent; }
.letter { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--surface-sunk); color: var(--secondary); font-family: var(--display); font-weight: 700; font-size: 16px; }
.choice-label { flex: 1; }
.mark-right, .mark-wrong { display: none; width: 26px; height: 26px; }
.choice.right { background: var(--correct-soft); border-color: var(--correct); }
.choice.right .letter { background: var(--correct); color: var(--surface); }
.choice.right .mark-right { display: block; color: var(--correct); }
.choice.wrong { background: var(--wrong-soft); border-color: var(--wrong); }
.choice.wrong .letter { background: var(--wrong); color: var(--surface); }
.choice.wrong .mark-wrong { display: block; color: var(--wrong); }
.choice.other { color: var(--secondary); }
.verdict { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.verdict .icon { width: 30px; height: 30px; }
.verdict.is-right { color: var(--correct); }
.verdict.is-wrong { color: var(--wrong); }
.answer { border-radius: var(--r-md); background: var(--surface); }
.answer summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-family: var(--display); font-weight: 700; cursor: pointer; list-style: none; }
.answer summary::-webkit-details-marker { display: none; }
.answer[open] summary .icon { transform: rotate(180deg); }
.answer-body { display: grid; gap: 12px; padding: 0 20px 20px; font-size: 17px; line-height: 1.5; }
.answer-line { font-family: var(--display); font-weight: 700; font-size: 18px; }
.source-line { font-size: 15px; color: var(--secondary); }
.js .quiz .answer summary { display: none; }
.js .quiz .answer-body { padding-top: 20px; }
.again { justify-self: start; }
@media (prefers-reduced-motion: no-preference) { .quiz.answered .answer-body > * { animation: rise 0.5s var(--ease-out) both; } .quiz.answered .answer-body > :nth-child(2) { animation-delay: 0.06s; } .quiz.answered .answer-body > :nth-child(3) { animation-delay: 0.12s; } .verdict .icon { animation: pop 0.45s var(--spring) both; } }

/* ---------- Fact cards and the road (the blog) ---------- */
.chapters { flex: 1; list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; align-content: space-between; }
.chapters li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; font-size: 15px; line-height: 1.3; }
.flip { display: grid; gap: 12px; margin-top: 6px; }
.flip-stage { display: grid; gap: 12px; }
.flip-face { display: grid; gap: 12px; align-content: start; min-height: 168px; padding: 20px; border-radius: var(--r-md); background: var(--background); border: 1px solid var(--hairline); }
.flip-label { font-size: 13px; color: var(--secondary); }
.flip-text { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.flip-back p { font-size: 16px; line-height: 1.45; }
.js .flip-stage { grid-template-areas: 'card'; perspective: 1100px; cursor: pointer; }
.js .flip-face { grid-area: card; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 700ms var(--ease-out); }
.js .flip-back { transform: rotateY(180deg); }
.js .flip.flipped .flip-front { transform: rotateY(-180deg); }
.js .flip.flipped .flip-back { transform: rotateY(0deg); }
.flip-button { justify-self: start; }
@keyframes wave { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
.path { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.path li { position: relative; padding: 5px 0 5px 28px; font-size: 15px; line-height: 1.35; }
.path li::before { content: ''; position: absolute; left: 3px; top: 10px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--text); background: var(--surface); }
.path li::after { content: ''; position: absolute; left: 8px; top: 24px; bottom: -8px; width: 2px; background: var(--hairline); }
.path li:last-child::after { display: none; }
.path li:last-child { font-family: var(--display); font-weight: 700; }
.path li:last-child::before { border-color: var(--maple); background: var(--maple); }

/* ---------- Ticks (pricing and the blog) ---------- */
.plan { display: grid; gap: 22px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: var(--background); }
.plan h3 { font-size: 26px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--leaf-green); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 980px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; } .faq-head { position: sticky; top: calc(var(--header) + 24px); } }
.faq-head { display: grid; gap: 18px; align-content: start; }
.faq-head p { color: var(--secondary); max-width: 22em; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--glass-edge); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.25; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 22px; height: 22px; padding: 7px; box-sizing: content-box; border-radius: var(--pill); background: var(--surface-sunk); color: var(--text); }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-a { display: grid; gap: 12px; max-width: 42rem; padding: 0 24px 24px; color: var(--secondary); }
.faq-a a { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }
  .faq-list summary .icon, .answer summary .icon { transition: transform 240ms var(--ease-out); }
  .faq-list details::details-content { height: 0; overflow: clip; transition: height 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}

/* ---------- Official sources ---------- */
.sources-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 980px) { .sources-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; } .sources-grid .section-head { margin: 0; } }
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sources a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--glass-edge); text-decoration: none; }
.source-title { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; text-decoration: underline; text-decoration-color: var(--hairline); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sources a:hover .source-title { text-decoration-color: currentColor; }
.source-about { grid-column: 1; color: var(--secondary); font-size: 16px; }
.sources .icon { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 22px; height: 22px; color: var(--secondary); }
@media (prefers-reduced-motion: no-preference) { .sources a .icon { transition: transform 240ms var(--ease-out); } .sources a:hover .icon { transform: translate(2px, -2px); } }

/* ---------- Motion states (main.js adds .motion only with GSAP loaded and motion allowed) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.motion .path li { opacity: 0; transform: translateX(-10px); }

/* ---------------------------------------------------------------------------------------------------------------
   The home page (website/src/home.mjs)
   --------------------------------------------------------------------------------------------------------------- */
/* Phones are dark glass in either theme, so the frame keeps one colour. */
:root { --device-frame: #0e1411; --device-edge: #2b3631; }
.home main > section { padding-block: var(--section); }
.home .band { background: none; }

/* A phone with a real screen. */
.device { position: relative; width: 100%; aspect-ratio: 780 / 1688; padding: 9px; border-radius: 48px; background: var(--device-frame); box-shadow: inset 0 0 0 1.5px var(--device-edge), 0 44px 80px -36px rgba(12, 19, 16, 0.5), 0 18px 36px -18px rgba(12, 19, 16, 0.32); }
.device picture, .device img { width: 100%; height: 100%; border-radius: 40px; object-fit: cover; }
/* The top of a phone rising out of a tile: the tile's own edge cuts it. */
.device-crop { aspect-ratio: auto; height: 100%; padding: 8px 8px 0; border-radius: 40px 40px 0 0; box-shadow: inset 0 0 0 1.5px var(--device-edge), 0 -6px 40px -12px rgba(12, 19, 16, 0.3); }
.device-crop picture, .device-crop img { border-radius: 32px 32px 0 0; object-position: top; }

/* ---------- The first screen ---------- */
.home .hero { position: relative; isolation: isolate; padding-block: clamp(36px, 6vw, 72px) 0; overflow: clip; }
/* The light behind the phones: the leaf ramp, blurred into the frost. */
.hero::before { content: ''; position: absolute; z-index: -1; left: 50%; bottom: -8%; width: min(1500px, 170vw); height: 78%; transform: translateX(-50%); background:
  radial-gradient(34% 46% at 50% 62%, color-mix(in srgb, var(--leaf-green) 30%, transparent), transparent 72%),
  radial-gradient(26% 34% at 27% 74%, color-mix(in srgb, var(--leaf-gold) 22%, transparent), transparent 72%),
  radial-gradient(26% 34% at 73% 70%, color-mix(in srgb, var(--leaf-light) 26%, transparent), transparent 72%); filter: blur(24px); }
.hero-copy { display: grid; justify-items: center; gap: 22px; text-align: center; }
.hero h1 { max-width: 12.5em; font-size: clamp(2.7rem, 1.2rem + 4.6vw, 5.4rem); }
.hero .lede { max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px 0 12px; border-radius: var(--pill); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 var(--glass-shine); font-family: var(--display); font-weight: 600; font-size: 15px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.hero-chip .icon { width: 18px; height: 18px; color: var(--leaf-green); }

/* Three phones on one stage, the middle one forward. The stage crops them and fades into the page. */
.hero-stage { --w: clamp(228px, 23vw, 318px); position: relative; height: calc(var(--w) * 1.92); margin-top: clamp(40px, 5vw, 64px); }
.stage-phones { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.stage-phone { position: absolute; top: 0; left: 50%; width: var(--w); }
.stage-center { z-index: 2; margin-left: calc(var(--w) / -2); }
.stage-left, .stage-right { top: calc(var(--w) * 0.2); width: calc(var(--w) * 0.9); }
.stage-left { --tilt: -7deg; --from: 36%; margin-left: calc(var(--w) * -1.32); }
.stage-right { --tilt: 7deg; --from: -36%; margin-left: calc(var(--w) * 0.42); }
.stage-tilt { transform: rotate(var(--tilt, 0deg)); }
.stage-left .device, .stage-right .device { filter: saturate(0.92); }
.glass-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; max-width: 280px; margin: 0; padding: 12px 16px; border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 var(--glass-shine), var(--shadow-float); font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.3; -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
.glass-chip > .icon { width: 22px; height: 22px; padding: 8px; box-sizing: content-box; border-radius: var(--pill); background: var(--tint); color: var(--leaf-green); }
.chip-leaves { flex-direction: column; align-items: flex-start; gap: 8px; right: calc(50% + var(--w) * 0.34); top: calc(var(--w) * 1.02); }
.chip-leafrow { display: flex; gap: 2px; }
.chip-leafrow .leaf { width: 19px; height: 19px; }
.chip-listen { left: calc(50% + var(--w) * 0.38); top: calc(var(--w) * 0.46); }
@media (max-width: 759px) {
  .hero-stage { --w: min(62vw, 250px); height: calc(var(--w) * 1.7); }
  .stage-left { margin-left: calc(var(--w) * -1.12); }
  .stage-right { margin-left: calc(var(--w) * 0.22); }
  .chip-listen { display: none; }
  .chip-leaves { right: auto; left: 50%; top: auto; bottom: 14%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 48px); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.8s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .stage-center .stage-tilt { animation: phone-rise 1.1s var(--ease-out) 0.2s both; }
  .stage-left .stage-tilt, .stage-right .stage-tilt { animation: phone-fan 1.2s var(--ease-out) 0.45s both; }
  .glass-chip { animation: chip-in 0.7s var(--spring) 1s both; }
  .chip-listen { animation-delay: 1.15s; }
}
@keyframes phone-rise { from { opacity: 0; transform: translateY(90px); } }
@keyframes phone-fan { from { opacity: 0; transform: translateX(var(--from)) translateY(40px) rotate(0deg); } to { opacity: 1; transform: rotate(var(--tilt)); } }
@keyframes chip-in { from { opacity: 0; scale: 0.9; translate: 0 12px; } }
/* As the page scrolls on, the side phones open out and the middle one rises, where the browser can tie it to scroll. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage-phone { animation: linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    .stage-left { animation-name: open-left; }
    .stage-right { animation-name: open-right; }
    .stage-center { animation-name: lift; }
  }
}
@keyframes open-left { to { transform: translate(-12%, 4%) rotate(-3deg); } }
@keyframes open-right { to { transform: translate(12%, 4%) rotate(3deg); } }
@keyframes lift { to { transform: translateY(-5%); } }

/* ---------- The test in numbers ---------- */
.home .numbers { padding-block: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 48px); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; margin: 0; }
.numbers-grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.numbers dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(3.6rem, 2rem + 4.6vw, 6.75rem); line-height: 0.88; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.numbers dt { max-width: 13em; font-size: 16px; color: var(--secondary); }
.numbers-ours dd { color: var(--leaf-green); }
.numbers .independent { max-width: 56em; margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 859px) { .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- The bento: one tile a feature, each with its real screen ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.tile { position: relative; display: flex; flex-direction: column; gap: 22px; min-height: 0; padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.4vw, 32px) 0; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--glass-edge); overflow: hidden; isolation: isolate; }
.tile-copy { display: grid; gap: 8px; max-width: 30rem; }
.tile h3 { font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.1; letter-spacing: -0.03em; }
.tile p { color: var(--secondary); font-size: 17px; line-height: 1.5; }
.tile-shot { display: flex; justify-content: center; height: 260px; margin-top: auto; }
.tile-shot .device-crop { width: min(78%, 270px); }
.tint-green { background: radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--leaf-green) 24%, var(--surface)), var(--surface) 78%); }
.tint-sunk { background: var(--surface-sunk); }
/* The one dark tile, the same in both themes. */
.tint-ink { background: radial-gradient(80% 90% at 85% 100%, #1f3a2c, #13201a 70%); color: #eaf1ed; box-shadow: inset 0 0 0 1px rgba(234, 241, 237, 0.08); }
.tint-ink p { color: #b4c1ba; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile .device-crop { transition: transform 600ms var(--ease-out); }
  .tile:hover .device-crop { transform: translateY(-8px); }
}

/* The languages tile: the app's explanation, then its translation in a quiet box, one language at a time. */
.lang-demo { display: grid; gap: 14px; margin-top: auto; padding-bottom: clamp(22px, 2.4vw, 32px); }
.lang-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-picker[hidden] { display: none; }
.lang-chip { min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--pill); background: var(--surface); color: var(--text); font-family: var(--body); font-size: 15px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--glass-edge); }
.lang-chip:hover { background: var(--background); }
.lang-chip[aria-pressed='true'] { background: var(--action); color: var(--on-action); box-shadow: none; }
.lang-card { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); }
.lang-q { font-weight: 700; font-size: 17px; line-height: 1.4; }
.lang-en { font-size: 16px; line-height: 1.5; color: var(--text); }
.lang-tr { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-sunk); }
.lang-tr[hidden] { display: none; }
.lang-tr p:last-child { font-size: 16px; line-height: 1.6; color: var(--text); }
.lang-name { font-size: 13px; color: var(--secondary); }
@media (prefers-reduced-motion: no-preference) { .lang-tr { animation: rise 0.45s var(--ease-out) both; } }

@media (min-width: 700px) and (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .tile-pass, .tile-ask, .tile-daily { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(340px, auto); grid-template-areas:
    'pass pass pass pass tests tests'
    'pass pass pass pass explain explain'
    'language language ask ask ask ask'
    'language language lesson lesson map map'
    'oath oath oath daily daily daily'; }
  .tile-pass { grid-area: pass; } .tile-tests { grid-area: tests; } .tile-explain { grid-area: explain; }
  .tile-language { grid-area: language; } .tile-ask { grid-area: ask; } .tile-lesson { grid-area: lesson; }
  .tile-map { grid-area: map; } .tile-oath { grid-area: oath; } .tile-daily { grid-area: daily; }
  .tile-pass .tile-copy { max-width: 34rem; }
  .tile-pass .tile-shot { height: 520px; }
  .tile-pass .device-crop { width: min(70%, 360px); }
  .tile-pass h3 { font-size: clamp(2rem, 1.2rem + 1.6vw, 2.8rem); letter-spacing: -0.04em; }
  .tile-pass p { font-size: 19px; }
  /* Wide tiles put the words beside the phone. */
  .tile-ask, .tile-oath, .tile-daily { flex-direction: row; align-items: stretch; }
  .tile-ask .tile-copy, .tile-oath .tile-copy, .tile-daily .tile-copy { flex: 1 1 55%; align-self: center; padding-bottom: clamp(22px, 2.4vw, 32px); }
  .tile-ask .tile-shot, .tile-oath .tile-shot, .tile-daily .tile-shot { flex: 0 0 42%; height: 300px; margin-top: auto; }
  .tile-ask .device-crop, .tile-oath .device-crop, .tile-daily .device-crop { width: min(100%, 240px); }
  .tile-ask h3 { font-size: clamp(1.6rem, 1.2rem + 0.9vw, 2.2rem); }
}

/* ---------- Try a question, on the home page ---------- */
.home .quiz { background: var(--surface); box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow-float); }
.home .choice-item, .home .choice { background: var(--background); }
.home .answer { background: var(--background); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 64px; }
.why-grid article { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; align-content: start; }
.why-icon { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--tint); color: var(--leaf-green); }
.why-icon .icon { width: 26px; height: 26px; }
.why-grid h3 { font-size: 1.45rem; letter-spacing: -0.025em; }
.why-grid p { color: var(--secondary); max-width: 30em; }
@media (max-width: 759px) { .why-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Pricing: free, and Pro paid weekly or once ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.plan-free, .plan-pro { display: grid; gap: 20px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--glass-edge); }
.plan-free h3, .plan-pro h3 { font-size: 1.6rem; letter-spacing: -0.03em; }
.plan-price { font-family: var(--display); font-weight: 600; font-size: 3.2rem; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.plan-pro { background: radial-gradient(70% 80% at 100% 0%, color-mix(in srgb, var(--leaf-green) 20%, var(--surface)), var(--surface) 70%); box-shadow: inset 0 0 0 2px var(--leaf-green), var(--shadow-float); }
.plan-pro-head { display: grid; gap: 10px; }
.plan-pro-head p { color: var(--secondary); max-width: 34em; }
.plan-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--background); }
.plan-option.is-best { background: var(--surface); box-shadow: inset 0 0 0 2px var(--text); }
.plan-option-name { display: grid; gap: 4px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.015em; }
.plan-tag { font-family: var(--body); font-weight: 700; font-size: 14px; letter-spacing: 0; color: var(--correct); }
.plan-option-price { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.035em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-option-price span { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--secondary); }
.plan-option-note { grid-column: 1 / -1; font-size: 15px; color: var(--secondary); }

/* ---------- The close: one panel with the app rising out of it ---------- */
.home .closing { padding-block: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 56px); }
.closing-panel { position: relative; display: grid; gap: 24px; padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 72px) 0; border-radius: 40px; background: radial-gradient(70% 100% at 82% 100%, color-mix(in srgb, var(--leaf-green) 28%, var(--surface)), var(--surface) 72%); box-shadow: inset 0 0 0 1px var(--glass-edge); overflow: hidden; }
.closing-copy { display: grid; gap: 20px; justify-items: start; padding-bottom: clamp(24px, 4vw, 72px); }
.closing-copy h2 { max-width: 13em; }
.closing-copy p { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); color: var(--secondary); }
.closing-copy .hero-actions { justify-content: flex-start; }
.closing-device { display: flex; justify-content: center; align-items: flex-end; height: 340px; overflow: hidden; }
.closing-device .device { width: min(72%, 290px); align-self: flex-start; }
@media (min-width: 900px) {
  .closing-panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .closing-device { height: 460px; }
}

/* ---------- Documents: Privacy, Terms, Support, account deletion ---------- */
.doc { display: grid; gap: 16px; padding-block: 40px 72px; }
.doc h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); }
.doc h2 { margin-top: 18px; font-size: 26px; letter-spacing: -0.02em; }
.doc .box { display: grid; gap: 10px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.doc .table { overflow-x: auto; border-radius: var(--r-md); background: var(--surface); }
@media (max-width: 559px) { body { font-size: 17px; } }

/* ==========================================================================================================
   The blog (src/blog): posts, the index, and the home page's "From the blog". Same Sugar Maple world as the home
   page: frost and spruce neutrals, ink for actions, maple red only for passes and wins, the leaf ramp for progress.
   Motion follows the home page's two layers: CSS intros gated on scripting and motion, and blog.js for the rest.
   ========================================================================================================== */

:root { --on-gold: var(--text); --measure: 42rem; }
@media (prefers-color-scheme: dark) { :root { --on-gold: var(--background); } }

/* ---------- Header: the Blog link stays visible on phones wide enough for it ---------- */
nav.top a[aria-current='page'] { color: var(--text); background: var(--surface-sunk); }
@media (max-width: 979px) {
  nav.top { display: flex; margin-left: auto; }
  nav.top a:not(.keep) { display: none; }
  header.site .button { margin-left: 8px; }
}
@media (max-width: 419px) {
  header.site .bar { gap: 10px; padding-left: 10px; }
  header.site .brand { gap: 8px; font-size: 20px; }
  header.site .brand img { width: 30px; height: 30px; }
  nav.top a.keep { padding: 8px 6px; font-size: 15px; }
  header.site .button { margin-left: 0; padding: 0 12px; font-size: 15px; }
}
@media (max-width: 359px) { nav.top { display: none; } header.site .button { margin-left: auto; } }

.icon.flip-x { transform: scaleX(-1); }
/* Reduced motion: everything in the blog changes state at once, with no transitions (colours included, as in the
   app) and no keyframe intros. Nothing in the blog is ever pinned or scrubbed. */
@media (prefers-reduced-motion: reduce) {
  .post *, .post *::before, .post *::after, .blog-list *, .from-blog *, .blog-hero * { transition: none !important; animation: none !important; }
}
/* Parts that only work with JavaScript start hidden; a class that sets display must never reveal them early. */
.post [hidden] { display: none !important; }
.grow-1 { flex-grow: 1; } .grow-2 { flex-grow: 2; } .grow-3 { flex-grow: 3; } .grow-4 { flex-grow: 4; } .grow-5 { flex-grow: 5; }
.grow-6 { flex-grow: 6; } .grow-7 { flex-grow: 7; } .grow-8 { flex-grow: 8; } .grow-9 { flex-grow: 9; } .grow-10 { flex-grow: 10; }
.grow-11 { flex-grow: 11; } .grow-12 { flex-grow: 12; }

/* ---------- Breadcrumb ---------- */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; font-size: 15px; color: var(--secondary); }
.crumbs li { flex: none; white-space: nowrap; }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: var(--tertiary); }
.crumbs a { color: var(--secondary); text-decoration-color: var(--hairline); }
.crumbs a:hover { color: var(--text); text-decoration-color: currentColor; }
.crumbs [aria-current] { flex: 0 1 auto; min-width: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; }

/* ---------- The scheduled banner (preview builds only) ---------- */
.scheduled { background: var(--surface-sunk); border-bottom: 1px solid var(--hairline); }
.scheduled p { padding: 14px 0; font-size: 15px; }
.scheduled strong { color: var(--gold-text); font-family: var(--display); font-weight: 700; }

/* ---------- Post hero ---------- */
.post-hero { padding-block: clamp(20px, 3vw, 36px) clamp(32px, 5vw, 64px); overflow: hidden; overflow: clip; }
.post-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 40px); margin-top: clamp(24px, 4vw, 48px); align-items: center; }
.post-hero-copy { display: grid; gap: 20px; }
.post-title { font-size: clamp(2.4rem, 1.35rem + 3.4vw, 4.25rem); line-height: 1; letter-spacing: -0.035em; max-width: 14em; }
.post-dek { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--secondary); max-width: 34em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 15px; color: var(--secondary); }
.post-meta > span + span::before { content: ''; display: inline-block; width: 1px; height: 1em; margin: 0 14px; vertical-align: -0.15em; background: var(--hairline); }
.post-meta time { color: var(--text); }
.post-hero-art { display: grid; place-items: center; min-width: 0; }
.post-hero-art .art { width: 100%; max-width: 540px; height: auto; overflow: visible; }
@media (min-width: 980px) {
  .post-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); }
}
@media (max-width: 979px) { .post-hero-art .art { max-width: 460px; } }

/* ---------- Post layout: a reading column, with the contents beside it on wide screens ---------- */
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: clamp(56px, 8vw, 104px); }
.post-body { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 64px); align-content: start; }
.prose { min-width: 0; }
@media (min-width: 1100px) {
  .post-grid.has-toc { grid-template-columns: 236px minmax(0, 1fr); gap: 0 64px; }
  .post-rail { position: relative; }
  .post-rail .toc { position: sticky; top: 28px; max-height: calc(100vh - 56px); overflow: auto; }
}

/* The contents: a box above the post on narrow screens, a quiet list in the rail on wide ones. */
.toc { display: grid; gap: 12px; padding: 18px 20px; border-radius: 20px; background: var(--surface); font-size: 16px; max-width: var(--measure); }
.toc-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 16px; }
.toc-leaf { width: 26px; height: 26px; }
.toc-leaf g { transition: color 650ms ease; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 1.9em minmax(0, 1fr); padding: 6px 8px; margin-inline: -8px; border-radius: 10px; color: var(--secondary); text-decoration: none; line-height: 1.35; }
.toc a::before { content: counter(toc); color: var(--tertiary); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--text); background: var(--surface-sunk); }
.toc a[aria-current='true'] { color: var(--text); background: var(--surface-sunk); font-weight: 700; }
@media (min-width: 1100px) {
  .post-rail .toc { padding: 4px 0 0; background: none; border-radius: 0; font-size: 15px; }
  .post-rail .toc a { margin-inline: 0 0; }
}
[data-progress='1'] .toc-leaf g { color: var(--leaf-gold); }
[data-progress='2'] .toc-leaf g { color: var(--leaf-light); }
[data-progress='3'] .toc-leaf g { color: var(--leaf-green); }

/* ---------- Prose ---------- */
.prose { font-size: 19px; line-height: 1.65; }
.prose > * { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.35rem); line-height: 1.08; letter-spacing: -0.025em; scroll-margin-top: 28px; }
.prose h3 { margin-top: 1.8em; font-size: 1.35rem; scroll-margin-top: 28px; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose > :first-child { margin-top: 0; }
.prose > p:first-child { font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.3rem); line-height: 1.6; }
.prose > ul, .prose > ol { padding-left: 1.3em; display: grid; gap: 0.45em; }
.prose > ul > li::marker, .prose > ol > li::marker { color: var(--tertiary); }
.post h4 { margin: 0; }
.prose strong { font-weight: 700; }
.prose a { text-decoration-color: var(--tertiary); }
.prose a:hover { text-decoration-color: currentColor; }
.note { padding: 18px 22px; border-radius: 18px; background: var(--surface); border-left: 4px solid var(--leaf-green); font-size: 17px; line-height: 1.55; }
.table-wrap { overflow-x: auto; border-radius: 18px; background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table, .mt-answers table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.4; }
.prose th, .prose td, .mt-answers th, .mt-answers td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.prose thead th, .mt-answers thead th { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--secondary); }
.prose tbody th, .mt-answers tbody th { font-weight: 700; }
.prose tbody tr:last-child > *, .mt-answers tbody tr:last-child > * { border-bottom: 0; }
[data-fact] { font-variant-numeric: tabular-nums; }

/* ---------- Try it: the hands-on elements ---------- */
.prose > .tryit, .prose > .guide-bar { max-width: none; margin-block: 2.2em; }
.tryit { display: grid; gap: 22px; padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--hairline); font-size: 18px; line-height: 1.5; }
.prose > .tryit:not(.wide) { max-width: var(--measure); }
.tryit-head { display: grid; gap: 8px; }
.tryit-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--secondary); }
.tryit-leaf { width: 26px; height: 26px; }
.tryit h3 { margin: 0; font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; }
.tryit-intro { color: var(--secondary); max-width: 40em; }
.tryit input[type='range'] { width: 100%; height: 44px; margin: 0; accent-color: var(--action); cursor: pointer; }
.field { display: grid; gap: 8px; }
.field label, .pt-control label, .gauge-control label, .pace-control label { font-family: var(--display); font-weight: 700; font-size: 16px; }
.tryit input[type='date'] { min-height: 52px; padding: 0 14px; border: 2px solid var(--hairline); border-radius: 14px; background: var(--background); color: var(--text); font: inherit; font-size: 17px; color-scheme: light dark; }
.tryit input[type='date']:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-color: var(--text); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--hairline); border-radius: 999px; background: var(--background); color: var(--text); font-family: var(--display); font-weight: 700; font-size: 15px; cursor: pointer; }
.chip:hover { border-color: var(--tertiary); }
.chip[aria-pressed='true'] { background: var(--action); border-color: var(--action); color: var(--on-action); }
@media (prefers-reduced-motion: no-preference) { .chip { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease; } .chip:active { transform: scale(0.97); } }

/* The pass gauge */
.gauge { display: grid; gap: 18px; }
.gauge-readout { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.gauge-score { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 2.6rem + 3vw, 5rem); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; min-width: 1.15em; }
.gauge-of { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--secondary); }
.gauge-verdict { align-self: center; margin-left: auto; padding: 6px 14px; border-radius: 999px; background: var(--maple); color: var(--on-maple); font-family: var(--display); font-weight: 700; font-size: 16px; }
.gauge.failing .gauge-verdict { background: var(--wrong-soft); color: var(--wrong); }
.gauge-marks { --gap: clamp(3px, 0.6vw, 6px); position: relative; display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: var(--gap); padding-top: 10px; }
.gauge-marks .mark { position: relative; height: clamp(48px, 7vw, 72px); border-radius: clamp(5px, 0.7vw, 9px); background: var(--surface-sunk); overflow: hidden; cursor: pointer; }
.gauge-marks .mark .fill { position: absolute; inset: 0; background: var(--action); transform-origin: 50% 100%; transition: transform 260ms var(--ease-out), background-color 300ms ease; }
.gauge-marks .mark:not(.on) .fill { transform: scaleY(0); }
.gauge-marks.passed .mark.on .fill { background: var(--leaf-green); }
.gauge-line { position: absolute; top: 0; left: calc(75% + var(--gap) / 4 - 1.5px); width: 3px; bottom: -8px; border-radius: 2px; background: var(--text); pointer-events: none; }
.gauge-out { color: var(--secondary); }
.gauge-control { display: grid; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .gauge-marks .mark .fill { transition: none; } }

/* The blog's quiz: one question at a time once scripted */
.bquiz { display: grid; gap: 22px; }
.bquiz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.bq { display: grid; gap: 14px; }
.bq + .bq { padding-top: 28px; border-top: 1px solid var(--hairline); }
.js .bq + .bq { padding-top: 0; border-top: 0; }
.js .bq:not(.current) { display: none; }
.bq-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 15px; color: var(--secondary); }
.bq-chapter { font-family: var(--display); font-weight: 700; color: var(--text); }
.bq-stem { font-family: var(--body); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.35; letter-spacing: 0; outline: none; }
.bq .choice-item, .bq .choice { background: var(--background); }
.bq-choices.tf .choice-label { font-family: var(--display); font-weight: 700; }
.js .bq .answer summary { display: none; }
.js .bq .answer-body { padding-top: 20px; }
.bq .answer { background: var(--background); }
.bquiz-trail { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bquiz-trail .leaf { width: 30px; height: 30px; }
.bq-dot .ld-line { fill: none; stroke: currentColor; stroke-width: 4; stroke-linejoin: round; opacity: 0; }
.bq-dot.now .ld-fill { opacity: 0; }
.bq-dot.now .ld-line { opacity: 1; color: var(--text); }
.bq-dot.right .ld-fill g, .bq-dot.right .tone-bare { color: var(--leaf-green); }
.bq-dot.missed .ld-fill { opacity: 0; }
.bq-dot.missed .ld-line { opacity: 1; color: var(--wrong); }
@media (prefers-reduced-motion: no-preference) { .bq-dot .leaf { transition: transform 500ms var(--spring); } .bq-dot.right .leaf, .bq-dot.missed .leaf { transform: translateY(-3px) rotate(-8deg); } .bq-dot g { transition: color 650ms ease; } }
.bquiz-nav { display: flex; justify-content: flex-end; }
.bquiz-nav[hidden] { display: none; }
.bquiz-end { display: grid; gap: 18px; padding: clamp(20px, 3vw, 28px); border-radius: 22px; background: var(--background); outline: none; }
.bquiz-end[hidden] { display: none; }
.bquiz-score { display: flex; align-items: baseline; gap: 12px; }
.bquiz-big { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 2.6rem + 3vw, 5rem); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bquiz-of { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--secondary); }
.bquiz-line { display: grid; gap: 10px; }
.score-line { --gap: 3px; position: relative; display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: var(--gap); }
.score-line::after { content: ''; position: absolute; top: -6px; bottom: -6px; left: calc(var(--pass-at, 75%) - 1px); width: 2px; border-radius: 1px; background: var(--text); }
.score-line .mark { position: relative; height: 40px; border-radius: 5px; background: var(--surface-sunk); overflow: hidden; }
.score-line.passed .mark.on .fill { background: var(--leaf-green); }
@media (prefers-reduced-motion: no-preference) { .score-line .mark .fill { transition: transform 360ms var(--ease-out), background-color 300ms ease; transition-delay: calc(var(--d, 0) * 45ms); } }
.bquiz-line-note { font-size: 16px; color: var(--secondary); }
.bquiz-message { font-size: 18px; }
.bquiz-end .again { justify-self: start; }

/* Pacing: the dial and the time each question gets */
.pace { display: grid; gap: 24px; align-items: center; }
.pace-art { display: grid; place-items: center; }
.pace-dial { width: min(100%, 340px); height: auto; }
.pace-side { display: grid; gap: 18px; }
.pace-control { display: grid; gap: 6px; }
.pace-out { margin: 0; display: grid; gap: 10px; }
.pace-out > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.pace-out dt { color: var(--secondary); }
.pace-out dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pace-out > div:first-child dd { font-size: 1.9rem; }
.pace-note { color: var(--secondary); font-size: 16px; }
@media (min-width: 760px) { .pace { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; } }

/* Chapters: the bough of leaves sized by their share, tabs and a panel */
.explorer { display: grid; gap: 22px; }
.xp-art { margin-inline: -8px; }
.xp-bough { width: 100%; height: auto; overflow: visible; }
.js .xp-bough .bud { cursor: pointer; }
.xp-bough .tone { transition: color 500ms ease; }
.js .xp-bough .tone { color: var(--leaf-green); }
.js .xp-bough .bud.selected .tone { color: var(--maple); }
.js .xp-bough .bud:hover .tone { color: var(--leaf-gold); }
.js .xp-bough .bud.selected:hover .tone { color: var(--maple); }
@media (prefers-reduced-motion: no-preference) { .xp-bough .bud { transition: transform 500ms var(--spring); } .js .xp-bough .bud.selected { transform: scale(1.12); } }
.xp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.xp-tabs[hidden] { display: none; }
.xp-tabs [role='tab'] { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border: 2px solid var(--hairline); border-radius: 999px; background: var(--background); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.xp-tabs [role='tab']:hover { border-color: var(--tertiary); }
.xp-tabs [aria-selected='true'] { background: var(--action); border-color: var(--action); color: var(--on-action); }
.tab-num, .xp-num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--surface-sunk); color: var(--text); font-family: var(--display); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.xp-tabs [aria-selected='true'] .tab-num { background: var(--maple); color: var(--on-maple); }
.xp-panels { display: grid; gap: 28px; }
.xp-panel { display: grid; gap: 12px; align-content: start; }
.xp-panel + .xp-panel { padding-top: 28px; border-top: 1px solid var(--hairline); }
.js .xp-panel + .xp-panel { padding-top: 0; border-top: 0; }
.js .xp-panel[hidden] { display: none; }
.xp-panel h4 { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); letter-spacing: -0.015em; }
.xp-share { font-size: 17px; }
.xp-note { font-size: 16px; color: var(--secondary); }
.xp-label { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--secondary); }
.xp-sections { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.xp-sections li { padding: 6px 12px; border-radius: 999px; background: var(--background); font-size: 15px; line-height: 1.3; }
.xp-app { font-size: 16px; color: var(--secondary); }
@media (prefers-reduced-motion: no-preference) { .js .xp-panel.shown { animation: rise 0.45s var(--ease-out) both; } }

/* The guide's pages as one bar */
.guide-bar { margin: 0; display: grid; gap: 16px; }
.gb-track { display: flex; gap: 3px; height: 52px; }
.gb-seg { display: grid; place-items: center; min-width: 0; border-radius: 8px; font-family: var(--display); font-weight: 800; font-size: 15px; transform-origin: 0 50%; }
.gb-seg.tone-green { background: var(--leaf-green); color: var(--on-maple); }
.gb-seg.tone-gold { background: var(--leaf-gold); color: var(--on-gold); }
.gb-seg.tone-red { background: var(--maple); color: var(--on-maple); }
.gb-key { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 6px 24px; font-size: 15px; }
.gb-key li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.gb-swatch { width: 12px; height: 12px; border-radius: 4px; }
.gb-swatch.tone-green { background: var(--leaf-green); }
.gb-swatch.tone-gold { background: var(--leaf-gold); }
.gb-swatch.tone-red { background: var(--maple); }
.gb-pages { font-family: var(--display); font-weight: 700; color: var(--secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.motion .guide-bar:not(.is-in) .gb-seg { transform: scaleX(0); }
.motion .guide-bar .gb-seg { transition: transform 0.7s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }

/* The Oath, part by part */
.oath-walk { display: grid; gap: 20px; }
.ow-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.ow-dots[hidden] { display: none; }
.ow-dots .leaf { width: 32px; height: 32px; }
.ow-dots g { transition: color 650ms ease; }
.ow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.ow-step { display: grid; gap: 12px; padding: clamp(18px, 2.6vw, 26px); border-radius: 22px; background: var(--background); }
.js .ow-step:not(.current) { display: none; }
.ow-count { font-size: 15px; color: var(--secondary); }
.ow-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.8rem); letter-spacing: -0.02em; outline: none; }
.ow-words { margin: 4px 0 0; display: grid; gap: 8px; }
.ow-words > div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 4px 16px; padding: 10px 14px; border-radius: 14px; background: var(--surface); }
.ow-words dt { font-family: var(--display); font-weight: 700; }
.ow-words dd { margin: 0; color: var(--secondary); }
.ow-test { padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 17px; }
.ow-nav { display: flex; justify-content: space-between; gap: 12px; }
.ow-nav[hidden] { display: none; }
.ow-nav [disabled] { visibility: hidden; }
@media (max-width: 519px) { .ow-words > div { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .js .ow-step.current { animation: rise 0.45s var(--ease-out) both; } }

/* Would you take the test? */
.age-check { display: grid; gap: 20px; }
.ac-fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.ac-fields[hidden] { display: none; }
.ac-waiver { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.4; cursor: pointer; }
.ac-waiver input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--action); }
.ac-art { margin-inline: -6px; }
.ac-ruler { width: 100%; height: auto; overflow: visible; }
.ac-result { display: grid; gap: 6px; padding: 18px 20px; border-radius: 20px; background: var(--background); }
.ac-headline { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); line-height: 1.2; letter-spacing: -0.015em; }
.ac-detail { color: var(--secondary); }
.ac-privacy { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--secondary); }

/* The five-year window */
.presence { display: grid; gap: 20px; }
.pt-svg { width: 100%; height: auto; overflow: visible; }
.pt-track { fill: var(--surface-sunk); }
.pt-before { fill: var(--leaf-gold); opacity: 0.55; }
.pt-after { fill: var(--leaf-green); }
.pt-trip { fill: var(--wrong); }
.pt-mark path { stroke: var(--tertiary); stroke-width: 2; stroke-dasharray: 3 4; }
.pt-mark text { font-family: var(--display); font-weight: 700; font-size: 17px; fill: var(--secondary); text-anchor: middle; }
.pt-mark.arrive text { text-anchor: start; }
.pt-shade { fill: var(--surface); opacity: 0.72; }
.pt-frame { fill: none; stroke: var(--text); stroke-width: 3.5; }
.pt-sign path { stroke: var(--maple); stroke-width: 3.5; stroke-linecap: round; }
.pt-sign circle { fill: var(--maple); }
.pt-tick { stroke: var(--tertiary); stroke-width: 1.5; }
.pt-year { font-family: var(--body); font-size: 17px; fill: var(--secondary); text-anchor: middle; font-variant-numeric: tabular-nums; }
.pt-control { display: grid; gap: 6px; }
.pt-control strong { color: var(--maple); }
.pt-tally { margin: 0; display: grid; }
.pt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.pt-row dt { color: var(--secondary); font-size: 17px; }
.pt-row dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-row.minus dd { color: var(--wrong); }
.pt-row.minus dd::before { content: '\2212\2009'; }
.pt-row.half dd { color: var(--gold-text); }
.pt-row.total { border-bottom: 0; }
.pt-row.total dt { color: var(--text); font-family: var(--display); font-weight: 700; }
.pt-row.total dd { font-size: 1.9rem; }
.pt-meter { position: relative; height: 14px; border-radius: 7px; background: var(--surface-sunk); }
.pt-meter-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--leaf-gold); transform-origin: 0 50%; transform: scaleX(0.6); }
.presence.eligible .pt-meter-fill { background: var(--leaf-green); }
.pt-meter-need { position: absolute; top: -6px; bottom: -6px; left: 66.666%; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--text); }
.pt-verdict { font-family: var(--display); font-weight: 800; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); letter-spacing: -0.01em; }
.pt-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--secondary); }
.pt-key li { display: inline-flex; align-items: center; gap: 8px; }
.pt-key .k { width: 14px; height: 14px; border-radius: 4px; }
.pt-key .k.before { background: var(--leaf-gold); opacity: 0.55; }
.pt-key .k.after { background: var(--leaf-green); }
.pt-key .k.trip { background: var(--wrong); width: 5px; border-radius: 1px; }
.pt-key .k.window { border: 3px solid var(--text); border-radius: 5px; }
@media (max-width: 599px) { .pt-mark text { display: none; } .pt-year { font-size: 40px; } .pt-year.odd { display: none; } .pt-svg { margin-block: 4px; } }

/* The planner */
.planner { display: grid; gap: 20px; }
.pl-fields { display: grid; gap: 14px; }
.pl-fields[hidden] { display: none; }
.pl-fields .field { max-width: 280px; }
.pl-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-out { display: grid; gap: 6px; padding: 18px 20px; border-radius: 20px; background: var(--background); }
.pl-headline { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.15; letter-spacing: -0.02em; }
.pl-detail { color: var(--secondary); }
.pl-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 46px)); gap: 6px; }
.pl-cal:empty { display: none; }
.pl-day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: var(--surface-sunk); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--secondary); }
.pl-day.study { background: var(--leaf-green); color: var(--on-maple); }
.pl-day.spare { background: var(--leaf-gold); color: var(--on-gold); }
.pl-day.test { background: var(--maple); color: var(--on-maple); font-family: var(--display); font-weight: 800; }
.pl-day.blank { background: none; }
.pl-wd { font-size: 12px; text-align: center; color: var(--secondary); }
.pl-day.month { font-family: var(--display); font-weight: 800; font-size: 12px; }
.pl-more { grid-column: 1 / -1; font-size: 15px; color: var(--secondary); }
.pl-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 15px; color: var(--secondary); }
.pl-key[hidden] { display: none; }
.pl-key .k-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.pl-key .k { width: 14px; height: 14px; border-radius: 4px; }
.pl-key .k.study { background: var(--leaf-green); }
.pl-key .k.spare { background: var(--leaf-gold); }
.pl-key .k.test { background: var(--maple); }
@media (prefers-reduced-motion: no-preference) { .pl-day.pop { animation: pop 0.4s var(--spring) both; animation-delay: calc(var(--d, 0) * 18ms); } }

/* Fact cards to turn over */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.card-flip { margin: 0; }
/* The card takes the row's spare height, so the cards in a row match and their buttons keep their own size. */
.js .card-flip { grid-template-rows: 1fr auto; }
.card-flip .flip-face { min-height: 196px; background: var(--background); }
.card-flip .flip-text { font-size: 21px; }
.cards-count { font-size: 16px; color: var(--secondary); }
.cards-count[hidden] { display: none; }

/* The capitals match */
.match { display: grid; gap: 20px; }
.mt-map { display: grid; place-items: center; }
.mt-tiles { width: min(100%, 560px); height: auto; }
.mt-game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.mt-game[hidden] { display: none; }
.mt-head { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--secondary); margin-bottom: 8px; }
.mt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mt-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 8px 14px; border: 2px solid transparent; border-radius: 14px; background: var(--background); color: var(--text); font: inherit; font-size: 16px; line-height: 1.25; text-align: left; cursor: pointer; }
.mt-item:hover { border-color: var(--hairline); }
.mt-item[aria-pressed='true'] { border-color: var(--text); background: var(--surface-sunk); }
.mt-item.matched { background: var(--correct-soft); color: var(--text); cursor: default; }
.mt-item.matched::after { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--correct); }
.mt-item.miss { border-color: var(--wrong); }
.mt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mt-bar[hidden] { display: none; }
.mt-score { font-size: 17px; }
.mt-score strong { font-family: var(--display); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.mt-misses { color: var(--secondary); }
.js .match:not(.done) .mt-answers { display: none; }
@media (prefers-reduced-motion: no-preference) { .mt-item { transition: background-color 200ms ease, border-color 200ms ease; } .mt-item.miss { animation: nudge 0.36s ease; } }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 479px) { .mt-item { font-size: 15px; padding: 8px 10px; } }

/* ---------- FAQ, sources, the app and related posts ---------- */
.post-faq { display: grid; gap: 20px; max-width: var(--measure); }
.post-faq h2 { font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.35rem); letter-spacing: -0.025em; scroll-margin-top: 28px; }
.post-faq .faq-a { font-size: 18px; }
.sources-box { display: grid; gap: 14px; max-width: var(--measure); padding: clamp(20px, 3vw, 30px); border-radius: 24px; background: var(--surface); }
.sources-box h2 { font-size: 1.6rem; letter-spacing: -0.02em; scroll-margin-top: 28px; }
.sources-box > p { color: var(--secondary); font-size: 16px; }
.sources-box ol { margin: 0; padding-left: 1.4em; display: grid; gap: 12px; }
.sources-box li { padding-left: 4px; }
.sources-box li::marker { color: var(--tertiary); font-family: var(--display); font-weight: 700; }
.sources-box li a { font-family: var(--display); font-weight: 700; line-height: 1.3; }
.src-meta { display: block; font-size: 15px; color: var(--secondary); }
.src-fine { font-size: 14px; color: var(--secondary); padding-top: 12px; border-top: 1px solid var(--hairline); }

main > .post-cta, .post-cta { padding-block: 0 clamp(56px, 8vw, 96px); }
.cta-card { display: grid; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 32px; background: var(--surface); border: 2px solid var(--maple); }
.cta-copy { display: grid; gap: 18px; }
.cta-copy h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
.cta-copy > p:first-of-type { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--secondary); max-width: 34em; }
.cta-try { font-size: 16px; color: var(--secondary); }
.cta-try a { color: var(--text); font-family: var(--display); font-weight: 700; }
.cta-bough { width: 100%; height: auto; overflow: visible; }
@media (min-width: 900px) { .cta-card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

.related { padding-block: clamp(56px, 8vw, 96px); background: var(--surface); }
.related h2 { margin-bottom: 28px; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); }

.post-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.home-cards, .related .post-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.post-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--hairline); overflow: hidden; }
.post-card-art { display: grid; place-items: center; height: 172px; padding: 18px 22px; background: var(--background); }
.post-card-art .art-tiles .tm-tile rect { fill: var(--maple); }
.post-card-art .art-tiles .tm-tile text { fill: var(--on-maple); }
.post-card-art .art-tiles .tm-dot { fill: var(--on-maple); opacity: 1; }
.post-card-art .art { width: 100%; height: 100%; max-width: 300px; }
.post-card-art .art-cards { transform: scale(0.62); }
.post-card-body { display: grid; gap: 10px; align-content: start; padding: 20px 22px 24px; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--secondary); }
.post-card-meta > * + *::before { content: ''; display: inline-block; width: 1px; height: 0.9em; margin: 0 10px; vertical-align: -1px; background: var(--hairline); }
.card-flag { flex-basis: 100%; color: var(--gold-text); font-family: var(--display); font-weight: 700; }
.post-card-meta > .card-flag::before { display: none; }
.post-card-title { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
.post-card-title a { text-decoration: none; }
.post-card-title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.post-card-title a:focus-visible { outline: none; }
.post-card:has(a:focus-visible) { outline: 3px solid var(--text); outline-offset: 3px; }
.post-card:hover .post-card-title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post-card-summary { color: var(--secondary); font-size: 16px; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) { .post-card { transition: transform 200ms var(--ease-out); } .post-card:hover { transform: translateY(-3px); } }

/* ---------- The blog's index ---------- */
.blog-hero { padding-block: clamp(20px, 3vw, 36px) clamp(32px, 5vw, 56px); overflow: hidden; overflow: clip; }
.blog-hero-grid { display: grid; gap: 28px; margin-top: clamp(24px, 4vw, 48px); align-items: end; }
.blog-hero-copy { display: grid; gap: 20px; }
.blog-hero h1 { max-width: 12em; }
.blog-hero-art .art { width: 100%; max-width: 520px; height: auto; }
@media (max-width: 979px) { .blog-hero-art .art { max-width: 360px; } }
@media (min-width: 980px) { .blog-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
main > .blog-list { padding-block: 0 clamp(64px, 9vw, 112px); }
.blog-list .post-cards.lead { grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 860px) {
  .post-cards.lead .post-card { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: none; }
  .post-cards.lead .post-card-art { height: auto; min-height: 300px; order: 2; }
  .post-cards.lead .post-card-body { align-content: center; padding: clamp(24px, 3vw, 40px); }
  .post-cards.lead .post-card-title { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
  .post-cards.lead .post-card-summary { font-size: 18px; }
}

/* ---------- Home: from the blog ---------- */
main > .from-blog { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--hairline); }
.from-blog-head { margin-bottom: clamp(28px, 4vw, 44px); }
.from-blog-all { margin-top: 28px; }

/* ==========================================================================================================
   The heroes' intros: CSS only, so a page without JavaScript (or with reduced motion) shows the final drawing.
   ========================================================================================================== */
.art text { font-family: var(--display); }

/* 1. Score grid */
.sg-slot { fill: var(--surface-sunk); }
.sg-fill { fill: var(--maple); transform-box: fill-box; transform-origin: 50% 100%; }
.sg-mark.spare .sg-fill { display: none; }
.sg-mark.spare .sg-slot { fill: none; stroke: var(--tertiary); stroke-width: 2; stroke-dasharray: 5 5; }
.sg-line { stroke: var(--text); stroke-width: 3.5; stroke-linecap: round; }
.sg-bracket { fill: none; stroke: var(--tertiary); stroke-width: 2.5; }
.sg-bracket.need { stroke: var(--maple); }
.sg-label { font-weight: 700; font-size: 21px; fill: var(--secondary); }
.sg-label.need { fill: var(--maple); font-weight: 800; }

/* 2. Dial */
.dl-face { fill: var(--surface); }
.dl-hour { stroke: var(--tertiary); stroke-width: 3; stroke-linecap: round; }
.art-dial .dl-track { fill: none; stroke: var(--surface-sunk); stroke-width: 26; }
.dl-old { fill: none; stroke: var(--tertiary); stroke-width: 6; stroke-dasharray: 0.012 0.018; stroke-linecap: round; opacity: 0.7; }
.art-dial .dl-arc { fill: none; stroke: var(--action); stroke-width: 26; stroke-dasharray: none; stroke-linecap: round; }
.dl-keep { fill: none; stroke: var(--leaf-gold); stroke-width: 26; stroke-linecap: round; }
.pace-dial .dl-hand { transition: transform 200ms var(--ease-out); }
.dl-q { stroke: var(--leaf-gold); stroke-width: 4; stroke-linecap: round; }
.art-dial .dl-hand path { stroke: var(--maple); stroke-width: 6; stroke-linecap: round; }
.art-dial .dl-hand circle { fill: var(--maple); }
.art-dial .dl-hand { transform-box: view-box; transform-origin: 200px 200px; }
.dl-big { font-weight: 800; font-size: 104px; letter-spacing: -0.05em; text-anchor: middle; fill: var(--text); }
.dl-unit { font-weight: 700; font-size: 26px; text-anchor: middle; fill: var(--secondary); }
.dl-was text { font-weight: 800; font-size: 30px; text-anchor: middle; fill: var(--tertiary); }
.dl-was path { stroke: var(--wrong); stroke-width: 4; stroke-linecap: round; }

/* 3. Sized bough */
.art-bough .bud, .art-bough .sway { transform-box: view-box; transform-origin: 0 0; }

/* 4. Promises */
.pr-bar { fill: var(--surface); }
.pr-leaf { color: var(--maple); }
.pr-text { font-weight: 700; font-size: 22px; fill: var(--text); }

/* 5. Trail */
.tr-right { color: var(--leaf-green); }
.tr-missed { color: var(--leaf-bare); }
.tr-chip rect { fill: var(--surface-sunk); }
.tr-chip text { font-weight: 700; font-size: 20px; text-anchor: middle; fill: var(--secondary); }
.tr-chip.picked rect { fill: var(--action); }
.tr-chip.picked text { fill: var(--on-action); }
.tr-big { font-weight: 800; font-size: 58px; letter-spacing: -0.04em; fill: var(--maple); text-anchor: end; }
.tr-of { font-weight: 700; font-size: 24px; fill: var(--secondary); }

/* 6. Ages */
.ag-track { fill: var(--surface-sunk); }
.ag-band { fill: var(--action); transform-box: fill-box; transform-origin: 0 50%; }
.ag-tick { stroke: var(--tertiary); stroke-width: 2; }
.ag-num { font-family: var(--body); font-size: 17px; text-anchor: middle; fill: var(--secondary); }
.ag-label text { font-weight: 700; font-size: 18px; text-anchor: middle; fill: var(--secondary); }
.ag-label.mid text { fill: var(--text); font-weight: 800; }
.ag-pin path { fill: var(--maple); }
.ag-pin { transition: transform 600ms var(--ease-out), opacity 300ms ease; }
.ag-pin.vh-pin { opacity: 0; }

/* 7. Years grid */
.yg-slot { fill: var(--surface-sunk); }
.yg-cell.away .yg-slot { fill: none; stroke: var(--wrong); stroke-width: 2; stroke-dasharray: 4 4; }
.yg-cell.half .yg-fill { fill: var(--leaf-gold); }
.yg-cell.full .yg-fill { fill: var(--leaf-green); }
.yg-fill { transform-box: fill-box; transform-origin: 50% 100%; }
.yg-year { font-family: var(--body); font-size: 15px; text-anchor: end; fill: var(--tertiary); }

/* 8. Buckets */
.bd-pail { fill: var(--surface-sunk); }
.bd-sap { fill: var(--leaf-gold); }
.bd-rim { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; }
.bd-test { fill: var(--maple); }
.bd-tick { fill: none; stroke: var(--on-maple); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.bd-label { font-weight: 700; font-size: 12px; text-anchor: middle; fill: var(--secondary); }

/* 9. Card fan */
.art-cards { position: relative; width: min(100%, 480px); aspect-ratio: 48 / 32; perspective: 1200px; }
.fan-card { position: absolute; top: 10%; left: 50%; width: 38%; aspect-ratio: 4 / 5; margin-left: -19%; }
.fan-card.c0 { transform: translateX(-78%) translateY(6%) rotate(-8deg); }
.fan-card.c1 { transform: translateY(-4%); z-index: 1; }
.fan-card.c2 { transform: translateX(78%) translateY(6%) rotate(8deg); }
.fan-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.fan-face { position: absolute; inset: 0; display: grid; align-content: start; gap: 10px; padding: 10% 10%; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-raised), 0 0 0 1px var(--hairline); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fan-back { transform: rotateY(180deg); background: var(--action); color: var(--on-action); }
.fan-label { font-size: 12px; color: var(--secondary); }
.fan-back .fan-label { color: inherit; opacity: 0.75; }
.fan-text { font-family: var(--display); font-weight: 800; font-size: clamp(15px, 0.85rem + 0.6vw, 21px); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.fan-text.small { font-family: var(--body); font-weight: 700; font-size: clamp(13px, 0.75rem + 0.35vw, 16px); line-height: 1.3; letter-spacing: 0; }

/* 10. Tiles */
.art-tiles rect { fill: var(--surface-sunk); }
.art-tiles text { font-weight: 800; font-size: 21px; text-anchor: middle; fill: var(--secondary); }
.tm-dot { fill: var(--tertiary); opacity: 0.5; }
.art-tiles .tm-tile.lit rect, .post-art.art-tiles .tm-tile rect { fill: var(--maple); }
.art-tiles .tm-tile.lit text, .post-art.art-tiles .tm-tile text { fill: var(--on-maple); }
.art-tiles .tm-tile.lit .tm-dot, .post-art.art-tiles .tm-dot { fill: var(--on-maple); opacity: 1; }
.art-tiles .tm-tile.picked rect { fill: var(--action); }
.art-tiles .tm-tile.picked text { fill: var(--on-action); }
.mt-tiles .tm-tile rect, .mt-tiles .tm-tile text { transition: fill 400ms ease; }

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .post-art.art-score .sg-mark.on .sg-fill { animation: grow-up 0.55s var(--spring) both; animation-delay: calc(0.25s + var(--d) * 0.07s); }
  .post-art.art-score .sg-mark.spare .sg-slot { animation: fade-in 0.6s ease both; animation-delay: calc(0.4s + var(--d) * 0.05s); }
  .post-art.art-score .sg-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.7s var(--ease-out) 1.45s forwards; }
  .post-art.art-score .sg-bracket, .post-art.art-score .sg-label { animation: fade-in 0.6s ease 1.7s both; }

  .post-art.art-dial .dl-arc { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(0.55, 0, 0.3, 1) 0.3s forwards; }
  .post-art.art-dial .dl-hand { animation: sweep 2.2s cubic-bezier(0.55, 0, 0.3, 1) 0.3s both; }
  .post-art.art-dial .dl-q { animation: fade-in 0.3s ease both; animation-delay: calc(0.4s + var(--d) * 0.1s); }
  .post-art.art-dial .dl-was { animation: fade-in 0.5s ease 1.2s both; }
  .post-art.art-dial .dl-big, .post-art.art-dial .dl-unit { animation: fade-in 0.6s ease 2.1s both; }

  .post-art.art-bough .draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: branch-draw 1.15s cubic-bezier(0.5, 0, 0.25, 1) 0.1s forwards; }
  .post-art.art-bough .bud { animation: bud 0.75s var(--spring) both; animation-delay: calc(0.32s + var(--i) * 0.09s); }
  .post-art.art-bough .tone { animation: autumn 1.5s ease-in-out both; animation-delay: calc(1.45s + var(--i) * 0.12s); }
  .post-art.art-bough .sway { animation: sway 5.6s ease-in-out infinite alternate both; animation-delay: calc(var(--i) * -0.85s); }

  .post-art.art-promises .pr-row { animation: slide-in 0.6s var(--ease-out) both; animation-delay: calc(0.2s + var(--d) * 0.16s); }
  .post-art.art-promises .pr-leaf { animation: autumn 1.2s ease-in-out both; animation-delay: calc(0.5s + var(--d) * 0.16s); }

  .post-art.art-trail .tr-leaf { animation: pop-in 0.6s var(--spring) both; animation-delay: calc(0.6s + var(--d) * 0.12s); }
  .post-art.art-trail .tr-chip { animation: fade-in 0.4s ease both; animation-delay: calc(0.1s + var(--d) * 0.08s); }
  .post-art.art-trail .tr-chip.picked rect { animation: chip-pick 0.4s ease 0.55s both; }
  .post-art.art-trail .tr-score { animation: fade-in 0.6s ease 1.9s both; }

  .post-art.art-ages .ag-band { animation: grow-right 1.1s var(--ease-out) 0.35s both; }
  .post-art.art-ages .ag-label { animation: fade-in 0.5s ease both; }
  .post-art.art-ages .ag-label.left { animation-delay: 0.2s; }
  .post-art.art-ages .ag-label.mid { animation-delay: 1s; }
  .post-art.art-ages .ag-label.right { animation-delay: 1.3s; }
  .post-art.art-ages .ag-pin { animation: drop 0.7s var(--spring) 1.5s both; }

  .post-art.art-years .yg-fill { animation: grow-up 0.5s var(--spring) both; animation-delay: calc(0.2s + var(--d) * 0.05s); }
  .post-art.art-years .yg-cell.away .yg-slot { animation: fade-in 0.4s ease both; animation-delay: calc(0.2s + var(--d) * 0.05s); }

  .post-art.art-buckets .bd-sap { animation: sap-rise 0.7s var(--ease-out) both; animation-delay: calc(0.2s + var(--d) * 0.06s); }
  .post-art.art-buckets .bd-day.spare { animation: pop-in 0.5s var(--spring) both; animation-delay: calc(0.4s + var(--d) * 0.06s); }

  .post-art.art-cards .fan-card { animation: fan-in 0.8s var(--ease-out) both; animation-delay: calc(0.15s + var(--d) * 0.12s); }
  .post-art.art-cards .fan-card.c1 .fan-inner { animation: card-turn 3.4s ease-in-out 1.3s both; }

  .post-art.art-tiles .tm-tile rect { animation: tile-light 0.5s ease both; animation-delay: calc(0.3s + var(--d) * 0.09s); }
  .post-art.art-tiles .tm-tile text, .post-art.art-tiles .tm-dot { animation: tile-text 0.5s ease both; animation-delay: calc(0.3s + var(--d) * 0.09s); }
}
@keyframes grow-up { from { transform: scaleY(0); } }
@keyframes grow-right { from { transform: scaleX(0); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sweep { from { transform: rotate(-270deg); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-16px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.3); } }
@keyframes drop { from { opacity: 0; transform: translateY(-26px); } }
@keyframes chip-pick { from { fill: var(--surface-sunk); } }
@keyframes sap-rise { from { transform: translateY(44px); } }
@keyframes fan-in { from { opacity: 0; transform: translateY(18%) rotate(0deg); } }
@keyframes card-turn { 0%, 100% { transform: rotateY(0); } 35%, 70% { transform: rotateY(180deg); } }
@keyframes tile-light { from { fill: var(--surface-sunk); } }
@keyframes tile-text { from { fill: var(--secondary); } }
.art-trail .tr-leaf, .art-buckets .bd-day, .art-promises .pr-row { transform-box: fill-box; transform-origin: 50% 50%; }
.art-cards .fan-card { transform-origin: 50% 100%; }
.post-art.is-offscreen .sway { animation-play-state: paused; }

/* Generated: each chapter's share of the largest chapter's questions. */
.share-rights { --share: 42.1%; }
.share-who { --share: 37.9%; }
.share-history { --share: 100.0%; }
.share-modern { --share: 37.9%; }
.share-government { --share: 42.1%; }
.share-elections { --share: 47.4%; }
.share-justice { --share: 25.3%; }
.share-symbols { --share: 52.6%; }
.share-economy { --share: 21.1%; }
.share-regions { --share: 67.4%; }
/* Generated: a step for each item in a staggered drawing (the CSP allows no inline styles). */
.d0 { --d: 0; } .d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; } .d4 { --d: 4; } .d5 { --d: 5; } .d6 { --d: 6; } .d7 { --d: 7; } .d8 { --d: 8; } .d9 { --d: 9; } .d10 { --d: 10; } .d11 { --d: 11; } .d12 { --d: 12; } .d13 { --d: 13; } .d14 { --d: 14; } .d15 { --d: 15; } .d16 { --d: 16; } .d17 { --d: 17; } .d18 { --d: 18; } .d19 { --d: 19; } .d20 { --d: 20; } .d21 { --d: 21; } .d22 { --d: 22; } .d23 { --d: 23; } .d24 { --d: 24; } .d25 { --d: 25; } .d26 { --d: 26; } .d27 { --d: 27; } .d28 { --d: 28; } .d29 { --d: 29; } .d30 { --d: 30; } .d31 { --d: 31; } .d32 { --d: 32; } .d33 { --d: 33; } .d34 { --d: 34; } .d35 { --d: 35; } .d36 { --d: 36; } .d37 { --d: 37; } .d38 { --d: 38; } .d39 { --d: 39; }
