/* Supper — site styles.
   Colour, type and spacing come from design-system/tokens.css.
   Button, Chip, ChapterProgress and Receipt come from design-system/components/bundle.css.
   Nothing here re-declares a token. */

*, *::before, *::after { box-sizing: border-box; }
.sp-receipt { box-sizing: content-box; } /* the receipt's 300px is the paper's inner width */
[hidden] { display: none !important; }

:root {
  --wrap: 1200px;
  --gutter: var(--space-5);
  --nav-h: 64px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --tooth: 8px;
  color-scheme: light;
}
@media (min-width: 900px) {
  :root { --gutter: var(--space-7); --nav-h: 76px; }
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--space-4));
}
body { font-size: 17px; line-height: 24px; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute; left: var(--space-4); top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--space-3); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Focus: a paper gap, then a solid focus ring */
:where(a, button, input, summary):focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--focus);
  border-radius: var(--radius-sm);
}

.herb { color: var(--herb); }
.num { font-family: var(--font-mono); font-weight: 500; }

/* ---------- Buttons and the coming-soon pill ---------- */
.sp-btn { white-space: nowrap; transition: transform 120ms var(--ease), filter 120ms ease-out, background-color 120ms ease-out; }
a.sp-btn:not(.sp-btn-ghost) { text-decoration: none; }
.sp-btn:hover { transform: translateY(-1px); }
.sp-btn:active { transform: scale(.98); }
.sp-btn-primary:hover { filter: brightness(.95); }
.sp-btn-sm { height: 40px; padding: 0 var(--space-4); font-size: 15px; }
.sp-btn-paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.soon {
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: 52px; padding: 0 var(--space-5) 0 var(--space-4);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-pill);
  font-size: 16px; line-height: 20px; font-weight: 600; white-space: nowrap;
}
.soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); flex: none; }
.soon-sm { height: 40px; padding: 0 var(--space-4) 0 var(--space-3); font-size: 14px; }
@media (max-width: 479px) { .soon-sm .soon-x { display: none; } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper); border-bottom: 1px solid var(--line);
  transition: opacity 200ms ease-out;
}
.js .nav:not(.is-stuck)::before { opacity: 0; } /* clear over the hero until the page scrolls */
.nav-in { height: 100%; display: flex; align-items: center; gap: var(--space-5); }
.nav-logo { display: block; flex: none; }
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: none; gap: var(--space-6); margin-left: var(--space-5); font-size: 15px; line-height: 20px; font-weight: 600; }
.nav-links a { text-decoration: none; padding: var(--space-2) 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--tomato); }
.nav-cta { margin-left: auto; }
@media (min-width: 820px) {
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: calc(var(--nav-h) * -1); padding-top: var(--nav-h); overflow: clip; }
.hero-in { display: grid; gap: var(--space-6); }
.hero-copy { padding-top: var(--space-7); position: relative; z-index: 2; }
.hero-h { font-size: clamp(54px, 15.5vw, 84px); line-height: .92; letter-spacing: -.035em; font-weight: 700; }
.hero-h .ln { display: block; overflow: hidden; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.hero-h .ln > span { display: block; white-space: nowrap; }
.hero-sub { margin-top: var(--space-5); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; max-width: 31ch; text-wrap: pretty; }
.hero-actions { margin-top: var(--space-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.hero-note { margin-top: var(--space-4); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }

.hero-stage { --base: 80px; position: relative; height: 510px; width: 100%; max-width: 560px; margin-inline: auto; }
.blk { position: absolute; border-radius: var(--radius-md); }
.teeth {
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom left / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom left / calc(var(--tooth) * 2) var(--tooth) repeat-x;
}
/* Small screens: the slab bleeds off the left edge, the ink block off the right, the receipt covers the rest */
.blk-tomato { background: var(--tomato); left: calc(var(--gutter) * -1); width: calc(var(--gutter) + 192px); top: 0; bottom: var(--base); border-top-left-radius: 0; }
.blk-butter { display: none; background: var(--butter); left: 400px; width: 96px; height: 160px; bottom: var(--base); }
.blk-ink { background: var(--ink); left: 288px; right: calc(var(--gutter) * -1); height: 224px; bottom: var(--base); border-top-right-radius: 0; }
.blk-herb { display: none; position: absolute; left: 400px; bottom: calc(var(--base) - 32px); width: 64px; height: 16px; border-radius: var(--radius-sm); background: var(--herb); transform-origin: left center; }
.js .blk-herb { transform: scaleX(0); }
.js .hero-stage.is-done .blk-herb { transform: none; transition: transform 320ms var(--ease); }

/* A slip is a receipt plus its shadow (the receipt's own mask clips box-shadow) */
.slip { width: max-content; filter: drop-shadow(0 1px 2px rgba(38, 35, 31, .06)) drop-shadow(0 8px 24px rgba(38, 35, 31, .10)); }
.hero-slip { position: absolute; top: 32px; left: 50%; margin-left: -166px; transform: rotate(-1.5deg); transform-origin: 50% 0; z-index: 1; }
@media (max-width: 420px) { .slip { zoom: .88; } }
@media (max-width: 350px) { .slip { zoom: .78; } }

@media (min-width: 421px) {
  .hero-stage { --base: 130px; height: 560px; }
}
@media (min-width: 680px) {
  .hero-stage { --base: 120px; height: 600px; max-width: 600px; }
  .blk-tomato { left: 0; width: 384px; border-top-left-radius: var(--radius-md); }
  .blk-butter, .blk-herb { display: block; }
  .blk-ink { left: 512px; right: auto; width: 128px; height: 272px; border-top-right-radius: var(--radius-md); }
  .hero-slip { top: 40px; left: 26px; margin-left: 0; }
}
@media (min-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 600px; align-items: center; min-height: calc(min(100svh, 900px) - var(--nav-h)); }
  .hero-copy { padding-block: var(--space-7) calc(var(--space-7) * 1.5); }
  .hero-h { font-size: clamp(76px, calc((100vw - 728px) / 4.7), 112px); }
  .hero-stage { max-width: none; margin: 0; }
  .blk-tomato { top: -800px; }
}
}

@media (prefers-reduced-motion: no-preference) {
  .hero-h .ln > span { animation: line-up 800ms var(--ease) both; }
  .hero-h .ln + .ln > span { animation-delay: 90ms; }
  .hero-sub, .hero-actions, .hero-note { animation: fade-up 700ms var(--ease) both; }
  .hero-sub { animation-delay: 220ms; }
  .hero-actions { animation-delay: 300ms; }
  .hero-note { animation-delay: 380ms; }
  .blk-tomato { animation: drop-in 800ms var(--ease) 80ms both; }
  .blk-butter { animation: grow-up 600ms var(--ease) 420ms both; }
  .blk-ink { animation: grow-up 700ms var(--ease) 500ms both; }
  .hero-slip { animation: slip-in 500ms var(--ease) 560ms both; }
}
@keyframes line-up { from { transform: translateY(110%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes drop-in { from { transform: translateY(-100%); } }
@keyframes grow-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slip-in { from { opacity: 0; transform: translateY(-16px) rotate(-1.5deg); } }

/* ---------- Receipts that print ---------- */
.js .rc:not(.is-ready) > :not(.sp-receipt-head) { display: none; }
.rl { display: grid; grid-template-rows: 1fr; }
.rl-in { min-height: 0; overflow: hidden; margin-inline: calc(var(--space-2) * -1); padding-inline: var(--space-2); }
.js .rl { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 180ms ease-out, opacity 180ms ease-out; }
.js .rl.is-in { grid-template-rows: 1fr; opacity: 1; }
.sp-line > span:first-child { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .rl { transition: none; }
}

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.band { background: var(--paper-sunk); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-h { font-size: clamp(38px, 5.4vw, 68px); line-height: 1; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.sec-sub { margin-top: var(--space-4); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--ink-muted); max-width: 46ch; text-wrap: pretty; }

.js [data-rise] { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease-out, transform 600ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }

/* A torn edge between two grounds: teeth in the colour of the section above */
.torn { position: relative; }
.torn::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: calc(var(--tooth) + 1px);
  background: var(--torn);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% 1px no-repeat, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 0 1px / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% 1px no-repeat, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 0 1px / calc(var(--tooth) * 2) var(--tooth) repeat-x;
}

/* ---------- A week of dinners ---------- */
.plates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); }
.plate-card { display: flex; flex-direction: column; overflow: hidden; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plate-photo { aspect-ratio: 1; overflow: hidden; background: var(--paper-sunk); }
.plate-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.plate-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-4); }
.plate-day { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.plate-name { margin-top: 2px; font-size: 19px; line-height: 24px; font-weight: 600; letter-spacing: -.005em; min-height: 48px; }
.plate-price { margin-top: auto; padding-top: var(--space-2); font-family: var(--font-mono); font-size: 17px; line-height: 22px; font-weight: 500; }
@media (hover: hover) {
  .plate-card:hover .plate-photo img { transform: scale(1.04); }
}

/* The cards are set down one after another when the week scrolls into view */
.js .plates:not(.is-in) .plate-card { opacity: 0; }
.plates.is-in .plate-card { animation: card-in 700ms var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
.plates.is-in .plate-photo img { animation: photo-in 1200ms var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes photo-in { from { transform: scale(1.14); } }

@media (max-width: 999px) {
  .plates { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--space-3); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .plates::-webkit-scrollbar { display: none; }
  .plate-card { flex: 0 0 min(62vw, 232px); scroll-snap-align: start; }
}

.week-sum { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-5) var(--space-7); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px dashed var(--line-strong); }
.week-sum dt { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.week-sum dd { margin-top: var(--space-1); font-family: var(--font-mono); font-size: 22px; line-height: 28px; font-weight: 500; }
.week-sum .is-total dd { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; }
.week-sum .is-total small { font-family: var(--font-sans); font-size: 17px; font-weight: 400; color: var(--ink-muted); }
.week-under { margin-left: auto; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--herb-soft); color: var(--herb); font-family: var(--font-mono); font-size: 15px; line-height: 22px; font-weight: 500; }
@media (max-width: 699px) { .week-under { margin-left: 0; } }

/* ---------- Tell Supper about your week ---------- */
.how-grid { display: grid; }
.how-steps, .how-aside { display: contents; }
.how-progress { order: 0; position: sticky; top: var(--nav-h); z-index: 5; margin-inline: calc(var(--gutter) * -1); padding: var(--space-3) var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); transition: opacity 240ms ease-out; }
.how-progress.is-done { opacity: 0; pointer-events: none; }
.sp-seg i { width: 0; }
.chapter { order: 1; padding-block: var(--space-7) var(--space-5); }
.how-slip { order: 2; margin: var(--space-6) auto var(--space-4); }
.chapter-reveal { order: 3; }

.chapter-h { font-size: clamp(30px, 3.7vw, 52px); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.chapter-help { margin-top: var(--space-3); margin-bottom: var(--space-5); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.45; color: var(--ink-muted); max-width: 40ch; }
.chapter-foot { margin-top: var(--space-3); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.chapter .sp-chips { max-width: 500px; }
.sp-chip { transition: background-color 120ms ease-out, border-color 120ms ease-out; }
.sp-chip .sp-check { transition: background-color 120ms ease-out, border-color 120ms ease-out; flex: none; }

.opt { display: flex; align-items: center; gap: var(--space-3); max-width: 460px; min-height: 60px; padding: 0 var(--space-4); border: 2px solid var(--tomato); border-radius: var(--radius-md); background: var(--tomato-soft); font-size: 16px; line-height: 20px; font-weight: 600; }
.opt .check { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--tomato); display: grid; place-items: center; }
.opt .check::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--on-tomato); border-bottom: 2px solid var(--on-tomato); transform: translateY(-1px) rotate(-45deg); }
.opt-note { margin-left: auto; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }

.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); max-width: 460px; margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: 16px; line-height: 20px; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: var(--space-2); }
.step { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper-raised); cursor: pointer; transition: background-color 120ms ease-out; }
.step:hover { background: var(--paper-sunk); }
.step:focus-visible { border-radius: 50%; }
.step[disabled] { opacity: .4; cursor: default; }
.step svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.step-v { min-width: 44px; text-align: center; font-size: 24px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }

