:root {
  --brand: #5E1914;
  --on-brand: #FFF6EC;
  --accent: #E8B04A;
  --paper: #FFFFFF;
  --ink: #221A17;
  --muted: #76675F;
  --line: #ECE3DB;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[dir="rtl"] {
  --display: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --body: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.ico { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Home: hero ---------- */
.hero {
  background: var(--brand);
  color: var(--on-brand);
  min-height: 78vh;
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(env(safe-area-inset-top, 0px) + 32px) 24px 32px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* discreet oven-glow, the only decorative element */
  content: "";
  position: absolute;
  inset-inline-end: -30%;
  top: -20%;
  width: 90vw;
  height: 90vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 560px; width: 100%; margin: 0 auto; }

.logo {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--on-brand);
  color: var(--brand);
  font-family: var(--display);
  font-size: 28px;
  overflow: hidden;
  margin-bottom: 28px;
}
.logo img { width: 100%; height: 100%; object-fit: cover; }

.name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 13vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-wrap: balance;
}
html[dir="rtl"] .name { letter-spacing: 0; line-height: 1.15; font-weight: 600; }
.tagline {
  margin: 0 0 32px;
  font-size: 17px;
  max-width: 34ch;
  opacity: 0.82;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--on-brand);
  color: var(--brand);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease;
}
.cta:active { transform: scale(0.98); }
.cta .ico { width: 22px; height: 22px; }

.quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.quick a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--on-brand) 28%, transparent);
  text-decoration: none;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.quick a:active { background: color-mix(in srgb, var(--on-brand) 10%, transparent); }

/* ---------- Home: info ---------- */
.info { max-width: 560px; margin: 0 auto; padding: 8px 24px 16px; }
.row {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row > .ico { color: var(--brand); margin-top: 3px; }
.row h2 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.row p { margin: 0; color: var(--muted); }
.row a { color: var(--ink); text-underline-offset: 3px; }
.hours { margin: 0; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.hours li span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.socials a {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
}
.socials a:active { background: var(--line); }

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 24px calc(env(safe-area-inset-bottom, 0px) + 28px);
}

@media (min-width: 900px) {
  .hero { min-height: 70vh; padding-bottom: 56px; }
  .cta, .quick { max-width: 420px; }
}

/* ---------- Menu page ---------- */
.menu-page { background: #3A322E; min-height: 100vh; }
.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 8px 8px;
  background: var(--brand);
  color: var(--on-brand);
}
.bar-title {
  flex: 1;
  text-align: center;
  font-family: var(--display);
  font-size: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.icon-btn:active { background: color-mix(in srgb, var(--on-brand) 14%, transparent); }
.icon-btn .ico { width: 24px; height: 24px; }
html[dir="rtl"] .icon-btn.back .ico { transform: scaleX(-1); }

.pages {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 8px calc(env(safe-area-inset-bottom, 0px) + 24px);
  display: flex; flex-direction: column; gap: 10px;
}
.pages canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.status {
  color: #EDE4DC;
  text-align: center;
  padding: 72px 24px;
}
.status .spinner {
  width: 28px; height: 28px; margin: 0 auto 16px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.status a {
  display: inline-block; margin-top: 16px;
  padding: 12px 20px; border-radius: 12px;
  background: var(--on-brand); color: var(--brand);
  text-decoration: none; font-weight: 600;
}
.hint {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  transform: translateX(-50%);
  background: rgba(0,0,0,.72); color: #fff;
  font-size: 14px; padding: 8px 14px; border-radius: 999px;
  pointer-events: none;
  transition: opacity .4s ease;
}
.hint.hide { opacity: 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
