:root {
  --paper: #FCEEDE;
  --paper-2: #f4e2cc;
  --card: #fff8ef;
  --ink: #5E3F28;
  --ink-2: #7a5a42;
  --ink-3: #9c8068;
  --wine: #7b1e22;
  --wine-2: #5e1418;
  --gold: #a9804a;
  --line: #ecd8bf;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 35, 20, .05), 0 8px 24px -12px rgba(60, 35, 20, .18);
  --bar-h: 118px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  /* subtle paper grain */
  background-image:
    radial-gradient(rgba(120, 90, 60, .045) 1px, transparent 1px),
    radial-gradient(rgba(120, 90, 60, .03) 1px, transparent 1px);
  background-size: 22px 22px, 13px 13px;
  background-position: 0 0, 7px 11px;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  text-align: center;
}
.hero__content { width: 100%; padding: 70px 24px 74px; max-width: 640px; animation: rise .9s .15s both cubic-bezier(.2,.7,.2,1); }
.hero__logo { display: block; width: min(82vw, 520px); height: auto; margin: 0 auto; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__eyebrow {
  margin: 0 auto 20px; max-width: 360px;
  font: 600 11px/1.7 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__title { margin: 0; line-height: 0; }
.hero__rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 22px auto 14px; color: var(--gold); font-size: 12px;
}
.hero__rule span { width: 56px; height: 1px; background: currentColor; opacity: .7; }
.hero__lead {
  margin: 24px auto 0; max-width: 360px;
  font: 600 11px/1.7 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__scroll {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--ink); text-decoration: none;
  font: 600 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase;
}
.hero__scroll svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- Language (hero) ---------- */
.langs {
  position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; z-index: 2;
  display: flex; gap: 2px; padding: 3px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  animation: rise .9s .3s both cubic-bezier(.2,.7,.2,1);
}
.langs__btn {
  border: 0; background: none; color: var(--ink-3);
  padding: 7px 11px; border-radius: 999px;
  font: 700 11px/1 var(--sans); letter-spacing: .12em;
  transition: background .2s, color .2s;
}
.langs__btn:hover { color: var(--ink); }
.langs__btn.is-active { background: var(--ink); color: var(--paper); }

/* ---------- Language (sticky bar) ---------- */
.lang-select {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--ink-2); cursor: pointer;
  transition: border-color .2s;
}
.lang-select:hover, .lang-select:focus-within { border-color: var(--gold); }
.lang-select__code { font: 700 12px/1 var(--sans); letter-spacing: .08em; color: var(--ink); }
.lang-select select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font-size: 16px; /* 16px avoids iOS zoom */
}

/* ---------- Sticky bar ---------- */
main { position: relative; }
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 238, 222, .92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.bar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(60, 35, 20, .5); }
.bar__top {
  max-width: 1180px; margin: 0 auto;
  display: flex; gap: 10px; align-items: center;
  padding: 12px 16px 6px;
}
.switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; flex: 0 0 auto;
}
.switch__btn {
  position: relative; z-index: 1;
  border: 0; background: none;
  padding: 8px 16px; border-radius: 999px;
  font: 600 13px/1 var(--sans); letter-spacing: .02em;
  color: var(--ink-2); transition: color .25s;
}
.switch__btn.is-active { color: #fff8ee; }
.switch__pill {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px); border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 4px 12px -4px rgba(94, 63, 40, .55);
  transition: transform .35s cubic-bezier(.3,.8,.3,1);
}
.switch[data-active="bar"] .switch__pill { transform: translateX(100%); }

.search {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-3);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 137, 75, .15); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font: 500 14px var(--sans); color: var(--ink);
}
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { filter: grayscale(1) opacity(.5); }

.chips {
  max-width: 1180px; margin: 0 auto;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 6px 16px 12px;
  scroll-padding: 0 16px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line); background: transparent;
  padding: 7px 14px; border-radius: 999px;
  font: 600 13px/1 var(--sans); color: var(--ink-2); white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Sections ---------- */
