/* Mirepoix's website (D20). The app's palette and fonts (D13): onion for
   paper, carrot for actions, celery for "all good", a bookish serif for the
   big words and the platform's own font for the rest. Light and dark follow
   the system. The app's colors are repeated here, and a unit test keeps the
   two in step. Nothing is downloaded but this file and the pictures. */

:root {
  --paper: #FBF8F3;
  --surface: #FFFFFF;
  --sunken: #F3EEE6;
  --ink: #2A2622;
  --ink-2: #6B635A;
  --line: #E4DCCF;
  --carrot: #A84A18;
  --carrot-soft: #FBE8DA;
  --on-carrot: #FFFFFF;
  --celery: #4E6B26;
  --celery-soft: #E8F0DA;
  --warn: #8A5A0B;
  --warn-soft: #FCF1D6;

  /* The logo's own three, for the little diced vegetables. */
  --onion-die: #F1E2C2;
  --carrot-die: #E8742F;
  --celery-die: #8DB04F;

  /* The stages the screens stand on. */
  --stage-onion: #F4ECDE;
  --stage-celery: #E9F0DE;
  --stage-carrot: #FAE7D8;

  /* Cutting boards under the screens, and their grooves. The cards are
     color-coded boards, like a kitchen's. */
  --board: #EFE2CB;
  --board-groove: #DECBA8;
  --groove-onion: #E6D6BA;
  --groove-carrot: #F2CDAE;
  --groove-celery: #CFDFB6;

  /* The cooking band stays dark in both themes, like a kitchen at night. */
  --band: #2A2622;
  --band-ink: #F6EBD3;
  --band-ink-2: #BFB4A5;
  --band-accent: #A3C46B;
  --band-line: rgb(246 235 211 / .14);

  --bezel: #1F1C19;
  --laptop-base: #4A4540;
  --paper-card: #FFFDF8;
  --shadow-soft: 0 1px 2px rgb(42 38 34 / .05), 0 24px 60px -28px rgb(42 38 34 / .25);
  --shadow-phone: 0 2px 4px rgb(42 38 34 / .08), 0 30px 60px -18px rgb(42 38 34 / .35);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --header: 68px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1A17;
    --surface: #25221E;
    --sunken: #2C2824;
    --ink: #EEE8E0;
    --ink-2: #A9A096;
    --line: #3A352F;
    --carrot: #F0894A;
    --carrot-soft: #3B2A1E;
    --on-carrot: #1C1A17;
    --celery: #A3C46B;
    --celery-soft: #28311C;
    --warn: #E7B85C;
    --warn-soft: #3A2F1C;

    --onion-die: #E9DCC0;

    --stage-onion: #25211C;
    --stage-celery: #20271A;
    --stage-carrot: #2C211A;

    --board: #2A2520;
    --board-groove: #3A3229;
    --groove-onion: #342D25;
    --groove-carrot: #43301F;
    --groove-celery: #2E3A22;

    --band: #12110F;
    --bezel: #0D0C0B;
    --laptop-base: #2E2B28;
    --paper-card: #2A2622;
    --shadow-soft: 0 1px 2px rgb(0 0 0 / .3), 0 24px 60px -28px rgb(0 0 0 / .7);
    --shadow-phone: 0 0 0 1px rgb(246 235 211 / .1), 0 2px 4px rgb(0 0 0 / .3), 0 30px 60px -18px rgb(0 0 0 / .8);
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  scroll-padding-top: calc(var(--header) + 8px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

/* Classes set display, and would beat the attribute. */
[hidden] { display: none !important; }
a { color: var(--carrot); }
::selection { background: var(--carrot-soft); }

:focus-visible {
  outline: 2px solid var(--carrot);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap { width: min(1180px, calc(100% - 64px)); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  z-index: 100;
  top: -80px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.skip:focus { top: 12px; }

/* Type */

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.1rem, 1.9rem + 4.6vw, 5.9rem);
  line-height: .94;
}

h2 {
  font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.4rem);
  line-height: .98;
}

h1 em, h2 em {
  color: var(--carrot);
  font-style: italic;
}

h3 { text-wrap: balance; }

.eyebrow {
  margin: 0 0 22px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink-2);
}

