@font-face {
  font-family: Fraunces;
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("/fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("/fonts/outfit-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at -10% -10%, #f8e4d4 0%, transparent 55%),
    radial-gradient(700px 380px at 110% 0%, #e5f0e4 0%, transparent 50%),
    var(--paper);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}
img, svg { max-width: 100%; }
a { color: var(--tomato-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible {
  outline: 3px solid var(--tomato-dark);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 16px 18px;
  max-width: 1080px;
  margin: 0 auto;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.mark { width: 32px; height: 32px; flex: none; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}
.nav-links a:hover { background: var(--white); }

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto 72px; }
.hero { padding: 12px 0 8px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--tomato-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 10px;
}
h1 { font-size: clamp(2.3rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.lede { font-size: 1.18rem; max-width: 38rem; color: var(--ink-soft); margin: 0 0 18px; }
.fine { color: var(--ink-soft); font-size: 0.95rem; }

.panel, .meal, .recipe, .card, .empty, .prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}
.panel { margin-top: 8px; }
fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}
legend {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.choices, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}
.choice span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
}
.choice input:focus-visible + span { outline: 3px solid var(--tomato-dark); outline-offset: 2px; }
.choice input:checked + span {
  border-color: var(--tomato-dark);
  background: #fde8e2;
  box-shadow: inset 0 0 0 1px var(--tomato-dark);
}
.choice small { color: var(--ink-soft); font-size: 0.85rem; }
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn, button, .btn-link {
  font: inherit;
  font-weight: 650;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tomato-dark);
  color: white;
}
.btn.secondary, button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost, button.ghost { background: var(--leaf-soft); color: var(--leaf); }
.btn:hover, button:hover { filter: brightness(1.05); }
button[aria-pressed="true"] { background: var(--leaf); color: white; }
.banner, .error {
  padding: 12px 14px;
  border-radius: 14px;
  margin: 0 0 14px;
}
.banner { background: var(--leaf-soft); color: var(--ink); }
.error { background: #fde8e2; color: var(--tomato-dark); }
.stack { display: grid; gap: 12px; }
.meals { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.meal-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.kicker { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.meal h2 { font-size: 1.55rem; }
.meal h2 a { color: inherit; text-decoration: none; }
.meal h2 a:hover { color: var(--tomato-dark); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0; list-style: none; }
.pills li {
  background: var(--leaf-soft);
  color: var(--leaf);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.88rem;
}
.grocery { display: grid; gap: 18px; }
.aisle h2 { font-size: 1.25rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 10px 12px;
  font-weight: 500;
}
.check.is-on, .check[aria-pressed="true"] {
  background: var(--leaf-soft);
  color: var(--ink);
  text-decoration: line-through;
}
.qty { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
progress {
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper-deep);
}
progress::-webkit-progress-bar { background: var(--paper-deep); }
progress::-webkit-progress-value { background: var(--leaf); }
progress::-moz-progress-bar { background: var(--leaf); }
.recipe ol { padding-left: 1.2rem; display: grid; gap: 10px; }
.recipe li::marker { font-family: Fraunces, Georgia, serif; color: var(--tomato-dark); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.meta span, .tag {
  background: var(--paper);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.9rem;
}
.grid-cards { display: grid; gap: 12px; }
.card h2 { font-size: 1.35rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card a.stretch { color: inherit; text-decoration: none; }
.prose h2, .prose h3 { margin-top: 1.2em; }
.prose p, .prose li { max-width: 42rem; }
.price-grid { display: grid; gap: 12px; }
.price strong { font-family: Fraunces, Georgia, serif; font-size: 2rem; font-weight: 560; display: block; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 18px 48px;
  color: var(--ink-soft);
}
.site-footer .inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.steps { display: grid; gap: 12px; margin: 22px 0; }
.step-no {
  font-family: Fraunces, Georgia, serif;
  color: var(--tomato);
  font-size: 1.4rem;
}
.share-box {
  display: grid;
  gap: 8px;
  background: var(--cream);
  border-radius: 14px;
  padding: 12px;
  word-break: break-all;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.account-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
input[type="email"], input[type="url"] {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font: inherit;
  background: var(--cream);
}
label.block { display: grid; gap: 6px; font-weight: 600; }
details.more { margin: 8px 0 16px; }
details.more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 650; }

@media (min-width: 800px) {
  .topbar { flex-wrap: nowrap; }
  .grid-cards, .price-grid, .steps { grid-template-columns: repeat(3, 1fr); }
  .split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; align-items: start; }
  .meals { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .topbar, .site-footer, .actions { display: none !important; }
  body { background: white; }
  .meal, .panel, .recipe { break-inside: avoid; }
}
