:root {
  --ink: #2c1810;
  --muted: #7a624f;
  --line: #e4d3bc;
  --paper: #f7f0e4;
  --paper-2: #fffaf3;
  --ember: #9a3412;
  --gold: #c9852a;
  --night: #1a0c08;
  --night-2: #3a1a10;
  --chip: #fff;
  --shadow: 0 18px 50px rgba(40, 16, 8, 0.18);
  font-family: Manrope, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 70% -10%, rgba(201, 133, 42, 0.28), transparent 60%),
    var(--night);
  color: var(--ink);
}
a { color: inherit; }
button, input { font: inherit; }

.sheet {
  width: min(460px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
}
@media (min-width: 860px) {
  body { padding: 28px 0 40px; }
  .sheet {
    min-height: calc(100vh - 68px);
    border-radius: 28px;
    overflow: clip;
    box-shadow: var(--shadow);
  }
}

.hero {
  position: relative;
  padding: 28px 22px 22px;
  color: #f8f1e6;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(232, 120, 42, 0.55), transparent 55%),
    linear-gradient(165deg, #5a2414 0%, #24110c 72%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248, 214, 150, 0.7), transparent);
}
.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  color: #f0c27a;
}
.wordmark {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: 58px;
  line-height: 0.86;
  letter-spacing: -0.04em;
}
.wordmark span {
  display: block;
  font-style: italic;
  font-weight: 460;
  color: #ffd9a0;
}
.tagline {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #f3e2cf;
}
.facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #f6eadc;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 236, 214, 0.35);
  color: #fff8ef;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.btn.primary {
  background: #f4c56d;
  color: #2a140c;
  border-color: transparent;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(247, 240, 228, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.search {
  display: block;
  padding: 12px 16px 0;
}
.search input {
  width: 100%;
  border: 1px solid #e7d7c4;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.search input:focus { border-color: #c9852a; }
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px 12px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none;
  text-decoration: none;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--chip);
  border: 1px solid #eadccb;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.cats a.active {
  background: var(--night-2);
  color: #fff6ea;
  border-color: var(--night-2);
}

main { padding: 8px 16px 28px; }
.section { padding-top: 18px; scroll-margin-top: 108px; }
.section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  font-weight: 560;
}
.section h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, #d7b48a, transparent);
}
.dish {
  padding: 11px 0;
  border-bottom: 1px solid rgba(212, 188, 160, 0.55);
}
.dish-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.name { font-size: 16px; font-weight: 650; }
.unit {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.dots {
  flex: 1;
  border-bottom: 1px dotted #d9c4ad;
  transform: translateY(-3px);
}
.price {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--ember);
  white-space: nowrap;
}
.note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.hidden { display: none !important; }
.empty {
  display: none;
  margin: 18px 0;
  color: var(--muted);
}
.empty.show { display: block; }

.lunch {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #fff 0%, #f8efe3 100%);
  border: 1px solid #efd8b4;
}
.lunch-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}
.kicker {
  margin: 0;
  color: var(--ember);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lunch h2 { margin: 2px 0 0; }
.lunch h2::after { display: none; }
.lunch-price {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 32px;
  color: var(--ember);
}
.days { margin: 12px 0 0; padding: 0; list-style: none; }
.days li { padding: 8px 0; border-top: 1px solid #f0e2d0; }
.days strong { display: block; font-size: 14px; }
.days span { color: var(--muted); font-size: 14px; line-height: 1.35; }

.foot {
  margin: 22px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: #2a140f;
  color: #f6ebdf;
}
.foot p { margin: 0 0 8px; line-height: 1.45; font-size: 14px; }
.add {
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--night-2);
  color: #fff8ef;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.add:active { transform: scale(0.96); }
.lunch-add {
  width: auto;
  height: auto;
  margin-top: 12px;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
}
.cart-dock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 6;
  width: min(436px, calc(100% - 24px));
  transform: translateX(-50%);
}
.cart-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-radius: 16px;
  background: var(--night-2);
  color: #fff6ea;
  padding: 14px 16px;
  font-weight: 750;
  cursor: pointer;
}
#cart-dialog {
  width: min(440px, calc(100% - 24px));
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: #fffaf3;
  color: var(--ink);
}
#cart-dialog::backdrop { background: rgba(20, 8, 4, 0.55); }
#cart-form { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 32px; }
.icon-x {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #f0e4d4; cursor: pointer; font-size: 22px;
}
.line { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.line b { font-weight: 750; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: #f0e4d4; cursor: pointer; font-weight: 800;
}
#cart-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 750; color: var(--muted); }
#cart-form input, #cart-form select {
  border: 1px solid #e7d7c4; background: white; border-radius: 12px;
  padding: 12px; color: var(--ink); font-weight: 650;
}
.cart-total { margin: 4px 0 0; font-size: 18px; }
.cart-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.cart-error { margin: 0; color: #9f1239; font-weight: 750; }
.cart-send {
  border: 0; border-radius: 14px; background: #9a3412; color: white;
  padding: 14px; font-weight: 800; cursor: pointer;
}
.cart-send:disabled { opacity: 0.6; }
.order-view { padding: 28px 20px 48px; }
.order-view .eyebrow { color: var(--ember); }
.order-view h1 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 52px; line-height: 0.95; }
.order-view ul { padding-left: 18px; line-height: 1.45; }
.foot a { color: #f4c56d; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-weight: 700; }

.qr-page { background: #f4efe6; }
.card {
  width: min(420px, calc(100% - 32px));
  margin: 28px auto;
  padding: 28px 24px 32px;
  background: white;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.card h1 {
  margin: 8px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 48px;
  line-height: 0.9;
}
.card h1 span { display: block; font-style: italic; color: #9a3412; }
.qr {
  width: min(280px, 100%);
  height: auto;
  margin: 18px auto;
  display: block;
}
.card p { color: #5c4636; }
.print {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  background: #2a140f;
  color: white;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}
@media print {
  body { background: white; padding: 0; }
  .card { box-shadow: none; margin: 0 auto; }
  .print, .back { display: none; }
}