.section .eyebrow::before,
.cook-band .eyebrow::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 12px;
  border-radius: 2.5px;
  background: var(--mark, var(--onion-die));
  box-shadow: var(--mark-ring, inset 0 0 0 1px rgb(42 38 34 / .14));
  vertical-align: .05em;
  rotate: 14deg;
}

#read, #devices, #questions { --mark: var(--carrot-die); --mark-ring: none; }
#home-screen, #yours { --mark: var(--celery-die); --mark-ring: none; }
#cook { --mark-ring: none; }

.large-copy {
  max-width: 34ch;
  margin: 26px 0 0;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem);
  line-height: 1.45;
}

.small-print {
  max-width: 54ch;
  margin: 20px 0 0;
  font-size: .82rem;
  color: var(--ink-2);
}

.fine-print {
  margin: 28px 0 0;
  font-size: .78rem;
  text-align: center;
  color: var(--ink-2);
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--carrot);
  color: var(--on-carrot);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 28px -14px rgb(168 74 24 / .7);
  transition: translate .2s ease, box-shadow .2s ease;
}

.button:hover { translate: 0 -2px; }

.button.small {
  padding: 8px 16px;
  font-size: .9rem;
  box-shadow: none;
}

.button.dark {
  background: var(--band);
  color: var(--band-ink);
  box-shadow: 0 14px 28px -14px rgb(0 0 0 / .6);
}

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline 1.5px var(--line);
  text-underline-offset: 7px;
  transition: text-decoration-color .2s ease;
}

.text-link:hover { text-decoration-color: var(--carrot); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.ok { background: var(--celery-soft); color: var(--celery); }
.chip.alert { background: var(--carrot-soft); color: var(--carrot); }
.chip.neutral { background: var(--sunken); color: var(--ink-2); }

/* Header */

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.header-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header);
}

.brand { display: block; flex: none; border-radius: 8px; }
.brand img { width: auto; height: 32px; }

.site-nav { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.lang-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}

.lang-link:hover { color: var(--carrot); }

@media (max-width: 459px) {
  .header-in .brand img { height: 34px; border-radius: 8px; }
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
  }

  .site-nav a {
    font-size: .92rem;
    color: var(--ink-2);
    text-decoration: none;
    transition: color .2s ease;
  }

  .site-nav a:hover { color: var(--ink); }
}

/* Hero */

.hero {
  display: grid;
  gap: 40px;
  padding-block: 44px 28px;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 24px;
    align-items: center;
    min-height: min(780px, calc(100svh - var(--header)));
    padding-block: 32px;
  }
}

.dice-mark {
  display: inline-flex;
  gap: 3px;
  margin-right: 10px;
  vertical-align: -1px;
}

.dice-mark i {
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  background: var(--onion-die);
  box-shadow: inset 0 0 0 1px rgb(42 38 34 / .12);
}

.dice-mark i:nth-child(2) { background: var(--carrot-die); box-shadow: none; }
.dice-mark i:nth-child(3) { background: var(--celery-die); box-shadow: none; }

.lede {
  max-width: 30ch;
  margin: 30px 0 0;
  font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem);
  line-height: 1.4;
}

.intro {
  max-width: 46ch;
  margin: 16px 0 0;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 34px;
}

/* What you can count on: six short lines, all alike, in two columns. */

.assurances {
  display: grid;
  gap: 12px 28px;
  margin: 34px 0 0;
  padding: 0;
  font-size: .95rem;
  line-height: 1.3;
  list-style: none;
}

@media (min-width: 480px) {
  .assurances { grid-template-columns: repeat(2, minmax(0, max-content)); }
}

.assurances li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assurances svg {
  width: 20px;
  height: 20px;
  color: var(--carrot);
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1.22;
  margin-inline: auto;
}

@media (min-width: 600px) {
  .hero-art { aspect-ratio: 1 / 1.08; }
}

/* Cutting boards: mirepoix is diced on one. Each screen rests on a board,
   with a groove around the edge and a slot to hang it by, among a few
   diced vegetables. */

.board {
  position: absolute;
  border-radius: 26px;
  background: var(--board);
  box-shadow:
    inset 0 0 0 14px var(--board),
    inset 0 0 0 16px var(--board-groove),
    0 26px 50px -30px rgb(42 38 34 / .45);
}

