/* VOICE   Occasion, tender: a family keepsake with Irma's playfulness left in.
   IDEA    A cookbook bound from Irma's own printouts; chapter one is shot like a cooking segment, the cake on its stand.
   PICTURE The 3D cake through its two days, a timeline under it; a drawn scene for every step.
   COLOUR  Printer-paper white pages, cocoa #2a1711 bands, pink #ff3d7f for actions; AOL blue for her links.
   TYPE    Fraunces Soft for titles (1970s cookbook warmth), Atkinson Hyperlegible to read at arm's length, Arimo for Irma's typing.
   LAYOUT  Cocoa opener: title in the quiet left corner, the cake filling the band, timeline across its foot; white bands below. Phone: title, cake, timeline, buttons. */

:root {
  color-scheme: light;
  --paper: #ffffff; --paper-2: #fbf5f1; --ink: #26150f; --muted: #6c5a51; --line: #eadcd3;
  --cocoa: #2a1711; --cocoa-2: #3a2219; --cocoa-3: #4a2c21; --band-ink: #fbf1e8; --band-muted: #d8c2b3; --band-line: rgba(255, 255, 255, .14);
  --pink: #ff3d7f; --pink-ink: #c2185b; --pink-soft: #ffe4ed; --link: #2443a8; --hl: #ffd83a; --warn: #a3271c; --warn-soft: #fdeceb;
  --sp1: #ff5c93; --sp2: #ffc93c; --sp3: #3fa9f5; --sp4: #36c58a; --sp5: #ff8a3d; --sp6: #a77bf3;
  --lemon: #f2d75c; --lemon-ink: #332800; --butter: #e5a94a; --butter-ink: #331f00; --apple: #b3352b; --apple-ink: #fff4ef; --cinnamon: #8b4a29; --cinnamon-ink: #fff3ea;
  --sc-bg: #fbf1ea; --sc-counter: #f1e0d4; --sc-line: #3a2219; --sc-shadow: rgba(42, 23, 17, .16); --sc-hi: #ffffff;
  --sc-bowl: #ffffff; --sc-bowl-2: #e6d9d1; --sc-bowl-in: #f4ece6; --sc-pot: #e3ddd8; --sc-pot-2: #c9c1ba; --sc-pot-in: #8e8781; --sc-pan-in: #b9bec5;
  --sc-metal: #e4e7eb; --sc-metal-2: #9aa1aa; --sc-handle: #2b2522; --sc-pink: #ff3d7f; --sc-accent: #2443a8; --sc-lid: #3fa9f5;
  --sc-yolk: #f5b324; --sc-yolk-hi: #ffd166; --sc-white: #fffdf7; --sc-white-2: #ece6dc; --sc-shell: #f4e2c9;
  --sc-choc: #4a2517; --sc-choc-hi: #7c4631; --sc-choc-dk: #2c140c; --sc-choc-gloss: #5c3020; --sc-crust: #6b4030; --sc-crumb: #3d1f14; --sc-cut: #2c140c;
  --sc-batter: #5d3220; --sc-batter-hi: #87563d; --sc-pale: #f0c870; --sc-pale-hi: #f8e2a6; --sc-mousse: #7b4a35; --sc-mousse-hi: #a2694c;
  --sc-butter: #f6d36b; --sc-butter-hi: #fde9a8; --sc-wrap: #ffffff; --sc-sugar: #ffffff; --sc-coffee: #3a2418; --sc-rum: #c27a2c; --sc-cork: #b9875a; --sc-label: #fff4e2;
  --sc-steam: #cdbfb6; --sc-glow: #ffcf70; --sc-glow-2: #ff8a3d; --sc-glass: #e8f3f8; --sc-glass-hi: #ffffff; --sc-fridge: #eef7fb; --sc-lcd: #2a1711; --sc-bag: #e9c46a; --sc-egg-hi: #fffaf2; --sc-shell-sh: #d9c3a3; --sc-bowl-in-sh: #ddd2ca; --sc-metal-3: #7d848d; --sc-wood: #c08a55; --sc-wood-2: #8f5e33; --sc-crust-hi: #8a5a43; --sc-silicone: #d64541; --sc-bag-2: #b9893a; --sc-sprinkle: #3a1d12; --sc-sprinkle-hi: #7a4a35; --sc-marble: #f4ece6;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-type: "Arimo", Arial, Helvetica, sans-serif;
  --gut: max(16px, 4vw);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1b110d; --paper-2: #23160f; --ink: #f6ebe3; --muted: #c4afa2; --line: #3b2a22;
    --cocoa: #120a07; --cocoa-2: #22140e; --cocoa-3: #2e1b13; --band-line: rgba(255, 255, 255, .1);
    --pink-ink: #ff7aa6; --pink-soft: #3a1622; --link: #a9b9ff; --warn: #ff9a8f; --warn-soft: #3a1714;
    --lemon: #6e5c12; --lemon-ink: #fff6cf; --butter: #6f4a12; --butter-ink: #ffeccc; --apple: #7d2119; --cinnamon: #5c2f18;
    --sc-bg: #26180f; --sc-counter: #321f15; --sc-line: #f2e4da; --sc-shadow: rgba(0, 0, 0, .35); --sc-hi: #ffffff;
    --sc-bowl: #45332a; --sc-bowl-2: #2f221c; --sc-bowl-in: #3a2b23; --sc-pot: #4a3d36; --sc-pot-2: #2e2520; --sc-pot-in: #1c1612; --sc-pan-in: #6b7078;
    --sc-metal: #b4bac2; --sc-metal-2: #727982; --sc-handle: #1a1512; --sc-accent: #a9b9ff;
    --sc-white: #f3eee6; --sc-white-2: #cfc7bb; --sc-shell: #d9c6ab;
    --sc-choc: #66362a; --sc-choc-hi: #9a5f47; --sc-choc-dk: #3e1f15; --sc-crust: #84523d; --sc-crumb: #4b281b; --sc-cut: #3e1f15;
    --sc-batter: #774430; --sc-batter-hi: #a06a50; --sc-mousse: #94603f; --sc-mousse-hi: #bb825f;
    --sc-glass: #6d7f88; --sc-glass-hi: #a8bcc6; --sc-fridge: #33434a; --sc-lcd: #0c0705; --sc-wrap: #d8d0c8; --sc-sugar: #efe9e2; --sc-label: #e9dcc8; --sc-egg-hi: #f6efe4; --sc-shell-sh: #a8957a; --sc-bowl-in-sh: #2a1f19; --sc-metal-3: #555b63; --sc-wood: #a87545; --sc-wood-2: #6e4524; --sc-crust-hi: #a06a50; --sc-silicone: #e0605c; --sc-bag-2: #8a6424; --sc-sprinkle: #2a140c; --sc-sprinkle-hi: #8a5a43; --sc-marble: #2a1c15;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1b110d; --paper-2: #23160f; --ink: #f6ebe3; --muted: #c4afa2; --line: #3b2a22;
  --cocoa: #120a07; --cocoa-2: #22140e; --cocoa-3: #2e1b13; --band-line: rgba(255, 255, 255, .1);
  --pink-ink: #ff7aa6; --pink-soft: #3a1622; --link: #a9b9ff; --warn: #ff9a8f; --warn-soft: #3a1714;
  --lemon: #6e5c12; --lemon-ink: #fff6cf; --butter: #6f4a12; --butter-ink: #ffeccc; --apple: #7d2119; --cinnamon: #5c2f18;
  --sc-bg: #26180f; --sc-counter: #321f15; --sc-line: #f2e4da; --sc-shadow: rgba(0, 0, 0, .35); --sc-hi: #ffffff;
  --sc-bowl: #45332a; --sc-bowl-2: #2f221c; --sc-bowl-in: #3a2b23; --sc-pot: #4a3d36; --sc-pot-2: #2e2520; --sc-pot-in: #1c1612; --sc-pan-in: #6b7078;
  --sc-metal: #b4bac2; --sc-metal-2: #727982; --sc-handle: #1a1512; --sc-accent: #a9b9ff;
  --sc-white: #f3eee6; --sc-white-2: #cfc7bb; --sc-shell: #d9c6ab;
  --sc-choc: #66362a; --sc-choc-hi: #9a5f47; --sc-choc-dk: #3e1f15; --sc-crust: #84523d; --sc-crumb: #4b281b; --sc-cut: #3e1f15;
  --sc-batter: #774430; --sc-batter-hi: #a06a50; --sc-mousse: #94603f; --sc-mousse-hi: #bb825f;
  --sc-glass: #6d7f88; --sc-glass-hi: #a8bcc6; --sc-fridge: #33434a; --sc-lcd: #0c0705; --sc-wrap: #d8d0c8; --sc-sugar: #efe9e2; --sc-label: #e9dcc8; --sc-egg-hi: #f6efe4; --sc-shell-sh: #a8957a; --sc-bowl-in-sh: #2a1f19; --sc-metal-3: #555b63; --sc-wood: #a87545; --sc-wood-2: #6e4524; --sc-crust-hi: #a06a50; --sc-silicone: #e0605c; --sc-bag-2: #8a6424; --sc-sprinkle: #2a140c; --sc-sprinkle-hi: #8a5a43; --sc-marble: #2a1c15;
}

* { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
html { scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--f-body); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 640; margin: 0; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(44px, 6vw, 88px); }
.band + .band { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); max-width: 46rem; }
.sec-head p { color: var(--muted); }
.sec-head.row { max-width: none; grid-template-columns: minmax(0, 46rem) auto; align-items: end; justify-content: space-between; gap: 16px 32px; }
.lede { font-size: 1.12rem; line-height: 1.55; max-width: 34rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2; white-space: nowrap; transition: transform .15s, background-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn.pink { background: var(--pink); color: #2a1711; }
.btn.pink:hover { background: #ff5a92; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: .94rem; }
.linkish { background: none; border: 0; padding: 6px 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; font-size: .95rem; min-height: 44px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .12); color: inherit; }
.icon-btn svg { width: 22px; height: 22px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: var(--cocoa); color: var(--band-ink); padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--band-line); }
.bar-in { display: flex; align-items: center; gap: 18px; min-height: 56px; max-width: 1240px; margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.brand { flex: none; font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 640; font-size: 1.12rem; color: inherit; text-decoration: none; white-space: nowrap; }
.brand .b-short { display: none; }
.chap { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.chap::-webkit-scrollbar { display: none; }
.chap a { flex: none; color: var(--band-muted); text-decoration: none; font-size: .92rem; padding: 9px 12px; border-radius: 999px; }
.chap a:hover { color: var(--band-ink); }
.chap a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: var(--band-ink); }

/* ---------- cover ---------- */
.cover { background: var(--cocoa); color: var(--band-ink); overflow: hidden; }
.cover-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 5vw, 72px); }
.cover h1 { font-size: clamp(3.1rem, 7.4vw, 6.2rem); font-weight: 720; line-height: .94; letter-spacing: -0.03em; }
.cover .lede { margin-top: 22px; color: var(--band-ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.spread { position: relative; aspect-ratio: 5 / 4; margin-right: calc(-1 * var(--gut)); }
.paper-item { position: absolute; display: block; text-decoration: none; color: var(--ink); transform: rotate(var(--r)); transition: transform .25s; }
.paper-item img { width: 100%; border-radius: 3px; box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 14px 22px -12px rgba(0, 0, 0, .7); }
.paper-item.photo img { border: 8px solid #fbf7f2; border-bottom-width: 26px; border-radius: 2px; }
a.paper-item:hover, a.paper-item:focus-visible { transform: rotate(calc(var(--r) * .5)) translateY(-6px); }
.tag { position: absolute; left: 10px; bottom: -14px; display: inline-flex; gap: 8px; align-items: baseline; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 6px 11px; font-size: .9rem; font-weight: 700; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6); white-space: nowrap; }
.tag b { font-family: var(--f-display); font-weight: 700; color: var(--pink-ink); }
.tag a { color: inherit; text-decoration: none; }
.tag.two { flex-direction: column; gap: 2px; bottom: -40px; }
.contents h2 { margin-bottom: 24px; }
.toc { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 4.2rem 96px minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; padding: 16px 0; color: inherit; text-decoration: none; }
.toc a:hover .t-title { color: var(--pink-ink); }
.t-n { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--muted); }
.t-thumb { width: 96px; height: 64px; object-fit: cover; object-position: top left; border-radius: 4px; border: 1px solid var(--line); }
.t-title { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 1.55rem; font-weight: 620; letter-spacing: -0.01em; line-height: 1.1; display: block; }
.t-src { color: var(--muted); font-size: .95rem; }
.t-status { font-size: .9rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--muted); white-space: nowrap; }
.t-status.guided { background: var(--pink-soft); color: var(--pink-ink); }

