/* LittleLore website (I-02). Colours, type and shapes follow DESIGN.md: "Candy jar" by day, "Evening" by night.
   Scroll scenes read --p (0..1, set by site.js); without scripts every scene shows its final state. */

/* ---------- Fonts (subsets of the app's own Nunito and Literata, OFL) ---------- */
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens: Day ---------- */
:root {
  --bg: #EDF3F9; --surface: #FFFEFC; --surface2: #E2EBF5; --raised: #FFFEFC; --hairline: #DDE7F1;
  --outline: #77879B; --ink: #303B4C; --muted: #596A7E;
  --sky: #ABD9F4; --sky-s: #2E5D86; --lavender: #DDD5F3; --lavender-s: #6250A7;
  --floss: #F8CBDF; --floss-s: #943F66; --strawberry: #F2A2C4; --strawberry-s: #7B2D4F;
  --peach: #FFD9C4; --peach-s: #984E2B; --lemonade: #FFE9A9; --lemonade-s: #836415;
  --pistachio: #D8ECB9; --pistachio-s: #4D6B29; --mint: #C3EADB; --mint-s: #2A6E57;
  --dawn-a: #CDE7F8; --dawn-b: #FBE8F1;
  --paper: #FFFDF8; --paper-line: #E9EEF5;
  --frame: #2B3442; --shade: rgba(60, 100, 150, .18); --shade-strong: rgba(60, 100, 150, .28);
  --cloud: rgba(255, 254, 252, .85); --sun: #FFE9A9; --sun-glow: rgba(255, 233, 169, .55);
  --fill-a: 1; /* candy fills: pastel as is by day */
  --on-pastel: #303B4C; /* text on a pastel fill: Ink by day, Dusk by night (DESIGN §1.5) */
  --link: var(--sky-s); --focus: var(--sky-s);
  /* The trail (trail.js): footprints by season, water, chalk, leaves, snow */
  --t-spring: color-mix(in srgb, #8A6F55 30%, var(--bg)); --t-summer: color-mix(in srgb, #C0904E 38%, var(--bg));
  --t-autumn: color-mix(in srgb, #7B5034 32%, var(--bg)); --t-winter: color-mix(in srgb, #4A78AA 30%, var(--bg));
  --t-wet: color-mix(in srgb, #3D6D9E 50%, var(--bg));
  --t-puddle: color-mix(in srgb, #8CC8EE 72%, var(--bg)); --t-puddle-rim: color-mix(in srgb, #8A6F55 26%, var(--bg));
  --t-shine: rgba(255, 255, 255, .85); --t-drop: #7DBDE8; --t-chalk: #EE96BC;
  --t-leaf1: #E8893A; --t-leaf2: #D45F3C; --t-leaf3: #EDB540; --t-leaf4: #B07A45;
  --t-snow: #FFFFFF; --t-snow-shadow: rgba(60, 100, 150, .16); --t-dent: color-mix(in srgb, #6F9BCB 30%, #FFFFFF);
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 28px;
  --gutter: 16px; --max: 1160px; --top: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
  interpolate-size: allow-keywords;
}

/* ---------- Tokens: Evening (system dark or the toggle) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #242B35; --surface: #2C3440; --surface2: #333C49; --raised: #36404D; --hairline: #3D4756;
    --outline: #808EA1; --ink: #EAF0F7; --muted: #A9B6C6;
    --sky-s: #ABD9F4; --lavender-s: #DDD5F3; --floss-s: #F8CBDF; --strawberry-s: #F2A2C4; --peach-s: #FFD9C4;
    --lemonade-s: #FFE9A9; --pistachio-s: #D8ECB9; --mint-s: #C3EADB;
    --dawn-a: #2C3A50; --dawn-b: #3E3449;
    --paper: #313946; --paper-line: #3A4452;
    --frame: #12171E; --shade: rgba(0, 0, 0, .25); --shade-strong: rgba(0, 0, 0, .4);
    --cloud: rgba(234, 240, 247, .07); --sun: #C9D4E2; --sun-glow: rgba(201, 212, 226, .12);
    --fill-a: .2; --on-pastel: #242B35;
    --t-spring: color-mix(in srgb, #E2CFB8 18%, var(--bg)); --t-summer: color-mix(in srgb, #F0D2A0 20%, var(--bg));
    --t-autumn: color-mix(in srgb, #D9A884 20%, var(--bg)); --t-winter: color-mix(in srgb, #B9D4F2 20%, var(--bg));
    --t-wet: color-mix(in srgb, #9CCBF2 34%, var(--bg));
    --t-puddle: color-mix(in srgb, #ABD9F4 24%, var(--bg)); --t-puddle-rim: color-mix(in srgb, #E2CFB8 10%, var(--bg));
    --t-shine: rgba(234, 240, 247, .35); --t-drop: color-mix(in srgb, #ABD9F4 55%, var(--bg)); --t-chalk: color-mix(in srgb, #F2A2C4 60%, var(--bg));
    --t-leaf1: color-mix(in srgb, #E8893A 62%, var(--bg)); --t-leaf2: color-mix(in srgb, #D45F3C 62%, var(--bg));
    --t-leaf3: color-mix(in srgb, #EDB540 62%, var(--bg)); --t-leaf4: color-mix(in srgb, #B07A45 62%, var(--bg));
    --t-snow: color-mix(in srgb, #EAF0F7 20%, var(--bg)); --t-snow-shadow: rgba(0, 0, 0, .22); --t-dent: color-mix(in srgb, #9EBFE3 12%, var(--bg));
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #242B35; --surface: #2C3440; --surface2: #333C49; --raised: #36404D; --hairline: #3D4756;
  --outline: #808EA1; --ink: #EAF0F7; --muted: #A9B6C6;
  --sky-s: #ABD9F4; --lavender-s: #DDD5F3; --floss-s: #F8CBDF; --strawberry-s: #F2A2C4; --peach-s: #FFD9C4;
  --lemonade-s: #FFE9A9; --pistachio-s: #D8ECB9; --mint-s: #C3EADB;
  --dawn-a: #2C3A50; --dawn-b: #3E3449;
  --paper: #313946; --paper-line: #3A4452;
  --frame: #12171E; --shade: rgba(0, 0, 0, .25); --shade-strong: rgba(0, 0, 0, .4);
  --cloud: rgba(234, 240, 247, .07); --sun: #C9D4E2; --sun-glow: rgba(201, 212, 226, .12);
  --fill-a: .2; --on-pastel: #242B35;
  --t-spring: color-mix(in srgb, #E2CFB8 18%, var(--bg)); --t-summer: color-mix(in srgb, #F0D2A0 20%, var(--bg));
  --t-autumn: color-mix(in srgb, #D9A884 20%, var(--bg)); --t-winter: color-mix(in srgb, #B9D4F2 20%, var(--bg));
  --t-wet: color-mix(in srgb, #9CCBF2 34%, var(--bg));
  --t-puddle: color-mix(in srgb, #ABD9F4 24%, var(--bg)); --t-puddle-rim: color-mix(in srgb, #E2CFB8 10%, var(--bg));
  --t-shine: rgba(234, 240, 247, .35); --t-drop: color-mix(in srgb, #ABD9F4 55%, var(--bg)); --t-chalk: color-mix(in srgb, #F2A2C4 60%, var(--bg));
  --t-leaf1: color-mix(in srgb, #E8893A 62%, var(--bg)); --t-leaf2: color-mix(in srgb, #D45F3C 62%, var(--bg));
  --t-leaf3: color-mix(in srgb, #EDB540 62%, var(--bg)); --t-leaf4: color-mix(in srgb, #B07A45 62%, var(--bg));
  --t-snow: color-mix(in srgb, #EAF0F7 20%, var(--bg)); --t-snow-shadow: rgba(0, 0, 0, .22); --t-dent: color-mix(in srgb, #9EBFE3 12%, var(--bg));
  color-scheme: dark;
}

/* A candy for a block: [data-candy] or a modifier sets --c (pastel) and --cs (text on it). */
[data-candy="sky"], .badge--sky { --c: var(--sky); --cs: var(--sky-s); }
[data-candy="lavender"], .badge--lavender { --c: var(--lavender); --cs: var(--lavender-s); }
[data-candy="floss"], .badge--floss, .promise--floss { --c: var(--floss); --cs: var(--floss-s); }
[data-candy="strawberry"] { --c: var(--strawberry); --cs: var(--strawberry-s); }
[data-candy="peach"], .badge--peach, .promise--peach { --c: var(--peach); --cs: var(--peach-s); }
[data-candy="lemonade"] { --c: var(--lemonade); --cs: var(--lemonade-s); }
[data-candy="pistachio"], .badge--pistachio { --c: var(--pistachio); --cs: var(--pistachio-s); }
[data-candy="mint"], .promise--mint { --c: var(--mint); --cs: var(--mint-s); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); overflow-x: clip; }
/* Decorations may hang over the edge; clip (not hidden) keeps sticky scenes working. */
.inside, .private, .values, .get { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Nunito", system-ui, sans-serif;
  font-variant-numeric: lining-nums; overflow-x: clip;
  transition: background-color .3s, color .3s;
}
@media (min-width: 700px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.25rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 24px; height: 24px; fill: currentColor; flex: none; }
/* A menu path's arrow inside text: the app's arrow at the text's size, pointing forward. */
.ic--path { width: 1em; height: 1em; vertical-align: -.14em; margin: 0 .1em; scale: -1 1; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--surface); }
.skip:focus { top: 12px; }

.eyebrow { font-size: .95rem; font-weight: 700; color: var(--sky-s); letter-spacing: .01em; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--muted); line-height: 1.55; }
.sechead { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; display: grid; gap: 14px; }

/* Pills: Lollipop (main), Marshmallow (tonal), Ghost (text); all 48 px high (DESIGN §5). */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.2; color: var(--ink); text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.pill:hover { text-decoration: none; }
.pill--lollipop { background: var(--sky); color: var(--on-pastel); box-shadow: 0 6px 18px var(--shade); }
.pill--lollipop:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--shade-strong); }
.pill--marshmallow { background: var(--surface2); }
.pill--ghost { color: var(--sky-s); }
.pill--ghost:hover { background: color-mix(in srgb, var(--sky) 22%, transparent); }
.pill--candy { background: color-mix(in srgb, var(--strawberry) calc(var(--fill-a) * 100%), transparent); color: var(--strawberry-s); min-height: 40px; padding: 0 16px; font-size: .95rem; }
.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer; transition: background-color .15s;
}
.iconbtn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