/* The slot to hang it by, at one end: the page shows through. */
.board::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 5%;
  width: 4.5%;
  height: 26%;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 2px 2px 4px rgb(42 38 34 / .22);
  translate: 0 -50%;
}

.hero-art .board {
  top: 22%;
  left: -2%;
  width: 104%;
  height: 58%;
  rotate: -4deg;
}

/* Devices: the screenshot inside a plain bezel, no particular brand.
   Mostly phones, with a tablet and a laptop where they fit the story. */

.phone,
.tablet,
.laptop { margin: 0; }

.phone,
.tablet,
.laptop picture {
  background: var(--bezel);
  box-shadow: var(--shadow-phone);
}

.phone img,
.tablet img,
.laptop img {
  width: 100%;
  background: var(--sunken);
}

.phone {
  padding: 2.4%;
  border-radius: 13% / 6%;
}

.phone img { border-radius: 11% / 5.1%; }

/* A tablet in portrait: 820 × 1180 screens, rounder corners than a laptop. */
.tablet {
  padding: 3%;
  border-radius: 6% / 4.25%;
}

.tablet img { border-radius: 3.2% / 2.2%; }

/* A laptop: 1280 × 800 screens in a thin lid, on a base a little wider than it. */
.laptop picture {
  display: block;
  padding: 1.8% 1.8% 2.4%;
  border-radius: 14px 14px 4px 4px;
}

.laptop img { border-radius: 4px; }

.laptop::after {
  content: "";
  display: block;
  width: 112%;
  aspect-ratio: 100 / 3.2;
  margin-inline: -6%;
  border-radius: 2px 2px 40% 40% / 2px 2px 100% 100%;
  background:
    linear-gradient(to right, transparent 43%, rgb(0 0 0 / .22) 43% 57%, transparent 57%) top / 100% 38% no-repeat,
    var(--laptop-base);
  box-shadow: var(--shadow-phone);
}

.tilt-left { rotate: -3deg; }
.tilt-right { rotate: 3deg; }

.hero-art .phone,
.hero-art .tablet { position: absolute; }

.hero-front {
  z-index: 2;
  top: 13%;
  left: 3%;
  width: 41%;
  rotate: -4deg;
}

.hero-back {
  z-index: 1;
  top: 3%;
  right: 3%;
  width: 62%;
  rotate: 4deg;
}

@media (min-width: 600px) {
  .hero-front { width: 37%; left: 5%; }
  .hero-back { width: 57%; right: 5%; }
}

.seal {
  position: absolute;
  z-index: 3;
  right: 3%;
  bottom: 5%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  width: max(26%, 120px);
  padding: 0 14px;
  aspect-ratio: 1;
  border-radius: 24%;
  background: var(--carrot);
  color: var(--on-carrot);
  text-align: center;
  rotate: -8deg;
  box-shadow: inset -6px -8px 0 rgb(0 0 0 / .12), inset 4px 4px 0 rgb(255 255 255 / .14), 0 20px 40px -18px rgb(168 74 24 / .8);
}