/* ---------- chapter opener (cocoa band with the 3D cake) ---------- */
.opener { position: relative; background: var(--cocoa); color: var(--band-ink); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; isolation: isolate; overflow: hidden; }
.opener::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: background 1.2s ease; background: radial-gradient(60% 70% at 66% 52%, rgba(255, 196, 150, .16), transparent 70%); }
.opener[data-stage="1"]::before { background: radial-gradient(60% 70% at 66% 55%, rgba(255, 130, 40, .42), transparent 70%); }
.opener[data-stage="2"]::before { background: radial-gradient(70% 80% at 66% 45%, rgba(80, 120, 220, .28), transparent 72%); }
.opener[data-stage="4"]::before { background: radial-gradient(60% 70% at 66% 50%, rgba(255, 61, 127, .2), transparent 70%); }
.op-text { grid-area: 1 / 1; z-index: 1; align-self: start; padding: clamp(24px, 3.6vw, 52px) 0 24px max(var(--gut), env(safe-area-inset-left, 0px)); max-width: calc(min(440px, 40%) + var(--gut)); pointer-events: none; }
.op-text a, .op-text button { pointer-events: auto; }
.chapno { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 1.12rem; font-weight: 500; color: var(--band-muted); margin-bottom: 8px; }
.opener h1 { font-size: clamp(3.2rem, 6.2vw, 5.2rem); font-weight: 720; line-height: .92; letter-spacing: -0.03em; }
.irma-says { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 14px; }
.irma-says .typed { font-family: var(--f-type); font-size: 1.15rem; background: #fffdf9; color: #1d1d1d; padding: 2px 8px; border-radius: 2px; transform: rotate(-1.2deg); }
.irma-says .who { font-size: .92rem; color: var(--band-muted); }
.opener .lede { margin-top: 18px; color: var(--band-ink); font-size: 1.06rem; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 24px 0 0; }
.facts div { padding: 0 18px; border-left: 1px solid var(--band-line); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts dd { margin: 0; font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 1.75rem; font-weight: 620; line-height: 1.05; white-space: nowrap; }
.facts dt { font-size: .86rem; color: var(--band-muted); line-height: 1.3; max-width: 8.5rem; }
.op-stage { grid-area: 1 / 1; position: relative; min-height: min(72svh, 640px); }
.op-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.op-stage canvas:active { cursor: grabbing; }
.fallback { position: absolute; inset: 8% 4% 12% 40%; display: grid; place-items: center; }
.fallback svg { width: 100%; height: 100%; }
.stage-hint { margin-top: 14px; font-size: .86rem; color: var(--band-muted); max-width: 26rem; }
.timeline { grid-row: 2; padding: 6px max(var(--gut), env(safe-area-inset-right, 0px)) clamp(22px, 3vw, 36px) max(var(--gut), env(safe-area-inset-left, 0px)); border-top: 1px solid var(--band-line); background: linear-gradient(to bottom, rgba(0, 0, 0, .12), rgba(0, 0, 0, .22)); }
.tl-days { display: grid; grid-template-columns: 30fr 20fr 50fr; font-size: .8rem; color: var(--band-muted); padding: 10px 14px 0; }
.tl-days span:nth-child(2) { text-align: center; }
.tl-days span:nth-child(3) { text-align: right; }
.tl-track { position: relative; padding-bottom: 46px; }
#stageRange { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; display: block; }
#stageRange::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #f0b37a 0 30%, #233a72 30% 50%, #f6d7a8 50% 100%); }
#stageRange::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #f0b37a 0 30%, #233a72 30% 50%, #f6d7a8 50% 100%); }
#stageRange::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--pink); border: 4px solid var(--band-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
#stageRange::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--pink); border: 4px solid var(--band-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.tl-stops { position: absolute; left: 0; right: 0; top: 34px; height: 40px; }
.tl-stops button { position: absolute; transform: translateX(-50%); background: none; border: 0; color: var(--band-muted); font-size: .86rem; line-height: 1.2; padding: 6px 4px; min-height: 40px; max-width: 6.5rem; text-align: center; }
.tl-stops button[aria-current="step"] { color: var(--band-ink); font-weight: 700; }
.tl-stops .s { display: none; }
.tl-stops button:first-child { transform: none; text-align: left; }
.tl-stops button:last-child { transform: translateX(-100%); text-align: right; }
.tl-foot { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.tl-foot .btn { color: var(--band-ink); }
.tl-caption { flex: 1 1 18rem; font-size: 1rem; color: var(--band-ink); min-height: 3.2em; display: flex; align-items: center; }

/* ---------- Irma's email ---------- */
.email-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 52px); align-items: start; }
.paper { margin: 0; position: sticky; top: 76px; }
.paper-img { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 0 rgba(0, 0, 0, .12), 0 18px 30px -22px rgba(42, 23, 17, .55); }
.paper-img img { width: 100%; height: auto; }
.hl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hl polygon { fill: var(--hl); fill-opacity: 0; mix-blend-mode: multiply; cursor: pointer; transition: fill-opacity .2s; }
.hl polygon.has-note { fill-opacity: .14; }
.hl polygon.on { fill-opacity: .55; }
.paper figcaption { margin-top: 8px; }
.typed-copy { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(18px, 2.4vw, 28px); font-family: var(--f-type); }
.hdr { display: grid; gap: 2px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.hrow { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
.hrow .hk { color: var(--muted); }
.hrow .note { grid-column: 2; }
.hrow .ln { font-size: .92rem; padding-block: 2px; }
.aol { color: var(--link); text-decoration: underline; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li.gap { height: 14px; }
.ln { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 4px; padding: 4px 8px; margin-left: -8px; font-family: var(--f-type); font-size: 1.02rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; transition: background-color .15s; }
.ln:hover, .ln.on { background: color-mix(in srgb, var(--hl) 45%, transparent); }
.note { font-family: var(--f-body); font-size: .92rem; line-height: 1.5; color: var(--muted); margin: 2px 0 10px; padding-left: 16px; border-left: 3px solid var(--link); }
.note.warn { color: var(--warn); border-left-color: var(--warn); background: var(--warn-soft); padding: 8px 10px 8px 13px; border-radius: 0 6px 6px 0; }
.note.new { border-left-color: var(--pink); color: var(--pink-ink); }
.note a { color: inherit; }
.reading { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-family: var(--f-body); font-size: .9rem; color: var(--muted); }

/* ---------- what you need ---------- */
.need { background: var(--paper-2); }
.toggles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; min-height: 38px; font-weight: 700; font-size: .92rem; color: var(--muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--cocoa); color: var(--band-ink); }
.ings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ing { position: relative; background: var(--paper); border-radius: 14px; padding: 16px 18px 18px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; align-items: start; border: 1px solid var(--line); transition: opacity .2s; }
.ing .ing-art { grid-row: 1 / span 3; width: 96px; height: 77px; }
.ing input { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; accent-color: var(--cocoa); margin: 0; }
.ing .q { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 1.85rem; font-weight: 640; line-height: 1.05; padding-right: 30px; white-space: nowrap; }
.ing .nm { font-weight: 700; }
.ing .sub { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.ing .irma { grid-column: 1 / -1; font-family: var(--f-type); font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 8px; }
.ing .irma b { font-family: var(--f-body); font-weight: 700; color: var(--ink); margin-right: 6px; }
.ing .flag { grid-column: 1 / -1; font-size: .88rem; color: var(--link); }
.ing .flag.warn { color: var(--warn); font-weight: 700; }
.ing.done { opacity: .5; }
.ing.done .q, .ing.done .nm { text-decoration: line-through; }
.sprinkle-band { margin-top: 14px; border-radius: 14px; background: var(--pink-soft); border: 2px dashed var(--pink); padding: 16px 56px 16px 20px; display: grid; grid-template-columns: 96px minmax(0, auto) minmax(0, 1fr); gap: 6px 22px; align-items: center; position: relative; }
.sprinkle-band .ing-art { width: 96px; height: 77px; grid-row: 1 / span 2; }
.sprinkle-band .q { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 1.85rem; font-weight: 640; line-height: 1.05; white-space: nowrap; }
.sprinkle-band .nm { font-weight: 700; }
.sprinkle-band .opt { display: inline-block; background: var(--pink); color: #2a1711; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.sprinkle-band p { grid-row: 1 / span 2; grid-column: 3; color: var(--ink); font-size: .95rem; }
.sprinkle-band.done { opacity: .55; }
.sprinkle-band input { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; accent-color: var(--cocoa); margin: 0; }
.need-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; margin-top: 28px; align-items: start; }
.scale-note { color: var(--muted); font-size: .95rem; }
.kit h3 { margin-bottom: 4px; }
.kit p { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.kit ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 6px; }

/* ---------- two-day plan ---------- */
.plan-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.plan-side { position: sticky; top: 80px; }
.plan-side p { color: var(--muted); margin-top: 10px; }
.g-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; color: var(--muted); margin: 0; }
.g-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.plan-inputs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.plan-inputs label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.plan-inputs input { font: inherit; font-size: 16px; padding: 10px 12px; min-height: 46px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); min-width: 9.5rem; }
.plan-check { margin-top: 14px; font-size: .95rem; }
.plan-check.warn { color: var(--warn); font-weight: 700; }
.gantt { display: flex; height: 22px; border-radius: 6px; overflow: hidden; margin-bottom: 8px; background: var(--paper-2); }
.gantt i { display: block; height: 100%; }
.g-work { background: var(--pink); }
.g-oven { background: #ff8a3d; }
.g-cool { background: #f2c27a; }
.g-fridge { background: #3d5aa8; }
.g-idle { background: transparent; }
.sched { list-style: none; margin: 18px 0 0; padding: 0; }
.sched li { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sched .tm { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 1.5rem; font-weight: 620; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sched .tm small { display: block; font-family: var(--f-body); font-size: .8rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.sched .what b { display: block; }
.sched .what span { color: var(--muted); font-size: .95rem; }
.sched li.night { background: linear-gradient(90deg, color-mix(in srgb, #3d5aa8 14%, transparent), transparent); border-radius: 8px; padding-inline: 10px; margin-inline: -10px; }

/* ---------- method ---------- */
.day-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin: 34px 0 6px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.day-h h3 { font-size: 1.75rem; }
.day-h p { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 12px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.scene-box { background: var(--sc-bg); border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.scene-box svg { width: 100%; height: 100%; display: block; }
.step .st-head { display: flex; align-items: baseline; gap: 14px; }
.step .st-n { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--pink-ink); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.5rem; }
.src { display: inline-block; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.src.card { background: color-mix(in srgb, var(--link) 12%, transparent); color: var(--link); border-color: transparent; }
.src.new { background: var(--pink-soft); color: var(--pink-ink); border-color: transparent; }
.step .src { margin-top: 10px; }
.quote { font-family: var(--f-type); font-size: .95rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; margin-top: 12px; }
.step .body { margin-top: 10px; max-width: 40rem; }
.step .tip { margin-top: 8px; color: var(--muted); font-size: .95rem; max-width: 40rem; }
.step .tip b { color: var(--ink); }
.step .go { margin-top: 12px; }
.steps .scene * { animation-play-state: paused; animation-delay: -2.2s; }
.steps .step:hover .scene *, .steps .step:focus-within .scene * { animation-play-state: running; }

/* ---------- pager ---------- */
.pager { padding-block: 28px; background: var(--paper-2); }
.pager-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pg { display: grid; gap: 2px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 1.5rem; font-weight: 620; padding: 10px 0; }
.pg span { font-family: var(--f-body); font-size: .88rem; font-weight: 400; color: var(--muted); }
.pg.next { text-align: right; }
.pg:hover { color: var(--pink-ink); }

/* ---------- other recipes ---------- */
.opener.plain { display: block; padding-block: clamp(40px, 6vw, 84px) clamp(32px, 4vw, 56px); }
.opener.plain .lede { margin-top: 16px; }
.opener.lemon { background: var(--lemon); color: var(--lemon-ink); }
.opener.butter { background: var(--butter); color: var(--butter-ink); }
.opener.apple { background: var(--apple); color: var(--apple-ink); }
.opener.cinnamon { background: var(--cinnamon); color: var(--cinnamon-ink); }
.opener.plain::before { display: none; }
.opener.lemon .chapno, .opener.butter .chapno, .opener.apple .chapno, .opener.cinnamon .chapno { color: inherit; opacity: .78; }
.opener.lemon .lede, .opener.butter .lede, .opener.apple .lede, .opener.cinnamon .lede { color: inherit; }
.status { display: inline-block; margin-top: 18px; font-size: .9rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .12); }
.rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 52px); align-items: start; }
.rec-photo { margin: 0; position: sticky; top: 76px; }
.rec-photo button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.rec-photo img { width: 100%; border-radius: 4px; box-shadow: 0 18px 30px -22px rgba(42, 23, 17, .55); }
.rec-photo figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.typed-copy pre { font: inherit; font-size: 1.02rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.typed-copy.hand pre { font-family: var(--f-body); }
.know { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.know article { padding: 18px 20px; border-radius: 12px; background: var(--paper-2); }
.know h3 { font-size: 1.2rem; margin-bottom: 6px; }
.know p { color: var(--ink); font-size: .97rem; }
.know.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.know .src-links { margin-top: 8px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---------- Irma ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; grid-auto-flow: dense; }
.gallery figure { margin: 0; }
.gallery figure.big { grid-column: span 2; grid-row: span 2; }
.gallery figure.wide { grid-column: span 2; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figure.big img { aspect-ratio: 1; }
.gallery figure.wide img { aspect-ratio: 2 / 1; object-position: center 30%; }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.private { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.mails { position: relative; padding: 8px 0 0; }
.mail-axis { position: relative; height: 210px; margin: 0 8px; }
.mail-axis::before { content: ""; position: absolute; left: 0; right: 0; top: 58px; height: 4px; border-radius: 2px; background: var(--line); }
.mail-dot { position: absolute; top: 48px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; text-align: center; text-decoration: none; color: inherit; width: 14rem; }
.mail-dot.right { width: 24rem; }
.mail-dot i { width: 24px; height: 24px; border-radius: 50%; background: var(--pink); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--pink); }
.mail-dot b { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 1.2rem; font-weight: 620; }
.mail-dot span { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.mail-dot.left { transform: none; justify-items: start; text-align: left; }
.mail-dot.right { transform: translateX(-100%); justify-items: end; text-align: right; }
.mail-year { position: absolute; top: 0; font-size: .9rem; color: var(--muted); }
.mail-gap { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); font-size: .9rem; color: var(--muted); font-style: italic; }
.mail-dot span a { color: var(--link); }
.mail-card { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.questions { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 10px; }
.questions li { counter-increment: q; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 18px; border-radius: 12px; background: var(--paper-2); }
.questions li::before { content: counter(q); font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 1.6rem; font-weight: 600; color: var(--pink-ink); }
.questions a { font-size: .9rem; margin-left: 6px; }

.foot { padding: 28px 0 calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }

/* ---------- cook along ---------- */
.cook { position: fixed; inset: 0; z-index: 50; background: var(--cocoa); color: var(--band-ink); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.ck-top { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 12px var(--gut); }
.ck-where { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 1.15rem; font-weight: 600; }
.ck-chip { background: #ff8a3d; color: #2a1711; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; font-size: .95rem; }
.ck-tools { margin-left: auto; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.ck-voice { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--band-muted); }
.ck-voice select { font: inherit; font-size: 16px; max-width: 13rem; min-height: 40px; border-radius: 8px; border: 1px solid var(--band-line); background: var(--cocoa-2); color: var(--band-ink); padding: 6px 8px; }
.ck-auto { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--band-muted); min-height: 40px; }
.ck-auto input { width: 20px; height: 20px; accent-color: var(--pink); }
.ck-prog { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; padding: 0 var(--gut); }
.ck-prog button { height: 18px; border: 0; padding: 0; background: none; position: relative; }
.ck-prog button::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.ck-prog button.done::before { background: var(--c); }
.ck-prog button[aria-current="step"]::before { background: var(--band-ink); }
.ck-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(12px, 2vw, 28px) var(--gut); overflow: auto; }
.ck-art { background: var(--sc-bg); border-radius: 20px; aspect-ratio: 4 / 3; overflow: hidden; width: 100%; max-height: 64vh; position: relative; }
.ck-art svg { width: 100%; height: 100%; display: block; }
.ck-art.speaking::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 56px; height: 7px; margin-left: -28px; border-radius: 4px; background: var(--pink); animation: talk .9s ease-in-out infinite; }
@keyframes talk { 50% { transform: scaleX(.35); } }
.ck-text { display: grid; gap: 14px; align-content: center; max-width: 40rem; }
.ck-text .src { justify-self: start; background: rgba(255, 255, 255, .1); color: var(--band-muted); border-color: transparent; }
.ck-text .src.card { background: rgba(169, 185, 255, .18); color: #c9d3ff; }
.ck-text .src.new { background: rgba(255, 61, 127, .22); color: #ffc2d6; }
.ck-text h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.ck-irma { font-family: var(--f-type); color: var(--band-muted); border-left: 3px solid rgba(255, 255, 255, .25); padding-left: 12px; font-size: 1rem; }
.ck-body { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.5; }
.ck-tip { color: var(--band-muted); font-size: 1.05rem; }
.w { border-radius: 4px; transition: background-color .12s, color .12s; }
.w.on { background: var(--pink); color: #2a1711; }
.ck-timer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; background: var(--cocoa-2); border-radius: 14px; padding: 12px 14px; }
.ck-timer .clock { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 2.2rem; font-weight: 640; font-variant-numeric: tabular-nums; min-width: 5ch; }
.ck-timer .btn.ghost { color: var(--band-ink); }
.ck-timer-note { font-size: .9rem; color: var(--band-muted); flex-basis: 100%; }
.ck-timer.ringing { background: #ff8a3d; color: #2a1711; }
.ck-timer.ringing .ck-timer-note, .ck-timer.ringing .btn.ghost { color: #2a1711; }
.ck-ctrls { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; padding: 14px var(--gut) 18px; border-top: 1px solid var(--band-line); }
.ck-ctrls #ckNext { justify-self: end; min-width: 9rem; }
.ck-ctrls .btn.ghost { color: var(--band-ink); }

/* ---------- zoom ---------- */
.zoom { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); color: #f6ebe3; }
.zoom::backdrop { background: rgba(10, 5, 3, .86); }
.zoom img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 4px; }
.zoom p { text-align: center; margin-top: 10px; font-size: .95rem; }
.zoom .icon-btn { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .55); color: #fff; }

/* ---------- scene motion ---------- */
.sc-label { font-family: var(--f-body); font-size: 13px; font-weight: 700; fill: var(--sc-line); text-anchor: middle; paint-order: stroke; stroke: var(--sc-bg); stroke-width: 4px; }
.sc-lcd { font-family: var(--f-body); font-size: 13px; font-weight: 700; fill: #ffb067; text-anchor: middle; }
.sc-z { font-family: var(--f-display); font-size: 22px; fill: var(--sc-line); }
.scene [class^="a-"], .scene [class*=" a-"], .scene .a-steam path, .scene .a-peaks path, .scene .a-stars circle, .scene .sc-z { transform-box: fill-box; }
.a-crack { animation: wob 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes wob { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-6deg); } 20% { transform: rotate(4deg); } }
.a-dropL { animation: dropL 2.4s ease-in infinite; }
.a-dropR { animation: dropR 2.4s ease-in infinite 1.2s; opacity: 0; }
@keyframes dropL { 0%, 22% { transform: translate(0, 0); opacity: 1; } 68% { transform: translate(-68px, 48px); opacity: 1; } 70%, 100% { transform: translate(-68px, 48px); opacity: 0; } }
@keyframes dropR { 0%, 22% { transform: translate(0, 0); opacity: 1; } 68% { transform: translate(68px, 48px); opacity: 1; } 70%, 100% { transform: translate(68px, 48px); opacity: 0; } }
.a-dial { animation: dial 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes dial { 0%, 15% { transform: rotate(-120deg); } 45%, 100% { transform: rotate(60deg); } }
.a-steam path { animation: steam 2.2s ease-in-out infinite; transform-origin: bottom; }
.a-steam path:nth-child(2) { animation-delay: 1.1s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px); } 50% { opacity: .9; } 100% { opacity: 0; transform: translateY(-12px); } }
.a-chips { animation: melt 3.2s ease-in infinite; transform-origin: center bottom; }
.a-butter { animation: melt 3.2s ease-in infinite .3s; transform-origin: center bottom; }
@keyframes melt { 0%, 15% { transform: scaleY(1); opacity: 1; } 75% { transform: scaleY(.1) translateY(26px); opacity: 0; } 100% { opacity: 0; } }
.a-pool { animation: pool 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes pool { 0%, 12% { transform: scale(.25); } 80%, 100% { transform: scale(1); } }
.a-whisk { animation: whisk .7s ease-in-out infinite alternate; transform-origin: 50% 0%; }
@keyframes whisk { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.a-swirl { animation: swirl 1.4s linear infinite; transform-origin: center; }
@keyframes swirl { 50% { transform: scaleX(-1); } }
.a-pour { animation: pour 3s ease-in-out infinite; transform-origin: 85% 30%; }
@keyframes pour { 0%, 100% { transform: rotate(0); } 30%, 70% { transform: rotate(24deg); } }
.a-stream { animation: stream 3s ease-in-out infinite; stroke-dasharray: 120; stroke-dashoffset: 120; }
@keyframes stream { 0%, 25% { stroke-dashoffset: 120; } 45%, 65% { stroke-dashoffset: 0; } 85%, 100% { stroke-dashoffset: -120; } }
.a-tipL { animation: tipL 2.6s ease-in-out infinite; transform-origin: 0% 50%; }
.a-tipR { animation: tipR 2.6s ease-in-out infinite 1.3s; transform-origin: 100% 50%; }
@keyframes tipL { 0%, 100% { transform: rotate(0); } 30%, 50% { transform: rotate(16deg); } }
@keyframes tipR { 0%, 100% { transform: rotate(0); } 30%, 50% { transform: rotate(-16deg); } }
.a-fallL { animation: fall 2.6s ease-in infinite .6s; opacity: 0; }
.a-fallR { animation: fall 2.6s ease-in infinite 1.9s; opacity: 0; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0); } 40% { opacity: 1; transform: translateY(26px); } 41%, 100% { opacity: 0; transform: translateY(26px); } }
.a-peaks path { animation: peak 2.4s ease-out infinite; transform-origin: center bottom; }
.a-peaks path:nth-child(2) { animation-delay: .3s; }
.a-peaks path:nth-child(3) { animation-delay: .6s; }
@keyframes peak { 0% { transform: scaleY(.2); } 60%, 100% { transform: scaleY(1); } }
.a-lift { animation: lift 2.4s ease-in-out infinite; }
@keyframes lift { 0%, 30% { transform: translateY(28px); } 70%, 100% { transform: translateY(0); } }
.a-fold { animation: fold 2.6s ease-in-out infinite; transform-origin: 50% 0%; }
@keyframes fold { 0% { transform: translate(0, 0) rotate(0); } 35% { transform: translate(0, 38px) rotate(0); } 65% { transform: translate(-46px, 28px) rotate(26deg); } 100% { transform: translate(0, 0) rotate(0); } }
.a-streak { animation: fade 2.6s ease-in-out infinite; }
@keyframes fade { 0%, 20% { opacity: 1; } 80%, 100% { opacity: 0; } }
.a-dash { animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.a-glow { animation: glow 2s ease-in-out infinite; }
.a-glow2 { animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .78; } }
.a-rise { animation: puff 4s ease-in-out infinite; transform-origin: center bottom; }
@keyframes puff { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(2.1); } }
.a-tick { animation: tick 8s steps(8) infinite; transform-origin: 50% 100%; }
@keyframes tick { to { transform: rotate(360deg); } }
.a-moon { animation: wob2 5s ease-in-out infinite; transform-origin: center; }
@keyframes wob2 { 50% { transform: rotate(-12deg); } }
.a-stars circle { animation: twinkle 2s ease-in-out infinite; }
.a-stars circle:nth-child(2n) { animation-delay: 1s; }
@keyframes twinkle { 50% { opacity: .2; } }
.sc-z { animation: zz 3s ease-in-out infinite; }
.sc-z2 { animation-delay: 1.5s; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -30px); } }
.a-spread { animation: spread 3.4s ease-in-out infinite; transform-origin: 0% 50%; }
@keyframes spread { 0%, 10% { transform: scaleX(.06); } 70%, 100% { transform: scaleX(1); } }
.a-sweep { animation: sweep 3.4s ease-in-out infinite; }
@keyframes sweep { 0%, 10% { transform: translateX(-120px); } 70%, 100% { transform: translateX(0); } }
.a-sun { animation: sun 12s linear infinite; transform-origin: center; }
@keyframes sun { to { transform: translate(40px, 40px) rotate(360deg); } }
.a-shake { animation: shake .5s ease-in-out infinite alternate; transform-origin: 70% 30%; }
@keyframes shake { from { transform: rotate(-4deg) translateY(-2px); } to { transform: rotate(5deg) translateY(2px); } }
.a-sfall { animation: sfall 2.2s cubic-bezier(.5, 0, .9, .6) infinite; opacity: 0; }
@keyframes sfall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 70% { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(200deg); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(200deg); } }
.a-bob { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
  .scene *, .w, .ck-art.speaking::after { animation: none !important; transition: none !important; }
  .a-dropL, .a-dropR, .a-fallL, .a-fallR, .a-sfall { display: none; }
  .a-sun { transform: translate(40px, 40px); }
  .paper-item, .btn { transition: none; }
}

/* ---------- narrower screens ---------- */
@media (max-width: 1080px) {
  .ings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .cover-grid { grid-template-columns: minmax(0, 1fr); }
  .spread { margin-right: 0; aspect-ratio: 6 / 5; margin-bottom: 40px; }
  .opener { display: flex; flex-direction: column; }
  .op-text { display: contents; pointer-events: auto; }
  .op-text > * { padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
  .chapno { order: 1; padding-top: 26px; }
  .opener h1 { order: 2; }
  .irma-says { order: 3; padding-bottom: 6px; }
  .op-stage { order: 4; grid-area: auto; min-height: 0; aspect-ratio: 1 / 1; max-height: 64svh; width: 100%; }
  .timeline { order: 5; }
  .opener .lede { order: 6; margin-top: 24px; }
  .facts { order: 7; }
  .opener .cta { order: 8; }
  .stage-hint { order: 9; padding-bottom: 30px; }
  .timeline { grid-row: auto; }
  .fallback { inset: 6%; }
  .email-grid, .rec-grid, .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .paper, .rec-photo { position: static; }
  .need-foot { grid-template-columns: minmax(0, 1fr); }
  .sec-head.row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .toggles { justify-content: flex-start; }
  .ck-main { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .ck-art { max-height: 38svh; aspect-ratio: auto; height: 38svh; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .know.n3 { grid-template-columns: minmax(0, 1fr); }
  .plan-side { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand { font-size: 1rem; }
  .brand .b-long { display: none; }
  .brand .b-short { display: inline; }
  .tl-stops .l { display: none; }
  .tl-stops .s { display: inline; }
  .bar-in { gap: 10px; }
  .spread { aspect-ratio: auto; display: flex; align-items: flex-start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 52px; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
  .paper-item { position: relative; flex: 0 0 72%; left: auto !important; top: auto !important; width: auto !important; scroll-snap-align: center; transform: rotate(calc(var(--r) * .4)); }
  .facts { grid-template-columns: repeat(2, auto); row-gap: 14px; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .toc a { grid-template-columns: 2.8rem minmax(0, 1fr); }
  .toc .t-thumb { display: none; }
  .t-status { grid-column: 2; justify-self: start; }
  .t-n { font-size: 2rem; }
  .ings { grid-template-columns: minmax(0, 1fr); }
  .ing { grid-template-columns: 76px minmax(0, 1fr); padding: 14px; }
  .ing .ing-art { width: 76px; height: 61px; }
  .sprinkle-band { grid-template-columns: 76px minmax(0, 1fr); }
  .sprinkle-band .ing-art { width: 76px; height: 61px; }
  .sprinkle-band p { grid-column: 1 / -1; grid-row: auto; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step .scene-box { max-width: 360px; }
  .sched li { grid-template-columns: 5.6rem minmax(0, 1fr); gap: 4px 12px; }
  .sched .tm { font-size: 1.3rem; }
  .know { grid-template-columns: minmax(0, 1fr); }
  .tl-stops button { font-size: .78rem; max-width: 4.4rem; }
  .ck-voice { font-size: 0; gap: 0; }
  .ck-voice select { max-width: 9.5rem; }
  .ck-ctrls { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ck-ctrls #ckSay { justify-self: center; }
  .ck-ctrls #ckSay span { display: none; }
  .ck-ctrls #ckNext { min-width: 0; }
  .ck-body { font-size: 1.2rem; }
  .mail-axis { height: auto; display: grid; gap: 14px; margin: 0; }
  .mail-axis::before { left: 11px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .mail-dot, .mail-dot.left, .mail-dot.right { position: relative; left: auto !important; top: auto; transform: none; width: auto; grid-template-columns: 24px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 14px; row-gap: 0; }
  .mail-dot i { grid-row: span 2; }
  .mail-year, .mail-gap { display: none; }
}
