/* Sprachverliebt landing page: a story, then the App Store. Tokens mirror ios/DESIGN.md. */
:root {
  --linen: #f3f0e9;
  --ink: #2a1f14;
  --gray: #66594d;
  --gold: #f0a500;
  --gold-text: #7d5200; /* Goldlicht darkened for AA small text on linen, also under the glow */
  --line: rgba(42, 31, 20, 0.16);
  --glow: rgba(240, 165, 0, 0.16);
  --band: rgba(42, 31, 20, 0.045);
  --grain-opacity: 0.1;
  --grain-filter: none;
  --grain-blend: multiply;
  --moss: #6b7340;
  --sepia: #8a6b4a;
  --terracotta: #b06140;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --section-pad: 4.5rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* strong ease-out for press and hover feedback */
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --linen: #17130f;
    --ink: #f0e8d8;
    --gray: #b0a191;
    --gold: #f5ac1a;
    --gold-text: #f5ac1a;
    --line: rgba(240, 232, 216, 0.18);
    --glow: rgba(245, 172, 26, 0.22);
    --band: rgba(240, 232, 216, 0.05);
    --grain-opacity: 0.1;
    --grain-filter: invert(1);
    --grain-blend: soft-light;
    --moss: #8c945c;
    --sepia: #a88766;
    --terracotta: #c77a57;
  }
}
@media (min-width: 64rem) { :root { --section-pad: 8rem; } }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/PlayfairDisplay-Regular.17e6c46982.ttf") format("truetype"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/PlayfairDisplay-Italic.6021680663.ttf") format("truetype"); }
@font-face { font-family: "Cal Sans Text"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/CalSansText-Light.65f2e873de.ttf") format("truetype"); }
@font-face { font-family: "Cal Sans UI"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/CalSansUI-Regular.81aae80648.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/Inter-Regular.64f8be6e55.ttf") format("truetype"); }

* { box-sizing: border-box; }
html {
  scroll-padding-top: 4.5rem; color-scheme: light dark; background: var(--linen);
  scrollbar-color: color-mix(in srgb, var(--ink) 25%, transparent) transparent; scrollbar-width: thin;
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  hyphens: manual;
  hanging-punctuation: first;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-thickness: 2px; } }
a, button, summary { touch-action: manipulation; }
/* The tap highlight is off globally, so links and FAQ rows get their own pressed state. */
a:not(.cta):active, summary:active { opacity: 0.6; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
h1, h2, h3, summary { hyphens: none; }
i, em { font-family: var(--serif); }

/* Paper: three slow gold glows (like the app's WanderingGradient) and visible grain, both fixed behind the page, both inert. */
.glow, .grain { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.glow { overflow: hidden; }
.glow i {
  position: absolute; width: 90vmax; height: 90vmax;
  background: radial-gradient(circle closest-side, var(--glow), transparent);
  will-change: transform;
}
.glow i:nth-child(1) { top: -30vmax; left: -25vmax; animation: wander-a 26s ease-in-out infinite alternate; }
.glow i:nth-child(2) { top: 15vmax; right: -35vmax; animation: wander-b 36s ease-in-out infinite alternate; }
.glow i:nth-child(3) { bottom: -40vmax; left: 5vmax; animation: wander-c 46s ease-in-out infinite alternate; }
.grain { background: url("/assets/img/grain.144579467e.svg"); opacity: var(--grain-opacity); filter: var(--grain-filter); mix-blend-mode: var(--grain-blend); }
@keyframes wander-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(34vmax, 22vmax, 0); } }
@keyframes wander-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-30vmax, 26vmax, 0); } }
@keyframes wander-c { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(28vmax, -30vmax, 0); } }
.page { position: relative; z-index: 1; overflow-x: clip; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: max(var(--pad), env(safe-area-inset-left, 0px)) max(var(--pad), env(safe-area-inset-right, 0px)); }
.sc { font: 400 0.75rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; hyphens: none; }
.ipa { font: 400 0.875rem/1.4 var(--sans); color: var(--gray); hyphens: none; }

/* Floating header: no background, border or blur. A soft linen gradient behind it fades in once the page scrolls 40px
   (fallback without scroll timelines: always there, very soft), so text never collides with the logo or the button. */
