:root {
  --paper: #faf8f1;
  --surface: #fffdf7;
  --ink: #28291f;
  --red: #a23b27;
  --orange: #c94729;
  --line: #dcd8ca;
  --green: #334834;
  --muted: #626255;
  --serif: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.5 system-ui,
    -apple-system,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button,
select,
.pill {
  min-height: 44px;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  padding: 9px 16px;
  font-weight: 650;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}
button:hover,
.button:hover {
  border-color: #958f7e;
  background: #f3efdf;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}
.primary:hover {
  background: var(--red);
  color: white;
}
.green {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.green:hover {
  background: #223622;
  color: white;
}
.plain {
  background: none;
  border: 0;
  padding: 6px 3px;
  color: var(--muted);
  font-size: 0.92rem;
}
.link {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #44715d;
  outline-offset: 3px;
}
header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.top,
main {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
}
.top {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  font: 700 1.45rem var(--serif);
  letter-spacing: -0.055em;
  text-decoration: none;
  white-space: nowrap;
}
.logo {
  flex: none;
  font: 1.75rem/1 system-ui;
  background: var(--orange);
  border-radius: 50%;
  color: #fff3cf;
  margin-right: 9px;
  width: 36px;
  height: 36px;
  text-align: center;
  padding-top: 3px;
}
.red {
  color: var(--red);
}
nav,
.utility,
.row,
.actions,
.chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
nav a,
.utility a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  min-height: 44px;
}
.utility {
  gap: 4px;
}
.utility a {
  padding: 10px;
}
.active {
  background: #efe9d9;
  color: var(--red);
}
.ico {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main {
  padding: 38px 0 64px;
}
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 16px;
  text-align: center;
}
.headline,
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.headline {
  margin-bottom: 20px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font: 500 clamp(2rem, 4.5vw, 3.65rem) / 1.04 var(--serif);
  letter-spacing: -0.045em;
}
h3 {
  font-size: 1.5rem;
}
.over {
  color: var(--red);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 8px;
}
.muted,
small,
.note {
  color: var(--muted);
}
.note {
  font-size: 0.9rem;
}
.hero {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.photo {
  position: relative;
  align-self: stretch;
}
.photo .dish-photo {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.photo .dish-photo img {
  flex: 1;
  min-height: 0;
  border-radius: 0;
}
.photo .dish-photo figcaption {
  padding: 8px 12px;
}
.hero.text-only,
.recipehead.text-only {
  grid-template-columns: 1fr;
}
.hero.text-only .body {
  position: relative;
}
.hero.text-only .over {
  padding-right: 44px;
}
.heart {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fffaf2;
  border: 0;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  padding: 10px;
  color: var(--red);
  box-shadow: 0 3px 15px #26170325;
}
.hearted svg {
  fill: currentColor;
}
.body {
  align-self: center;
  padding: clamp(24px, 3.5vw, 48px);
}
.body h2 {
  font-size: clamp(2.3rem, 4.5vw, 4.4rem);
  line-height: 0.99;
}
.desc {
  font-size: 1.07rem;
  color: #515144;
  margin: 15px 0;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 17px 0 22px;
  font-size: 0.92rem;
  font-weight: 650;
}
.stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.stats svg {
  width: 17px;
  height: 17px;
  color: #74755a;
}
.more {
  margin-top: 10px;
}
.reason,
.warn,
.banner {
  padding: 12px 15px;
  background: #f6ead0;
  border-radius: 12px;
  margin: 12px 0;
}
.warn {
  border-left: 4px solid var(--red);
  color: #733220;
}
.block,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.block {
  margin-top: 20px;
}
.teasers {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.teaser {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}
.teaser .tileicon {
  padding: 10px;
  color: var(--green);
  background: #e2e7d3;
  border-radius: 12px;
}
.teaser h3 {
  margin-bottom: 4px;
}
.acc {
  background: #edf0e2;
}
.lead {
  margin: 8px 0 16px;
  color: var(--muted);
}
#mobile {
  display: none;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stack > * + * {
  margin-top: 14px;
}
.field {
  display: grid;
  gap: 5px;
  font-weight: 650;
}
.field input,
.field select,
select,
input:not([type="checkbox"]) {
  border: 1px solid #bcb8aa;
  border-radius: 8px;
  min-height: 44px;
  padding: 7px 10px;
  background: white;
  color: var(--ink);
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex: none;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f2e8;
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 0.94rem;
}
.choice {
  min-height: 42px;
  cursor: pointer;
}
.chip button {
  min-height: 30px;
  padding: 2px 6px;
}
.pill {
  border-radius: 30px;
}
.sectionhead {
  margin: 16px 0;
}
.weekgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.meal,
.gitem,
.saved {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.meal h3 {
  margin: 5px 0;
}
.meal .row {
  gap: 6px;
}
.meal .row button {
  font-size: 0.88rem;
  padding: 7px 10px;
}
.mealthumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  float: right;
  margin-left: 14px;
}
.gitem summary {
  cursor: pointer;
  font-weight: 650;
}
.gitem .qty {
  font-weight: 500;
  color: var(--muted);
}
.gitem .row {
  margin-top: 7px;
}
.gitem .row button {
  font-size: 0.88rem;
  padding: 6px 10px;
}
.done {
  color: #67685d;
  text-decoration: line-through;
}
.grocerygroup {
  margin-top: 18px;
}
.grocerygroup h3 {
  font-size: 1.22rem;
  margin-bottom: 6px;
  color: var(--green);
}
.savedgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.saved img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
  border-radius: 10px;
}
.saved h3 {
  margin: 10px 0;
}
.recipehead {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 26px;
}
.recipehead img {
  width: 100%;
  aspect-ratio: 1.9;
  object-fit: cover;
  border-radius: 14px;
}
.dish-photo {
  margin: 0;
}
.dish-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: 12px;
}
.dish-photo figcaption {
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.77rem;
}
.photo .dish-photo img,
.recipehead .dish-photo img {
  height: auto;
  aspect-ratio: auto;
  max-height: 460px;
}
.catalog-filter,
.catalog-options,
.catalog-grid {
  display: grid;
  gap: 14px;
}
.catalog-filter {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.catalog-filter fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}
.catalog-filter legend {
  margin-bottom: 7px;
  font-weight: 650;
}
.catalog-filter button,
.catalog-filter select,
.catalog-filter input {
  min-height: 44px;
}
.catalog-filter details {
  grid-column: 1 / -1;
}
.catalog-filter > button {
  justify-self: start;
}
.catalog-meals,
.catalog-results {
  display: flex;
  align-items: center;
  gap: 7px;
}
.catalog-meals {
  flex-wrap: wrap;
}
.catalog-meals [aria-pressed="true"] {
  background: var(--green);
  color: white;
}
.catalog-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}
.catalog-results {
  justify-content: space-between;
  margin: 14px 0;
}
.catalog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.catalog-card h2 {
  margin: 0.3em 0;
}
.catalog-card h2 small {
  display: block;
  margin-top: 4px;
  font-size: 0.57em;
}
.catalog-card .dish-photo {
  margin-top: 14px;
}
.catalog-sources {
  margin-top: 16px;
}
.steps li {
  padding: 8px;
}
.cookstep {
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  line-height: 1.35;
  margin: 24px 0;
}
.ingredients label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.ingredients input:checked + span {
  text-decoration: line-through;
}
.error {
  color: #8d3023;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: inherit;
  width: min(560px, calc(100% - 24px));
  max-height: 90dvh;
  padding: 22px;
}
dialog::backdrop {
  background: #161a12a3;
}
dialog .sectionhead {
  margin-top: 0;
}
dialog h2 {
  font-size: 2rem;
}
#notice {
  position: fixed;
  z-index: 10;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #263728;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  width: max-content;
  max-width: 90vw;
  box-shadow: 0 3px 14px #2223;
}
#notice:empty {
  display: none;
}
.wide {
  width: 100%;
}
.inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.freeoffer {
  background: #e9eedf;
}
.items {
  padding-left: 20px;
}
.dayrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
}
@media (max-width: 800px) {
  .top,
  main {
    width: calc(100% - 32px);
  }
  .site-footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .top {
    min-height: 60px;
    height: auto;
    padding-block: 6px;
    gap: 8px;
  }
  .brand {
    min-width: 0;
    white-space: normal;
    line-height: 1.1;
    font-size: 1.2rem;
  }
  #desktop {
    display: none;
  }
  #mobile {
    position: fixed;
    display: flex;
    justify-content: space-around;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 5px 4px max(5px, env(safe-area-inset-bottom));
    z-index: 5;
    gap: 0;
    flex-wrap: nowrap;
  }
  #mobile a {
    font-size: 0.72rem;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    padding: 4px;
  }
  .hero,
  .teasers,
  .grid,
  .weekgrid,
  .recipehead,
  .catalog-filter,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .body {
    padding: 20px;
  }
  .headline {
    gap: 8px;
  }
  .headline h1 {
    font-size: 2.4rem;
  }
  .top .utility {
    flex-wrap: nowrap;
  }
  main {
    padding: 20px 0 94px;
  }
  #notice {
    bottom: 78px;
  }
  .actions {
    gap: 7px;
  }
  .actions button,
  .actions a {
    padding: 9px 12px;
  }
  .teasers {
    gap: 10px;
  }
  .photo .dish-photo img,
  .recipehead .dish-photo img {
    max-height: 220px;
  }
  .catalog-meals button {
    flex: 1;
    padding-inline: 6px;
  }
  .catalog-filter {
    gap: 10px;
  }
  .stats {
    margin: 12px 0 15px;
  }
  .block,
  .panel {
    padding: 16px;
  }
}
.quickbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.quickbar button {
  font-size: 0.91rem;
}
.shoprow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.check {
  width: 44px;
  height: 44px;
  border: 2px solid #929984;
  padding: 0;
  flex: none;
}
.check.on {
  background: var(--green);
  color: white;
}
.shopmeta {
  padding-left: 0;
}
.store .shopmeta {
  margin-left: 56px;
}
.manual {
  margin-top: 16px;
}
.manual input[type="number"] {
  max-width: 96px;
}
.store {
  max-width: 760px;
  margin: auto;
}
.gitem details p {
  margin-top: 5px;
  font-size: 0.9rem;
}
.noresult {
  margin: 14px 0;
}
.field em {
  font-size: 0.85rem;
}
.picklist button {
  width: 100%;
  display: block;
  text-align: left;
  margin-top: 8px;
}
.picklist small {
  display: block;
}
.dialog-scroll {
  max-height: 48vh;
  overflow: auto;
}
.startgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.startchoice {
  display: flex;
  align-items: flex-start;
  text-align: left;
  justify-content: flex-start;
  gap: 0.8rem;
  min-height: 94px;
  padding: 16px;
}
.startchoice b,
.startchoice small {
  display: block;
}
.startchoice small {
  font-weight: 450;
  margin-top: 0.25rem;
}
.chooseicon {
  color: var(--green);
}
.daystrip {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.daystrip button {
  border-radius: 24px;
  min-width: 42px;
  padding: 8px 12px;
}
.daystrip button[aria-pressed="true"] {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.weekgrid .panel > h3 {
  margin-bottom: 0.75rem;
}
.reuse-offer {
  background: #edf0e2;
  text-align: left;
  justify-content: flex-start;
  color: var(--green);
  margin: 9px 0;
}
.routine,
.taste-options fieldset {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 12px;
}
.routine legend,
.taste-options legend {
  font-weight: 750;
  padding: 0 5px;
}
.dayschoice {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 12px;
}
.dayschoice input {
  position: absolute;
  opacity: 0;
}
.dayschoice span {
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.dayschoice input:checked + span,
.taste-options .choice:has(input:checked) {
  background: var(--green);
  color: white;
}
.dayschoice input:focus-visible + span {
  outline: 3px solid var(--red);
}
.taste-options .choice {
  min-height: 46px;
  padding: 8px 13px;
}
.taste-options fieldset + fieldset {
  margin-top: 18px;
}
.routine .choices {
  margin-top: 8px;
}
.suggestion {
  margin-top: 12px;
}
@media (max-width: 800px) {
  .startgrid {
    grid-template-columns: 1fr;
  }
  .startchoice {
    min-height: 66px;
  }
  .daystrip {
    gap: 3px;
  }
  .daystrip button {
    min-width: 39px;
    padding: 6px 9px;
    font-size: 0.9rem;
  }
  .desktoplist {
    display: none;
  }
  .startchoice .chooseicon {
    padding-top: 4px;
  }
  .taste-options fieldset {
    padding: 10px;
  }
  .taste-options .choice {
    padding: 6px 10px;
  }
}

.taste-options summary {
  cursor: pointer;
  font-weight: 650;
  padding: 10px 0;
  color: var(--green);
}

.covered {
  margin: 1rem 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.covered > summary,
.shoprow summary {
  cursor: pointer;
  padding: 8px 0;
}
.stockmath {
  margin: 8px 0;
  font-weight: 600;
}
.shoprow details {
  min-width: 0;
}
.gitem .check {
  width: 48px;
  height: 48px;
}
#notice .undo-check {
  margin-left: 8px;
  color: var(--green);
  min-height: 40px;
}
