/* GENERATED by tools/site/build_site.py — do not edit; edit the sources.
   Colours: Crave/Assets.xcassets. Motion: LaunchMoment.swift and MacroRings.swift. */

:root {
  --accent-color: #F9383A;
  --brand-background: #280E28;
  --brand-mark-colour: #F5312D;
  --canvas: #FCF5F3;
  --carbs: #A76F8C;
  --chart-bar: #4A1D4E;
  --control: #F2EAE8;
  --coral: #F9383A;
  --coral-fill: #D73032;
  --coral-text: #CE393B;
  --does-not-fit: #A85A00;
  --fat: #A9793F;
  --fits: #167A46;
  --on-coral: #FFF7F4;
  --on-plum: #FBF3EC;
  --protein: #4A1D4E;
  --ring-track: #EEE7E6;
  --surface: #FFFFFF;
  --surface-border: #EDE2E2;
  --text-primary: #2A0E2B;
  --text-secondary: #6B5C67;
  --water-fill: #3E1640;
  --water-fill-edge: #3E1640;
}

@media (prefers-color-scheme: dark) {
  :root {
  --accent-color: #FA4744;
  --canvas: #120C14;
  --carbs: #C89BB0;
  --chart-bar: #765C79;
  --control: #2A1F2C;
  --coral: #FA4744;
  --coral-fill: #D03B39;
  --coral-text: #C9A7CE;
  --does-not-fit: #FFB04A;
  --fat: #C9A87C;
  --fits: #3DDC84;
  --on-coral: #FFF7F4;
  --on-plum: #FBF3EC;
  --protein: #A97FAE;
  --ring-track: #3E2F41;
  --surface: #1C141E;
  --surface-border: #332536;
  --text-primary: #FBF3EC;
  --text-secondary: #A2939E;
  --water-fill: #3A2440;
  --water-fill-edge: #6F5F74;
  }
}

:root {
  /* The launch moment. Sizes are in ems of the word, so the lockup scales as one. */
  --lm-mark: 1.3143;          /* mark height ÷ word size */
  --lm-gap: 0.0571em;          /* the space between mark and word */
  --lm-hang: 0.12;          /* how much of the mark hangs below the word's feet */
  --lm-rise: 0.1429em;        /* how far the word rises as it opens */
  --lm-turns: -540deg;    /* a turn and a half */
  --lm-scale: 0.3;        /* what the mark grows from */
  --lm-gather-ms: 1430ms;    /* spring(response: 0.95, dampingFraction: 0.78) */
  --lm-open-delay: 860ms;
  --lm-open-ms: 858ms;        /* spring(response: 0.62, dampingFraction: 0.88) */
  --lm-gather-ease: linear(0, 0.0175, 0.0631, 0.1279, 0.2045, 0.2874, 0.3721, 0.4553, 0.5346, 0.6084, 0.6758, 0.7361, 0.7893, 0.8354, 0.8748, 0.9079, 0.9353, 0.9577, 0.9755, 0.9894, 1, 1.0078, 1.0133, 1.0169, 1.0189, 1.0198, 1.0198, 1.0192, 1.018, 1.0166, 1.015, 1.0133, 1.0116, 1.01, 1.0085, 1.0071, 1.0058, 1.0047, 1.0037, 1.0029, 1.0021, 1.0015, 1.001, 1.0006, 1.0003, 1.0001, 0.9999, 0.9998, 1);
  --lm-open-ease: linear(0, 0.0148, 0.0531, 0.1075, 0.1721, 0.2422, 0.3144, 0.3862, 0.4555, 0.5212, 0.5823, 0.6385, 0.6895, 0.7352, 0.7759, 0.8118, 0.8431, 0.8703, 0.8937, 0.9137, 0.9306, 0.9449, 0.9568, 0.9667, 0.9748, 0.9814, 0.9867, 0.991, 0.9943, 0.9969, 0.9989, 1.0003, 1.0014, 1.0021, 1.0026, 1.0028, 1.003, 1.003, 1.0029, 1.0027, 1.0026, 1.0024, 1.0021, 1.0019, 1.0017, 1.0015, 1.0013, 1.0012, 1);

  /* The day rings. */
  --ring-scale: 0.82;
  --ring-opacity: 0.2;
  --ring-turn: 200deg;
  --ring-ms: 989ms;
  --ring-ease: linear(0, 0.0154, 0.0555, 0.1124, 0.18, 0.2533, 0.3288, 0.4035, 0.4755, 0.5435, 0.6064, 0.664, 0.7158, 0.762, 0.8026, 0.8381, 0.8688, 0.895, 0.9172, 0.9359, 0.9514, 0.9641, 0.9744, 0.9828, 0.9893, 0.9944, 0.9983, 1.0012, 1.0033, 1.0047, 1.0056, 1.0061, 1.0063, 1.0062, 1.006, 1.0057, 1.0053, 1.0048, 1.0043, 1.0039, 1.0034, 1.003, 1.0026, 1.0022, 1.0019, 1.0016, 1.0013, 1.0011, 1);
}