.seal span {
  font-size: clamp(.5rem, .4rem + .4vw, .62rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.seal strong {
  font: italic 400 clamp(1.05rem, .55rem + 1.6vw, 1.75rem)/1 var(--serif);
  letter-spacing: -.02em;
}

/* Diced onion, carrot and celery, scattered. */

.die {
  position: absolute;
  width: var(--size, 22px);
  aspect-ratio: 1;
  border-radius: 28%;
  background: var(--die);
  box-shadow: inset -3px -4px 0 rgb(0 0 0 / .1), inset 2px 2px 0 rgb(255 255 255 / .35);
  animation: bob var(--bob, 6s) ease-in-out infinite;
}

.die-onion { --die: var(--onion-die); }
.die-carrot { --die: var(--carrot-die); }
.die-celery { --die: var(--celery-die); }

.d1 { --size: 26px; --bob: 7s; top: 21%; left: 1%; rotate: 18deg; }
.d2 { --size: 18px; --bob: 5.5s; bottom: 15%; left: 5%; rotate: -12deg; }
.d3 { --size: 30px; --bob: 8s; top: 1%; right: 26%; rotate: 32deg; }
.d4 { --size: 16px; --bob: 6.5s; top: 7%; right: 3%; rotate: 8deg; }
.d5 { --size: 21px; --bob: 7.5s; bottom: 2%; left: 44%; rotate: -24deg; }

@keyframes bob {
  50% { translate: 0 -7px; }
}

.hero-art .phone,
.hero-art .tablet,
.hero-art .seal {
  animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both;
}

.hero-art .hero-back { animation-delay: .12s; }
.hero-art .seal { animation-delay: .35s; }

@keyframes rise {
  from { opacity: 0; translate: 0 48px; }
}

.assurances.after-list {
  grid-template-columns: minmax(0, max-content);
  margin-top: 30px;
}

.assurances svg,
.consent-note svg,
.flow svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

/* Sections */

.section { padding-top: clamp(80px, 10vw, 136px); }

.section-heading {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-intro {
  max-width: 40ch;
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .section-heading {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
    gap: 48px;
  }

  .section-heading .eyebrow { margin-bottom: 26px; }
}

/* 01 Capture */

.capture-layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 940px) {
  .capture-layout { grid-template-columns: .85fr 1.15fr; gap: 56px; }
}

.capture-art {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 24px;
}

/* A board across, under a single phone, and two pieces from it. */
.capture-art .board,
.home-art .board,
.devices-art .board {
  top: 50%;
  left: 50%;
  width: min(100%, 500px);
  height: 52%;
  translate: -50% -50%;
  rotate: -5deg;
}

.b1 { --size: 24px; --bob: 7s; top: 9%; left: 6%; rotate: 16deg; }
.b2 { --size: 18px; --bob: 6s; right: 7%; bottom: 10%; rotate: -20deg; }

.capture-art .phone {
  position: relative;
  width: min(62%, 290px);
}

/* Try a line: the app's ingredient reader, live. */

.try {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.try-head h3 {
  margin: 0;
  font: 400 clamp(1.7rem, 1.3rem + 1vw, 2.1rem)/1.1 var(--serif);
  letter-spacing: -.02em;
}

.try-head p {
  margin: 6px 0 0;
  font-size: .95rem;
  color: var(--ink-2);
}

.try-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: 500 1.05rem/1.3 var(--sans);
}

.try-input:focus {
  outline: none;
  border-color: var(--carrot);
  box-shadow: 0 0 0 4px var(--carrot-soft);
}

.try-lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.try-lang legend {
  float: left;
  margin-right: 4px;
  padding: 0;
  font-size: .85rem;
  color: var(--ink-2);
}

.try-lang label {
  position: relative;
  cursor: pointer;
}

.try-lang input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.try-lang span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
}

.try-lang input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.try-lang input:focus-visible + span {
  outline: 2px solid var(--carrot);
  outline-offset: 2px;
}

.try-examples p {
  margin: 4px 0 10px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.try-examples ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.try-examples button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sunken);
  color: var(--ink);
  font: 500 .85rem/1.2 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}

.try-examples button:hover {
  border-color: var(--carrot);
  color: var(--carrot);
}

/* The reading, drawn like the editor's own (app.css, "How Mirepoix reads it"). */

.preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}

.preview-head h4 {
  margin: 0;
  font-size: .9rem;
}

.preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.preview th[scope="col"] {
  padding: 6px 10px;
  background: var(--sunken);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  color: var(--ink-2);
}

.preview td {
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  vertical-align: baseline;
}

