:root {
  color-scheme: light;
  --paper: #f8f1e5;
  --surface: #fffaf1;
  --ink: #2a1a16;
  --muted: #67534a;
  --red: #a32227;
  --red-dark: #7c171e;
  --line: #e5d7c7;
  --display: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.5; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #bd5b27; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1112px, calc(100% - 72px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 8; padding: 12px; background: white; }

.header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.header-inner { min-height: 76px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font: 1.28rem/1 var(--display); white-space: nowrap; }
.brand strong { color: var(--red); }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; color: #fff4dd; background: var(--red); }
.brand-mark svg { width: 27px; height: 27px; }
.header nav { display: flex; gap: 30px; }
.header nav a, .footer a { text-decoration: none; font-size: 0.86rem; font-weight: 700; }
.header nav a:hover, .footer a:hover { text-decoration: underline; }
.cart-button { min-height: 44px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; border-radius: 50px; padding: 5px 9px 5px 12px; color: var(--ink); background: var(--surface); font-size: .87rem; font-weight: 700; }
.cart-button svg { width: 20px; height: 20px; }
.cart-count { min-width: 24px; height: 24px; padding-inline: 4px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 50px; font-size: .75rem; }

.hero { display: grid; grid-template-columns: 48% 52%; min-height: 508px; background: #44181a; color: #fff4e3; }
.hero-copy { display: grid; align-items: center; padding: 56px 36px 57px max(36px, calc((100vw - 1112px) / 2)); background: radial-gradient(ellipse at 80% 80%, #702227, transparent 75%), #49191c; }
.hero-content { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 800; }
.eyebrow span { width: 14px; height: 1px; background: currentColor; }
.hero .eyebrow { color: #ffc67f; }
.hero h1 { font: 600 clamp(3.5rem, 7vw, 7.15rem)/.91 var(--display); margin-block: 23px; letter-spacing: -.072em; }
.hero h1 em { color: #ffc67f; font-weight: 400; }
.hero-content > p:not(.eyebrow) { max-width: 360px; color: #f6ded2; font-size: 1.02rem; }
.hero-image { position: relative; min-width: 0; min-height: 100%; overflow: hidden; background: #512224; }
.hero-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-image figcaption { position: absolute; right: 16px; bottom: 14px; padding: 4px 8px; color: white; background: #251818dc; border-radius: 4px; font-size: .68rem; }
.primary { border: 1px solid transparent; background: var(--red); color: white; min-height: 49px; display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 17px; border-radius: 8px; font-weight: 750; text-decoration: none; }
.primary:hover { background: var(--red-dark); }
.hero-link { margin-top: 27px; color: #301813; background: #ffc67f; min-width: 172px; }
.hero-link:hover { background: #ffdbad; }

.menu-section { padding-block: 56px 78px; scroll-margin-top: 85px; }
.menu-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.menu-heading .eyebrow { color: var(--red); margin-bottom: 9px; }
.menu-heading h2 { font: 600 clamp(2.25rem, 5.6vw, 4rem)/1 var(--display); letter-spacing: -.06em; }
.search { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.search svg { width: 20px; height: 20px; color: var(--red); flex: 0 0 auto; }
.search input { min-width: 0; width: 100%; border: none; background: transparent; color: var(--ink); padding-block: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.filters button { min-height: 42px; padding: 7px 15px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); border-radius: 50px; font-size: .88rem; font-weight: 700; }
.filters button:hover, .cart-button:hover { border-color: var(--red); }
.filters button[aria-pressed="true"] { color: white; background: var(--red); border-color: var(--red); }
.menu-group { margin-top: 31px; }
.group-title { font: 600 clamp(1.55rem, 4vw, 2.15rem)/1.1 var(--display); margin-bottom: 14px; letter-spacing: -.035em; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.product { display: flex; flex-direction: column; min-height: 157px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 15px 17px 12px; }
.product h4 { font-size: 1.04rem; line-height: 1.24; }
.product p { margin: 6px 0 13px; }
.muted { color: var(--muted); font-size: .86rem; }
.product-bottom { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; }
.product-price { display: grid; line-height: 1.18; color: var(--red-dark); }
.product-price small { font-size: .68rem; color: var(--muted); }
.add-button, .quantity-btn, .close { border: 1px solid #e8c8ba; background: #f7e5df; color: var(--red-dark); display: grid; place-items: center; font-size: 1.35rem; line-height: 1; }
.add-button { width: 44px; height: 44px; border-radius: 8px; }
.add-button:hover, .quantity-btn:hover, .close:hover { background: var(--red); color: white; }
.empty { margin-block: 20px; color: var(--muted); }

.footer { background: #40171a; color: #fff2e5; }
.footer-inner { min-height: 106px; padding-block: 18px; }
.footer strong { font: 600 1.3rem/1.1 var(--display); }
.footer p { font-size: .79rem; color: #edc7ba; margin-top: 5px; }

dialog { width: min(460px, calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 21px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 16px 70px #27171444; }
dialog::backdrop { background: #281819aa; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 8px; }
.dialog-head h2 { font: 600 1.85rem/1.15 var(--display); }
.close { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; }
fieldset { padding: 0; border: 0; margin: 21px 0 17px; }
legend { padding: 0 0 8px; font-weight: 750; }
fieldset label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 6px; cursor: pointer; }
fieldset label:has(input:checked) { border-color: var(--red); background: #faeee8; }
fieldset input { accent-color: var(--red); }
fieldset strong { margin-left: auto; }
.full { width: 100%; text-align: left; }
.drawer { margin: 0 0 0 auto; max-height: 100dvh; height: 100dvh; border-radius: 15px 0 0 15px; }
.cart-line { padding-block: 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.line-price { color: var(--red-dark); }
.quantity { display: flex; align-items: center; gap: 11px; }
.quantity-btn { width: 36px; height: 36px; border-radius: 6px; }
.cart-footer { margin-top: 20px; }
.subtotal { display: flex; gap: 8px; justify-content: space-between; font-weight: 750; }
.cart-footer > p { margin-block: 5px 12px; }
.review-panel { margin-top: 13px; }
.review-panel textarea { width: 100%; min-height: 155px; margin-top: 8px; resize: vertical; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 9px; }
.toast { position: fixed; z-index: 6; bottom: 18px; right: 18px; background: #42181a; color: white; padding: 11px 16px; border-radius: 9px; box-shadow: 0 4px 18px #42181a35; pointer-events: none; }
.toast:empty { padding: 0; box-shadow: none; }

@media (max-width: 830px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 430px; }
}

@media (max-width: 595px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 63px; gap: 6px; }
  .brand { font-size: 1.08rem; gap: 6px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 38px 22px 34px; }
  .hero h1 { font-size: clamp(3.6rem, 15vw, 5.5rem); }
  .hero-image { min-height: 245px; }
  .menu-section { padding-block: 35px 48px; scroll-margin-top: 69px; }
  .menu-heading { flex-direction: column; align-items: stretch; gap: 16px; }
  .filters { padding-block: 15px; }
  .filters button { padding-inline: 11px; }
  .menu-group { margin-top: 22px; }
  .menu-grid { grid-template-columns: 1fr; gap: 8px; }
  .product { min-height: 112px; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
