/* Public customer menu. Same palette as the cafe apps. */
:root {
  --paper: #f6f3ee; --surface: #fff; --surface-2: #faf8f5; --line: #e8e2d9; --line-strong: #d6cdc0;
  --ink: #1f1a15; --ink-2: #5b5249; --ink-3: #8a8178;
  --brand: #5c3a1e; --brand-600: #74492a; --brand-50: #f6efe7; --brand-100: #ecdfcf;
  --accent: #d9822b; --accent-50: #fdf3e7; --bad: #b42318; --bad-50: #fdecea;
  --radius: 14px; --radius-ctl: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15110e; --surface: #1e1915; --surface-2: #241e19; --line: #322a23; --line-strong: #43382e;
    --ink: #f4ede4; --ink-2: #c9bdb0; --ink-3: #95887b;
    --brand: #e0a46a; --brand-600: #ebb784; --brand-50: #2a2018; --brand-100: #3a2b1f;
    --accent: #e9a04f; --accent-50: #2d2115; --bad: #f08a80; --bad-50: #2e1a17;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 132px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
.tnum { font-variant-numeric: tabular-nums; }

/* Header */
.hero { background: #5c3a1e; color: #fff; padding: calc(22px + env(safe-area-inset-top)) 16px 22px; }
.hero-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.logo { width: 56px; height: 56px; border-radius: 14px; background: #fff; padding: 4px; flex: none; }
.hero h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.where { margin: 4px 0 0; font-size: 14px; color: #ecdfcf; }
.where a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }

/* Sticky search + filters + categories */
.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.bar-in { max-width: 760px; margin: 0 auto; padding: 10px 16px 6px; display: flex; gap: 8px; }
.search { position: relative; flex: 1; min-width: 0; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; height: 44px; padding: 0 12px 0 38px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-ctl); background: var(--surface); outline: none; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-50); }
.kinds { display: flex; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); padding: 3px; flex: none; }
.kinds button { border: 0; background: none; padding: 0 12px; height: 36px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.kinds button[aria-pressed="true"] { background: var(--brand); color: var(--surface); }
@media (prefers-color-scheme: dark) { .kinds button[aria-pressed="true"] { color: #1e1915; } }

.cats { max-width: 760px; margin: 0 auto; display: flex; gap: 6px; overflow-x: auto; padding: 4px 16px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.cats a.on { background: var(--brand-100); border-color: var(--brand-100); color: var(--brand); }

/* Menu */
.menu { max-width: 760px; margin: 0 auto; padding: 8px 16px 24px; min-height: 50vh; }
.sec { margin-top: 18px; }
.sec h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 8px; }
.sec h2::first-letter { text-transform: uppercase; }
.sec h2 small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; }
.item + .item { border-top: 1px solid var(--line); }
.item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.name { flex: 1; min-width: 0; font-weight: 550; }
.name::first-letter { text-transform: uppercase; }
.kind { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--accent); }
.kind.drink { background: #2b6cb0; }
.price { flex: none; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.price small { font-weight: 600; font-size: 12px; color: var(--ink-3); margin-right: 2px; }
.item.out .name, .item.out .price { color: var(--ink-3); }
.item.out .price { text-decoration: line-through; }
.tag { flex: none; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--bad); background: var(--bad-50); }
mark { background: var(--accent-50); color: inherit; border-radius: 3px; padding: 0 1px; }

.empty { text-align: center; padding: 48px 16px; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.empty button { margin-top: 12px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-ctl); padding: 8px 14px; font-weight: 600; cursor: pointer; }
.skel { height: 160px; margin-top: 18px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: sh 1.2s linear infinite; border: 1px solid var(--line); }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } html { scroll-behavior: auto; } }

.foot { max-width: 760px; margin: 0 auto; padding: 8px 16px calc(28px + env(safe-area-inset-bottom)); text-align: center; font-size: 13px; color: var(--ink-3); }
.foot p { margin: 4px 0; }
.credit { color: var(--ink-3); text-decoration: none; }
.credit:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .hero h1 { font-size: 30px; }
  .list { display: grid; grid-template-columns: 1fr 1fr; }
  .item + .item { border-top: 0; }
  .item { border-top: 1px solid var(--line); }
  .item:nth-child(-n+2) { border-top: 0; }
  .item:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (max-width: 380px) {
  .kinds button { padding: 0 9px; }
}