.preview .qty {
  width: 3.5em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.preview .unit { white-space: nowrap; }
.preview .name { font-family: var(--serif); font-size: 1.05rem; }
.preview .note,
.preview .alt,
.preview .muted { color: var(--ink-2); }
.preview .muted { font-style: italic; font-weight: 400; }
.preview .alt { display: block; font-size: .8rem; }
.preview tr.flagged td { background: var(--warn-soft); }

.preview td.flag {
  padding-top: 0;
  border-top: 0;
  font-size: .8rem;
  font-weight: 600;
  color: var(--warn);
}

.preview td.flag::before { content: "⚠︎ "; }

/* Points under a section: one per row, the title beside its words. */

.points {
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.points li {
  display: grid;
  gap: 6px 48px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 820px) {
  .points li {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: baseline;
  }
}

.points h3 {
  margin: 0;
  font: 400 clamp(1.3rem, 1.1rem + .6vw, 1.6rem)/1.2 var(--serif);
  letter-spacing: -.01em;
}

.points h3::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 14px;
  border-radius: 3.5px;
  background: var(--onion-die);
  box-shadow: inset 0 0 0 1px rgb(42 38 34 / .12);
  vertical-align: .12em;
  rotate: 12deg;
}

.points li:nth-child(2) h3::before { background: var(--carrot-die); box-shadow: none; rotate: -8deg; }
.points li:nth-child(3) h3::before { background: var(--celery-die); box-shadow: none; rotate: 20deg; }

.points p {
  max-width: 56ch;
  margin: 0;
  color: var(--ink-2);
}

/* 02 Find and read: three scenes */

.scenes {
  display: grid;
  grid-auto-columns: 84%;
  grid-auto-flow: column;
  gap: 16px;
  margin-inline: -20px;
  padding: 0 20px 14px;
  overflow-x: auto;
  scroll-padding-inline: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.scene {
  margin: 0;
  scroll-snap-align: start;
}

@media (min-width: 820px) {
  .scenes {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  aspect-ratio: 4 / 4.6;
  padding-top: 12%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--stage);
  box-shadow: inset 0 0 0 14px var(--stage), inset 0 0 0 16px var(--groove);
}

/* Each card is a color-coded board: a groove, and a slot at the top. */
.stage::before {
  content: "";
  position: absolute;
  top: 4%;
  left: 50%;
  width: 22%;
  height: 3.6%;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 2px 2px 4px rgb(42 38 34 / .2);
  translate: -50% 0;
}

.stage .phone {
  position: relative;
  width: 60%;
  height: max-content;
  transition: translate .5s cubic-bezier(.2, .7, .2, 1);
}

.scene:hover .stage .phone { translate: 0 -8px; }

.scene-onion { --stage: var(--stage-onion); --groove: var(--groove-onion); }
.scene-carrot { --stage: var(--stage-carrot); --groove: var(--groove-carrot); }
.scene-celery { --stage: var(--stage-celery); --groove: var(--groove-celery); }

.scene figcaption { padding: 22px 4px 0; }

.scene h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.scene p {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-2);
}

/* On your home screen: a phone's home screen, drawn, with the real icon. */

.home {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 940px) {
  .home { grid-template-columns: 1.05fr .95fr; gap: 72px; }
}

.home-art {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 24px;
}

.home-phone {
  position: relative;
  width: min(60%, 280px);
  rotate: 3deg;
}

.home-screen {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 390 / 844;
  padding: 22% 9% 7%;
  overflow: hidden;
  border-radius: 11% / 5.1%;
  background: linear-gradient(165deg, #F7E6D2, #F3EBDC 45%, #E3ECD3);
}

.home-apps,
.home-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 6%, 22px) 12px;
}

.home-apps span,
.home-dock span {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24%;
  background: rgb(255 255 255 / .6);
}

.home-dock {
  padding: 9px;
  border-radius: 22%  / 50%;
  background: rgb(255 255 255 / .35);
}

.home-apps .me { background: none; }

.home-apps .me img {
  width: 100%;
  height: 100%;
  border-radius: 24%;
  box-shadow: 0 6px 14px -6px rgb(42 38 34 / .5);
}

.home-apps .me b {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  font-size: clamp(.45rem, .3rem + .3vw, .6rem);
  font-weight: 600;
  color: var(--ink);
  translate: -50% 0;
}

.home-apps .me::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--carrot);
  border-radius: 30%;
  animation: tap 2.6s ease-out infinite;
}

@keyframes tap {
  0% { opacity: .9; scale: .9; }
  70%, 100% { opacity: 0; scale: 1.25; }
}