.sections { max-width: 1180px; margin: 0 auto; padding: 8px 16px 0; }
.section { padding-top: 34px; scroll-margin-top: calc(var(--bar-h) + 4px); }
.section__head { text-align: center; margin: 6px 0 22px; }
.section__title {
  margin: 0;
  font: 600 clamp(34px, 7vw, 46px)/1 var(--serif);
  letter-spacing: -.005em;
}
.section__sub {
  margin: 8px 0 0;
  font: 600 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.section__sub::before, .section__sub::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 22px; height: 1px; background: currentColor; margin: 0 10px; opacity: .6;
}

.grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* dish card with photo */
.dish {
  position: relative;
  display: flex; flex-direction: column;
  text-align: left; border: 0; padding: 0;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  animation: fadeUp .6s both cubic-bezier(.2,.7,.2,1);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dish:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(60,35,20,.05), 0 18px 40px -18px rgba(60,35,20,.35); }
.dish__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #f3eee6; }
.dish__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.dish:hover .dish__media img { transform: scale(1.045); }
.dish__badge {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: calc(100% - 24px);
  padding: 6px 10px; border-radius: 999px;
  background: rgba(36, 27, 22, .82); color: #f1dcb2;
  font: 600 11px/1.2 var(--sans); letter-spacing: .02em;
  backdrop-filter: blur(6px);
}
.dish__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.dish__name { margin: 0; font: 600 23px/1.12 var(--serif); }
.dish__desc {
  margin: 0; color: var(--ink-2); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dish__foot {
  margin-top: auto; padding-top: 10px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.dish__weight { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.price { font: 700 22px/1 var(--serif); color: var(--wine); white-space: nowrap; }
.price small { font: 600 11px var(--sans); color: var(--ink-3); letter-spacing: .04em; margin-left: 3px; }

/* mobile: compact horizontal cards */
@media (max-width: 619px) {
  .grid { gap: 12px; }
  .dish:not(.dish--text) { flex-direction: row; align-items: stretch; border-radius: 16px; }
  .dish:not(.dish--text) .dish__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 132px; }
  .dish:not(.dish--text) .dish__body { padding: 12px 14px 12px; gap: 4px; min-width: 0; }
  .dish:not(.dish--text) .dish__name { font-size: 19px; }
  .dish:not(.dish--text) .dish__desc { font-size: 13px; line-height: 1.45; }
  .dish:not(.dish--text) .dish__foot { padding-top: 6px; }
  .dish:not(.dish--text) .price { font-size: 19px; }
  .dish:not(.dish--text) .dish__weight { font-size: 12px; }
  .dish__badge { left: 6px; top: 6px; right: 6px; padding: 4px 7px; font-size: 9.5px; }
  .dish__badge { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.grid + .grid { margin-top: 16px; }
@media (min-width: 980px) { .grid + .grid { margin-top: 22px; } }

/* text-only dish (no photo) */
.dish--text { background: transparent; box-shadow: none; border: 1px solid var(--line); }
.dish--text:hover { background: var(--card); }
.dish--text .dish__body { padding: 18px; }
.dish--text .dish__name { font-size: 21px; }
.tag-nophoto { display: none; }

/* compact list (desserts w/o photo, sauces) */
.list { margin: 22px auto 0; max-width: 720px; padding: 0; list-style: none; }
.list__row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px dashed var(--line);
}
.list__name { font: 600 20px/1.2 var(--serif); }
.list__note { display: block; font: 500 12.5px/1.4 var(--sans); color: var(--ink-3); margin-top: 2px; }
.list__al { font: 600 10.5px var(--sans); color: var(--ink-3); letter-spacing: .04em; margin-left: 4px; }
.list__fill { flex: 1; border-bottom: 1px dotted #c9b89c; transform: translateY(-5px); min-width: 16px; }
.list__vol { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.list__price { font: 700 19px/1 var(--serif); color: var(--wine); white-space: nowrap; min-width: 58px; text-align: right; }
.list__group {
  margin: 26px 0 4px; font: 700 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.list__group:first-child { margin-top: 0; }

/* bar section card */
.bar-card {
  max-width: 760px; margin: 0 auto;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 22px 14px;
}
.bar-card .list { margin: 0; max-width: none; }
.bar-card .list__row:last-child { border-bottom: 0; }

/* allergen chips */
.al { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.al i {
  font-style: normal;
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; border: 1px solid var(--line);
  font: 700 10.5px/1 var(--sans); color: var(--ink-3);
}

.empty { text-align: center; color: var(--ink-3); padding: 60px 16px; font: italic 500 22px var(--serif); }
mark { background: rgba(176, 137, 75, .25); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Allergens ---------- */
.allergens {
  max-width: 760px; margin: 64px auto 0; padding: 30px 22px;
  border-top: 1px solid var(--line);
}
.allergens__title { margin: 0; text-align: center; font: 600 34px/1 var(--serif); }
.allergens__lead { text-align: center; color: var(--ink-2); margin: 10px auto 22px; max-width: 460px; font-size: 14px; }
.allergens__list {
  margin: 0; padding: 0; list-style: none; counter-reset: al;
  display: grid; gap: 10px 22px; grid-template-columns: 1fr;
}
@media (min-width: 620px) { .allergens__list { grid-template-columns: 1fr 1fr; } }
.allergens__list li {
  counter-increment: al; display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.45;
}
.allergens__list li::before {
  content: counter(al);
  flex: 0 0 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font: 700 11px/1 var(--sans);
}
.allergens__note {
  margin: 24px 0 0; padding: 14px 16px; border-radius: 12px;
  background: rgba(123, 30, 34, .07); color: var(--wine-2);
  font-size: 13.5px; font-weight: 500; text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 56px; padding: 44px 20px calc(44px + env(safe-area-inset-bottom));
  background: var(--ink); color: #e9d6bf; text-align: center; font-size: 13px;
}
.footer__logo { display: block; width: min(64vw, 300px); height: auto; margin: 0 auto 28px; }
.footer__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.social {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid rgba(252, 238, 222, .35);
  color: var(--paper); text-decoration: none;
  font: 600 13.5px/1 var(--sans); letter-spacing: .01em;
  transition: background .2s, color .2s, border-color .2s;
}
.social:hover, .social:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.footer__contact {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: 26px;
}
.footer__contact a {
  display: inline-flex; align-items: center; gap: 8px;
  color: #ecd9c3; text-decoration: none; font: 500 14.5px/1.3 var(--sans);
}
.footer__contact a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.footer__contact svg { flex: 0 0 auto; opacity: .85; }

/* ---------- Sheet / modal ---------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0;
  width: 100%; max-width: 560px; max-height: 92svh;
  background: transparent; color: var(--ink);
  overflow: visible;
}
@media (min-width: 700px) { .sheet { margin: auto; } }
.sheet::backdrop { background: rgba(28, 16, 10, .55); backdrop-filter: blur(4px); }
.sheet[open] .sheet__inner { animation: sheetUp .42s cubic-bezier(.2,.8,.2,1); }
.sheet[open]::backdrop { animation: fade .3s ease; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.sheet__inner {
  position: relative; background: var(--card);
  border-radius: 24px 24px 0 0; overflow: auto; max-height: 92svh;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 700px) { .sheet__inner { border-radius: 24px; } }
.sheet__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(255, 252, 246, .92); color: var(--ink);
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.25);
}
.sheet__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sheet__media:empty { height: 54px; }
.sheet__body { padding: 20px 24px 28px; }
.sheet__cat { margin: 0 0 6px; font: 700 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.sheet__title { margin: 0; font: 600 32px/1.05 var(--serif); }
.sheet__desc { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }
.sheet__desc:empty { display: none; }
.sheet__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.sheet__weight { color: var(--ink-3); font-weight: 500; }
.sheet__price small { font: 600 13px var(--sans); color: var(--ink-3); }
.sheet__price { font: 700 30px/1 var(--serif); color: var(--wine); }
.sheet__allergens { margin-top: 18px; display: grid; gap: 7px; }
.sheet__allergens:empty { display: none; }
.sheet__allergens h4 { margin: 0 0 2px; font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.sheet__allergens div { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.sheet__allergens b {
  flex: 0 0 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink); font: 700 10.5px var(--sans);
}

/* ---------- To top ---------- */
.totop {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 15;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 10px 24px -8px rgba(36, 27, 22, .55);
  opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }

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