:root {
  color-scheme: light;
  --ink: #2a1710;
  --muted: #7a5c4b;
  --cream: #fff7e8;
  --paper: #fffdf7;
  --flour: #f6e4bf;
  --crust: #b85f2a;
  --tomato: #c93422;
  --herb: #2f7b4f;
  --butter: #f4bd49;
  --line: rgba(94, 54, 31, .18);
  --shadow: 0 26px 70px rgba(83, 39, 17, .18);
}

@media (max-width: 620px) {
  .compact-grid,
  .timeline li,
  .batch-summary {
    grid-template-columns: 1fr;
  }
}

.light-layout {
  grid-template-columns: minmax(280px, 500px) minmax(0, 1fr);
}

.light-result {
  min-height: 780px;
}

.recipe-layout {
  grid-template-columns: minmax(280px, 500px) minmax(0, 1fr);
}

.recipe-result {
  min-height: 720px;
}

.recipe-sheet {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff8e8;
}

.recipe-sheet-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.recipe-sheet h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.recipe-meta span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--tomato);
  font-weight: 900;
  background: #fffdf7;
}

.recipe-sheet section {
  margin-top: 22px;
}

.recipe-sheet h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
  text-transform: uppercase;
}

.recipe-sheet ul,
.recipe-sheet ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.recipe-sheet p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.week-menu {
  display: grid;
  gap: 12px;
}

.day-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff8e8;
}

.day-card h5 {
  margin: 0;
  color: var(--tomato);
  font-size: 16px;
  text-transform: uppercase;
}

.meal-card {
  display: grid;
  gap: 5px;
  padding: 10px 0 0;
  border-top: 1px dotted rgba(94, 54, 31, .22);
}

.meal-card strong {
  color: var(--ink);
}

.meal-card span {
  color: var(--muted);
  line-height: 1.45;
}

.meal-card small {
  color: var(--herb);
  line-height: 1.4;
}

.radio-pill input {
  accent-color: var(--herb);
}