@media (prefers-color-scheme: dark) {
  .home-screen { background: linear-gradient(165deg, #3B2A1E, #26221D 45%, #20271A); }
  .home-apps span, .home-dock span { background: rgb(255 255 255 / .1); }
  .home-dock { background: rgb(255 255 255 / .06); }
}

/* 03 Cook: the dark band */

.cook-band {
  margin-top: clamp(80px, 10vw, 136px);
  padding-block: clamp(64px, 9vw, 120px);
  overflow: hidden;
  background: var(--band);
  color: var(--band-ink);
}

.cook-band .eyebrow { color: var(--band-ink-2); }
.cook-band h2 em { color: var(--band-accent); }

.cook-layout {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 940px) {
  .cook-layout { grid-template-columns: 1fr 1fr; gap: 72px; }
}

.cook-art {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1.14;
  margin-inline: auto;
}

/* In the band, a dark board under both phones. */
.cook-art .board {
  --board: color-mix(in srgb, #F6EBD3 7%, var(--band));
  --board-groove: color-mix(in srgb, #F6EBD3 14%, var(--band));
  top: 20%;
  left: -4%;
  width: 108%;
  height: 56%;
  rotate: -4deg;
}

.cook-art .board::before { background: var(--band); }

.cook-art .phone,
.cook-art .tablet { position: absolute; }

.cook-back {
  z-index: 1;
  top: 3%;
  left: 3%;
  width: 66%;
  rotate: -3deg;
}

.cook-front {
  z-index: 2;
  top: 21%;
  right: 3%;
  width: 35%;
  rotate: 5deg;
}

.cook-tag {
  position: absolute;
  z-index: 3;
  bottom: 4%;
  left: 2%;
  max-width: 70%;
  padding: 10px 16px;
  border-radius: 999px;
  background: #E8F0DA;
  color: #4E6B26;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
  rotate: -4deg;
  box-shadow: 0 16px 32px -16px rgb(0 0 0 / .6);
}

.list-points {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.list-points li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.list-points strong { font-weight: 700; }
.list-points span { color: var(--ink-2); }

.cook-band .list-points li { border-color: var(--band-line); }
.cook-band .list-points span { color: var(--band-ink-2); }

/* 04 Every device */

.devices {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 940px) {
  .devices { grid-template-columns: 1.05fr .95fr; gap: 72px; }
}

.devices-art {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 32px;
}

.devices-pair {
  position: relative;
  width: min(100%, 520px);
  padding: 8% 0 14%;
}

.devices-pair .laptop {
  width: 84%;
  margin-left: 3%;
}

.devices-pair .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  rotate: 3deg;
}

.flow {
  position: relative;
  display: flex;
  width: min(100%, 460px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow li {
  position: relative;
  display: grid;
  flex: 1;
  justify-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--ink-2);
}

.flow svg {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}

.flow .flow-lock svg {
  border-color: transparent;
  background: var(--celery-soft);
  color: var(--celery);
}

.flow li + li::before {
  content: "";
  position: absolute;
  top: 24px;
  right: calc(50% + 30px);
  width: calc(100% - 60px);
  border-top: 2px dashed var(--line);
}

/* 05 Yours to keep */

.keep {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 940px) {
  .keep { grid-template-columns: .95fr 1.05fr; gap: 72px; }
}

.keep-art {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1.02;
  margin-inline: auto;
}

.paper {
  position: absolute;
  z-index: 1;
  top: 12%;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 60%;
  aspect-ratio: 3 / 4;
  padding: 7% 7%;
  border-radius: 6px;
  background: var(--paper-card);
  rotate: -6deg;
  box-shadow: var(--shadow-soft);
}

.paper-name {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.paper code {
  display: block;
  overflow: hidden;
  font: clamp(.55rem, .4rem + .5vw, .75rem)/1.65 var(--mono);
  white-space: pre;
  color: var(--ink-2);
}

.paper strong {
  margin-top: auto;
  font: 400 clamp(1.2rem, .7rem + 1.8vw, 2rem)/1 var(--serif);
  letter-spacing: -.02em;
}

.paper strong em { color: var(--carrot); }

.keep-art .phone {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 3%;
  width: 46%;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin: 30px 0 0;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.facts li { display: grid; gap: 4px; }

.facts strong {
  font: 400 1.6rem/1 var(--serif);
  letter-spacing: -.01em;
}

.facts small {
  font-size: .78rem;
  color: var(--ink-2);
}

/* Counting visits: said plainly, not in small print. */

.consent-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 26px;
  padding: 18px 22px 20px 18px;
  border-radius: 16px;
  background: var(--celery-soft);
}

.consent-note svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--celery);
  stroke-width: 2;
}

.consent-note p {
  max-width: 58ch;
  margin: 0;
  font-size: .95rem;
  color: var(--ink-2);
}

.consent-note p + p { margin-top: 6px; }

.consent-note strong {
  font-size: 1.02rem;
  color: var(--ink);
}

/* Releases */

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .timeline { grid-template-columns: repeat(5, 1fr); }
}

.timeline li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.timeline .chip { justify-self: start; }

.timeline h3 {
  margin: 6px 0 0;
  font: 400 1.5rem/1.1 var(--serif);
  letter-spacing: -.01em;
}

.timeline p {
  margin: 0;
  font-size: .9rem;
  color: var(--ink-2);
}

.timeline .next { border-color: color-mix(in srgb, var(--carrot) 45%, var(--line)); }

.timeline .later {
  border-style: dashed;
  background: transparent;
}

/* Questions, on recipe index cards: a carrot rule under the question, and
   the answer on ruled lines. */

.cards {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
  column-gap: 22px;
}

@media (min-width: 720px) {
  .cards { columns: 2; }
}

@media (min-width: 1080px) {
  .cards { columns: 3; }
}

.cards li {
  margin: 0 0 22px;
  padding: 22px 24px 18px;
  border-radius: 6px;
  background: var(--paper-card);
  box-shadow: 0 1px 2px rgb(42 38 34 / .06), 0 14px 30px -18px rgb(42 38 34 / .3);
  break-inside: avoid;
  rotate: -.5deg;
  transition: rotate .3s ease, translate .3s ease;
}

.cards li:nth-child(even) { rotate: .4deg; }
.cards li:nth-child(3n) { rotate: -.2deg; }

.cards li:hover {
  rotate: 0deg;
  translate: 0 -3px;
}

.cards h3 {
  margin: 0 0 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--carrot);
  font: 400 1.35rem/1.2 var(--serif);
  letter-spacing: -.01em;
}

.cards p {
  margin: 0;
  font-size: .97rem;
  line-height: 28px;
  color: var(--ink-2);
  background: repeating-linear-gradient(to bottom, transparent 0 27px, var(--line) 27px 28px);
}

@media (prefers-color-scheme: dark) {
  .cards li { box-shadow: 0 0 0 1px rgb(246 235 211 / .06), 0 14px 30px -18px rgb(0 0 0 / .8); }
}

/* The invitation */

.invite {
  position: relative;
  display: grid;
  gap: 30px;
  align-items: end;
  margin-top: clamp(80px, 10vw, 136px);
  padding: clamp(36px, 6vw, 72px);
  overflow: hidden;
  border-radius: 28px;
  background: var(--carrot);
  color: var(--on-carrot);
}

@media (min-width: 820px) {
  .invite { grid-template-columns: 1fr auto; }
}

.invite > div { position: relative; z-index: 1; }
.invite .eyebrow { color: inherit; opacity: .8; }
.invite h2 em { color: inherit; }

.invite p:not(.eyebrow) {
  margin: 20px 0 0;
  opacity: .9;
}

.invite .button { position: relative; z-index: 1; justify-self: start; }

.i1 { --size: 26px; --bob: 7s; right: 9%; bottom: 13%; rotate: 22deg; }
.i2 { --size: 18px; --bob: 6s; right: 22%; bottom: 7%; rotate: -14deg; }
.i3 { --size: 14px; --bob: 8s; right: 5%; bottom: 30%; rotate: 40deg; }

@media (min-width: 820px) {
  .i1 { --size: 30px; top: 14%; bottom: auto; }
  .i2 { --size: 20px; top: 34%; right: 20%; bottom: auto; }
  .i3 { --size: 16px; top: 9%; right: 27%; bottom: auto; }
}

/* Footer */

.site-footer {
  display: grid;
  gap: 18px;
  align-items: center;
  padding-block: 44px 64px;
  font-size: .9rem;
  color: var(--ink-2);
}

.site-footer .brand img { height: 30px; }
.site-footer p { margin: 0; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.site-footer nav a { color: var(--ink-2); }
.site-footer nav a:hover { color: var(--carrot); }

@media (min-width: 820px) {
  .site-footer { grid-template-columns: auto 1fr auto; gap: 32px; }
}

/* Easing in as the page scrolls (about.js adds these classes). */

.will-reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), translate .8s cubic-bezier(.2, .7, .2, 1);
}

.will-reveal.revealed {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
