:root {
  color-scheme: light;
  --paper: #FAF7F0;
  --ink: #1A1614;
  --body: #4A4540;
  --sage: #6B7B5A;
  --line: #E8E0D4;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --latin: "Didot", "Bodoni 72", "Cormorant Garamond", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
button { color: inherit; font: inherit; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, [tabindex] { touch-action: manipulation; }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--sage); outline-offset: 5px; }
button:disabled { cursor: default; opacity: .28; }
[hidden] { display: none !important; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.menu-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  overflow: clip;
  background: var(--paper) url("assets/marble.webp") center / cover;
  --plate-size: min(71vw, 33svh);
}
.menu-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(125deg, rgb(232 224 212 / .04), rgb(255 255 255 / .16) 65%, rgb(255 255 255 / .03));
}
.masthead {
  position: absolute;
  z-index: 20;
  top: max(5.9%, env(safe-area-inset-top));
  left: 8.7%;
  right: 8.1%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.brand h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Didot", "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(44px, 11.6vw, 58px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.02;
}
.brand p { margin: 12px 0 0 2px; font-size: clamp(15px, 4.25vw, 21px); letter-spacing: .3em; white-space: nowrap; }
.category-control { position: relative; margin-top: 17px; }
.category-toggle { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 4px 0 4px 8px; font-size: clamp(16px, 4vw, 20px); white-space: nowrap; }
.category-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--sage); }
.chevron { width: 16px; height: 16px; margin-left: 1px; transition: transform .25s; }
.category-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.category-menu { position: absolute; top: calc(100% + 12px); right: -8px; width: 166px; padding: 10px 8px; border: 1px solid var(--line); background: rgb(250 247 240 / .98); }
.category-option { display: flex; width: 100%; min-height: 44px; padding: 10px 13px; align-items: center; justify-content: space-between; font-size: 16px; text-align: left; letter-spacing: .1em; }
.category-option:hover, .category-option:focus-visible { background: #F2EDE4; }
.category-option[aria-checked="true"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }

.gallery { position: absolute; top: 22%; height: 47%; left: 0; width: 100%; outline-offset: -6px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.gallery.is-dragging { cursor: grabbing; }
.plates { position: absolute; inset: 0; }
.plate-slot { position: absolute; left: 50%; top: 0; width: var(--plate-size); aspect-ratio: 1; padding: 0; will-change: transform; touch-action: pan-y; cursor: inherit; }
.plate-slot.is-active { cursor: zoom-in; }
.plate-float { position: relative; width: 100%; height: 100%; transform: translateY(0); }
.dish-image { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.plate-shadow { position: absolute; left: -3%; top: 96%; width: 86%; height: 12%; border-radius: 50%; background: radial-gradient(ellipse, rgb(42 37 32 / .25), rgb(42 37 32 / .12) 35%, rgb(42 37 32 / 0) 72%); filter: blur(8px); transform: translate(-4%, 11%); pointer-events: none; }
.plate-slot.is-active .plate-float { animation: levitate 5.6s ease-in-out infinite; }
.plate-slot.is-active .plate-shadow { animation: breathe-shadow 5.6s ease-in-out infinite; }
.menu-scene.is-interacting .plate-float, .menu-scene.is-interacting .plate-shadow, .menu-scene.has-overlay .plate-float, .menu-scene.has-overlay .plate-shadow { animation-play-state: paused; }
@keyframes levitate { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes breathe-shadow { 0%, 100% { opacity: .95; transform: translate(-4%, 11%) scale(1); } 50% { opacity: .72; transform: translate(-4%, 14%) scale(.94); } }

.dish-details { position: absolute; top: 71.6%; left: 7%; right: 7%; text-align: center; transition: opacity .18s ease, transform .25s ease; }
.dish-details.is-changing { opacity: .15; transform: translateY(3px); }
.dish-details h2 { margin: 0; font-size: clamp(30px, 8vw, 39px); line-height: 1.5; font-weight: 400; letter-spacing: .075em; }
.dish-details p { margin: 8px 0 0; font-size: clamp(13px, 3.65vw, 17px); font-weight: 400; line-height: 1.8; letter-spacing: .06em; text-wrap: balance; }
.pager { position: absolute; left: 50%; bottom: max(7.9%, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 18px; align-items: center; }
.arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 8px; }
.arrow svg { width: 18px; height: 26px; transition: transform .25s; }
.arrow:first-child:hover:not(:disabled) svg { transform: translateX(-3px); }
.arrow:last-child:hover:not(:disabled) svg { transform: translateX(3px); }
.page-count { display: flex; gap: 8px; align-items: baseline; min-width: 75px; justify-content: center; font-family: var(--latin); font-size: 22px; color: var(--body); font-variant-numeric: tabular-nums; }
.page-slash { font-size: 23px; }
.empty-state { position: absolute; left: 10%; right: 10%; top: 42%; text-align: center; color: var(--body); }
.empty-state p { font-size: 14px; line-height: 1.9; letter-spacing: .1em; }
.empty-state .empty-heading { font-size: 28px; color: var(--ink); letter-spacing: .15em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscript { position: absolute; bottom: 16%; left: 10%; right: 10%; text-align: center; }

.lightbox { position: fixed; inset: 0; margin: 0; border: 0; padding: 40px 24px; width: 100%; max-width: none; height: 100%; max-height: none; color: var(--ink); background: var(--paper) url("assets/marble.webp") center / cover; }
.lightbox::backdrop { background: rgb(26 22 20 / .18); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-close { position: fixed; z-index: 1; right: max(24px, env(safe-area-inset-right)); top: max(24px, env(safe-area-inset-top)); display: grid; place-items: center; width: 44px; height: 44px; }
.lightbox-close svg { width: 24px; height: 24px; }
.lightbox-content { width: min(100%, 760px); text-align: center; }
.lightbox-content img { width: min(100%, 65svh); height: auto; display: block; margin: 0 auto; object-fit: contain; }
.lightbox-content h2 { margin: 28px 0 10px; font-size: clamp(26px, 5vw, 36px); font-weight: 400; letter-spacing: .1em; }
.lightbox-content p { font-size: 15px; line-height: 1.8; letter-spacing: .05em; }

@media (min-width: 700px) {
  .menu-scene { --plate-size: min(42vw, 48svh, 500px); min-height: 700px; }
  .masthead { left: 6.5%; right: 6.5%; top: 6.5%; }
  .brand h1 { font-size: clamp(58px, 6.2vw, 84px); }
  .brand p { font-size: 18px; margin-top: 17px; letter-spacing: .4em; }
  .category-control { margin-top: 14px; }
  .category-toggle { font-size: 20px; gap: 13px; }
  .dish-details { top: 77%; }
  .dish-details h2 { font-size: 36px; }
  .dish-details p { font-size: 16px; }
  .pager { bottom: 4.7%; gap: 24px; }
  .page-count { font-size: 24px; }
}
@media (max-width: 359px) {
  .brand h1 { font-size: 40px; }
  .brand p { font-size: 14px; letter-spacing: .22em; }
  .category-toggle { gap: 7px; font-size: 16px; }
  .category-control { margin-top: 10px; }
  .dish-details h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
