/* Pantry's "Glass" tokens, from the app's constants/theme.ts (DESIGN.md says why). */
:root {
  color-scheme: light dark;
  --page: #eff4e8;
  --cell: #ffffff;
  --ink: #000000;
  --ink-2: #636366;
  --line: rgba(60, 60, 67, 0.18);
  --fill: rgba(118, 118, 128, 0.12);
  --action: #5a6a14;
  --on-action: #ffffff;
  --today: #d70015;
  --todo: #ffe066;
  --serif: ui-serif, "New York", "Iowan Old Style", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #1c1c1e;
    --cell: #2c2c2e;
    --ink: #ffffff;
    --ink-2: #9c9ca1;
    --line: rgba(84, 84, 88, 0.6);
    --fill: rgba(118, 118, 128, 0.24);
    --action: #a3b26a;
    --on-action: #1c1c1e;
    --today: #ff6961;
    --todo: #ffd60a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  display: flex; flex-direction: column; min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
#main { flex: 1 0 auto; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  padding: 10px 16px; border-radius: 999px; background: var(--cell); color: var(--ink);
}
.skip:focus { top: 12px; }

/* A value still to fill in, from [[PLACEHOLDER: …]]: impossible to miss on purpose. */
mark.todo {
  background: var(--todo); color: #000000;
  padding: 0.05em 0.3em; border-radius: 4px; font-weight: 600;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
mark.todo::before { content: "["; }
mark.todo::after { content: "]"; }

/* ── Header and footer ─────────────────────────────────────────── */

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 700 1.375rem/1 var(--serif); text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
.site-header nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px;
  font-size: 0.9375rem; text-decoration: none;
}
.site-header nav a:hover { text-decoration: underline; }

.site-footer {
  margin-top: clamp(56px, 8vw, 112px);
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 0.875rem; line-height: 1.6;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--ink); }

/* ── The one action ─────────────────────────────────────────────── */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  background: var(--action); color: var(--on-action);
  font: 600 1.0625rem/1 var(--sans); text-decoration: none;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.button:hover { filter: brightness(1.1); }
.button:active { transform: scale(0.97); }
.button:focus-visible { border-radius: 999px; }

/* ── Landing ────────────────────────────────────────────────────── */

.hero {
  display: grid; gap: clamp(36px, 6vw, 64px); align-items: center;
  padding-block: clamp(28px, 7vw, 104px) clamp(56px, 9vw, 120px);
}
.hero h1 {
  margin: 0; max-width: 14ch;
  font: 700 clamp(2.5rem, 1.45rem + 4.2vw, 4.5rem)/1.03 var(--serif);
}
.lede {
  margin: 24px 0 0; max-width: 32ch;
  font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.4375rem); line-height: 1.42;
}
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

/* The app's first-run art: three generated covers, fanned (components/CoverFan.tsx). */
.fan { container-type: inline-size; }
.fan-stage { --w: min(190px, 30cqi); position: relative; height: calc(var(--w) * 1.62); }
.fan .cover {
  position: absolute; left: 50%; top: 50%;
  width: var(--w); margin: calc(var(--w) * -2 / 3) 0 0 calc(var(--w) / -2);
  border-radius: calc(var(--w) * 22 / 150);
}
.fan .c1 { transform: translate(calc(var(--w) * -1.08), calc(var(--w) * 0.053)) rotate(-6deg); }
.fan .c3 { transform: translate(calc(var(--w) * 1.08), calc(var(--w) * 0.053)) rotate(6deg); }
.fan .cover span {
  position: absolute; left: 9.3%; right: 8%; bottom: 8.7%;
  font: 700 calc(var(--w) * 20 / 150)/1.15 var(--serif);
}
@media (prefers-reduced-motion: no-preference) {
  .fan .cover { animation: deal 0.9s var(--ease) both; }
  .fan .c2 { animation-delay: 0.05s; }
  .fan .c1, .fan .c3 { animation-delay: 0.18s; }
  @keyframes deal { from { transform: translateY(6%) rotate(0deg); opacity: 0; } }
}

