:root {
  --ink: #1a1612;
  --ink-soft: #3a3229;
  --paper: #f6efe4;
  --paper-2: #efe4d2;
  --cream: #fbf6ee;
  --amber: #e39b3a;
  --amber-deep: #c47b1e;
  --amber-glow: #f3c27a;
  --line: rgba(26, 22, 18, 0.12);
  --ok: #2f6b3a;
  --bad: #9b2c2c;
  --shadow: 0 18px 50px rgba(26, 22, 18, 0.16);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
}
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 650;
  font-family: inherit;
  font-size: 0.95rem;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn:hover { transform: translateY(-1px); }
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 28px 0 56px;
}
.kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--amber-deep);
  font-weight: 700;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.12; margin: 0 0 12px; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }
.hero-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.hero-float {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(26,22,18,0.86);
  color: var(--cream);
  padding: 14px 16px;
  border-radius: 16px;
  max-width: 240px;
}
.grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.muted { color: var(--ink-soft); }
.price { font-family: var(--serif); font-size: 2rem; }
.section { padding: 28px 0 56px; }
.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--paper-2);
  font-size: 0.78rem;
  font-weight: 650;
}
form label { display: block; font-size: 0.85rem; font-weight: 650; margin: 12px 0 6px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.flash {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3e0b5;
  margin: 12px 0;
}
.flash.bad { background: #f3d0d0; }
.auth-box { width: min(440px, calc(100% - 32px)); margin: 40px auto; }
.dash {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 80px);
}
.side {
  background: var(--ink);
  color: var(--cream);
  padding: 22px 16px;
}
.side a { color: var(--cream); text-decoration: none; display: block; padding: 10px 12px; border-radius: 10px; }
.side a.active, .side a:hover { background: rgba(227,155,58,0.18); }
.main { padding: 24px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--cream); border-radius: 16px; padding: 18px; border: 1px solid var(--line); }
.stat b { font-family: var(--serif); font-size: 2rem; display: block; }
.menu-table { width: 100%; border-collapse: collapse; }
.menu-table th, .menu-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rest-hero {
  min-height: 42vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
}
.rest-hero-inner {
  width: 100%;
  background: linear-gradient(transparent, rgba(26,22,18,0.88));
  color: var(--cream);
  padding: 36px 0 22px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.filters button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
}
.filters button.on { background: var(--ink); color: var(--cream); }
.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.dish h3 { font-size: 1.1rem; margin: 0 0 4px; }
.chat-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: min(360px, calc(100vw - 24px));
}
.chat-toggle {
  margin-left: auto;
  display: flex;
  background: var(--amber);
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.chat-panel {
  display: none;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.chat-panel.open { display: flex; flex-direction: column; height: min(62vh, 520px); }
.chat-log { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.bubble { padding: 10px 12px; border-radius: 14px; max-width: 90%; }
.bubble.bot { background: var(--paper-2); }
.bubble.me { background: var(--ink); color: var(--cream); margin-left: auto; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; }
.check-row { display: flex; gap: 10px; flex-wrap: wrap; }
.check-row label { font-weight: 500; display: flex; gap: 6px; align-items: center; margin: 0; }
.hours-grid { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; }
.qr-box img { width: 220px; background: #fff; padding: 10px; border-radius: 12px; }
.tiny { font-size: 0.82rem; }
.hidden { display: none !important; }
@media (max-width: 860px) {
  .hero, .grid-3, .grid-2, .dash, .stat-row { grid-template-columns: 1fr; }
  .dash { display: block; }
  .side { display: flex; gap: 8px; overflow: auto; }
  .side a { white-space: nowrap; }
}
