:root {
  color-scheme: light;
  --paper: #fffdfa;
  --cream: #fff8ee;
  --ink: #261811;
  --muted: #6d594c;
  --red: #a82411;
  --headline: "Barlow Condensed", "Arial Narrow", sans-serif;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  font: 16px/1.55 "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { overscroll-behavior-y: none; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); overscroll-behavior-y: none; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #167257; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
button:disabled { opacity: .52; cursor: default; }
[hidden] { display: none !important; }
.skip { position: fixed; top: 0; left: 1rem; transform: translateY(-110%); z-index: 10; background: var(--cream); padding: .65rem 1rem; }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { height: 78px; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(1.1rem, 5.4vw, 6rem); gap: 1rem; position: sticky; z-index: 8; top: 0; background: var(--paper); }
.brand { display: inline-flex; width: 128px; height: 47px; overflow: hidden; align-items: center; mix-blend-mode: multiply; }
.brand img { width: 100%; }
.topbar nav { display: flex; gap: clamp(.75rem, 3vw, 2.3rem); align-items: center; }
.topbar nav a { text-decoration: none; font-weight: 700; }
.bag-button { display: flex; align-items: center; gap: .6rem; border: 0; background: #f5e1c5; color: var(--ink); border-radius: 8px; padding: .43rem .55rem .43rem .95rem; font-weight: 800; }
.bag-button span { display: grid; place-items: center; min-width: 27px; height: 27px; border-radius: 50px; background: var(--red); color: #fffaf0; font-size: .8rem; }
.hero { position: relative; isolation: isolate; display: flex; align-items: end; min-height: clamp(430px, 72svh, 700px); background: #64311b; overflow: hidden; }
.hero-photo { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-copy { margin-left: clamp(1rem, 5.4vw, 6rem); padding: clamp(1.25rem, 4vw, 2.75rem); background: var(--red); color: var(--cream); }
.eyebrow { font-family: var(--condensed); font-size: 1rem; letter-spacing: .06em; font-weight: 800; }
.hero h1 { font: 800 clamp(3.3rem, 7vw, 6rem)/.86 var(--headline); letter-spacing: -.025em; text-transform: uppercase; }
.hero-copy > p { margin: .9rem 0 1.15rem; font-weight: 650; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .7rem; min-height: 48px; padding: .65rem 1.15rem; text-align: center; border: 0; border-radius: 8px; background: var(--red); color: white; font-weight: 800; text-decoration: none; }
.button:hover:not(:disabled) { background: #7d2015; color: white; }
.hero-button { background: var(--cream); color: var(--red); }
.hero-button:hover:not(:disabled) { background: #f5e1c5; color: var(--red); }
.menu-section { max-width: 1400px; margin: auto; padding: clamp(2rem,5vw,4.5rem) clamp(1rem,5.4vw,5rem); }
.menu-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem; margin-bottom: 1.5rem; }
.menu-heading h2 { font: 800 clamp(2.8rem, 5vw, 4.25rem)/.94 var(--headline); letter-spacing: -.015em; text-transform: uppercase; }
.categories { display: flex; flex-wrap: wrap; gap: .9rem; }
.categories a { color: var(--red); white-space: nowrap; font-weight: 750; }
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(255px, 320px); align-items: start; gap: clamp(1rem, 4vw, 4rem); }
.menu-group + .menu-group { margin-top: 1.8rem; }
.menu-group-heading { display: flex; justify-content: space-between; align-items: center; gap: .8rem; background: #f5d8b8; padding: .75rem .95rem; }
.menu-group-heading h3 { font: 800 clamp(1.65rem, 4vw, 2.45rem)/1 var(--headline); color: var(--red); text-transform: uppercase; }
.menu-group-heading > img { width: 76px; height: 62px; object-fit: cover; }
.dish { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1rem; padding: 1rem .95rem; background: var(--cream); }
.dish:nth-child(even) { background: #f9ead4; }
.dish-name { font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
.dish-copy p { margin-top: .22rem; color: var(--muted); font-size: .9rem; }
.dish-buy { display: grid; grid-template-columns: 4ch auto; align-items: center; gap: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dish-buy button { font-size: .85rem; min-height: 44px; min-width: 70px; padding: .42rem .75rem; }
.desktop-bag, .status-card { background: var(--cream); padding: clamp(1rem, 2.5vw, 1.6rem); }
.desktop-bag { position: sticky; top: 94px; }
.desktop-bag h2 { font: 800 2rem/1 var(--headline); margin-bottom: .7rem; }
.bag-empty { padding: .6rem 0; color: var(--muted); }
.line-list { padding: 0; margin: 0; list-style: none; }
.line-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .25rem .5rem; padding: .75rem 0;  }
.line-list small { display: block; color: var(--muted); }
.line-actions { display: flex; align-items: center; gap: .45rem; }
.line-actions button, .close { min-width: 38px; min-height: 38px; border: 0; border-radius: 8px; background: #f5e1c5; color: var(--ink); }
.line-actions button { min-width: 32px; min-height: 32px; }
.total { display: flex; gap: .75rem; justify-content: space-between; font-weight: 800; padding: 1rem 0; }
.full { width: 100%; }
footer { display: grid; grid-template-columns: 1fr 2fr auto; align-items: start; gap: 1.5rem 3rem; padding: clamp(1.5rem,5vw,4.5rem) clamp(1rem,5.4vw,5rem); background: var(--red); color: var(--cream); }
footer .brand { width: min(100%, 190px); height: auto; mix-blend-mode: normal; }
footer .brand img { filter: brightness(0) invert(1); }
footer h2 { font: 800 clamp(1.8rem,4vw,2.55rem)/1 var(--headline); }
.footer-location p { margin: .55rem 0; }
footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.3rem; }
footer a { font-weight: 700; }
footer a:focus-visible { outline-color: var(--cream); }
#mobile-bag { display: none; }
dialog { width: min(calc(100% - 2rem), 530px); max-height: min(89dvh, 850px); padding: 0; border: 0; border-radius: 12px; color: var(--ink); background: var(--cream); box-shadow: 0 20px 75px #27170d40; }
dialog::backdrop { background: #21140db8; }
.sheet-head { padding: 1rem 1.35rem; position: sticky; z-index: 1; top: 0; background: var(--cream); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sheet-head h2 { font: 800 2.25rem/1 var(--headline); }
.close { font-size: 1.4rem; }
#sheet-body { padding: 1.25rem 1.35rem; }
.field { display: grid; gap: .35rem; margin-bottom: .85rem; }
.field label { font-weight: 700; }
.field input, .field select { color: var(--ink); background: #fffdf4; border: 1px solid #9d8876; border-radius: 8px; padding: .63rem; min-height: 44px; width: 100%; }
.field small { color: var(--muted); }
.notice { padding: .7rem .8rem; margin-bottom: .9rem; border-radius: 8px; background: #fff0cd; color: #664214; }
.error { color: #8d1d12; }
.error:empty, #menu-notice:empty { display: none; }
.status-page { max-width: 600px; margin: auto; padding: clamp(1rem, 4vw, 3rem); }
.status-page > .brand { margin-bottom: 1rem; }
.status-card h1 { font: 800 clamp(2.5rem,7vw,4rem)/.94 var(--headline); letter-spacing: -.03em; margin: .25rem 0 .8rem; }
.status-card .eyebrow { color: var(--red); }
.status-copy { margin-bottom: 1rem; }
.status-card .line-list { margin-top: 1rem; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: .75rem; background: #f5e1c5; padding: 1rem; margin: .8rem 0 1rem; text-align: center; border-radius: 12px; }
.fake-qr { width: 140px; aspect-ratio: 1; display: grid; place-items: center; padding: .4rem;  background: var(--paper); color: var(--red); font: 800 1.28rem var(--condensed); letter-spacing: .07em; }
.qr-box img { max-width: min(100%, 225px); }
.status-photo { margin: 1rem 0; border-radius: 12px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.back-link { display: inline-block; font-weight: 700; margin-top: 1rem; }
.text-button { border: 0; padding: .5rem 0; color: var(--red); background: none; text-decoration: underline; font-weight: 800; }
.resume { margin-top: .75rem; }

@media (prefers-reduced-motion: no-preference) {
  .button, .bag-button { transition: background-color .18s ease-out, color .18s ease-out; }
  dialog[open], dialog[open]::backdrop { animation: reveal .18s ease-out both; }
  @keyframes reveal {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 72px; }
  .topbar { height: 64px; padding-inline: .8rem; gap: .5rem; }
  .topbar .brand { width: 104px; }
  .topbar nav { gap: .65rem; font-size: .9rem; }
  .hero { min-height: clamp(390px, 61svh, 560px); }
  .hero-photo { object-position: 34% center; }
  .hero-copy { margin: 0 1rem; padding: 1rem 1.15rem 1.2rem; }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4.75rem); }
  .hero-copy > p { margin: .7rem 0 .85rem; }
  .menu-layout { display: block; }
  .desktop-bag { display: none; }
  #mobile-bag:not([hidden]) { display: block; position: fixed; z-index: 5; bottom: 0; inset-inline: 0; padding: .65rem 1rem max(.65rem, env(safe-area-inset-bottom)); background: var(--cream); }
  #mobile-bag .button { width: 100%; justify-content: space-between; }
  body:has(#mobile-bag:not([hidden])) footer { padding-bottom: 5rem; }
}
@media (max-width: 520px) {
  .menu-heading { flex-wrap: wrap; gap: 1rem; margin-bottom: 1.35rem; }
  .dish { gap: .6rem; padding: .8rem .7rem; }
  .dish-buy { gap: .4rem; }
  .dish-buy button { min-width: 62px; }
  .dish-copy p { font-size: .86rem; }
  footer { grid-template-columns: 1fr; }
  dialog { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 90dvh; border-radius: 20px 20px 0 0; }
}
