:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #5d6b62;
  --paper: #fffdf8;
  --cream: #f5f0e5;
  --green: #174f3b;
  --green-dark: #0d392a;
  --lime: #d9ed9b;
  --line: #d8d6cc;
  --danger: #9d2c22;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hero { padding: 2.5rem 1.25rem 3rem; color: white; background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.hero h1 { margin: .15rem 0; font-size: clamp(2.2rem, 10vw, 4.8rem); line-height: 1; letter-spacing: -.04em; }
.hero p:last-child { max-width: 38rem; margin-bottom: 0; color: #e7f1eb; }
.eyebrow { margin: 0; color: var(--lime); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
main { width: min(72rem, calc(100% - 1.5rem)); margin: -1.25rem auto 4rem; }
.panel { margin: 0 0 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 10px 30px rgba(23, 33, 27, .07); }
.panel h2 { margin: .15rem 0 1rem; font-size: 1.5rem; }
.step { color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.grid, .people-grid { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; margin: 0 0 .85rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 2.8rem; padding: .7rem .8rem; border: 1px solid #b8beb9; border-radius: .55rem; background: white; color: var(--ink); }
textarea { min-height: 5.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid rgba(23, 79, 59, .24); outline-offset: 2px; border-color: var(--green); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: 1rem; }
.choice { display: block; padding: .9rem; border: 1px solid var(--line); border-radius: .7rem; background: white; }
.choice input, .check input, .consent input, .topping-option input { width: auto; min-height: auto; margin-right: .45rem; }
.promo { display: block; margin-left: 1.6rem; color: var(--green); font-size: .75rem; }
.menu-category + .menu-category { margin-top: 1.5rem; }
.menu-category h3 { padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.item-grid { display: grid; gap: .65rem; }
.item-tile { display: flex; justify-content: space-between; gap: 1rem; align-items: center; width: 100%; padding: .9rem; border: 1px solid var(--line); border-radius: .7rem; background: white; text-align: left; }
.item-tile:hover { border-color: var(--green); transform: translateY(-1px); }
.item-tile span { color: var(--muted); white-space: nowrap; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .7rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.cart-line p { margin: .2rem 0; color: var(--muted); }
.line-actions { display: flex; gap: .4rem; align-items: start; }
.line-actions button, .dialog-actions button, .icon-button { padding: .45rem .65rem; border: 1px solid var(--line); border-radius: .45rem; background: white; }
.cart-total { display: flex; justify-content: space-between; padding-top: 1rem; font-size: 1.2rem; }
.empty, .helper { color: var(--muted); font-size: .9rem; }
.validation { color: var(--danger); font-weight: 700; }
.warning { padding: .8rem; border-left: 4px solid #bd6d13; background: #fff4dc; font-weight: 700; }
.allergy { padding: .75rem; border-radius: .5rem; background: #f2eee5; }
fieldset { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; }
legend { padding: 0 .3rem; font-weight: 800; }
.check, .consent, .topping-option { display: block; font-weight: 600; }
.consent { padding: 1rem; border: 1px solid var(--green); border-radius: .7rem; background: #f1f7f3; }
.primary { width: 100%; min-height: 3rem; padding: .75rem 1rem; border: 0; border-radius: .6rem; color: white; background: var(--green); font-weight: 800; }
.primary:hover { background: var(--green-dark); }
.primary:disabled { cursor: not-allowed; opacity: .45; }
.error-box { margin: 1rem 0; padding: .9rem; border: 1px solid #d99089; border-radius: .6rem; color: var(--danger); background: #fff0ee; }
.result { border: 2px solid var(--green); }
dialog { width: min(34rem, calc(100% - 1.5rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 1rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
dialog::backdrop { background: rgba(10, 25, 18, .62); }
#item-form { padding: 1.2rem; overflow: auto; }
.dialog-head, .dialog-actions { display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.dialog-head h2 { margin: 0 0 1rem; }
.dialog-actions { margin-top: 1rem; }
.dialog-actions .primary { width: auto; }
.option-group { margin-bottom: 1rem; }
.option-group strong { display: block; margin-bottom: .4rem; }
.pill-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill-grid label { display: block; margin: 0; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: white; font-weight: 600; }

@media (min-width: 44rem) {
  .hero { padding-inline: max(2rem, calc((100% - 70rem) / 2)); }
  main { margin-top: -1.75rem; }
  .panel { padding: 1.75rem; }
  .grid.two, .people-grid { grid-template-columns: 1fr 1fr; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 68rem) {
  #order-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(20rem, .7fr); gap: 1rem; align-items: start; }
  #order-form > .panel { margin: 0; }
  #order-form > .panel:nth-child(2), #order-form > .panel:nth-child(4) { grid-column: 1; }
  #order-form > .panel:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 1rem; }
  #order-form > .panel:nth-child(4) { grid-column: 1 / -1; }
  .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cart-row { display: flex; justify-content: space-between; margin-top: 4px; }
