:root {
  --bg: #f6f1e7;
  --card: #fffdf8;
  --ink: #241c12;
  --muted: #7a6a55;
  --line: #e4d9c6;
  --accent: #8a4b14;
  --accent-soft: #f1e2cc;
  --ok: #2f6b3a;
  --warn: #9a3412;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130f;
    --card: #211c16;
    --ink: #f3ebde;
    --muted: #b3a38c;
    --line: #3a3127;
    --accent: #e0a35c;
    --accent-soft: #3a2a18;
    --ok: #7cc28a;
    --warn: #f59e7b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.brand { font-weight: 700; letter-spacing: -0.02em; }
main { max-width: 640px; margin: 0 auto; padding: 12px 16px 48px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--accent-soft); padding: 4px; border-radius: 12px; margin: 4px 0 12px; }
.tabs a { text-align: center; padding: 9px 0; border-radius: 9px; font-weight: 600; color: var(--muted); }
.tabs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.search { width: 100%; font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); margin-bottom: 12px; }
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.list { list-style: none; margin: 0; padding: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.bar-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 8px; }
.bar-item .name { font-weight: 700; font-size: 17px; }
.sub { color: var(--muted); font-size: 14px; }
.count { color: var(--accent); font-weight: 700; white-space: nowrap; font-size: 15px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; margin-left: 6px; vertical-align: 2px; }
/* 메뉴판 */
.menu { padding: 4px 0; }
.menu-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px dashed var(--line); }
.menu-row:last-child { border-bottom: 0; }
.thumb { width: 44px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); font-size: 18px; font-weight: 700; }
.mname { font-weight: 650; line-height: 1.3; }
.men { color: var(--muted); font-size: 13px; line-height: 1.3; margin-top: 2px; }
.price { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.price small { font-weight: 500; color: var(--muted); font-size: 12px; margin-right: 2px; }
.head { margin: 8px 0 14px; }
.head h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -0.02em; line-height: 1.25; }
.head p { margin: 2px 0; }
.back { display: inline-block; color: var(--muted); font-size: 14px; padding: 4px 0 8px; }
.section-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 18px 4px 8px; letter-spacing: 0.02em; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 14px 16px; margin: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; }
.hero { width: 100%; max-height: 360px; object-fit: contain; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.err { color: var(--warn); }