.badge {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--c, var(--sky)) calc(var(--fill-a) * 100%), transparent);
  color: var(--cs, var(--sky-s)); font-weight: 600; font-size: .9rem; line-height: 1.3; white-space: nowrap;
}
.badge b { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--hairline); }
.topbar__in { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand__icon { border-radius: 9px; }
.topnav { display: none; gap: 4px; margin-left: 16px; }
.topnav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .98rem; }
.topnav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); text-decoration: none; }
.topbar__tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.lang-switch { min-height: 40px; padding: 0 12px; }
/* The language menu: the current language's code opens a list of every language by its own name. */
.langs { position: relative; }
.langs > summary { list-style: none; cursor: pointer; }
.langs > summary::-webkit-details-marker { display: none; }
.langs__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; display: grid; min-width: 190px;
  max-height: calc(100svh - var(--top) - 16px); overflow-y: auto; padding: 6px; border-radius: var(--r-m);
  background: var(--raised); border: 1px solid var(--hairline); box-shadow: 0 12px 32px var(--shade-strong);
}
.langs__menu a { padding: 10px 14px; border-radius: var(--r-s); color: var(--ink); font-weight: 600; }
.langs__menu a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); text-decoration: none; }
.langs__menu a[aria-current] { color: var(--sky-s); }
.theme-toggle .ic--moon, :root[data-theme="dark"] .theme-toggle .ic--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic--moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic--sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .ic--moon { display: block; }
}
.topbar__cta { display: none; }
@media (min-width: 560px) { .topbar__cta { display: inline-flex; } }
@media (min-width: 980px) { .topnav { display: flex; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 100svh;
  padding: calc(var(--top) + 32px) 0 72px;
  background: linear-gradient(180deg, var(--dawn-a) 0%, var(--dawn-b) 78%, var(--bg) 100%);
  display: grid; align-items: center;
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute; top: calc(var(--top) + 6px); right: 4%; width: clamp(130px, 12vw, 180px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--sun) 0 60%, var(--sun-glow) 62%, transparent);
  animation: sun-rise 2.4s var(--ease) both;
}
.cloud { position: absolute; height: 1px; border-radius: 999px; background: var(--cloud); filter: blur(2px); }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud--1 { top: 36%; right: 2%; width: clamp(180px, 24vw, 320px); height: clamp(44px, 6vw, 76px); animation: drift 70s linear infinite alternate; }
.cloud--1::before { width: 46%; aspect-ratio: 1; left: 14%; bottom: 30%; }
.cloud--1::after { width: 36%; aspect-ratio: 1; left: 46%; bottom: 40%; }
.cloud--2 { top: 62%; left: -4%; width: clamp(160px, 20vw, 280px); height: clamp(38px, 5vw, 64px); opacity: .8; animation: drift 90s linear infinite alternate-reverse; }
.cloud--2::before { width: 42%; aspect-ratio: 1; left: 20%; bottom: 34%; }
.cloud--2::after { width: 30%; aspect-ratio: 1; left: 52%; bottom: 40%; }
.cloud--3 { top: 10%; left: 18%; width: clamp(110px, 12vw, 180px); height: clamp(28px, 3vw, 44px); opacity: .6; animation: drift 110s linear infinite alternate; }
.cloud--3::before { width: 48%; aspect-ratio: 1; left: 22%; bottom: 30%; }
@keyframes drift { to { translate: 12vw 0; } }
/* On a phone the headline takes the whole width: a small sun sits in the corner above it, whole, never behind the words. */
@media (max-width: 959px) {
  .sun { top: calc(var(--top) + 10px); right: 12px; width: 96px; }
  .cloud--1, .cloud--3 { display: none; }
}
@keyframes sun-rise { from { translate: 0 40px; opacity: 0; } }