.bar { position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top); }
.bar::before {
  content: ""; position: absolute; inset: 0 0 -2.25rem; z-index: -1; pointer-events: none; opacity: 0.55;
  background: linear-gradient(var(--linen) 35%, transparent);
}
@keyframes bar-fade { from { opacity: 0; } to { opacity: 1; } }
@supports (animation-timeline: scroll()) {
  .bar::before { opacity: 0; animation: bar-fade linear both; animation-timeline: scroll(root); animation-range: 0 40px; }
}
.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; min-height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font: 400 1.25rem/1 var(--serif); text-decoration: none; }
.brand img { display: block; width: 28px; height: 28px; border-radius: 7px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.col { max-width: 38rem; }
.prose p { line-height: 1.65; text-wrap: pretty; }
.prose p + p { margin-top: 1.1rem; }
.big {
  font: 400 clamp(2.6rem, 1.6rem + 4.4vw, 4.5rem)/1.06 var(--serif); letter-spacing: -0.02em;
  hyphens: none; text-wrap: balance;
}
.big em { color: var(--gold-text); }
.h2 {
  max-width: 22ch; font: 400 1.75rem/1.15 var(--serif); letter-spacing: -0.01em;
  hyphens: none; text-wrap: balance;
}
@media (min-width: 48rem) { .h2 { font-size: 2.2rem; } }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.6rem; color: var(--gold-text); font-size: 0.75rem; letter-spacing: 0.12em; }
.kicker time { white-space: nowrap; }
.kicker .sep { color: var(--gray); }
/* Narrow screens: the date starts its own line instead of leaving a separator dangling at the line end. */
@media (max-width: 30rem) { .kicker .sep:has(+ time) { flex-basis: 100%; height: 0; overflow: hidden; } }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gold); }
.dot--sprichwort { background: var(--moss); }
.dot--aphorismus { background: var(--sepia); }
.dot--redewendung { background: var(--terracotta); }

/* The one call to action: solid ink pill on light, cream pill on dark (ink flips with the scheme). */
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0.7rem 1.75rem;
  border-radius: 999px; background: var(--ink); color: var(--linen); text-decoration: none;
  font: 500 1rem/1.2 var(--sans); letter-spacing: 0.01em; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out), transform 0.16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .cta:hover { background: var(--gold-text); color: var(--linen); } }
.cta:active { background: var(--gold-text); color: var(--linen); transform: scale(0.97); }
.cta--sm { min-height: 2.25rem; padding: 0.35rem 1rem; font-size: 0.875rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }

/* 1. Hero */
.hero { --bar: 3.5rem; padding-block: 1.5rem 0; }
/* Mobile: the text block fills the first screen, the phone follows below (natural height, no min-height trap). */
.hero__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: calc(100vh - var(--bar) - 2rem); min-height: calc(100svh - var(--bar) - 2rem); }
.hero .big { margin: 0.4em 0 0.5em; max-width: 16ch; }
.lead { max-width: 30rem; margin-bottom: 2.25rem; font: italic 400 clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem)/1.4 var(--serif); text-wrap: pretty; }

/* Hero stage: the app flow in a CSS iPhone (hero.js sets data-step, CSS moves transform/opacity only), words being forgotten in the free space around it (never under it). */
.stage { position: relative; display: grid; place-items: center; margin-top: 0; padding-block: 4.5rem 5.75rem; }
.demo { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.5rem; width: 100%; }
.phone {
  position: relative; width: min(16.25rem, 100%); padding: 0.6rem; border-radius: 3rem; background: #17120d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1.5rem 3rem -1rem rgba(42, 31, 20, 0.45), 0 0.5rem 1rem rgba(42, 31, 20, 0.15);
}
.phone:focus-visible { outline-offset: 5px; border-radius: 3rem; }
.screens { --u: calc(100cqw / 1206); container-type: inline-size; position: relative; overflow: hidden; isolation: isolate; border-radius: 2.4rem; aspect-ratio: 1206 / 2622; background: var(--linen); }
.screen { position: absolute; inset: 0; display: block; }
.screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.screen--archiv { opacity: 0; transition: opacity 0.3s ease; }
.screen--detail, .screen--stats {
  transform: translateY(101%); visibility: hidden; will-change: transform;
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.45s;
}
.phone[data-step="2"] .screen--archiv { opacity: 1; }
.phone[data-step="1"] .screen--detail, .phone[data-step="3"] .screen--stats { transform: none; visibility: visible; transition-delay: 0s; }
.tap {
  position: absolute; z-index: 2; left: 50%; top: 80%; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem;
  border-radius: 50%; background: rgba(240, 165, 0, 0.42); box-shadow: 0 0 0 1px rgba(240, 165, 0, 0.55); opacity: 0; pointer-events: none;
}
/* Ripple centres: the centre of each ring target in capture percent. */
.phone[data-tap="card"] .tap { left: 50%; top: 80.6%; }
.phone[data-tap="meta"] .tap { left: 41%; top: 17.6%; }
.phone[data-tap="lib"] .tap { left: 50%; top: 94.1%; }
.phone[data-tap="home"] .tap { left: 25.5%; top: 94.1%; }
.phone[data-tap="top"] .tap { left: 50%; top: 8%; }
.phone[data-tap="dim"] .tap { left: 50%; top: 43.5%; }
@media (prefers-color-scheme: dark) { .phone[data-tap="dim"] .tap { top: 45.9%; } }
.phone.is-tap .tap { animation: tap 0.4s ease-out both; }
@keyframes tap { from { opacity: 0; transform: scale(0.4); } 30% { opacity: 1; } to { opacity: 0; transform: scale(1.25); } }

