:root {
  color-scheme: light;
  --ink: #171814;
  --muted: #676255;
  --paper: #f5f7f5;
  --panel: #ffffff;
  --line: #d9e1db;
  --gold: #e9bd53;
  --tomato: #b9412e;
  --green: #28624a;
  --charcoal: #24231f;
  --shadow: 0 22px 60px rgba(33, 28, 18, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

button, input { font: inherit; }

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 3vw, 2rem);
  background: rgba(245, 247, 245, .95);
  border-bottom: 1px solid rgba(39, 35, 27, .1);
  backdrop-filter: blur(18px);
}

.brand, .nav, .hero-actions, .quick-actions, .filters, .tag-filters {
  display: flex;
  align-items: center;
}

.brand { gap: .7rem; min-width: 0; }

.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  font-weight: 800;
}

.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: .78rem; margin-top: .1rem; }

.nav { gap: .35rem; }
.nav > a { padding: .7rem .85rem; color: var(--muted); font-weight: 700; }

.icon-button {
  position: relative;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: -.35rem;
  right: -.25rem;
  min-width: 1.25rem;
  padding: .05rem .28rem;
  border-radius: 999px;
  background: var(--tomato);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  min-height: 32rem;
  overflow: hidden;
  background: #183e32;
  color: #fff9ed;
}

.hero-copy {
  align-self: end;
  padding: clamp(2rem, 6vw, 5.5rem);
  z-index: 1;
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 1rem;
  font-size: 4rem;
  line-height: .92;
}

h2 { margin-bottom: .5rem; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
h3 { margin-bottom: .55rem; font-size: 1.08rem; }

.lead {
  max-width: 35rem;
  color: #e8deca;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 28rem;
}

.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,35,26,.96), rgba(10,35,26,.88) 48%, rgba(10,35,26,.25)); }
.hero-copy { position: relative; max-width: 42rem; }
.owners { font-size: 1rem; margin-bottom: 1.5rem; }
.dish-category { display: block; font-size: .75rem; color: var(--green); margin-bottom: .5rem; font-weight: 600; }
[hidden] { display: none !important; }
.dish { min-height: 12rem; }

.hero-actions { gap: .75rem; flex-wrap: wrap; margin-top: 1.7rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-weight: 850;
  cursor: pointer;
}

.button.primary { background: var(--gold); color: #181611; }
.button.ghost { border-color: var(--line); background: rgba(255,255,255,.08); color: inherit; }
.button.full { width: 100%; }

.quick-actions {
  gap: 0;
  margin: 0 auto;
  max-width: 1180px;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.quick-actions a {
  flex: 1;
  min-height: 4.25rem;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--charcoal);
  font-weight: 850;
}

.quick-actions a:first-child { border-radius: .5rem 0 0 .5rem; }
.quick-actions a:last-child { border-radius: 0 .5rem .5rem 0; }

.menu-shell {
  max-width: 1180px;
  margin: -1.5rem auto 0;
  padding: 0 1rem 4rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search {
  display: grid;
  gap: .35rem;
  width: min(100%, 22rem);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
}

.search input {
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: 0 1rem;
  background: var(--panel);
  color: var(--ink);
}

.filters, .tag-filters {
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}

.chip {
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .85rem;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #fff8e8;
}

.tag-filters .chip.active {
  border-color: var(--green);
  background: var(--green);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.dish {
  display: grid;
  min-height: 17rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(33, 28, 18, .06);
}

.dish-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.dish h3 { font-size: 1.2rem; }
.price { color: var(--tomato); font-weight: 950; white-space: nowrap; }
.dish p { color: var(--muted); line-height: 1.45; }

.badges {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: .35rem;
  margin: .6rem 0 1rem;
}

.badge {
  border-radius: 999px;
  padding: .18rem .48rem;
  background: #f0e5d2;
  color: #4c4436;
  font-size: .76rem;
  font-weight: 850;
}

.add {
  align-self: end;
  width: 100%;
  background: #171814;
  color: #fff8e9;
}

.empty {
  display: none;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: .5rem;
  color: var(--muted);
  text-align: center;
}

.qr-panel, .info-band {
  max-width: 1180px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.qr-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.qr-panel > div:first-child {
  padding: clamp(1.3rem, 4vw, 2.5rem);
  border-radius: .5rem;
  background: var(--charcoal);
  color: #fff8e9;
}

.qr-panel p { color: #ded4c4; max-width: 42rem; line-height: 1.6; }

.qr-code {
  display: grid;
  grid-template-columns: repeat(3, 2.9rem);
  grid-template-rows: repeat(3, 2.9rem);
  gap: .45rem;
  padding: 1rem;
  border: .55rem solid #171814;
  background: #fff;
}

.qr-code span { background: #171814; }
.qr-code span:nth-child(2), .qr-code span:nth-child(4), .qr-code span:nth-child(8) { opacity: .18; }

.info-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-band article {
  padding: 1.2rem;
  border-top: 3px solid var(--gold);
  background: var(--panel);
}

.info-band p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }

.cart {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(100%, 26rem);
  padding: 1rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform .22s ease;
}

.cart.open { transform: translateX(0); }

.cart-header, .cart-item, .total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 1rem 0;
}

.cart-item {
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-item strong, .cart-item small { display: block; }
.cart-item small { color: var(--muted); margin-top: .18rem; }

.qty {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.qty button {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.cart-footer {
  display: grid;
  gap: .7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.total-row { font-size: 1.2rem; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: rgba(20, 18, 14, .42);
  opacity: 0;
  transition: opacity .22s ease;
}

.scrim.show {
  pointer-events: auto;
  opacity: 1;
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 2rem 1rem 4rem; }
  .hero img { height: 100%; min-height: 0; }
  .section-heading { display: grid; align-items: start; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-panel, .info-band { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: 3rem; }
  .topbar { align-items: start; }
  .nav > a { display: none; }
  .quick-actions { transform: none; padding: 1rem; }
  .quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); }
  .quick-actions a, .quick-actions a:first-child, .quick-actions a:last-child { border-radius: 0; }
  .menu-shell { margin-top: 0; }
  .menu-grid { grid-template-columns: 1fr; }
  .dish { min-height: auto; }
  .qr-code { grid-template-columns: repeat(3, 2.2rem); grid-template-rows: repeat(3, 2.2rem); }
}