.hero__in {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); width: 100%;
  display: grid; gap: 48px; align-items: center;
  translate: 0 calc(var(--p, 0) * -60px); opacity: calc(1 - var(--p, 0) * .5);
}
@media (min-width: 960px) { .hero__in { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero__copy { display: grid; gap: 22px; max-width: 620px; }
.hero__title { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 4.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; }
.hero__lead { font-size: clamp(1.12rem, 1rem + .5vw, 1.4rem); color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero .reveal:nth-child(2) { transition-delay: .08s; } .hero .reveal:nth-child(3) { transition-delay: .16s; } .hero .reveal:nth-child(4) { transition-delay: .24s; }
.scrollcue {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--muted); animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue { 50% { transform: translateY(6px); } }

/* The living diary: pages stack, the top one turns away like a real page. */
.diary { position: relative; display: grid; justify-items: center; gap: 18px; perspective: 1800px; }
.diary__book {
  position: relative; width: min(420px, 84vw); aspect-ratio: 4 / 5;
  transform-style: preserve-3d; rotate: -2.5deg; animation: float 8s ease-in-out infinite alternate;
}
.diary__book::before, .diary__book::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px 26px 26px 16px; background: var(--paper);
  box-shadow: 0 2px 0 var(--paper-line); translate: 8px 8px; rotate: 1.8deg; opacity: .9;
}
.diary__book::after { translate: 15px 15px; rotate: 3.4deg; opacity: .7; box-shadow: 0 18px 40px var(--shade); }
@keyframes float { to { translate: 0 -10px; rotate: -1.5deg; } }
.diary__spine {
  position: absolute; z-index: 6; left: 14px; top: 18px; bottom: 18px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--floss) 0 10px, transparent 10px 18px); opacity: .9;
}
.dpage {
  position: absolute; inset: 0; z-index: 1; padding: 26px 26px 26px 38px; border-radius: 16px 26px 26px 16px;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, var(--paper-line) 31px 32px) 0 100% / 100% 34% no-repeat,
    var(--paper);
  box-shadow: 0 1px 0 var(--paper-line), 0 14px 40px var(--shade);
  display: grid; grid-template-rows: auto 1fr auto; gap: 16px;
  transform-origin: 0 50%; backface-visibility: hidden;
  opacity: 0; visibility: hidden;
}
.dpage.is-on { z-index: 2; opacity: 1; visibility: visible; }
.dpage.is-out { z-index: 4; opacity: 1; visibility: visible; animation: turn-away 1.1s cubic-bezier(.5, 0, .4, 1) forwards; }
.js .dpage.is-on { animation: page-in .7s var(--ease) both; }
@keyframes turn-away {
  0% { transform: rotateY(0); box-shadow: 0 14px 40px var(--shade); }
  100% { transform: rotateY(-115deg); opacity: 0; box-shadow: -30px 14px 60px var(--shade-strong); }
}
@keyframes page-in { from { filter: brightness(.94); } }
.dpage__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dpage__date { color: var(--muted); font-size: .9rem; font-weight: 500; }
.dpage__photo {
  margin: 0; min-height: 0; padding: 10px 10px 26px; background: var(--surface); border-radius: var(--r-m);
  box-shadow: 0 8px 22px var(--shade); rotate: 1.6deg; align-self: center;
}
.dpage:nth-of-type(even) .dpage__photo { rotate: -1.8deg; }
.dpage__photo .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.js .dpage.is-on .dpage__photo .photo { animation: develop 2.2s ease-out .25s both; }
@keyframes develop {
  0% { filter: saturate(0) brightness(1.7) blur(5px); opacity: .35; }
  60% { filter: saturate(.8) brightness(1.08) blur(0); opacity: 1; }
}
.dpage__text { font: italic 400 clamp(1.05rem, .95rem + .4vw, 1.25rem)/1.5 "Literata", Georgia, serif; color: var(--ink); min-height: 3em; }
.dpage__text .w { display: inline-block; opacity: 0; translate: 0 6px; filter: blur(3px); transition: opacity .5s, translate .5s var(--ease), filter .5s; }
.dpage.is-on .dpage__text .w { opacity: 1; translate: none; filter: none; }
.diary__controls { display: flex; align-items: center; gap: 12px; position: relative; z-index: 5; }
.diary__dots { display: flex; gap: 8px; }
.diary__dots li { width: 8px; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: width .4s var(--ease), background-color .4s; }
.diary__dots li.is-on { width: 26px; background: var(--sky-s); }
.diary__pause .ic--play, .diary__pause[aria-pressed="true"] .ic--pause { display: none; }
.diary__pause[aria-pressed="true"] .ic--play { display: block; }
.diary__pause .ic { width: 22px; height: 22px; }