/* Hotspots: invisible buttons placed in pixels of the 1206x2622 captures (--u scales one capture pixel to the screen). The hit
   area is --x/--y/--w/--h, the guide ring --rx/--ry/--rw/--rh/--rr hugs the visual target measured on the PNGs (tab pills, card,
   meta line, sheet grabbers; light and dark agree except the stats grabber). Only the hotspots of the current screen are shown. */
.hots { position: absolute; inset: 0; z-index: 1; }
.hot {
  display: none; position: absolute; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
  animation: hot-in 0.2s ease 0.4s backwards; /* the ring waits until the sheet or fade has landed */
}
.phone[data-step="0"] .hot[data-at="0"], .phone[data-step="1"] .hot[data-at="1"],
.phone[data-step="2"] .hot[data-at="2"], .phone[data-step="3"] .hot[data-at="3"] { display: block; }
.hot:focus-visible { outline: none; }
.hot::after {
  content: ""; position: absolute; pointer-events: none; opacity: 0; transition: opacity 0.12s var(--ease-out), transform 0.12s var(--ease-out);
  left: calc((var(--rx) - var(--x)) * var(--u)); top: calc((var(--ry) - var(--y)) * var(--u));
  width: calc(var(--rw) * var(--u)); height: calc(var(--rh) * var(--u)); border-radius: calc(var(--rr) * var(--u));
}
.hot--meta { --x: 40; --y: 330; --w: 940; --h: 260; --rx: 78; --ry: 412; --rw: 835; --rh: 98; --rr: 24; }
.hot--card { --x: 84; --y: 1905; --w: 1038; --h: 419; --rx: 84; --ry: 1905; --rw: 1038; --rh: 419; --rr: 60; }
.hot--lib { --x: 443; --y: 2371; --w: 320; --h: 190; --rx: 471; --ry: 2386; --rw: 264; --rh: 161; --rr: 999; }
.hot--home { --x: 147; --y: 2371; --w: 320; --h: 190; --rx: 175; --ry: 2386; --rw: 264; --rh: 161; --rr: 999; }
.hot--top { --x: 0; --y: 0; --w: 1206; --h: 330; --rx: 516; --ry: 204; --rw: 174; --rh: 12; --rr: 999; }
.hot--dim { --x: 0; --y: 0; --w: 1206; --h: 1440; --rx: 518; --ry: 1135; --rw: 169; --rh: 11; --rr: 999; }
@media (prefers-color-scheme: dark) { .hot--dim { --ry: 1198; } }
/* Hint: a soft gold ring on the most useful next hotspot, pulsing while the tour runs, quiet once a user drives. Hover (mouse) and
   keyboard focus show the same geometry; pressed brightens and sinks 2%. */