/* ======================================================================
   eatnextapp.com — hand-written below this line.

   Everything above it is generated: the app's colours, by name, and the
   numbers of its launch moment and day rings. This file only uses them.

   Kept from docs/BRAND_BOUNDARIES.md: the mark is the app's own artwork and
   is never redrawn; it appears in the launch moment, the header and the
   footer, on the brand plum, and nowhere else. Nothing below borrows its
   bevel, gloss or bite. The page under the hero is the app's interface —
   flat cards on cream, plum text, coral for what matters.

   And from the accessibility statement, because a site for an app that
   publishes one should honour it: real contrast in both appearances, a
   visible focus ring, a skip link, text that reflows to a phone without a
   sideways scroll, and no motion at all for anyone who has asked for less.
   ====================================================================== */

@property --wound {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

/* Nunito stands in for SF Rounded where a browser has no rounded system face
   (Android, Windows). Apple's Safari resolves ui-rounded first and never
   downloads it. Licence: /assets/fonts/OFL.txt. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --wrap: 68rem;
  --measure: 40rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 16px; /* the app's card */
  --on-plum-soft: color-mix(in srgb, var(--on-plum) 80%, transparent);
  --on-plum-faint: color-mix(in srgb, var(--on-plum) 26%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

/* Plum behind everything, so pulling past either end of the page shows the
   same plum as the hero above it and the footer below. */
html {
  background: var(--brand-background);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-primary);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--rounded);
  color: var(--text-primary);
  text-wrap: balance;
}

p, li { text-wrap: pretty; }
p { margin: 0 0 1rem; }

a {
  color: var(--coral-text);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img, svg { max-width: 100%; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 600;
}
.skip:focus { top: 0.75rem; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- the lockup

   The mark and the rest of the word, laid out as the launch moment lays them
   out: the mark a little taller than the word, a hair of space between, and
   hanging below the word's feet by the same share of its height. All in ems
   of the word, so it is one thing at any size. */

.lockup {
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  font-family: var(--rounded);
  font-weight: 800; /* heavy, as in the app */
  color: var(--brand-mark-colour);
}

.lockup .mark {
  display: inline-block;
  width: calc(var(--lm-mark) * 1em);
  height: calc(var(--lm-mark) * 1em);
  margin-right: var(--lm-gap);
  vertical-align: calc(var(--lm-mark) * var(--lm-hang) * -1em);
}

.lockup .word { display: inline-block; }

.brand {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
}
.brand .lockup { font-size: 1.5rem; }

/* ---------------------------------------------------------------- navigation */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.nav a {
  padding: 0.5rem 0;
  color: var(--on-plum-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--on-plum); text-decoration: underline; }
.nav a[aria-current="page"] {
  color: var(--on-plum);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--brand-mark-colour);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

/* ---------------------------------------------------------------- the hero */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--gutter);
  /* The mark grows from the middle of the plum, and the lockup starts off
     shifted right so the mark alone is centred. Clipping here keeps that
     shift from widening the page on a phone. */
  overflow: hidden;
  background: var(--brand-background);
  color: var(--on-plum);
  text-align: center;
}

.hero-nav {
  position: absolute;
  inset: 0 0 auto;
  justify-content: flex-end;
  padding: max(0.75rem, env(safe-area-inset-top)) var(--gutter) 0.75rem;
}

.hero-title {
  grid-row: 2;
  margin: 0;
  color: inherit;
  font-size: clamp(3.5rem, 14vw, 7.25rem);
  line-height: 1;
  /* Centred on the middle of the lowercase letters rather than on the box,
     as the app centres it: the mark towers over the word, so the box's own
     middle sits well above where the eye puts the middle of the word. */
  transform: translateY(-0.2em);
}

.hero-copy {
  grid-row: 3;
  align-self: start;
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vh, 2.5rem) 0 3rem;
}

.tagline {
  margin: 0 0 0.75rem;
  font-family: var(--rounded);
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-lede {
  max-width: 30rem;
  margin: 0 auto 1.5rem;
  color: var(--on-plum);
  color: var(--on-plum-soft);
}

.hero-status { margin: 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--on-plum-faint);
  border-radius: 999px;
  font-size: 0.9375rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand-mark-colour);
}

.store {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--coral-fill);
  color: var(--on-coral);
  font-weight: 700;
  text-decoration: none;
}

/* The moment itself. Held at its first frame until the mark has decoded (the
   script in <head> adds .go), so the spin never happens to an empty box.
   Without scripts, or for anyone who has asked for less motion, none of this
   applies and the lockup is simply there. */