/* ---------- Placeholders until the real photos and screenshots arrive ---------- */
.ph { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; position: relative; overflow: hidden; }
.ph::after { content: ""; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; right: 14%; top: 16%; background: rgba(255, 254, 252, .55); }
.ph--0 { background: linear-gradient(140deg, #FBE8F1, #F8CBDF 60%, #FFD9C4); }
.ph--1 { background: linear-gradient(140deg, #CDE7F8, #ABD9F4 60%, #DDD5F3); }
.ph--2 { background: linear-gradient(140deg, #FFF4D2, #FFE9A9 55%, #FFD9C4); }
.ph--3 { background: linear-gradient(140deg, #E8F5D6, #D8ECB9 55%, #C3EADB); }
.ph--4 { background: linear-gradient(140deg, #EEE9FA, #DDD5F3 55%, #F8CBDF); }
.ph--5 { background: linear-gradient(140deg, #E0F4EC, #C3EADB 55%, #ABD9F4); }

/* ---------- Phone ---------- */
.phone {
  position: relative; width: min(300px, 68vw); padding: 10px; border-radius: 46px; background: var(--frame);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--frame) 70%, #8899AA), 0 30px 70px var(--shade-strong);
}
.phone::before { content: ""; position: absolute; z-index: 3; top: 22px; left: 50%; translate: -50% 0; width: 12px; height: 12px; border-radius: 50%; background: var(--frame); }
.phone__screen { position: relative; aspect-ratio: 9 / 20; border-radius: 36px; overflow: hidden; background: var(--bg); isolation: isolate; }
.screen { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(1.03); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.screen.is-on { opacity: 1; transform: none; }
.shot { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot--eve { display: none; }
:root[data-theme="dark"] .shot--eve { display: block; } :root[data-theme="dark"] .shot--day { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot--eve { display: block; }
  :root:not([data-theme="light"]) .shot--day { display: none; }
}
.shot-ph {
  display: grid; place-items: end center; padding: 0 18px 28%;
  background:
    linear-gradient(var(--surface), var(--surface)) 16px 46% / calc(100% - 32px) 15% no-repeat,
    linear-gradient(var(--surface), var(--surface)) 16px 64% / calc(100% - 32px) 15% no-repeat,
    linear-gradient(180deg, var(--dawn-a), var(--dawn-b) 34%, var(--bg) 34.2%);
}
.shot-ph__label { padding: 6px 14px; border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 700; font-size: .85rem; text-align: center; }

/* ---------- The trail: a child runs down the page through the year (trail.js) ---------- */
.landing main { position: relative; }
.landing main > section { position: relative; }
.trail { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
/* What moves turns and grows around its own middle, not around the corner of the page. */
.ripple, .drop, .puff, .leaf { transform-box: fill-box; transform-origin: center; }
.fp { opacity: 0; transition: opacity .35s ease-out; }
.fp.on { opacity: 1; }
.fp--spring { color: var(--t-spring); } .fp--summer { color: var(--t-summer); }
.fp--autumn { color: var(--t-autumn); } .fp--winter { color: var(--t-winter); }
.fp--wet3 { color: var(--t-wet); }
.fp--wet2 { color: color-mix(in srgb, var(--t-wet) 62%, var(--t-spring)); }
.fp--wet1 { color: color-mix(in srgb, var(--t-wet) 30%, var(--t-spring)); }
.puddle__rim { fill: var(--t-puddle-rim); }
.puddle__water { fill: var(--t-puddle); }
.puddle__shine { fill: none; stroke: var(--t-shine); stroke-width: 3; stroke-linecap: round; }
.ripple { fill: none; stroke: var(--t-shine); stroke-width: 2; opacity: 0; }
.puddle.is-play .ripple { animation: ripple 1.1s ease-out both; }
.puddle.is-play .ripple + .ripple { animation-delay: .3s; }
@keyframes ripple { from { scale: .25; opacity: .95; } to { scale: 1.2; opacity: 0; } }
.drop { fill: var(--t-drop); opacity: 0; }
.puff { fill: var(--t-snow); stroke: var(--t-snow-shadow); stroke-width: 1; opacity: 0; }
.puddle.is-play .drop, .drift.is-play .puff { animation: splash .85s cubic-bezier(.2, .7, .3, 1) var(--d, 0s) both; }
@keyframes splash {
  0% { opacity: 1; translate: 0 0; scale: .5; }
  50% { opacity: 1; scale: 1.25; }
  100% { opacity: 0; translate: var(--tx) var(--ty); scale: .7; }
}
.chalk { fill: none; stroke: var(--t-chalk); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chalk-num { fill: var(--t-chalk); font-family: "Nunito", system-ui, sans-serif; font-weight: 800; text-anchor: middle; dominant-baseline: central; }
.leaf--1 { color: var(--t-leaf1); } .leaf--2 { color: var(--t-leaf2); } .leaf--3 { color: var(--t-leaf3); } .leaf--4 { color: var(--t-leaf4); }
.leaf__rib { fill: none; stroke: rgba(0, 0, 0, .16); stroke-width: 4; stroke-linecap: round; }
.leaf { transition: translate 1.3s cubic-bezier(.15, .75, .3, 1) var(--d, 0s), rotate 1.3s cubic-bezier(.15, .75, .3, 1) var(--d, 0s); }
.leaves.is-on .leaf { translate: var(--tx) var(--ty); rotate: var(--r); }
.leaves.is-play .leaf { animation: lift 1.1s ease-out var(--d, 0s) both; }
@keyframes lift { 40% { scale: 1.45; } }
.drift__snow { fill: var(--t-snow); }
.drift__shadow { fill: var(--t-snow-shadow); }
.angel { opacity: 0; transition: opacity .3s .15s; }
.drift.is-on .angel { opacity: 1; }
.angel__body { fill: var(--t-dent); }
.angel__fan { fill: none; stroke: var(--t-dent); stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.3, .6, .3, 1) .35s; }
.drift.is-on .angel__fan { stroke-dashoffset: 0; }
.trail--quiet *, .trail--still * { transition: none !important; animation: none !important; }

/* ---------- 2. What's inside ---------- */
.inside { padding: clamp(80px, 12vw, 150px) 0 40px; }
.story { position: relative; max-width: var(--max); margin: 56px auto 0; padding: 0 var(--gutter); display: grid; }
.story__stage {
  position: sticky; top: var(--top); z-index: 2; height: 58svh; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--bg) 82%, transparent);
}
.story__stage .phone { width: auto; height: calc(58svh - 36px); }
.story__stage .phone__screen { height: 100%; }
.story__glow {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(640px, 95%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) calc(var(--fill-a) * 90% + 10%), transparent) 30%, transparent);
  transition: background .7s;
}
.story__steps { position: relative; z-index: 1; display: grid; }
/* The step being shown is in Ink with a lifted icon; the others stay readable in Slate (contrast >= 4.5:1). */
.step { min-height: 70svh; display: grid; align-content: end; gap: 10px; padding: 0 0 12svh; color: var(--muted); }
.step h3 { transition: color .4s; }
.step.is-on h3 { color: var(--ink); }
.step:not(.is-on) .step__ic { background: var(--surface2); color: var(--muted); }
.step > * { max-width: 520px; }
.step__ic {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px;
  background: color-mix(in srgb, var(--c) calc(var(--fill-a) * 100%), transparent); color: var(--cs);
  transition: transform .5s var(--ease), background-color .4s, color .4s;
}
.step.is-on .step__ic { transform: rotate(-6deg) scale(1.06); }
.step h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); font-weight: 800; }
.step p { color: var(--muted); font-size: 1.1rem; }
@media (min-width: 900px) {
  .story { grid-template-columns: 1fr 1fr; gap: 64px; }
  .story__stage { top: calc(var(--top) + 4vh); height: calc(100svh - var(--top) - 8vh); background: none; }
  .story__stage .phone { height: min(640px, calc(100svh - var(--top) - 14vh)); }
  .story__glow { width: min(640px, 125%); }
  .step { min-height: 78svh; align-content: center; padding: 0; }
  .story__steps { padding: 10svh 0; }
}

/* ---------- 3. Only yours ---------- */
.private { padding: clamp(80px, 12vw, 150px) 0; --q: clamp(0, calc((var(--p, 1) - .12) * 2.4), 1); }
.private__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 48px; align-items: center; }
/* On a phone the autumn leaves lie between the circle and the words: room for them to fly apart. */
@media (max-width: 959px) { .js .landing .private__in { gap: 150px; } }
@media (min-width: 960px) { .private__in { grid-template-columns: 1fr 1fr; gap: 72px; } }
.private__copy { display: grid; gap: 16px; }
.facts { display: grid; gap: 14px; margin-top: 12px; }
.fact { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--r-l); background: var(--surface); }
.fact__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex: none; background: color-mix(in srgb, var(--sky) calc(var(--fill-a) * 100%), transparent); color: var(--sky-s); }
.fact h3 { margin-bottom: 4px; }
.fact p { color: var(--muted); }
.facts .reveal:nth-child(2) { transition-delay: .1s; } .facts .reveal:nth-child(3) { transition-delay: .2s; }

.vault { position: relative; width: min(440px, 88vw); aspect-ratio: 1; margin: 0 auto; }
.vault__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* The disc is opaque: on a phone the trail has no room beside the circle and runs on beneath it. */
.vault__ring circle {
  fill: color-mix(in srgb, var(--sky) calc(var(--q) * 22%), var(--bg)); stroke: var(--sky-s); stroke-width: 2.5;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--q)); stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: center;
}
.vault__core {
  position: absolute; inset: 39%; display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, var(--floss) calc(var(--fill-a) * 100%), transparent); color: var(--floss-s);
  scale: calc(.7 + var(--q) * .3); box-shadow: 0 0 0 calc(var(--q) * 14px) color-mix(in srgb, var(--floss) 25%, transparent);
}
.vault__core .ic { width: 40%; height: 40%; animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 15% { scale: 1.12; } 30% { scale: 1; } 45% { scale: 1.08; } 60% { scale: 1; } }
.vault__photo {
  position: absolute; width: 26%; padding: 5px 5px 14px; border-radius: 10px; background: var(--surface);
  box-shadow: 0 8px 20px var(--shade);
  translate: calc((1 - var(--q)) * var(--dx)) calc((1 - var(--q)) * var(--dy));
  rotate: calc(var(--r) * (1 - var(--q)) + var(--r2));
  opacity: calc(.25 + var(--q) * .75);
}
.vault__photo .photo { aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
.vault__photo--1 { left: 16%; top: 18%; --dx: -60%; --dy: -70%; --r: -24deg; --r2: -6deg; }
.vault__photo--2 { right: 15%; top: 21%; --dx: 70%; --dy: -60%; --r: 22deg; --r2: 7deg; }
.vault__photo--3 { left: 19%; bottom: 17%; --dx: -70%; --dy: 60%; --r: 18deg; --r2: 5deg; }
.vault__photo--4 { right: 18%; bottom: 15%; --dx: 60%; --dy: 70%; --r: -20deg; --r2: -5deg; }
.vault__away {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); color: var(--muted); box-shadow: 0 6px 16px var(--shade);
  translate: calc(var(--q) * var(--ox)) calc(var(--q) * var(--oy)); opacity: calc(1 - var(--q) * .85); scale: calc(1 - var(--q) * .25);
}
.vault__away--1 { left: 47%; top: -1%; --ox: 0px; --oy: -60px; }
.vault__away--2 { left: -3%; top: 56%; --ox: -60px; --oy: 10px; }
.vault__away--3 { right: -3%; top: 50%; --ox: 60px; --oy: 10px; }

/* ---------- 4. The book (pinned: the leaves turn while you scroll) ---------- */
.book { position: relative; height: 260svh; }
.book__in {
  position: sticky; top: 0; height: 100svh; max-width: var(--max); margin: 0 auto; padding: calc(var(--top) + 12px) var(--gutter) 24px;
  display: grid; gap: 28px; align-content: center; justify-items: center;
}
@media (min-width: 960px) { .book__in { grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; justify-items: stretch; } }
.book__copy { display: grid; gap: 14px; max-width: 520px; }
.ticks { display: grid; gap: 10px; margin-top: 6px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ticks .ic { color: var(--mint-s); }
.ticks .reveal:nth-child(2) { transition-delay: .1s; } .ticks .reveal:nth-child(3) { transition-delay: .2s; }
.book3d {
  --q1: clamp(0, calc((var(--p, 1) - .08) * 3.4), 1);
  --q2: clamp(0, calc((var(--p, 1) - .38) * 3.4), 1);
  --q3: clamp(0, calc((var(--p, 1) - .66) * 3.4), 1);
  position: relative; width: min(300px, 40vw); aspect-ratio: 1; perspective: 1600px; transform-style: preserve-3d;
  translate: calc(var(--q1) * 50%) 0; rotate: x 8deg;
  justify-self: center;
}
/* On a phone the screen may be too short for the book and the words together (a browser's own bars can take a third
   of it): only the book stays, under the top bar, as wide as its open spread allows, and the words scroll on beneath
   it while the pages turn. The scene is opaque, so the trail runs on under it. On a wide screen the stage is no box. */
.book__stage { display: contents; }
@media (max-width: 959px) {
  .book { height: auto; }
  .book__in {
    position: relative; height: auto; display: block; padding: 0 0 40px;
    background: linear-gradient(180deg, transparent, var(--bg) 32px);
  }
  .book__stage {
    display: grid; justify-items: center; position: sticky; top: var(--top); z-index: 2; padding: 24px var(--gutter) 36px;
    background: linear-gradient(180deg, var(--bg) calc(100% - 20px), transparent);
  }
  .book3d { width: min(250px, calc(50vw - var(--gutter) - 4px)); }
  .book__copy { margin: 0 auto; padding: 0 var(--gutter); }
}
.book3d__last, .leaf__front, .leaf__back {
  position: absolute; inset: 0; border-radius: 4px 14px 14px 4px; background: var(--paper);
  box-shadow: inset 6px 0 10px -6px var(--shade-strong); padding: 9%; display: grid; gap: 5%;
}
.book3d__last { box-shadow: inset 6px 0 10px -6px var(--shade-strong), 0 20px 50px var(--shade-strong); }
.leaf { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 0 50%; }
.leaf--1 { transform: translateZ(3px) rotateY(calc(var(--q1) * -172deg)); }
.leaf--2 { transform: translateZ(2px) rotateY(calc(var(--q2) * -170deg)); }
.leaf--3 { transform: translateZ(1px) rotateY(calc(var(--q3) * -168deg)); }
.leaf__front, .leaf__back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf__back { transform: rotateY(180deg); border-radius: 14px 4px 4px 14px; box-shadow: inset -6px 0 10px -6px var(--shade-strong); }
/* Page layouts, as in a photo album: words, one photo, two, one wide over two, four. */
.bpage--words { align-content: center; justify-items: start; gap: 8%; }
.bpage--words .badge { font-size: .72rem; padding: 2px 9px; }
.bpage--two { grid-template-rows: 1fr 1fr; }
.bpage--three { grid-template: 1.2fr 1fr / 1fr 1fr; }
.bpage--three figure:first-child { grid-column: 1 / -1; }
.bpage--four { grid-template: 1fr 1fr / 1fr 1fr; }
.book3d figure { margin: 0; min-height: 0; min-width: 0; }
.book3d .photo { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 3px; }
.book3d__words { font: italic 400 clamp(.82rem, .7rem + .5vw, 1.05rem)/1.55 "Literata", Georgia, serif; color: var(--ink); }
.book3d__cover {
  border-radius: 4px 16px 16px 4px; padding: 12%; display: grid; place-content: center; text-align: center; gap: 10px; grid-template-rows: none;
  background: linear-gradient(160deg, #2A6E6A, #1F5552); color: #F6EBD3;
  box-shadow: inset 8px 0 12px -6px rgba(0, 0, 0, .35), 0 24px 50px var(--shade-strong);
}
.book3d__ornament { width: 54px; height: 54px; margin: 0 auto 6px; border: 2px solid #D9BE86; border-radius: 50%; position: relative; }
.book3d__ornament::after { content: ""; position: absolute; inset: 9px; border: 1.5px solid #D9BE86; border-radius: 50%; }
.book3d__title { font: 600 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.1 "Literata", Georgia, serif; }
.book3d__sub { font: italic 400 clamp(.85rem, .75rem + .3vw, 1rem)/1.3 "Literata", Georgia, serif; color: #D9BE86; }

/* ---------- 5. What we stand for ---------- */
.values { padding: clamp(80px, 12vw, 150px) 0; }
.promises { max-width: var(--max); margin: 52px auto 0; padding: 0 var(--gutter); display: grid; gap: 18px; }
@media (min-width: 900px) { .promises { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.promise { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 2px 0 var(--hairline); }
.promise__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: color-mix(in srgb, var(--c) calc(var(--fill-a) * 100%), transparent); color: var(--cs); margin-bottom: 6px; }
.promise h3 { font-size: 1.4rem; font-weight: 800; }
.promise p { color: var(--muted); }
.js .promises .reveal { transform: translateY(30px) rotate(-1.5deg); }
.js .promises .reveal:nth-child(2) { transform: translateY(40px) rotate(1.2deg); transition-delay: .12s; }
.js .promises .reveal:nth-child(3) { transform: translateY(30px) rotate(-1deg); transition-delay: .24s; }
.js .promises .reveal.is-in { transform: none; }
.stamp {
  display: flex; width: fit-content; align-items: center; gap: 10px; margin: 44px auto 0; padding: 12px 22px 12px 16px;
  border-radius: 999px; background: color-mix(in srgb, var(--mint) calc(var(--fill-a) * 100%), transparent); color: var(--mint-s);
  font-weight: 800; font-size: 1.15rem; rotate: -2deg;
}

/* ---------- 6. From the maker ---------- */
.maker { padding: clamp(40px, 8vw, 100px) var(--gutter) clamp(80px, 12vw, 150px); }
.letter {
  position: relative; max-width: 660px; margin: 0 auto; padding: clamp(32px, 5vw, 56px); border-radius: 6px 6px var(--r-l) var(--r-l);
  background: var(--paper); box-shadow: 0 24px 60px var(--shade); display: grid; gap: 22px;
}
.js .letter.reveal { transform: translateY(30px) rotate(1.5deg); }
.js .letter.reveal.is-in { transform: rotate(-.8deg); }
.letter::before, .letter::after {
  content: ""; position: absolute; top: -14px; width: 110px; height: 30px; border-radius: 3px;
  background: color-mix(in srgb, var(--floss) 70%, transparent); rotate: -5deg; left: 12%;
}
.letter::after { left: auto; right: 12%; rotate: 6deg; background: color-mix(in srgb, var(--sky) 70%, transparent); }
/* Ruled like a notebook: the lines sit under every line of text, a blank line between paragraphs. */
.letter__body {
  --lh: clamp(30px, 26px + .7vw, 36px);
  display: grid; gap: var(--lh); font: 400 clamp(1.08rem, 1rem + .45vw, 1.3rem)/var(--lh) "Literata", Georgia, serif;
  background: repeating-linear-gradient(180deg, transparent 0 calc(var(--lh) - 3px), var(--paper-line) calc(var(--lh) - 3px) calc(var(--lh) - 2px), transparent calc(var(--lh) - 2px) var(--lh));
}
.letter__sign { display: grid; gap: 2px; justify-items: start; }
.sign { font: italic 600 clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem)/1.1 "Literata", Georgia, serif; color: var(--floss-s); }
.letter__role { color: var(--muted); font-size: .95rem; }
.letter__line { width: 150px; height: 20px; margin: -4px 0 2px -4px; }
.letter__line path { fill: none; stroke: var(--floss-s); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .letter__line path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) .6s; }
.js .letter.is-in .letter__line path { stroke-dashoffset: 0; }

/* ---------- 7. Questions ---------- */
.faq { padding: clamp(40px, 8vw, 100px) 0 clamp(80px, 12vw, 140px); }
.faq__list { max-width: 780px; margin: 40px auto 0; padding: 0 var(--gutter); display: grid; gap: 10px; }
.qa { border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 20px; font-weight: 700; font-size: 1.08rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { color: var(--muted); transition: rotate .3s var(--ease); }
.qa[open] summary .ic { rotate: 180deg; }
.qa__a { padding: 0 20px 20px; color: var(--muted); }
/* The guide page link above the questions: a row like a question, with the page's icon. */
.guide {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 20px 12px 12px;
  border-radius: var(--r-l); background: var(--surface); color: var(--ink); font-size: 1.08rem; box-shadow: inset 0 0 0 2px var(--c);
}
.guide:hover { text-decoration: none; }
.guide:hover .guide__t { text-decoration: underline; text-underline-offset: 3px; }
.guide__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; flex: none; background: color-mix(in srgb, var(--c) calc(var(--fill-a) * 100%), transparent); color: var(--cs); }
.guide__t { flex: 1; }
.guide > .ic { color: var(--muted); }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.qa[open]::details-content { block-size: auto; }

/* ---------- 8. Coming soon ---------- */
.get { padding: 0 var(--gutter) clamp(80px, 12vw, 140px); }
/* On a phone the trail ends here in a snowdrift: room for it under the card. */
@media (max-width: 899px) { .js .landing .get { padding-bottom: 230px; } }
.get__card {
  position: relative; overflow: hidden; max-width: 900px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  border-radius: 36px; text-align: center; display: grid; justify-items: center; gap: 16px;
  background: linear-gradient(180deg, var(--dawn-a), var(--dawn-b));
}
.get__sun {
  position: absolute; width: 220px; aspect-ratio: 1; border-radius: 50%; top: -70px; right: -50px;
  background: radial-gradient(circle, var(--sun) 0 50%, var(--sun-glow) 51%, transparent 70%);
  animation: sun-peek 6s ease-in-out infinite alternate;
}
@keyframes sun-peek { to { translate: -20px 16px; } }
.get__icon { position: relative; border-radius: 18px; box-shadow: 0 12px 30px var(--shade-strong); }
.get h2, .get .lead, .get__soon, .get .pill, .get__badge { position: relative; }
/* The Google Play badge as Google draws it: only its size changes, never its look. */
.get__badge { display: inline-block; line-height: 0; }
.get__badge img { height: 60px; width: auto; }
.get__soon { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--surface); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; }
.footer__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 22px; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand img { border-radius: 11px; }
.footer__name { font-weight: 800; font-size: 1.1rem; }
.footer__tag, .footer__note, .footer__copy { color: var(--muted); font-size: .95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { font-weight: 700; }
.footer__langs { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .95rem; }
.footer__langs a { color: var(--muted); }
.footer__langs a[aria-current] { color: var(--ink); font-weight: 700; }
@media (min-width: 900px) { .footer__in { grid-template-columns: 1fr auto; align-items: center; } .footer__note, .footer__copy, .footer__langs { grid-column: 1 / -1; } }

/* ---------- Legal pages and the language chooser ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: calc(var(--top) + 48px) var(--gutter) 80px; display: grid; gap: 18px; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.doc h2 { font-size: 1.5rem; margin-top: 18px; }
.doc ul { display: grid; gap: 10px; }
.doc li { position: relative; padding-left: 22px; }
.doc li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.doc__back a { font-size: .95rem; }
.doc h2[id] { scroll-margin-top: calc(var(--top) + 16px); }
.doc__note { padding: 14px 18px; border-radius: 16px; font-weight: 600; color: var(--lemonade-s);
  background: color-mix(in srgb, var(--lemonade) calc(var(--fill-a) * 100%), transparent); }
.doc__meta { color: var(--muted); font-size: .95rem; }
.doc__short { padding: 4px 22px 20px; border-radius: 20px; background: var(--surface); }
.doc__toc ol { display: grid; gap: 6px; padding-left: 1.4em; list-style: decimal; }
.doc__toc li { padding-left: 4px; }
.doc__toc li::before { content: none; }
.tag { font-size: .9rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--lemonade) calc(var(--fill-a) * 100%), transparent); color: var(--lemonade-s); }
.chooser { min-height: 100svh; display: grid; place-items: center; background: linear-gradient(180deg, var(--dawn-a), var(--dawn-b)); }
.chooser__in { display: grid; justify-items: center; gap: 14px; padding: 32px var(--gutter); text-align: center; }
.chooser__in img { border-radius: 18px; }
.chooser__in h1 { font-size: 2.2rem; font-weight: 800; }
.chooser__langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.chooser__about { max-width: 30em; color: var(--muted); }
.chooser__legal { margin-top: 12px; font-size: .95rem; color: var(--muted); }

/* ---------- Print: everything visible, no scenes ---------- */
@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .topbar, .scrollcue, .diary__controls, .trail { display: none; }
  .book { height: auto; } .book__in { position: relative; height: auto; } .book__stage { position: relative; }
}

/* ---------- Reduced motion: everything becomes a short fade (DESIGN §8) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .reveal, .js .promises .reveal, .js .letter.reveal { transform: none !important; transition: opacity .1s !important; }
  .diary__book, .cloud, .sun, .scrollcue, .get__sun, .vault__core .ic { animation: none !important; }
  .dpage.is-out { animation: none !important; opacity: 0; }
  .dpage__text .w { transition: none !important; }
  .hero__in { translate: none; opacity: 1; }
  .screen { transition: opacity .1s; transform: none; }
  .book { height: auto; }
  .book__in { position: relative; height: auto; padding-block: clamp(60px, 10vw, 120px); }
  .book__stage { position: relative; }
  .qa::details-content { transition: none; }
}

/* ---------- Invitation page /join (Q-20) ---------- */
.join { display: grid; justify-items: center; gap: 14px; }
.join[hidden] { display: none; }
.join + .join { margin-top: 32px; }
.join h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.2rem); font-weight: 800; max-width: 16em; }
.join__help { max-width: 30em; color: var(--muted); font-size: .95rem; }
.join__steps { max-width: 30em; margin: 4px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; text-align: left; }
.join__steps li { counter-increment: step; position: relative; padding-left: 44px; min-height: 32px; }
.join__steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: var(--on-pastel); font-weight: 800; display: grid; place-items: center; }
.join__copy { margin-top: 10px; }
.join__steps .get__badge, .join__steps .get__soon { margin-top: 10px; }
.join__copy[hidden] { display: none; }
.join__noapp { margin-top: 18px; }
.join button.pill { font-family: inherit; cursor: pointer; border: 0; }
.join button.pill--ghost:not(:hover) { background-color: transparent; }