.hot[data-hint]::after { opacity: 0.55; box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.35); }
.phone.is-touring .hot[data-hint]:not(:hover, :focus-visible, :active)::after { opacity: 1; animation: pulse 1.6s ease-out infinite; }
@media (hover: hover) { .hot:hover::after { opacity: 0.4; box-shadow: 0 0 0 2px var(--gold); animation: none; } }
.hot:focus-visible::after, .hot[data-hint]:focus-visible::after { opacity: 1; box-shadow: 0 0 0 2px var(--gold); animation: none; }
.hot:active::after { opacity: 1; box-shadow: 0 0 0 3px var(--gold); transform: scale(0.98); animation: none; }
@keyframes hot-in { from { opacity: 0; } }
@keyframes pulse {
  0% { opacity: 1; box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.6), 0 0 0 0 rgba(240, 165, 0, 0.45); }
  70%, 100% { opacity: 0.45; box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.3), 0 0 0 0.6rem rgba(240, 165, 0, 0); }
}
.stage__words { position: absolute; inset: 0; z-index: 0; font-family: var(--serif); color: var(--ink); pointer-events: none; }
.stage__words span { position: absolute; opacity: 0.08; white-space: nowrap; line-height: 1; animation: forget 10s ease-in-out infinite; }
.stage__words span::before { content: attr(data-w); }
@keyframes forget { 0%, 100% { opacity: 0.08; } 50% { opacity: 0.6; } }
/* Mobile: two rows above and two below the phone, six words. */
.stage__words .v0 { left: 0; top: 0; font-size: 1.7rem; animation-duration: 9s; animation-delay: -2s; }
.stage__words .v1 { right: 0; top: 0.4rem; font-size: 1.3rem; animation-duration: 12s; animation-delay: -7s; }
.stage__words .v2 { left: 50%; top: 2.4rem; translate: -50% 0; font-size: 1.2rem; animation-duration: 8s; animation-delay: -5s; }
.stage__words .v3 { left: 0; bottom: 0.4rem; font-size: 1.5rem; animation-duration: 13s; animation-delay: -1s; }
.stage__words .v4 { right: 0; bottom: 0; font-size: 1.8rem; animation-duration: 11s; animation-delay: -9s; }
.stage__words .v5 { left: 50%; bottom: 2.4rem; translate: -50% 0; font-size: 1.2rem; animation-duration: 7s; animation-delay: -3s; }
.stage__words span:nth-child(n+7) { display: none; }
@media (min-width: 64rem) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-content: center; align-items: center; gap: 1.5rem;
    min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar)); padding-block: 0.5rem 1rem;
  }
  .hero__text { min-height: 0; }
  .stage { padding-block: 3rem 4rem; }
  .stage__words span:nth-child(n+7) { display: block; }
  .stage__words .v0 { left: 0; right: auto; top: 14%; bottom: auto; translate: none; font-size: 1.5rem; }
  .stage__words .v1 { left: auto; right: 0; top: 19%; bottom: auto; translate: none; font-size: 1.3rem; }
  .stage__words .v2 { left: 0; right: auto; top: 36%; bottom: auto; translate: none; font-size: 1.4rem; }
  .stage__words .v3 { left: auto; right: 0; top: 45%; bottom: auto; translate: none; font-size: 1.6rem; }
  .stage__words .v4 { left: 0; right: auto; top: 58%; bottom: auto; translate: none; font-size: 1.25rem; }
  .stage__words .v5 { left: auto; right: 0; top: 67%; bottom: auto; translate: none; font-size: 1.5rem; }
  .stage__words .v6 { left: 0; top: 78%; font-size: 1.4rem; animation-duration: 10s; animation-delay: -6s; }
  .stage__words .v7 { right: 0; top: 85%; font-size: 1.25rem; animation-duration: 12s; animation-delay: -4s; }
  .stage__words .v8 { left: 50%; top: 0; translate: -50% 0; font-size: 1.4rem; animation-duration: 9s; animation-delay: -8s; }
  .stage__words .v9 { left: 50%; bottom: 0; translate: -50% 0; font-size: 1.5rem; animation-duration: 13s; animation-delay: -10s; }
}
/* Short desktop windows: scale the headline with the height so headline, lead and CTA stay above the fold. */
@media (min-width: 64rem) and (max-height: 760px) {
  .hero .big { font-size: clamp(2rem, 0.5rem + 5.6vh, 3.5rem); margin-block: 0.3em 0.4em; }
  .lead { margin-bottom: 1.5rem; font-size: 1.25rem; }
  .stage { padding-block: 1.5rem 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stage__words span { animation: none; opacity: 0.3; }
  .screen--archiv, .screen--detail, .screen--stats { transition: none; }
  .phone.is-tap .tap, .phone.is-touring .hot[data-hint]:not(:hover, :focus-visible, :active)::after, .hot { animation: none; }
  .hot::after { transition: none; }
}

/* Sections: one rhythm (--section-pad), and from 64rem an editorial book layout: 12 columns, heading in 1-4 (sticky),
   content in 6-12 at a reading measure. Below that, one column with the heading above its content. */
.sec { padding-block: var(--section-pad); }
/* Neighbouring plain sections share one gap instead of stacking two paddings; the tinted band keeps its own. */
.sec:not(.today) + .sec:not(.today) { padding-top: 0; }
.book { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
/* The heading block, one pattern for every section: kicker, H2, supporting line, CTA. Gaps and sizes are tokens, never per section. */
.head, .closing {
  --head-kicker-gap: 0.75rem; --head-sub-gap: 1rem; --head-cta-gap: 2rem;
  --head-sub-size: 1.125rem; --head-sub-color: var(--gray);
}
.head { display: flex; flex-direction: column; align-items: flex-start; }
.head .h2 { margin-top: var(--head-kicker-gap); }
.head__sub { margin-top: var(--head-sub-gap); color: var(--head-sub-color); font: 400 var(--head-sub-size)/1.5 var(--sans); }
.head__em, .head__sub a { color: var(--ink); }
.head .cta { margin-top: var(--head-cta-gap); }
.book__body { max-width: 36rem; }
@media (min-width: 64rem) {
  .book { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: 0; }
  .book__head { grid-column: 1 / span 4; grid-row: 1; align-self: start; position: sticky; top: 7rem; }
  .book__body { grid-column: 6 / span 7; grid-row: 1; }
  /* Sticky is bounded by the whole grid, so with a word field below it would slide over the words: only sections without a field stick. */
  .dying .book__head, .personal .book__head { position: static; }
  .book__full { grid-column: 1 / -1; grid-row: 2; margin-top: 5rem; }
}

/* 2 and 3. The field of words: dying out, then coming back (scroll-driven, static without support). */
.field {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 4vw, 3.5rem) 1rem;
  view-timeline: --field block;
}
.field span {
  font: 400 clamp(1.4rem, 5.4vw, 1.75rem)/1.1 var(--serif); letter-spacing: -0.01em; hyphens: none;
}
.field span::before { content: attr(data-w); }
.field span:nth-child(odd) { justify-self: start; }
.field span:nth-child(even) { justify-self: end; margin-top: 1.5rem; }
.field span:nth-child(4n+3) { justify-self: center; }
.field--out span { opacity: 0.3; }
.field--in span { font-size: clamp(1.3rem, 5vw, 1.65rem); }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0.05; } }
@keyframes fade-in { from { opacity: 0.05; } to { opacity: 1; } }
@supports (animation-timeline: view()) {
  .field--out span { opacity: 1; animation: fade-out linear both; animation-timeline: --field; }
  .field--in span { animation: fade-in linear both; animation-timeline: --field; }
}
.field .f0 { animation-range: cover 12.0% cover 28.0%; }
.field .f1 { animation-range: cover 15.6% cover 31.6%; }
.field .f2 { animation-range: cover 19.2% cover 35.2%; }
.field .f3 { animation-range: cover 22.8% cover 38.8%; }
.field .f4 { animation-range: cover 26.4% cover 42.4%; }
.field .f5 { animation-range: cover 30.0% cover 46.0%; }
.field .f6 { animation-range: cover 33.6% cover 49.6%; }
.field .f7 { animation-range: cover 37.2% cover 53.2%; }
.field .f8 { animation-range: cover 40.8% cover 56.8%; }
.field .f9 { animation-range: cover 44.4% cover 60.4%; }
.field .f10 { animation-range: cover 48.0% cover 64.0%; }
.field .f11 { animation-range: cover 51.6% cover 67.6%; }
.field .f12 { animation-range: cover 55.2% cover 71.2%; }
.field .f13 { animation-range: cover 58.8% cover 74.8%; }
.field .f14 { animation-range: cover 62.4% cover 78.4%; }
.field .f15 { animation-range: cover 66.0% cover 82.0%; }
.personal .sign { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; font: italic 400 1.375rem/1 var(--serif); }
.sign img { flex: none; width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }

/* 4. Today's word: full-width band, the word large on the left, meaning and metadata on the right */
.today { background: var(--band); border-block: 1px solid var(--line); }
.today__grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
.hw {
  margin: 0; font: 400 clamp(2.75rem, 1.6rem + 5vw, 5rem)/1.06 var(--serif);
  letter-spacing: -0.015em; font-feature-settings: "onum", "kern"; hyphens: none; overflow-wrap: anywhere;
}
.hw.s1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 4.25rem); }
.hw.s2 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.5rem); }
.hw.s3 { font-size: clamp(1.45rem, 1.1rem + 2.6vw, 2.9rem); }
.hw.s4 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem); line-height: 1.14; }
.hw.s5 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); line-height: 1.18; }
.hw.s6 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem); line-height: 1.22; }
.hw .l { animation: type 0.3s ease-out both; }
@keyframes type { from { opacity: 0; } to { opacity: 1; } }
.hw .d0 { animation-delay: 0.350s; }
.hw .d1 { animation-delay: 0.395s; }
.hw .d2 { animation-delay: 0.440s; }
.hw .d3 { animation-delay: 0.485s; }
.hw .d4 { animation-delay: 0.530s; }
.hw .d5 { animation-delay: 0.575s; }
.hw .d6 { animation-delay: 0.620s; }
.hw .d7 { animation-delay: 0.665s; }
.hw .d8 { animation-delay: 0.710s; }
.hw .d9 { animation-delay: 0.755s; }
.hw .d10 { animation-delay: 0.800s; }
.hw .d11 { animation-delay: 0.845s; }
.hw .d12 { animation-delay: 0.890s; }
.hw .d13 { animation-delay: 0.935s; }
.hw .d14 { animation-delay: 0.980s; }
.hw .d15 { animation-delay: 1.025s; }
.hw .d16 { animation-delay: 1.070s; }
.hw .d17 { animation-delay: 1.115s; }
.hw .d18 { animation-delay: 1.160s; }
.hw .d19 { animation-delay: 1.205s; }
.hw .d20 { animation-delay: 1.250s; }
.hw .d21 { animation-delay: 1.295s; }
.hw .d22 { animation-delay: 1.340s; }
.hw .d23 { animation-delay: 1.385s; }
.hw .d24 { animation-delay: 1.430s; }
.hw .d25 { animation-delay: 1.475s; }
.hw .d26 { animation-delay: 1.520s; }
.hw .d27 { animation-delay: 1.565s; }
.hw .d28 { animation-delay: 1.610s; }
.hw .d29 { animation-delay: 1.655s; }
.hw .d30 { animation-delay: 1.700s; }
.hw .d31 { animation-delay: 1.745s; }
.hw .d32 { animation-delay: 1.790s; }
.hw .d33 { animation-delay: 1.835s; }
.hw .d34 { animation-delay: 1.880s; }
.hw .d35 { animation-delay: 1.925s; }
.hw .d36 { animation-delay: 1.970s; }
.hw .d37 { animation-delay: 2.015s; }
.hw .d38 { animation-delay: 2.060s; }
.hw .d39 { animation-delay: 2.105s; }
.hw .d40 { animation-delay: 2.150s; }
.hw .d41 { animation-delay: 2.195s; }
.hw .d42 { animation-delay: 2.240s; }
.hw .d43 { animation-delay: 2.285s; }
.hw .d44 { animation-delay: 2.330s; }
.hw .d45 { animation-delay: 2.375s; }
.hw .d46 { animation-delay: 2.420s; }
.hw .d47 { animation-delay: 2.465s; }
.hw .d48 { animation-delay: 2.510s; }
.hw .d49 { animation-delay: 2.555s; }
.hw .d50 { animation-delay: 2.600s; }
.hw .d51 { animation-delay: 2.645s; }
.hw .d52 { animation-delay: 2.690s; }
.hw .d53 { animation-delay: 2.735s; }
.hw .d54 { animation-delay: 2.780s; }
.hw .d55 { animation-delay: 2.825s; }
.hw .d56 { animation-delay: 2.870s; }
.hw .d57 { animation-delay: 2.915s; }
.hw .d58 { animation-delay: 2.960s; }
.hw .d59 { animation-delay: 3.005s; }
.hw .d60 { animation-delay: 3.050s; }
.hw .d61 { animation-delay: 3.095s; }
.hw .d62 { animation-delay: 3.140s; }
.hw .d63 { animation-delay: 3.185s; }
.hw .d64 { animation-delay: 3.230s; }
.hw .d65 { animation-delay: 3.275s; }
.hw .d66 { animation-delay: 3.320s; }
.hw .d67 { animation-delay: 3.365s; }
.hw .d68 { animation-delay: 3.410s; }
.hw .d69 { animation-delay: 3.455s; }
.hw .d70 { animation-delay: 3.500s; }
.hw .d71 { animation-delay: 3.545s; }
.hw .d72 { animation-delay: 3.590s; }
.hw .d73 { animation-delay: 3.635s; }
.hw .d74 { animation-delay: 3.680s; }
.hw .d75 { animation-delay: 3.725s; }
.hw .d76 { animation-delay: 3.770s; }
.hw .d77 { animation-delay: 3.815s; }
.hw .d78 { animation-delay: 3.860s; }
.hw .d79 { animation-delay: 3.905s; }
.hw .d80 { animation-delay: 3.950s; }
.hw .d81 { animation-delay: 3.995s; }
.hw .d82 { animation-delay: 4.040s; }
.hw .d83 { animation-delay: 4.085s; }
.hw .d84 { animation-delay: 4.130s; }
.hw .d85 { animation-delay: 4.175s; }
.hw .d86 { animation-delay: 4.220s; }
.hw .d87 { animation-delay: 4.265s; }
.hw .d88 { animation-delay: 4.310s; }
.hw .d89 { animation-delay: 4.355s; }
.hw .d90 { animation-delay: 4.400s; }
.hw .d91 { animation-delay: 4.445s; }
.hw .d92 { animation-delay: 4.490s; }
.hw .d93 { animation-delay: 4.535s; }
.hw .d94 { animation-delay: 4.580s; }
.hw .d95 { animation-delay: 4.625s; }
.hw .d96 { animation-delay: 4.670s; }
.hw .d97 { animation-delay: 4.715s; }
.hw .d98 { animation-delay: 4.760s; }
.hw .d99 { animation-delay: 4.805s; }
.hw .d100 { animation-delay: 4.850s; }
.hw .d101 { animation-delay: 4.895s; }
.hw .d102 { animation-delay: 4.940s; }
.hw .d103 { animation-delay: 4.985s; }
.hw .d104 { animation-delay: 5.030s; }
.hw .d105 { animation-delay: 5.075s; }
.hw .d106 { animation-delay: 5.120s; }
.hw .d107 { animation-delay: 5.165s; }
.hw .d108 { animation-delay: 5.210s; }
.hw .d109 { animation-delay: 5.255s; }
.hw .d110 { animation-delay: 5.300s; }
.hw .d111 { animation-delay: 5.345s; }
.hw .d112 { animation-delay: 5.390s; }
.hw .d113 { animation-delay: 5.435s; }
.hw .d114 { animation-delay: 5.480s; }
.hw .d115 { animation-delay: 5.525s; }
.hw .d116 { animation-delay: 5.570s; }
.hw .d117 { animation-delay: 5.615s; }
.hw .d118 { animation-delay: 5.660s; }
.hw .d119 { animation-delay: 5.705s; }
.hw .d120 { animation-delay: 5.750s; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; color: var(--gray); }
.meaning {
  max-width: 32ch; margin-top: 1.25rem; font: italic 400 clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem)/1.4 var(--serif);
  font-feature-settings: "onum"; text-wrap: pretty;
}
.byline { margin-top: 1rem; font: 400 0.75rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); }
.next { margin: 2rem 0 1.5rem; }
@media (min-width: 64rem) {
  .today__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; align-items: center; }
  .hw { grid-column: 1 / span 6; }
  .today__side { grid-column: 8 / span 5; }
}