@keyframes lm-gather {
  from { transform: rotate(var(--lm-turns)) scale(var(--lm-scale)); opacity: 0; }
  to   { transform: rotate(0deg) scale(1); opacity: 1; }
}

/* Before the word exists the mark alone should look centred, so the pair
   starts shifted right by half of what is about to appear. */
@keyframes lm-centre {
  from { transform: translateX(calc((100% - var(--lm-mark) * 1em) / 2)); }
  to   { transform: translateX(0); }
}

/* Wipes open from the left, the way a dial fills, rising a little as it
   goes so the letters arrive rather than simply becoming visible. */
@keyframes lm-open {
  from { clip-path: inset(-40% 100% -40% -10%); opacity: 0; transform: translateY(var(--lm-rise)); }
  to   { clip-path: inset(-40% -10% -40% -10%); opacity: 1; transform: translateY(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.6rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero .mark {
    animation: lm-gather var(--lm-gather-ms) cubic-bezier(0.2, 0.9, 0.25, 1.02) both paused;
  }
  .js .hero .lockup {
    animation: lm-centre var(--lm-open-ms) cubic-bezier(0.3, 0.9, 0.3, 1) var(--lm-open-delay) both paused;
  }
  .js .hero .word {
    animation: lm-open var(--lm-open-ms) cubic-bezier(0.3, 0.9, 0.3, 1) var(--lm-open-delay) both paused;
  }
  .js .hero .after {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--lm-open-delay) + 480ms) both paused;
  }
  .js .hero .after + .after { animation-delay: calc(var(--lm-open-delay) + 600ms); }
  .js .hero .after + .after + .after { animation-delay: calc(var(--lm-open-delay) + 720ms); }

  /* The springs themselves, where the browser can draw a spring. */
  @supports (animation-timing-function: linear(0, 1)) {
    .js .hero .mark { animation-timing-function: var(--lm-gather-ease); }
    .js .hero .lockup,
    .js .hero .word { animation-timing-function: var(--lm-open-ease); }
  }

  .js .hero.go .mark,
  .js .hero.go .lockup,
  .js .hero.go .word,
  .js .hero.go .after { animation-play-state: running; }
}

/* ---------------------------------------------------------------- sections */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.wrap.narrow { width: min(100% - 2 * var(--gutter), var(--measure)); }
.centre { text-align: center; }

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section + .section { padding-top: 0; }

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--coral-text);
  font-family: var(--rounded);
  font-size: 0.9375rem;
  font-weight: 700;
}

.display {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.display .accent { color: var(--coral-text); }

.lead {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  color: var(--text-secondary);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.5;
}

.section-lede {
  max-width: 40rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* ---------------------------------------------------------------- the day */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; }
}

.split-text p:not(.eyebrow) { color: var(--text-secondary); }
.split-text p:last-child { margin-bottom: 0; }

.day-figure { margin: 0; }

.day-figure figcaption {
  margin-top: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
}

/* The rings, drawn to the app's own measurements: one point here is one
   point there, scaled by --u — down to fit a narrow phone, up on a wide
   screen. */
.day-card {
  --u: min(1px, (100vw - 2 * var(--gutter) - 2px) / 324);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: calc(16 * var(--u));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
}
@media (min-width: 52rem) {
  .day-card { --u: 1.3px; }
}

/* What a winding drives, exactly as MacroRingRow has it: the row grows from
   just under its size and comes up from faint, and each arc is drawn out to
   its value while it turns into place. */
.day-row {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
  transform-origin: top center;
  transform: scale(calc(var(--ring-scale) + (1 - var(--ring-scale)) * var(--wound)));
  opacity: calc(var(--ring-opacity) + (1 - var(--ring-opacity)) * var(--wound));
}

.dial-row {
  display: flex;
  align-items: flex-start;
  gap: calc(6 * var(--u));
}

.dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(5 * var(--u));
}
.dial-headline { gap: calc(7 * var(--u)); }

.dial-face {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--d) * var(--u));
  height: calc(var(--d) * var(--u));
}

.dial-face svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dial-track {
  fill: none;
  stroke: var(--ring-track);
  stroke-width: var(--t);
}

.dial-arc {
  fill: none;
  stroke: var(--tint);
  stroke-width: var(--t);
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - var(--p) * var(--wound));
  transform-box: view-box;
  transform-origin: 50% 50%;
  transform: rotate(calc((1 - var(--wound)) * var(--ring-turn) * -1));
  /* A round cap on a zero-length arc is a dot; SwiftUI draws nothing. */
  opacity: clamp(0, var(--wound) * 25, 1);
}

.dial-value {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-primary);
  font-family: var(--text);
  font-size: calc(12 * var(--u));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.dial-headline .dial-value {
  font-family: var(--rounded);
  font-size: calc(26 * var(--u));
}