@media print {
  @page {
    margin: 10mm;
  }

  body.print-recipe {
    background: #fff;
    color: #221510;
    font-size: 10pt;
  }

  body.print-recipe .site-header,
  body.print-recipe .section-heading,
  body.print-recipe .form-panel,
  body.print-recipe footer,
  body.print-recipe .button-row,
  body.print-recipe .result-head {
    display: none !important;
  }

  body.print-recipe .section,
  body.print-recipe .page-tool {
    min-height: auto;
    padding: 0;
    background: #fff;
  }

  body.print-recipe .converter,
  body.print-recipe .recipe-layout {
    display: block;
  }

  body.print-recipe .recipe-result,
  body.print-recipe .recipe-sheet {
    min-height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  body.print-recipe .recipe-sheet h2 {
    font-size: 24pt;
  }

  body.print-recipe .recipe-meta span {
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.print-light {
    background: #fff;
    color: #221510;
    font-size: 9.5pt;
  }

  body.print-light .site-header,
  body.print-light .section-heading,
  body.print-light .form-panel,
  body.print-light footer,
  body.print-light .button-row {
    display: none !important;
  }

  body.print-light .section,
  body.print-light .page-tool {
    min-height: auto;
    padding: 0;
    background: #fff;
  }

  body.print-light .converter,
  body.print-light .light-layout {
    display: block;
  }

  body.print-light .light-result {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  body.print-light .result-head {
    padding-bottom: 4mm;
  }

  body.print-light .result-head h3 {
    font-size: 18pt;
  }

  body.print-light .batch-summary {
    gap: 2mm;
    margin: 3mm 0;
  }

  body.print-light .week-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm;
  }

  body.print-light .day-card,
  body.print-light .timeline li,
  body.print-light .ingredient-list li {
    padding: 2mm 0;
    border: 0;
    border-bottom: 1px dotted #d8c3a0;
    border-radius: 0;
    background: transparent;
    break-inside: avoid;
  }

  body.print-light .day-card h5,
  body.print-light .light-result h4 {
    margin: 3mm 0 1mm;
    font-size: 10pt;
  }

  body.print-light .meal-card {
    gap: 1mm;
    padding-top: 1mm;
  }

  body.print-light .meal-card small {
    display: none;
  }

  body.print-light .ingredient-list {
    display: block;
    column-count: 2;
    column-gap: 10mm;
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .light-layout,
  .recipe-layout {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: 10mm;
  }

  body.print-batch {
    background: #fff;
    color: #221510;
    font-size: 10pt;
  }

  body.print-batch .site-header,
  body.print-batch .section-heading,
  body.print-batch .form-panel,
  body.print-batch footer,
  body.print-batch .button-row {
    display: none !important;
  }

  body.print-batch .section,
  body.print-batch .page-tool {
    min-height: auto;
    padding: 0;
    background: #fff;
  }

  body.print-batch .converter,
  body.print-batch .batch-layout {
    display: block;
  }

  body.print-batch .batch-result {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  body.print-batch .result-head {
    padding-bottom: 4mm;
  }

  body.print-batch .result-head h3 {
    font-size: 18pt;
  }

  body.print-batch .batch-summary,
  body.print-batch .prep-grid,
  body.print-batch .timeline,
  body.print-batch .storage-list {
    gap: 2mm;
  }

  body.print-batch .batch-summary span,
  body.print-batch .prep-grid article,
  body.print-batch .timeline li,
  body.print-batch .ingredient-list li {
    padding: 2mm 0;
    border: 0;
    border-bottom: 1px dotted #d8c3a0;
    border-radius: 0;
    background: transparent;
    break-inside: avoid;
  }

  body.print-batch .batch-result h4 {
    margin: 5mm 0 2mm;
    font-size: 10pt;
  }

  body.print-batch .ingredient-list {
    display: block;
    column-count: 2;
    column-gap: 10mm;
    margin-top: 0;
  }

  body.print-batch .shopping-list .shopping-category {
    margin: 3mm 0 1mm;
    padding: 0 0 1mm;
    border-bottom: 1px solid #eadcc5;
    font-size: 10pt;
  }
}

.batch-layout {
  grid-template-columns: minmax(280px, 500px) minmax(0, 1fr);
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fffaf0;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

fieldset {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: #553324;
  font-weight: 900;
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-group legend {
  flex: 0 0 100%;
}

.check-pill {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff8e8;
  cursor: pointer;
}

.check-pill input {
  width: auto;
  margin: 0;
  accent-color: var(--tomato);
}

.batch-result {
  min-height: 720px;
}

.batch-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.batch-summary span,
.prep-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff8e8;
}

.batch-summary span {
  padding: 12px;
  color: var(--tomato);
  font-weight: 900;
  text-align: center;
}

.batch-summary p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.batch-result h4 {
  margin: 28px 0 12px;
  color: var(--ink);
  font-size: 16px;
  text-transform: uppercase;
}

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

.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px;
  border-left: 4px solid var(--tomato);
  border-radius: 16px;
  background: #fff8e8;
}

.timeline strong {
  color: var(--tomato);
}

.timeline span {
  color: var(--muted);
  line-height: 1.45;
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.prep-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.prep-grid strong {
  color: var(--tomato);
}

.prep-grid span,
.storage-list {
  color: var(--muted);
  line-height: 1.5;
}

.storage-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Trebuchet MS", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18px 18px, rgba(184, 95, 42, .10) 0 2px, transparent 2px),
    linear-gradient(135deg, #fff8e8 0%, #f7dfb8 48%, #ffe8c8 100%);
  background-size: 34px 34px, auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 247, 232, .88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff8e8;
  background: var(--tomato);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12);
}

nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-weight: 800;
}

nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 46vw);
  gap: clamp(28px, 4vw, 56px);
  min-height: 680px;
  align-items: center;
  padding: clamp(60px, 9vw, 110px) clamp(18px, 5vw, 58px) 72px;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--tomato);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 8vw, 92px);
  line-height: .94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 23px;
}

