:root {
  --fg: #000;
  --muted: #6e6e6e;
  --line: #ececec;
  --soft: #f4f4f4;
  --radius: 14px;
  --nav-h: 64px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--fg);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
body.lock { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: #000; color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

/* Header */
.top { display: flex; justify-content: center; padding: 8px 8px 0; }
.brand { display: block; width: 100%; min-height: 48px; text-decoration: none; text-align: center; }
.brand img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
.wordmark { font-weight: 600; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 40px; outline: none; }

/* Category chips */
.chips {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px; padding: 12px 16px; background: #fff;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.chip[aria-current="true"] { background: #000; border-color: #000; color: #fff; }

/* Grid */
.sec { padding-top: 12px; }
.sec + .sec { padding-top: 28px; }
.sec-h { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.card { display: block; text-decoration: none; border-radius: var(--radius); }
.ph { aspect-ratio: 1; border-radius: var(--radius); background: var(--soft); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin: 10px 0 1px; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; }
.price { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .card .ph img { transition: opacity .2s; } .card:hover .ph img { opacity: .92; } }

/* Loading skeleton */
.sk .ph { animation: pulse 1.4s ease-in-out infinite; }
.sk-line { height: 12px; margin-top: 12px; width: 70%; border-radius: 6px; background: var(--soft); }
.sk-line.short { width: 35%; margin-top: 8px; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .sk .ph { animation: none; } }

/* Pages */
.page { max-width: 560px; margin: 0 auto; padding-top: 16px; }
.h { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 8px; }
.lead { font-size: 18px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.state { text-align: center; padding: 72px 16px; }
.state p { color: var(--muted); margin: 0 0 20px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block p { margin: 0; }
.pre { white-space: pre-line; }
.icon-lg { width: 44px; height: 44px; margin: 32px auto 16px; fill: none; stroke: #000; stroke-width: 1.4; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 380px; min-height: 52px; padding: 0 24px; margin-top: 20px;
  border: 1px solid #000; border-radius: 999px; background: #000; color: #fff;
  font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn.ghost { background: #fff; color: #000; border-color: #d4d4d4; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.rows { list-style: none; margin: 8px 0 0; padding: 0; }
.rows a, .rows button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 60px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none;
  font-size: 17px; font-weight: 500; text-decoration: none; text-align: left; cursor: pointer;
}
.rows .end { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 400; }
.rows svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Our Promise footer */
.promise { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.promise-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.promise-grid li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.promise-grid svg { width: 26px; height: 26px; margin-bottom: 6px; fill: none; stroke: #000; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.promise-grid strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.promise-grid span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.privacy { margin-top: 28px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.privacy h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.privacy p { margin: 0; font-size: 13px; color: var(--muted); }
.about { margin: 20px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }
.fine { margin: 20px 0 8px; font-size: 12px; line-height: 1.7; color: var(--muted); text-align: center; }

/* Meal detail */
.sheet { position: fixed; inset: 0; z-index: 30; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
.sheet-bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center;
  padding: 8px 8px; padding-top: max(8px, env(safe-area-inset-top)); background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 14px 0 8px;
  border: 0; border-radius: 999px; background: none; font-size: 16px; font-weight: 500; cursor: pointer;
}
.back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sheet-in { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
.gallery-wrap { position: relative; }
.gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius); background: var(--soft); aspect-ratio: 1;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; }
.dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 0; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: #d0d0d0; transition: background .2s; }
.dots span.on { background: #000; }
.nav-btn {
  display: none; position: absolute; top: calc(50% - 28px); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); cursor: pointer; align-items: center; justify-content: center;
}
.nav-btn svg { width: 20px; height: 20px; fill: none; stroke: #000; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn.prev { left: 12px; } .nav-btn.next { right: 12px; }
@media (hover: hover) { .nav-btn { display: inline-flex; } }
.detail { padding-top: 20px; }
.detail h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.d-price { font-size: 18px; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.desc { margin: 18px 0 0; font-size: 16px; line-height: 1.6; white-space: pre-line; }
.ingr-box { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.ingr-box p { margin: 0; white-space: pre-line; line-height: 1.6; }

/* Bottom navigation */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--nav-h); color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: .01em;
}
.tabs a[aria-current="page"] { color: #000; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.note {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: #000; color: #fff; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.note.show { opacity: 1; }

/* Computers and tablets: show the menu inside a phone frame, at phone size. */
@media (min-width: 600px) {
  html { background: #ececec; }
  body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 0; background: #ececec; }
  .phone {
    position: relative; transform: translateZ(0); /* fixed children (nav, meal view) stay inside the frame */
    width: 390px; height: min(844px, calc(100vh - 48px)); overflow: hidden;
    border: 12px solid #111; border-radius: 56px; background: #fff;
  }
  .phone::before { /* Dynamic Island */
    content: ""; position: absolute; top: 10px; left: 50%; z-index: 60; transform: translateX(-50%);
    width: 112px; height: 32px; border-radius: 20px; background: #111;
  }
  .phone::after { /* status-bar strip so scrolling content passes under it, not under the island */
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 55; background: #fff;
  }
  .chips { top: 46px; }
  .screen { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: var(--nav-h); }
  .screen::-webkit-scrollbar { display: none; }
  .top { padding-top: 50px; }
  .sheet-bar { padding-top: 50px; }
  .tabs { padding-bottom: 14px; }
  .sheet { scrollbar-width: none; }
}
