: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, breathing slowly like embers — the page's one ambient signature */
  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;
  animation: emberBreathe 8s ease-in-out infinite;
}
@keyframes emberBreathe {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}
.hero-inner { position: relative; max-width: 560px; width: 100%; margin: 0 auto; }

/* Hero entrance: a single choreographed "plating" sequence on load —
   logo blooms in, then name/tagline/actions settle in one after another. */
@keyframes logoBloom {
  0% { opacity: 0; transform: scale(0.7); }
  65% { opacity: 1; transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes taglineRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 0.82; transform: translateY(0); }
}

.logo {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--on-brand);
  color: var(--brand);
  font-family: var(--display);
  font-size: 42px;
  overflow: hidden;
  margin-bottom: 28px;
  animation: logoBloom .7s cubic-bezier(.22, 1, .36, 1) both;
}
.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;
  animation: heroRise .6s ease-out .12s both;
}
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;
  animation: taglineRise .6s ease-out .22s both;
}

.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 0 28px;
  border-radius: 18px;
  background: var(--on-brand);
  color: var(--brand);
  font-family: var(--body);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform .15s ease, box-shadow .15s ease;
  animation: heroRise .6s ease-out .34s both;
}
.cta:active { transform: scale(0.98); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.45); }
.cta::after {
  /* one-time gleam, timed to sweep just as the button finishes settling in */
  content: "";
  position: absolute;
  inset-block: 0;
  width: 45%;
  background: linear-gradient(115deg, transparent, color-mix(in srgb, var(--brand) 16%, transparent), transparent);
  transform: translateX(-180%);
  animation: ctaGleam 1.1s ease-in-out 1s 1 both;
  pointer-events: none;
}
@keyframes ctaGleam {
  from { transform: translateX(-180%); }
  to { transform: translateX(220%); }
}
.cta .ico {
  width: 26px; height: 26px;
  padding: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  animation: heroRise .6s ease-out .46s both;
}
.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;
  transition: transform .15s ease, background-color .15s ease;
}
.quick a:active { background: color-mix(in srgb, var(--on-brand) 10%, transparent); transform: scale(0.96); }

.hero-socials {
  animation: heroRise .6s ease-out .56s both;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.hero-socials a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--on-brand) 28%, transparent);
  color: var(--on-brand);
  transition: transform .15s ease, background-color .15s ease;
}
.hero-socials a:active { background: color-mix(in srgb, var(--on-brand) 10%, transparent); transform: scale(0.92); }

/* ---------- 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);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.row.is-visible { opacity: 1; transform: translateY(0); }
.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; }

.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, .hero-socials { max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ---------- 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; }
}
