/* ==========================================================================
   base.css — layout skeleton shared by all three style previews.
   Structure only: grid, spacing, the menu/hours/visit shapes app.js fills.
   Each style sheet (shophouse / lacquer / street) sets the tokens below and
   adds its own decoration — so the three looks differ in skin, not in bones,
   and whichever one the owner picks plugs into MENU the same way.
   Mobile-first: the base rules are the phone layout; @media adds columns.
   ========================================================================== */

:root {
  /* Tokens — every style sheet overrides these */
  --bg: #fff;
  --ink: #1a1a1a;
  --muted: #666;
  --card: #fff;
  --line: #ddd;
  --accent: #b33;
  --accent-ink: #fff;
  --price: var(--accent);
  --display: Georgia, serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --nav-h: 64px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 56px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  /* Vietnamese stacks two marks on one vowel (ệ, ở) — a little extra leading
     keeps them from colliding with the line above. */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-family: var(--display); font-weight: 400; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- Owner "closed right now" banner (MENU feed) ----- */
.closed-banner { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 10px var(--gutter); font-weight: 600; }

/* ----- Nav ----- */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
}
.nav__brand { text-decoration: none; display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav__links { display: none; gap: 22px; }
.nav__links a { text-decoration: none; font-weight: 500; }
@media (min-width: 820px) { .nav__links { display: flex; } }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;              /* thumb-sized tap target */
  padding: 10px 18px;
  border-radius: var(--radius);
  font: 600 15px/1.2 var(--body);
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--lg { min-height: 52px; padding: 12px 24px; font-size: 17px; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ----- Open-now badge ----- */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #999; }
.status.is-open .dot { background: #2fa84f; box-shadow: 0 0 0 4px rgb(47 168 79 / .2); }
.status.is-closed .dot { background: #c33; }

/* ----- Sections ----- */
.section { padding: 64px 0; }
.section__head { text-align: center; margin-bottom: 32px; }
.section__head h2 { font-size: clamp(30px, 7vw, 46px); }
.section__sub { color: var(--muted); margin-top: 8px; }

/* ----- Story ----- */
.story { display: grid; gap: 28px; align-items: center; }
.story__text p + p { margin-top: 14px; }
@media (min-width: 820px) { .story { grid-template-columns: 1.1fr 1fr; gap: 48px; } }

/* ----- Menu ----- */
.cats {
  position: sticky; top: var(--nav-h); z-index: 10;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px var(--gutter); margin: 0 calc(-1 * var(--gutter)) 24px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; padding: 6px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.menu__cat + .menu__cat { margin-top: 44px; }
.menu__cat-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 18px; }
.menu__cat-title .vi { font-size: clamp(26px, 6vw, 34px); }
.menu__cat-title .en { font: 500 13px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.menu__grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .menu__grid { grid-template-columns: 1fr 1fr; } }
.item { background: var(--card); padding: 16px 18px; border-radius: var(--radius); }
.item__top { display: flex; align-items: baseline; gap: 10px; }
.item__name { font: 700 18px/1.3 var(--body); flex: 0 1 auto; }
.item__leader { flex: 1 1 auto; }
.item__price { font-weight: 700; color: var(--price); white-space: nowrap; margin-left: auto; }
.item__desc { color: var(--muted); font-size: 15px; margin-top: 4px; }
.item__sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.item__sizes span { display: inline-flex; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 14px; border: 1px solid var(--line); }
.item__sizes b, .addon b { color: var(--price); }
.item__addons { margin-top: 8px; font-size: 14px; color: var(--muted); display: grid; gap: 2px; }
.addon { display: flex; justify-content: space-between; gap: 8px; }
.addon__sizes { display: inline-flex; gap: 10px; }
.addon__sizes span { display: inline-flex; gap: 4px; }
.menu__empty { text-align: center; padding: 32px; }
.menu__note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }
.skeleton { height: 92px; border-radius: var(--radius); background: var(--line); opacity: .5; margin-bottom: 14px; }

/* ----- Photo placeholders: clearly slots, never passed off as their food ----- */
.photos { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .photos { grid-template-columns: repeat(4, 1fr); } }
.photo-slot {
  aspect-ratio: 4 / 5;
  display: grid; place-items: center; align-content: center; gap: 6px;
  text-align: center; padding: 12px;
  border: 2px dashed currentColor; border-radius: var(--radius);
  font-size: 14px; opacity: .8;
}
.photo-slot svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.photo-slot b { font-size: 16px; }
.photo-slot--wide { aspect-ratio: 4 / 3; }

/* ----- Hours + Visit ----- */
.twin { display: grid; gap: 20px; }
@media (min-width: 820px) { .twin { grid-template-columns: 1fr 1fr; gap: 28px; } }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; }
.card h2 { font-size: 30px; margin-bottom: 16px; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { font-weight: 700; }
.hours li.is-closed .hours__time { color: var(--muted); }
.hours__time { text-align: right; }
.confirm { display: block; font: italic 500 12px/1.3 var(--body); color: var(--accent); }
.hint { font-size: 14px; color: var(--muted); margin-top: 14px; }
.visit { font-style: normal; display: grid; gap: 12px; }
.visit a { text-decoration: none; display: inline-flex; gap: 10px; align-items: flex-start; }
.visit ul { list-style: none; margin: 0; padding: 0; }

/* ----- Footer ----- */
.footer { padding: 40px var(--gutter) 48px; text-align: center; font-size: 14px; }
.footer__fine { opacity: .8; margin-top: 10px; }

/* Respect the OS "reduce motion" setting everywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