.hero-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  margin-top: 14px;
  color: #fff8e8;
  background: var(--tomato);
  box-shadow: 0 12px 24px rgba(201, 52, 34, .22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-actions .button.primary {
  margin-top: 0;
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff8e8;
}

.food-scene {
  position: relative;
  min-width: 0;
  max-width: 100%;
  min-height: 440px;
}

.hero-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 440px;
  max-height: 560px;
  object-fit: cover;
  border: 1px solid rgba(94, 54, 31, .16);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.food-scene .plate {
  display: none !important;
}

.plate {
  position: absolute;
  inset: 40px 30px auto auto;
  width: min(82vw, 390px);
  aspect-ratio: 1;
  border: 18px solid #fffdf7;
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 50%, #f8c66a 0 30%, transparent 31%),
    radial-gradient(circle at center, #fff4d8 0 54%, #ead0a8 55% 62%, #fffdf7 63%);
  box-shadow: var(--shadow);
}

.sauce,
.leaf,
.tomato,
.pasta {
  position: absolute;
  display: block;
}

.sauce {
  left: 33%;
  top: 34%;
  width: 34%;
  height: 32%;
  border-radius: 45% 55% 50% 50%;
  background: var(--tomato);
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .10);
}

.leaf {
  width: 58px;
  height: 25px;
  border-radius: 70% 8px 70% 8px;
  background: var(--herb);
}

.leaf-a {
  left: 31%;
  top: 28%;
  transform: rotate(-28deg);
}

.leaf-b {
  right: 27%;
  bottom: 31%;
  transform: rotate(140deg);
}

.tomato {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #df4631;
  box-shadow: inset -8px -10px 0 rgba(83, 20, 10, .18);
}

.tomato-a {
  right: 25%;
  top: 26%;
}

.tomato-b {
  left: 26%;
  bottom: 27%;
}

.pasta {
  width: 120px;
  height: 16px;
  border-radius: 999px;
  background: var(--butter);
}

.pasta-a {
  left: 29%;
  top: 50%;
  transform: rotate(22deg);
}

.pasta-b {
  right: 24%;
  top: 45%;
  transform: rotate(-18deg);
}

.recipe-note {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  gap: 8px;
  min-width: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 247, .94);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

.recipe-note strong {
  color: var(--tomato);
  font-size: 22px;
}

.recipe-note span {
  color: var(--muted);
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 58px);
}

.tool-section {
  background: rgba(255, 253, 247, .72);
}

.page-tool {
  min-height: calc(100vh - 88px);
}

.cost-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .84), rgba(255, 245, 222, .9)),
    radial-gradient(circle at 80% 20%, rgba(47, 123, 79, .14), transparent 34%);
}

.menu-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .88), rgba(247, 223, 184, .72)),
    radial-gradient(circle at 18% 20%, rgba(201, 52, 34, .12), transparent 30%);
}

.section-heading {
  margin-bottom: 28px;
}

.converter {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 48px);
  align-items: start;
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(24px, 5vw, 48px);
  align-items: start;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.tool-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 247, .94);
  box-shadow: var(--shadow);
}

.tool-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: -8px 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(94, 54, 31, .14);
}

.featured-tool {
  grid-column: span 2;
  min-height: 280px;
  border-color: rgba(201, 52, 34, .28);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .96), rgba(255, 238, 204, .94)),
    radial-gradient(circle at 84% 18%, rgba(47, 123, 79, .16), transparent 32%);
}

.tool-card.featured-tool h3 {
  max-width: 620px;
  font-size: 40px;
}

.tool-card.featured-tool p {
  max-width: 720px;
  font-size: 18px;
}

.tool-card h3 {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.tool-card p {
  color: var(--muted);
  line-height: 1.6;
}

.tool-card a {
  margin-top: auto;
  color: var(--tomato);
  font-weight: 900;
}

.tool-tag {
  color: var(--herb);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.weekly-menu {
  display: grid;
  gap: 10px;
}

.menu-days {
  display: grid;
  gap: 10px;
}

.menu-row {
  display: grid;
  grid-template-columns: 100px minmax(150px, 1fr) minmax(150px, 1fr) minmax(180px, 1.1fr);
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 12px 26px rgba(83, 39, 17, .10);
}

.menu-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255, 248, 232, .72);
  box-shadow: none;
}

.menu-row strong {
  display: flex;
  align-items: center;
  color: var(--tomato);
  text-transform: capitalize;
}

.menu-row label {
  margin: 0;
}

.menu-row label span {
  display: none;
}

.menu-row input,
.menu-row textarea {
  height: 100%;
  min-height: 46px;
}

.shopping-panel {
  position: sticky;
  top: 92px;
}

.email-field {
  margin: 18px 0 0;
}

.shopping-list li {
  grid-template-columns: 96px 1fr;
}

.shopping-list li.single-item {
  grid-template-columns: 1fr;
}

.shopping-list .shopping-category {
  display: block;
  margin-top: 8px;
  padding: 10px 2px 4px;
  border: 0;
  border-radius: 0;
  color: var(--tomato);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 900;
  background: transparent;
}

.form-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 247, .94);
  box-shadow: var(--shadow);
}

.form-panel {
  padding: 24px;
}

.servings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #553324;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fffaf0;
}