.budget { max-width: 460px; }
.budget-v { display: block; font-family: var(--font-mono); font-weight: 500; font-size: clamp(48px, 6vw, 64px); line-height: 1; letter-spacing: -.02em; }
.budget-ends { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: var(--space-2) 0 0; background: transparent; cursor: pointer; --fill: .5; }
.range::-webkit-slider-runnable-track { height: 10px; border-radius: var(--radius-pill); background: linear-gradient(to right, var(--tomato) calc(var(--fill) * (100% - 30px) + 15px), var(--paper-sunk) 0); box-shadow: inset 0 0 0 1px var(--line); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--paper-raised); border: 2px solid var(--tomato); box-shadow: 0 1px 3px rgba(38, 35, 31, .18); }
.range::-moz-range-track { height: 10px; border-radius: var(--radius-pill); background: var(--paper-sunk); box-shadow: inset 0 0 0 1px var(--line); }
.range::-moz-range-progress { height: 10px; border-radius: var(--radius-pill); background: var(--tomato); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--paper-raised); border: 2px solid var(--tomato); box-shadow: 0 1px 3px rgba(38, 35, 31, .18); }
.range:focus-visible { box-shadow: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--focus); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--focus); }
.equation { margin-top: var(--space-5); font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* The line each answer prints, shown inline where the full receipt isn't beside you */
.tape { display: flex; justify-content: space-between; gap: var(--space-3); max-width: 460px; margin-top: var(--space-5); padding: var(--space-3) var(--space-4); background: var(--receipt); border-radius: var(--radius-sm); box-shadow: var(--shadow-receipt); font-family: var(--font-mono); font-size: 13px; line-height: 20px; text-transform: uppercase; }
.tape span:last-child { white-space: nowrap; }
.tape-save { color: var(--herb); }

.reveal-h { font-size: clamp(40px, 5.2vw, 68px); line-height: .98; letter-spacing: -.03em; font-weight: 700; font-variant-numeric: tabular-nums; }
.reveal-h span { display: block; }
.reveal-sub { margin-top: var(--space-4); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--ink-muted); max-width: 36ch; }
.reveal-sub b { font-weight: 600; }
.reveal-actions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); }

