:root {
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --burgundy: #c43b4f;
  --burgundy-deep: #a51c30;
  --bronze: #c4a484;
  --ink: #0e0a09;
  --elevated: #1e1714;
  --line: #2e2420;
  --muted: #9a8b82;
  --paper: #f3ebe3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--paper);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(165, 28, 48, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 164, 132, 0.08), transparent 45%),
    linear-gradient(180deg, #120c0a 0%, #0e0a09 40%, #0a0706 100%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.font-display { font-family: var(--font-display); }

.app {
  max-width: 32rem;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(14,10,9,0.9);
  backdrop-filter: blur(16px);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}
.logo { height: 3rem; width: auto; max-width: 200px; object-fit: contain; object-position: left; }
.header-actions { display: flex; align-items: center; gap: 0.35rem; }
.header-actions a,
.header-actions .linkish {
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243,235,227,0.7);
}
.header-actions a:hover { color: var(--paper); }
.lang {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.25rem;
}
.lang button { padding: 0.25rem 0.65rem; color: rgba(243,235,227,0.55); }
.lang button.on { background: var(--burgundy-deep); color: #fff; }

.main {
  flex: 1;
  padding: 1.25rem 1rem calc(6.75rem + env(safe-area-inset-bottom));
}
.main.no-nav { padding-bottom: 2.5rem; }

.eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
}
h1.font-display {
  margin: 0.15rem 0 0;
  font-size: 1.875rem;
  line-height: 1.15;
  font-weight: 400;
}
.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.ribbon {
  background: var(--burgundy-deep);
  color: #fff;
  padding: 0.75rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  border-radius: 2px;
  box-shadow: 0 0 24px rgba(165,28,48,0.25);
}
.disclaimer {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}
.legend-link {
  display: inline-flex;
  margin-bottom: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
}
.legend-link:hover { color: var(--burgundy); text-decoration: underline; }

.chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 0 -1rem 1.25rem;
  padding: 0 1rem 0.25rem;
}
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(30,23,20,0.8);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(243,235,227,0.85);
}
.chip:hover { border-color: var(--burgundy); color: var(--burgundy); }

.section { margin-bottom: 2.25rem; scroll-margin-top: 6rem; }
.section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(243,235,227,0.25);
}

.item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(46,36,32,0.8);
}
.item.out { opacity: 0.5; }
.item h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.item.out h3 { text-decoration: line-through; text-decoration-color: rgba(196,59,79,0.7); }
.badge-out {
  margin-left: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy);
  text-decoration: none;
}
.meta { margin: 0.2rem 0 0; font-size: 0.75rem; color: var(--bronze); }
.desc {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-line;
}
.allergens { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.acode {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  border-radius: 2px;
  background: rgba(165,28,48,0.25);
  color: var(--burgundy);
  font-size: 0.625rem;
  font-weight: 700;
}
.price {
  flex-shrink: 0;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.price small { font-weight: 400; color: var(--muted); font-size: 0.75rem; margin-left: 0.2rem; }
.price .sub { font-size: 0.75rem; font-weight: 500; color: var(--muted); margin-top: 0.15rem; }

.bottom-nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(12,9,8,0.95);
  backdrop-filter: blur(16px);
}
.bottom-nav-inner {
  max-width: 32rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.5rem 0.25rem max(0.55rem, env(safe-area-inset-bottom));
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem;
  color: rgba(243,235,227,0.45);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-item .dot {
  width: 1.75rem;
  height: 0.25rem;
  border-radius: 999px;
  background: transparent;
  transform: scale(0.75);
  transition: 0.25s;
}
.nav-item.on { color: var(--burgundy); }
.nav-item.on .dot { background: var(--burgundy); transform: scale(1); }

.table-wrap {
  border: 1px solid var(--line);
  background: rgba(30,23,20,0.6);
  border-radius: 2px;
  overflow: hidden;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table-wrap td { padding: 0.75rem; border-bottom: 1px solid rgba(46,36,32,0.8); }
.table-wrap tr:last-child td { border-bottom: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  background: var(--burgundy-deep);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
}
.btn:hover { background: var(--burgundy); }
.fade-in { animation: fadeIn 0.4s ease-out both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Admin demo */
.admin-body {
  background: #0f1115;
  color: #e5e7eb;
  font-family: ui-sans-serif, system-ui, sans-serif;
  margin: 0;
  min-height: 100dvh;
}
.admin-shell { display: flex; min-height: 100dvh; }
.admin-side {
  width: 15rem;
  background: #18181b;
  border-right: 1px solid #27272a;
  padding: 1.25rem 0.75rem;
  flex-shrink: 0;
}
.admin-brand {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 0.75rem 1rem;
  color: #fafafa;
}
.admin-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  color: #a1a1aa;
  font-size: 0.875rem;
  margin-bottom: 0.15rem;
}
.admin-nav a:hover, .admin-nav a.on { background: #27272a; color: #fafafa; }
.admin-main { flex: 1; padding: 1.5rem; overflow: auto; }
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.admin-top h1 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #854d0e;
  color: #fef3c7;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 1rem;
}
.card .label { color: #a1a1aa; font-size: 0.75rem; }
.card .val { font-size: 1.5rem; font-weight: 700; margin-top: 0.25rem; }
.panel {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  overflow: hidden;
}
.panel table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.panel th, .panel td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid #27272a; }
.panel th { color: #a1a1aa; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tag {
  display: inline-block;
  background: #3f1d24;
  color: #fda4af;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  margin-right: 0.2rem;
}
.admin-note {
  margin-top: 1rem;
  color: #a1a1aa;
  font-size: 0.8rem;
  line-height: 1.5;
}
.admin-links { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-links a {
  background: #a51c30;
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}
@media (max-width: 700px) {
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; border-right: 0; border-bottom: 1px solid #27272a; }
}