.dial-value small {
  color: var(--text-secondary);
  font-family: var(--text);
  font-size: calc(11 * var(--u));
  font-weight: 400;
}

.dial-label {
  color: var(--text-primary);
  font-size: calc(11 * var(--u));
  line-height: 1.2;
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-wind] {
    --wound: 0;
    transition: --wound var(--ring-ms) cubic-bezier(0.25, 0.9, 0.3, 1);
  }
  @supports (transition-timing-function: linear(0, 1)) {
    .js [data-wind] { transition-timing-function: var(--ring-ease); }
  }
  .js [data-wind].wound { --wound: 1; }
}

/* ---------------------------------------------------------------- cards */

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 46rem) {
  .cards { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
}
.card p { color: var(--text-secondary); }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.1rem;
  padding: 0.6rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--coral) 12%, transparent);
  color: var(--coral-text);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card .card-fact {
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--surface-border);
  color: var(--text-primary);
  font-family: var(--rounded);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------- pricing */

.plan h3 { margin-bottom: 0.25rem; font-size: 1.125rem; }

.card .price {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-family: var(--rounded);
}

.price-figure {
  margin-right: 0.2rem;
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-alt { display: block; font-size: 0.9375rem; }

.plan-premium {
  border: 2px solid var(--coral);
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin-bottom: 0.7rem;
  padding-left: 1.75rem;
  color: var(--text-secondary);
}
.ticks li:last-child { margin-bottom: 0; }
.ticks strong { color: var(--text-primary); font-weight: 650; }
.ticks .tick-line { display: block; }

/* A tick, so the list does not rely on colour to say "included". */
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.42em;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2.5px solid var(--coral-text);
  border-bottom: 2.5px solid var(--coral-text);
  transform: rotate(-45deg);
}

.fine {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ---------------------------------------------------------------- privacy */

.band {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-block: 1px solid var(--surface-border);
  background: var(--surface);
}
.band + .section { padding-top: clamp(3.5rem, 9vw, 6.5rem); }

.band p { color: var(--text-secondary); }
.band p:last-child { margin-bottom: 0; }

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--control);
  color: var(--text-primary);
  font-family: var(--rounded);
  font-size: 0.9375rem;
  font-weight: 650;
}

.more { font-weight: 600; }

/* ---------------------------------------------------------------- footer */

.foot {
  padding: 2.75rem var(--gutter) max(2.75rem, env(safe-area-inset-bottom));
  background: var(--brand-background);
  color: var(--on-plum);
}

.foot-inner {
  display: grid;
  gap: 1rem;
  justify-items: start;
  width: min(100%, var(--wrap));
  margin-inline: auto;
}
@media (min-width: 46rem) {
  .foot-inner { grid-template-columns: auto 1fr; align-items: center; }
  .foot .nav { justify-self: end; }
  .foot-note { grid-column: 1 / -1; }
}

.foot-note {
  margin: 0.5rem 0 0;
  color: var(--on-plum-soft);
  font-size: 0.875rem;
}

/* ---------------------------------------------------------------- documents */

.bar {
  padding: max(0.75rem, env(safe-area-inset-top)) var(--gutter) 0.75rem;
  background: var(--brand-background);
  color: var(--on-plum);
}

.bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  width: min(100%, var(--wrap));
  margin-inline: auto;
}

.doc-main {
  width: min(100% - 2 * var(--gutter), var(--measure));
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 3.75rem) 4.5rem;
}

.doc-main h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.doc-main h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.6rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.doc-main h3 { margin: 2rem 0 0.5rem; font-size: 1.125rem; }
.doc-main h4 { margin: 1.5rem 0 0.5rem; font-size: 1rem; color: var(--text-secondary); }

.doc-main ul, .doc-main ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.doc-main li { margin-bottom: 0.4rem; }
.doc-main li::marker { color: var(--coral-text); }

.doc-main hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--surface-border);
}

.doc-main blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--coral);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
  color: var(--text-secondary);
}
.doc-main blockquote p:last-child { margin-bottom: 0; }

code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

.scroll {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th, td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--surface-border);
  text-align: left;
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }

th {
  background: var(--control);
  font-family: var(--rounded);
  font-weight: 700;
}

/* The blanks, and the warning that comes with them. Deliberately not from the
   app's palette: they are scaffolding, and should look like it. */
mark.blank {
  padding: 0.1em 0.45em;
  border-radius: 6px;
  background: #fff1b8;
  color: #4a3a00;
  font-weight: 650;
}

.notice {
  margin: 0 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e0c766;
  border-radius: 12px;
  background: #fff8e1;
  color: #3d3200;
}
.notice strong { display: block; margin-bottom: 0.25rem; }

@media (prefers-color-scheme: dark) {
  mark.blank { background: #4a3f12; color: #ffe9a8; }
  .notice { background: #2b2616; border-color: #6b5c22; color: #f6e7b4; }
}