@media (min-width: 960px) {
  .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-6); }
  .how-steps, .how-aside { display: block; }
  .how-aside { position: sticky; top: calc(var(--nav-h) + var(--space-5)); align-self: start; }
  .how-progress { position: static; margin: 0 0 var(--space-5); padding: 0; background: none; border: 0; max-width: 332px; margin-inline: auto; }
  .how-slip { margin: 0 auto; }
  .chapter { min-height: 68vh; padding-block: var(--space-7); display: flex; flex-direction: column; justify-content: center; transition: opacity 300ms ease-out; }
  .chapter:first-child { min-height: 52vh; padding-top: 0; }
  .js .chapter:not(.is-current):not(:focus-within) { opacity: .34; }
  .tape { display: none; }
}
@media (min-width: 960px) and (max-height: 800px) { .how-aside { zoom: .9; } }
@media (min-width: 960px) and (max-height: 700px) { .how-aside { zoom: .78; } }

/* ---------- The grocery list ---------- */
.list-in { display: grid; gap: var(--space-7); align-items: center; }
.list-slip { margin-inline: auto; transform: rotate(1.2deg); }
.js .list-slip { min-height: 527px; } /* the printed height, held so nothing below moves while it prints */
.list-count { margin-top: var(--space-5); font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.list-hint { margin-top: var(--space-1); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.gl { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; border-radius: 2px; }
.gl > span:first-child { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); }
.gl > span:first-child::before { content: ""; flex: none; width: 12px; height: 12px; border: 1.5px solid var(--ink); border-radius: 2px; background: linear-gradient(45deg, #0000 44%, var(--paper-raised) 44% 56%, #0000 56%), linear-gradient(-45deg, #0000 44%, var(--paper-raised) 44% 56%, #0000 56%); transition: background-color 120ms ease-out; }
.gl > span:first-child::after { content: ""; position: absolute; left: 18px; right: -2px; top: 50%; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform 180ms ease-out; }
.gl[aria-checked="true"] { color: var(--ink-muted); }
.gl[aria-checked="true"] > span:first-child::before { background-color: var(--ink); }
.gl[aria-checked="true"] > span:first-child::after { transform: scaleX(1); }
.gl:hover > span:first-child::before { background-color: var(--paper-sunk); }
.gl[aria-checked="true"]:hover > span:first-child::before { background-color: var(--ink); }
@media (min-width: 900px) {
  .list-in { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(48px, 8vw, 120px); }
  .list-copy { order: 2; }
}

/* ---------- The close ---------- */
.outro { --torn: var(--paper-sunk); background: var(--tomato); color: var(--on-tomato); text-align: center; padding-block: clamp(96px, 12vw, 168px); }
.outro-mark { width: clamp(88px, 10vw, 124px); height: auto; margin: 0 auto var(--space-6); fill: currentColor; overflow: visible; }
.outro-mark path { transform-box: fill-box; transform-origin: center; }
.outro-h { max-width: 13ch; margin-inline: auto; font-size: clamp(42px, 6.6vw, 92px); line-height: .98; letter-spacing: -.03em; font-weight: 700; font-variant-numeric: tabular-nums; }
.outro-h span { display: inline-block; }
.outro-sub { margin-top: var(--space-5); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; text-wrap: balance; }
.outro-actions { margin-top: var(--space-5); display: flex; justify-content: center; }
.outro-actions:empty { display: none; }
.outro .soon { border-color: color-mix(in srgb, var(--on-tomato) 55%, transparent); }
.outro .soon i { background: var(--on-tomato); }

.js .outro:not(.is-in) .m-plate { opacity: 0; transform: scale(.55); }
.js .outro:not(.is-in) .m-fork { opacity: 0; transform: translateX(-160px) rotate(-16deg); }
.js .outro:not(.is-in) .m-spoon { opacity: 0; transform: translateX(160px) rotate(16deg); }
.js .outro:not(.is-in) .outro-h span { opacity: 0; transform: translateY(.3em); }
.js .outro:not(.is-in) .outro-after { opacity: 0; }
.outro.is-in .m-plate { transition: transform 600ms cubic-bezier(.3, 1.35, .5, 1), opacity 200ms ease-out; }
.outro.is-in .m-fork { transition: transform 520ms var(--ease) 260ms, opacity 200ms ease-out 260ms; }
.outro.is-in .m-spoon { transition: transform 520ms var(--ease) 340ms, opacity 200ms ease-out 340ms; }
.outro.is-in .outro-h span { transition: transform 520ms var(--ease), opacity 320ms ease-out; transition-delay: calc(760ms + var(--i, 0) * 240ms); }
.outro.is-in .outro-after { transition: opacity 500ms ease-out 2100ms; }

/* ---------- Footer ---------- */
.foot { --torn: var(--tomato); position: relative; background: var(--ink); color: var(--paper); padding-block: var(--space-7) var(--space-6); }
.foot-in { display: grid; gap: var(--space-6); }
.foot-brand img { height: 30px; width: auto; }
.foot-brand p { margin-top: var(--space-3); color: color-mix(in srgb, var(--paper) 72%, transparent); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); list-style: none; padding: 0; font-size: 16px; line-height: 20px; font-weight: 600; }
.foot-links a { display: inline-block; padding: var(--space-2) 0; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-small { padding-top: var(--space-5); border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); font-size: 13px; line-height: 18px; font-weight: 500; color: color-mix(in srgb, var(--paper) 62%, transparent); max-width: none; }
.foot-small p + p { margin-top: var(--space-1); }
@media (min-width: 800px) {
  .foot-in { grid-template-columns: 1fr auto; align-items: start; }
  .foot-small { grid-column: 1 / -1; }
}

/* ---------- Documents: privacy, terms, support ---------- */
.doc { padding-block: var(--space-7) clamp(72px, 9vw, 120px); }
.doc-in { max-width: 720px; }
.doc h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1; letter-spacing: -.03em; font-weight: 700; }
.doc-meta { margin-top: var(--space-4); font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--ink-muted); text-transform: uppercase; }
.doc-lede { margin-top: var(--space-5); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; }
.doc-box { margin-top: var(--space-6); padding: var(--space-5); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.doc .doc-box h2 { margin-top: 0; }
.doc h2 { margin-top: var(--space-7); font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.doc h3 { margin-top: var(--space-5); font-size: 19px; line-height: 24px; font-weight: 600; letter-spacing: -.005em; }
.doc p, .doc li { font-size: 17px; line-height: 1.6; }
.doc p { margin-top: var(--space-3); }
.doc ul, .doc ol { margin-top: var(--space-3); padding-left: 1.25em; }
.doc li + li { margin-top: var(--space-2); }
.doc a { text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc strong { font-weight: 600; }
.doc-toc { margin-top: var(--space-6); padding: 0; list-style: none; columns: 2; column-gap: var(--space-6); }
.doc-toc li { break-inside: avoid; font-size: 16px; line-height: 1.5; }
@media (max-width: 599px) { .doc-toc { columns: 1; } }

.oops { min-height: 70svh; display: grid; place-items: center; text-align: center; padding-block: var(--space-7); }
.oops .slip { margin: 0 auto var(--space-6); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .js .plates:not(.is-in) .plate-card { opacity: 1; }
  .plates.is-in .plate-card, .plates.is-in .plate-photo img { animation: none; }
  .plate-photo img { transition: none; }
  .js .blk-herb { transform: none; }
  .js .outro:not(.is-in) :is(.m-plate, .m-fork, .m-spoon, .outro-h span, .outro-after) { opacity: 1; transform: none; }
  .outro.is-in :is(.m-plate, .m-fork, .m-spoon, .outro-h span, .outro-after) { transition: none; }
  .chapter, .sp-chip, .sp-btn, .gl > span:first-child::after { transition: none; }
}