/* A generated cover (components/RecipeCover.tsx), its colours made by the app's own code. */
.cover {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 3 / 4; color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: url(grain.png) repeat; background-size: 128px;
  opacity: 0.3; mix-blend-mode: overlay;
}
.cover.c1 { background-color: #C43B1E; background-image: linear-gradient(11deg, #47090De6 0%, #47090D59 42%, #47090D00 70%), radial-gradient(96% 68% at 0% 104%, #47090Dff 36.6%, #47090Dd6 52.4%, #47090D7f 68.3%, #47090D29 84.1%, #47090D00 100%), radial-gradient(68.19% 57.64% at 102.69% 75.94%, #9D1D39fa 17.4%, #9D1D39d2 38.0%, #9D1D397d 58.7%, #9D1D3928 79.3%, #9D1D3900 100%), radial-gradient(64.49% 48.64% at 54.91% 56.58%, #E84F2Fef 8.1%, #E84F2Fc9 31.1%, #E84F2F77 54.0%, #E84F2F26 77.0%, #E84F2F00 100%), radial-gradient(43.08% 37.39% at 89.45% 4.38%, #FFC37D73 0.0%, #FFC37D61 3.1%, #FFC37D3a 35.4%, #FFC37D12 67.7%, #FFC37D00 100%), radial-gradient(78.97% 60.63% at 88.50% 5.09%, #F48E3Bfe 25.5%, #F48E3Bd5 44.1%, #F48E3B7f 62.8%, #F48E3B29 81.4%, #F48E3B00 100%), radial-gradient(76.25% 58.77% at 9.71% 24.66%, #D92F2Bfd 23.0%, #D92F2Bd5 42.2%, #D92F2B7f 61.5%, #D92F2B29 80.7%, #D92F2B00 100%); }
.cover.c2 { background-color: #7DA152; background-image: linear-gradient(11deg, #142B14e6 0%, #142B1459 42%, #142B1400 70%), radial-gradient(96% 68% at 0% 104%, #142B14ff 36.6%, #142B14d6 52.4%, #142B147f 68.3%, #142B1429 84.1%, #142B1400 100%), radial-gradient(71.61% 60.21% at 100.06% 78.12%, #3A6933fd 21.1%, #3A6933d4 40.8%, #3A69337e 60.6%, #3A693328 80.3%, #3A693300 100%), radial-gradient(60.83% 46.48% at 42.42% 53.23%, #C5CB7Fe4 3.1%, #C5CB7Fc0 27.3%, #C5CB7F72 51.5%, #C5CB7F25 75.8%, #C5CB7F00 100%), radial-gradient(43.20% 37.46% at 20.13% 12.30%, #FAEEC674 0.0%, #FAEEC662 3.3%, #FAEEC63a 35.5%, #FAEEC613 67.8%, #FAEEC600 100%), radial-gradient(71.42% 55.70% at 1.39% 6.00%, #EFD897fb 18.2%, #EFD897d3 38.6%, #EFD8977e 59.1%, #EFD89728 79.5%, #EFD89700 100%), radial-gradient(69.63% 54.46% at 88.32% 20.39%, #9BBB5Dfa 16.2%, #9BBB5Dd2 37.1%, #9BBB5D7d 58.1%, #9BBB5D28 79.0%, #9BBB5D00 100%); }
.cover.c3 { background-color: #DE8A1F; background-image: linear-gradient(11deg, #470B05e6 0%, #470B0559 42%, #470B0500 70%), radial-gradient(96% 68% at 0% 104%, #470B05ff 36.6%, #470B05d6 52.4%, #470B057f 68.3%, #470B0529 84.1%, #470B0500 100%), radial-gradient(68.55% 57.91% at 97.28% 75.21%, #B52A18fb 17.8%, #B52A18d3 38.3%, #B52A187d 58.9%, #B52A1828 79.4%, #B52A1800 100%), radial-gradient(58.78% 45.28% at 51.29% 53.67%, #EE7113dd 0.1%, #EE7113b9 25.1%, #EE71136e 50.0%, #EE711323 75.0%, #EE711300 100%), radial-gradient(44.45% 38.30% at 83.14% 13.98%, #FFD96A80 0.0%, #FFD96A6c 5.7%, #FFD96A40 37.2%, #FFD96A15 68.6%, #FFD96A00 100%), radial-gradient(81.15% 62.06% at 93.06% 8.61%, #F7BD23fe 27.4%, #F7BD23d6 45.5%, #F7BD237f 63.7%, #F7BD2329 81.8%, #F7BD2300 100%), radial-gradient(68.38% 53.64% at 8.29% 22.80%, #E89519f8 14.8%, #E89519d1 36.1%, #E895197c 57.4%, #E8951928 78.7%, #E8951900 100%); }

.feature {
  display: grid; gap: 32px; align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.feature h2, .also h2, .privacy h2 {
  margin: 0 0 16px;
  font: 700 clamp(1.75rem, 1.2rem + 1.9vw, 2.625rem)/1.1 var(--serif);
}
.feature p { margin: 0 0 14px; max-width: 40ch; }
.feature p:last-child { margin-bottom: 0; }
.feature figure { margin: 0; width: 100%; max-width: 460px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .feature figure { justify-self: end; }
}

/* The app's inset grouped list: white paper on the page, no shadow, no border. */
.group { background: var(--cell); border-radius: 26px; padding: 4px 0; }
.group + .group, .shelf + .group, .group + .shelf { margin-top: 16px; }
.group-head { margin: 0; padding: 14px 20px 6px; color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; }
.row {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 10px 20px; font-size: 1rem; line-height: 1.3;
}
.row + .row::before {
  content: ""; position: absolute; top: 0; right: 0; left: var(--inset, 20px);
  border-top: 1px solid var(--line);
}
.row .main { flex: 1; min-width: 0; }
.row .sub { display: block; margin-top: 2px; color: var(--ink-2); font-size: 0.8125rem; }
.row .end { color: var(--ink-2); font-size: 0.8125rem; white-space: nowrap; }
.glyph { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.menu .row { --inset: 56px; }

.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shelf .cover { aspect-ratio: 1; border-radius: 18px; }
.shelf p { margin: 8px 2px 0; font: 600 0.875rem/1.25 var(--serif); }

.plan .row { --inset: 136px; }
.day { flex: none; width: 44px; text-align: center; line-height: 1.1; }
.day small { display: block; color: var(--ink-2); font-size: 0.75rem; font-weight: 600; }
.day b { font-size: 1.25rem; font-weight: 600; }
.today small, .today b { color: var(--today); }
.thumb { flex: none; width: 44px; aspect-ratio: 1; border-radius: 12px; }
.thumb::after { background-size: 64px; }

.list .row { --inset: 56px; }
.check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-2); }
.ticked .check { border-color: var(--ink); background: var(--ink); position: relative; }
.ticked .check::after {
  content: ""; position: absolute; left: 6.5px; top: 3px; width: 5px; height: 10px;
  border: solid var(--cell); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ticked .main { color: var(--ink-2); text-decoration: line-through; }
.list .group-head { padding-top: 12px; }
.list .group-head + .row::before { display: none; }

.house .row { --inset: 70px; }
.house .title { display: block; padding: 16px 20px 8px; }
.house .title b { display: block; font: 700 1.375rem/1.2 var(--serif); }
.house .title span { color: var(--ink-2); font-size: 0.8125rem; }
.avatar {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(#7c7c82, #5a5a60); color: #ffffff; font-size: 0.9375rem; font-weight: 600;
}
.house .invite { font-weight: 600; }
.house .invite .glyph { margin-inline: 7px; }
.caption { margin: 10px 20px 0; color: var(--ink-2); font-size: 0.8125rem; }

.also { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.also dl { display: grid; gap: 0 72px; margin: 28px 0 0; }
.also div { padding-block: 18px; border-top: 1px solid var(--line); }
.also dt { font-weight: 600; }
.also dd { margin: 4px 0 0; color: var(--ink-2); max-width: 44ch; }
@media (min-width: 720px) { .also dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.privacy {
  display: grid; gap: 8px 72px;
  padding: clamp(28px, 5vw, 56px); border-radius: 26px; background: var(--cell);
}
.privacy p { margin: 0 0 14px; max-width: 46ch; }
.privacy p:last-child { margin: 0; }
@media (min-width: 900px) {
  .privacy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .privacy h2 { margin: 0; }
}

/* ── Privacy policy ─────────────────────────────────────────────── */

.policy { display: grid; gap: 40px; padding-block: clamp(24px, 5vw, 64px) 0; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 0.875rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.toc-side { display: none; }
.toc-phone { margin: 20px 0 24px; background: var(--cell); border-radius: 18px; }
.toc-phone summary { min-height: 48px; padding: 13px 18px; cursor: pointer; font-weight: 600; }
.toc-phone ul { padding: 0 18px 12px; }
@media (min-width: 1000px) {
  .policy { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; }
  .toc-side { display: block; position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; }
  .toc-side h2 { margin: 0 0 8px; font-size: 0.875rem; font-weight: 600; }
  .toc-phone { display: none; }
}

.prose { max-width: 68ch; min-width: 0; overflow-wrap: break-word; }
.prose h1 { margin: 0 0 12px; font: 700 clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem)/1.05 var(--serif); }
.prose h1 + p, .prose .toc-phone + p { color: var(--ink-2); margin-bottom: 32px; }
.prose h2 { margin: 2.4em 0 0.6em; font: 700 clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem)/1.15 var(--serif); scroll-margin-top: 24px; }
.prose h3 { margin: 1.8em 0 0.5em; font-size: 1.125rem; line-height: 1.3; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--ink-2); }
.prose strong { font-weight: 600; }
.prose table {
  width: 100%; margin: 1.25em 0 1.5em; border-collapse: separate; border-spacing: 0;
  background: var(--cell); border-radius: 18px; overflow: hidden; font-size: 0.9375rem; line-height: 1.4;
}
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.prose th { font-weight: 600; border-bottom: 1px solid var(--line); }
.prose tbody tr + tr td { border-top: 1px solid var(--line); }
@media (max-width: 480px) { .prose th, .prose td { padding: 10px 12px; } }

/* ── 404 ────────────────────────────────────────────────────────── */

.lost { padding-block: clamp(40px, 10vw, 128px) 0; }
.lost h1 { margin: 0 0 16px; font: 700 clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem)/1.05 var(--serif); }
.lost p { margin: 0 0 28px; max-width: 40ch; font-size: 1.1875rem; }