textarea {
  resize: vertical;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.result-panel {
  min-height: 520px;
  padding: 28px;
}

.cost-layout .result-panel {
  min-height: 560px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.button-row .button {
  min-height: 40px;
  padding: 0 14px;
}

.result-head h3 {
  color: var(--tomato);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
}

.ingredient-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ingredient-list li {
  display: grid;
  grid-template-columns: minmax(100px, 160px) 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff8e8;
}

.ingredient-list strong {
  color: var(--tomato);
  font-size: 20px;
}

.ingredient-list span {
  color: var(--muted);
}

.cost-summary {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px 18px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff8e8;
}

.cost-summary span {
  color: var(--muted);
  font-weight: 900;
}

.cost-summary strong {
  color: var(--ink);
}

.next-section {
  background: #3f2419;
  color: #fff8e8;
}

.next-section .eyebrow,
.next-section h2,
.next-section h3 {
  color: #fff8e8;
}

.next-section .section-heading p:not(.eyebrow),
.next-section p {
  color: #f6d8bd;
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.idea-grid article {
  min-height: 160px;
  padding: 22px;
  border: 1px solid rgba(255, 248, 232, .18);
  border-radius: 22px;
  background: rgba(255, 248, 232, .08);
}

.idea-grid a {
  display: inline-flex;
  margin-top: 12px;
  color: #fff8e8;
  font-weight: 900;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 58px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff8e8;
}

@media (max-width: 900px) {
  .hero,
  .converter,
  .menu-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    overflow: visible;
  }

  .hero-photo {
    min-height: 360px;
  }

  .food-scene {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 44px;
  }

  .servings,
  .ingredient-list li,
  .menu-row {
    grid-template-columns: 1fr;
  }

  .featured-tool {
    grid-column: auto;
  }

  .menu-head {
    display: none;
  }

  .menu-row label span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
  }

  .shopping-panel {
    position: static;
  }

  .food-scene {
    min-height: auto;
  }

  .hero-photo {
    min-height: 300px;
    border-radius: 22px;
  }

  .plate {
    right: 0;
    width: min(88vw, 340px);
  }

  footer {
    flex-direction: column;
  }
}

@media print {
  @page {
    margin: 8mm;
  }

  body.print-shopping {
    background: #fff;
    color: #221510;
    font-size: 10pt;
  }

  body.print-shopping .site-header,
  body.print-shopping .section-heading,
  body.print-shopping .weekly-menu,
  body.print-shopping footer,
  body.print-shopping .button-row,
  body.print-shopping .email-field {
    display: none !important;
  }

  body.print-shopping .section,
  body.print-shopping .page-tool {
    min-height: auto;
    padding: 0;
    background: #fff;
  }

  body.print-shopping .menu-layout {
    display: block;
  }

  body.print-shopping .shopping-panel {
    position: static;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  body.print-shopping .result-head {
    display: block;
    padding-bottom: 4mm;
    border-bottom: 1px solid #d8c3a0;
  }

  body.print-shopping .result-head .eyebrow {
    margin-bottom: 1mm;
    font-size: 8pt;
  }

  body.print-shopping .result-head h3 {
    margin: 0;
    font-size: 16pt;
    line-height: 1.1;
  }

  body.print-shopping .ingredient-list {
    display: block;
    column-count: 2;
    column-gap: 10mm;
    margin-top: 4mm;
  }

  body.print-shopping .shopping-list .shopping-category {
    margin: 3mm 0 1mm;
    padding: 0 0 1mm;
    border-bottom: 1px solid #eadcc5;
    color: #8d2d1d;
    font-size: 9pt;
    break-after: avoid;
  }

  body.print-shopping .ingredient-list li {
    display: flex;
    grid-template-columns: none;
    gap: 2mm;
    align-items: baseline;
    justify-content: space-between;
    padding: 1.5mm 0;
    border: 0;
    border-bottom: 1px dotted #d8c3a0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    break-inside: avoid;
  }

  body.print-shopping .ingredient-list .shopping-category {
    display: block;
  }

  body.print-shopping .ingredient-list li:not(.shopping-category)::before {
    content: "";
    flex: 0 0 auto;
    width: 3mm;
    height: 3mm;
    margin-top: 0.5mm;
    border: 1px solid #bca98b;
  }

  body.print-shopping .ingredient-list strong {
    flex: 1 1 auto;
    color: #221510;
    font-size: 10pt;
    line-height: 1.2;
    font-weight: 600;
  }

  body.print-shopping .ingredient-list span {
    flex: 0 0 auto;
    color: #5d5148;
    font-size: 9pt;
  }
}

@media (max-width: 620px) {
  .compact-grid,
  .timeline li,
  .batch-summary {
    grid-template-columns: 1fr;
  }
}