/* 5. Plus: price and CTA with the heading, the free line and a numbered list of the three blocks */
.free { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.free b { font-weight: 400; color: var(--gold-text); }
.perks { counter-reset: perk; }
.perks li { counter-increment: perk; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.perks li::before {
  content: counter(perk, decimal-leading-zero); grid-row: 1 / span 2; color: var(--gold-text);
  font: 400 1.5rem/1.25 var(--serif); font-variant-numeric: lining-nums;
}
.perks h3 { font: 400 clamp(1.3rem, 1.1rem + 0.7vw, 1.5rem)/1.25 var(--serif); }
.perks p { margin-top: 0.35rem; color: var(--gray); }

/* 6. FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; cursor: pointer; list-style: none;
  font: 400 1.125rem/1.35 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--gold-text); font: 400 1.5rem/1 var(--sans); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.25rem; color: var(--gray); font: 400 1rem/1.6 var(--sans); text-wrap: pretty; }
.faq details a { color: var(--ink); }

/* 7. Closing and footer */
.closing { text-align: center; }
.closing .big { max-width: 14ch; margin: 0 auto var(--head-cta-gap); }
.closing .actions { justify-content: center; }
.colophon {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 2rem;
  padding-block: 2.5rem calc(3rem + env(safe-area-inset-bottom, 0px)); font-size: 0.875rem; line-height: 1.5; color: var(--gray);
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * max(var(--pad), env(safe-area-inset-left, 0px))) 1px no-repeat;
}
.colophon nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.colophon a, .colophon p { padding-block: 0.5rem; }

@media (min-width: 44rem) {
  .field { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
  .field span { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-top: 0; }
  .field--in span { font-size: clamp(1.4rem, 2.1vw, 1.9rem); }
  .field span:nth-child(3n+1) { justify-self: start; }
  .field span:nth-child(3n+2) { justify-self: center; margin-top: 2.5rem; }
  .field span:nth-child(3n) { justify-self: end; margin-top: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hw .l, .glow i { animation: none; }
  .bar::before { animation: none; opacity: 0.55; }
  .field span { animation: none; opacity: 1; }
}

/* Legal pages (rendered from docs/legal/*.md): one readable column. */
.legal { padding-block: 3rem 4rem; }
.legal__in { max-width: 44rem; }
.legal h1 { margin-bottom: 1.5rem; font: 400 clamp(2rem, 1.4rem + 2.6vw, 3rem)/1.1 var(--serif); letter-spacing: -0.015em; hyphens: none; text-wrap: balance; }
.legal h2 { margin: 2.75rem 0 0.75rem; font: 400 1.5rem/1.2 var(--serif); hyphens: none; text-wrap: balance; }
.legal h3 { margin: 1.75rem 0 0.5rem; font: 400 1.1875rem/1.3 var(--serif); hyphens: none; }
.legal h1, .legal h2, .legal h3 { scroll-margin-top: 5rem; }
.legal p, .legal li { text-wrap: pretty; overflow-wrap: anywhere; }
.legal p { margin-top: 0.9rem; }
.legal ul, .legal ol { margin: 0.9rem 0 0; padding-left: 1.4rem; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: 0.4rem; }
.legal li::marker { color: var(--gold-text); }
.legal hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }
.legal code { font-size: 0.9em; }
.legal__table { margin-top: 1rem; overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.45; }
.legal th, .legal td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { font-weight: 500; color: var(--gray); }

/* Share pages (/s/<code>): the DesignKit look on paper. Serif only for the word, Cal Sans for everything else, no gold:
   Signal appears only as the small type dot, the link underlines and the button fill, never as text. */
:root:has(body.share) { --glow: rgba(255, 107, 53, 0.07); }
@media (prefers-color-scheme: dark) { :root:has(body.share) { --linen: #0e0d0c; --glow: rgba(255, 107, 53, 0.1); } }
.share {
  --signal: #ff6b35;
  --signal-hover: #ff7f50;
  --signal-ink: #1c1917;
  --tertiary: #75685c;
  --sans-text: "Cal Sans Text", "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --sans-ui: "Cal Sans UI", "Inter", -apple-system, "Helvetica Neue", sans-serif;
  font: 300 1.0625rem/1.6 var(--sans-text);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) { .share { --tertiary: #9a8d80; } }
.share__in { max-width: 40rem; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 1.75rem; padding-block: 3rem 2rem; }
.share__kicker { display: flex; align-items: center; gap: 0.6rem; width: fit-content; margin-bottom: 0.5rem; font: 400 0.875rem/1.3 var(--sans-ui); color: var(--tertiary); hyphens: none; }
.share__dot { flex: none; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--signal); }
.share__word { font: 400 clamp(2.25rem, 1.4rem + 4.5vw, 4rem)/1.1 var(--serif); letter-spacing: -0.01em; hyphens: auto; overflow-wrap: anywhere; text-wrap: balance; }
.share__meaning { font: 300 1.25rem/1.5 var(--sans-text); color: var(--gray); hyphens: auto; overflow-wrap: anywhere; text-wrap: pretty; }
.share__go { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 2.75rem; padding: 0.5rem 1.5rem; border-radius: 999px; background: var(--signal); color: var(--signal-ink); font: 400 1rem/1.2 var(--sans-ui); text-decoration: none; transition: transform 0.16s var(--ease-out), background-color 0.16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .share__go:hover { background: var(--signal-hover); } }
.share__go:active { transform: scale(0.97); }
.share :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-color-scheme: dark) { .share :focus-visible { outline-color: var(--signal); } }
.share__promise { color: var(--gray); font: 400 0.9375rem/1.5 var(--sans-ui); }
.share__more { display: grid; gap: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font: 400 0.9375rem/1.5 var(--sans-ui); color: var(--gray); }
.share a:not(.share__go) { color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
.share__brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; font: 400 0.9375rem/1.3 var(--sans-ui); color: var(--gray); }
.share__brand a { color: var(--gray); overflow-wrap: anywhere; }
.share__logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.share__logo img { border-radius: 0.5rem; }
@media (prefers-contrast: more) { .share__go { background: var(--ink); color: var(--linen); } }
@media (prefers-reduced-motion: reduce) { .share__go { transition: none; } .share__go:active { transform: none; } }
