/* Colors and fonts come from content.js (theme). These are fallbacks. */
:root {
  --bg: #fbf6ee;
  --surface: #f3ebdd;
  --text: #221a14;
  --muted: #6f6257;
  --accent: #b8432b;
  --accent-text: #ffffff;
  --hero-shade: rgba(20, 12, 6, .62);
  --line: color-mix(in srgb, var(--text) 14%, transparent);
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
.is-dark { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.link { text-decoration: none; border-bottom: 1px solid currentColor; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-text);
  font: 700 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 45%, transparent); }
.btn--ghost:hover { border-color: currentColor; }
.btn--small { min-height: 40px; padding: 0 1.1em; font-size: .85rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* Demo banner */
.demo-banner { background: var(--text); color: var(--bg); text-align: center; font-size: .82rem; font-weight: 600; padding: 7px var(--gutter); }
.demo-banner a { color: inherit; font-weight: 800; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .2s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav__logo { font: 1.35rem/1.1 var(--font-head); text-decoration: none; margin-right: auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .nav__logo { font-size: 1.1rem; } .nav__cta { font-size: .78rem; padding: 0 .9em; } }
.nav__links { display: flex; gap: 22px; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav__links { display: none; } .nav__inner { height: 60px; } }

/* Hero */
.hero { position: relative; min-height: min(82svh, 760px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; background: #2a2018; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--hero-shade) 0%, color-mix(in srgb, var(--hero-shade) 55%, transparent) 45%, transparent 80%); }
.hero__content { padding-top: 120px; padding-bottom: clamp(36px, 7vh, 72px); }
.hero__kicker { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; opacity: .92; }
.hero__name { font-size: clamp(2.8rem, 9vw, 6rem); margin-bottom: .2em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero__tagline { font-size: clamp(1.05rem, 2.4vw, 1.35rem); max-width: 36ch; margin-bottom: 1.1rem; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; margin-bottom: 1.3rem; padding: 5px 14px 5px 10px; border-radius: 999px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa3a8; }
.status.is-open::before { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.25); }

/* Highlights */
.highlights { background: var(--text); color: var(--bg); }
.highlights__list { list-style: none; margin: 0; padding: 16px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; font-weight: 700; font-size: .92rem; text-align: center; }
.highlights__list li::before { content: "★ "; color: var(--accent); }

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--alt { background: var(--surface); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 1.4rem; }
.section__head h2 { margin: 0; }
.section__head p { margin: 0; }

/* Menu */
.menu-tabs { position: sticky; top: 68px; z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 12px; margin-bottom: 1.2rem; background: var(--bg); scrollbar-width: none; }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.menu-tab:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .menu-tabs { top: 60px; } }
.menu { columns: 2 380px; column-gap: clamp(32px, 6vw, 72px); }
.menu__section { break-inside: avoid; margin-bottom: 2.4rem; scroll-margin-top: 140px; }
.menu__section h3 { font-size: 1.6rem; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-bottom: 1rem; }
.menu__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dish__top { display: flex; align-items: baseline; gap: 10px; }
.dish__name { font-weight: 700; }
.dish__leader { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 20px; }
.dish__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.dish__desc { margin: 2px 0 0; color: var(--muted); font-size: .93rem; }

/* Press */
.press { padding: clamp(40px, 7vw, 72px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.press__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 48px; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 .5rem; font: clamp(1.25rem, 2.6vw, 1.6rem)/1.3 var(--font-head); }
.quote figcaption { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.quote figcaption a { text-decoration: none; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.about__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__owner { font-weight: 700; color: var(--accent); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about__img { aspect-ratio: 4 / 3; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery__item { margin: 0; overflow: hidden; border-radius: 10px; aspect-ratio: 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: start; }
.visit__address { font: 1.4rem/1.35 var(--font-head); max-width: 24ch; }
.hours h3 { margin-bottom: .8rem; }
.hours__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours__table th, .hours__table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours__table td { text-align: right; }
.hours__table tr.is-today th, .hours__table tr.is-today td { font-weight: 800; color: var(--accent); }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

/* Catering form */
.catering { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 32px 64px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--surface); border-radius: 18px; padding: clamp(18px, 3.5vw, 30px); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 500 1rem var(--font-body); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form__thanks { margin: 0; font-weight: 700; color: var(--accent); }
@media (max-width: 760px) { .catering, .form { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer__name { font: 1.6rem var(--font-head); margin: 0; }
.footer p { margin: 0; }
.social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); }
.social a:hover { color: var(--accent); border-color: var(--accent); }
.social svg { width: 20px; height: 20px; }

/* Phone action bar */
.actionbar { display: none; }
@media (max-width: 640px) {
  .actionbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--text); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
  .actionbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 9px; color: var(--bg); text-decoration: none; font-size: .78rem; font-weight: 700; }
  .actionbar a:last-child { background: var(--accent); color: var(--accent-text); }
  .actionbar svg { width: 22px; height: 22px; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
