:root {
  --cream: #fbf4e4;
  --paper: #fffaf0;
  --ink: #2a1b16;
  --muted: #6b584d;
  --red: #8a2c2b;
  --red-deep: #5c1a1b;
  --mustard: #f5c518;
  --rule: #d8c7a6;
  --open: #1f7a3d;
  --closed: #8a2c2b;
  --display: "Alfa Slab One", "Rockwell", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
.ic { width: 20px; height: 20px; flex: none; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 14px 20px;
}
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font: 400 26px/1 var(--display); color: var(--red); text-decoration: none; }
.call-sm {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--red); color: var(--cream); font-weight: 700; text-decoration: none;
}

/* Buttons */
.btn { white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 12px; border: 2px solid var(--ink);
  font: 700 17px/1 var(--sans); text-decoration: none; cursor: pointer; color: var(--ink); background: transparent;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); border-color: var(--red); color: var(--cream); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-gold { background: var(--mustard); }
.btn-gold:hover { background: #ffd23d; }
.btn-ghost:hover { background: rgba(42, 27, 22, 0.07); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Hero */
.hero {
  position: relative; max-width: 1120px; margin: 0 auto; padding: 16px 20px 64px;
  display: grid; gap: 32px;
}
.hero::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 16px;
  background: repeating-conic-gradient(var(--red) 0 25%, var(--cream) 0 50%) 0 0 / 32px 32px;
}
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--rule); font-weight: 700; font-size: 15px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--open); }
.status.is-closed .dot { background: var(--closed); }
h1 {
  margin-top: 18px; font-size: clamp(44px, 12.5vw, 96px); line-height: 1.02; color: var(--red);
  letter-spacing: -0.005em;
}
.lede { margin-top: 18px; font-size: 20px; max-width: 36ch; }
.hours-line { margin-top: 14px; color: var(--muted); font-weight: 600; font-size: 16px; }
.actions { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions .wide { grid-column: 1 / -1; }
.plate { margin: 0; justify-self: start; position: relative; padding: 0 0 14px 14px; }
.plate::before {
  content: ""; position: absolute; inset: 14px 14px 0 0; background: var(--mustard); border-radius: 6px; transform: rotate(2deg);
}
.plate img {
  position: relative; display: block; width: 220px; height: 220px; object-fit: cover; border: 6px solid var(--paper);
  border-radius: 4px; transform: rotate(-2.5deg);
}

/* Menu */
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.menu-head { padding-block: 36px 18px; }
.menu-head h2 { font-size: clamp(34px, 8vw, 52px); color: var(--ink); }
.menu-head p { margin-top: 6px; color: var(--muted); }

.chips {
  position: sticky; top: 0; z-index: 10; background: var(--cream);
  border-bottom: 2px solid var(--ink);
}
.chip-track {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px max(20px, calc((100% - 1080px) / 2)); scrollbar-width: none; scroll-snap-type: x proximity;
}
.chip-track::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--rule); background: var(--paper); font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
}
.chip.first { margin-left: 14px; position: relative; }
.chip.first::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 2px; background: var(--ink); opacity: 0.35;
}
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.group-title {
  margin-top: 56px; font-size: clamp(52px, 15vw, 112px); line-height: 1; color: var(--red);
  padding-bottom: 14px; position: relative;
}
.group-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 96px; height: 10px; background: var(--mustard); }
.menu-section { padding-top: 40px; scroll-margin-top: 50px; }
.menu-section h3 { font-size: clamp(28px, 6vw, 38px); line-height: 1.1; }
.note { margin-top: 8px; padding: 10px 14px; background: #f7e7ad; border-left: 6px solid var(--mustard); font-size: 15px; font-weight: 500; }
.items { list-style: none; margin: 14px 0 0; padding: 0; }
.item { padding: 11px 0; break-inside: avoid; }
.row { display: flex; align-items: baseline; gap: 8px; }
.name { font-weight: 700; font-size: 17.5px; line-height: 1.25; }
.lead { flex: 1; min-width: 14px; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); }
.price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--red); }
.desc { margin-top: 3px; color: var(--muted); font-size: 15px; line-height: 1.4; max-width: 46ch; }
.menu-foot { margin-top: 56px; padding: 22px 0; border-top: 2px solid var(--ink); color: var(--muted); font-size: 15px; }

/* Take-out */
.takeout {
  margin-top: 48px; background: var(--mustard); padding: 56px 20px; text-align: center;
  display: grid; justify-items: center; gap: 14px;
}
.takeout h2 { font-size: clamp(32px, 8vw, 52px); }
.takeout p { max-width: 36ch; font-size: 19px; }
.takeout .btn { margin-top: 8px; background: var(--ink); border-color: var(--ink); color: var(--cream); }
.takeout .btn:hover { background: #46302a; }

/* Footer */
.footer { background: var(--red-deep); color: var(--cream); padding: 48px 0 40px; }
.visit, .footer-fine { padding-inline: 20px; }
.visit { max-width: 1120px; margin: 0 auto; display: grid; gap: 30px; }
.footer h2 { font: 700 13px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mustard); margin-bottom: 10px; }
.footer p { font-size: 18px; line-height: 1.5; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.footer-fine { max-width: 1120px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(251, 244, 228, 0.25); font-size: 14px !important; opacity: 0.8; }

/* Dialog */
.order-dialog {
  border: 2px solid var(--ink); border-radius: 16px; padding: 28px 24px 24px; width: min(420px, calc(100vw - 32px));
  background: var(--paper); color: var(--ink);
}
.order-dialog::backdrop { background: rgba(42, 27, 22, 0.55); }
.order-dialog h2 { font-size: 30px; color: var(--red); }
.order-dialog p { margin-top: 10px; font-size: 18px; }
.dialog-actions { margin-top: 22px; display: grid; gap: 10px; }

@media (min-width: 720px) {
  body { font-size: 18px; }
  .top { padding: 20px 32px; }
  .wordmark { font-size: 32px; }
  .hero { padding: 40px 32px 80px; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 48px; }
  .hero::after { left: 32px; right: 32px; }
  .actions { grid-template-columns: auto auto auto; justify-content: start; }
  .actions .wide { grid-column: auto; }
  .plate { justify-self: center; }
  .plate img { width: 300px; height: 300px; }
  .wrap, .visit, .footer-fine { padding-inline: 32px; }
  .items { column-count: 2; column-gap: 48px; }
  .visit { grid-template-columns: repeat(3, 1fr); }
  .dialog-actions { grid-template-columns: 1fr 1fr; }
}
