/* Self-hosted Google Fonts, latin + vietnamese subsets only */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/be-vietnam-pro-400-vietnamese-5a9d7a98de93efa6704c53238f29d4fa517c69516de692f6414374761e74d2fe.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/be-vietnam-pro-400-latin-cedb778df9bfb9155ad6c9414f90e8b101d1079cab2a05043ad0efa94bbff6d6.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/be-vietnam-pro-600-vietnamese-0936d3dabc27ca4e8ec2431fb03673fc11c3d1f15096ad5975fff1e06f01adff.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/be-vietnam-pro-600-latin-dea708971786819796b24da8300634d451942b938c398d591306101c05014225.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/be-vietnam-pro-700-vietnamese-c0a52a2fde6e1f2872c0b4f39a798e2af169789540083480ec346f4e74bd70bb.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/be-vietnam-pro-700-latin-55cbb2d674a2f5410b0f07ed7c8a4acc6742c8855dad612a115a6ea7f10e15e3.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/bricolage-grotesque-800-vietnamese-3869ab06a25da3257b6cac0f0b178fa624dbb0b577d070a6ee8d878eada11a74.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/bricolage-grotesque-800-latin-1349c22eeb8a4814715a140ab9593381408983676ba0b0be34848c3de27aaec7.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Brand tokens — see docs/redesign/04-brand.md.
   Red = things you can press. Gold = ratings / value. Everything else is warm neutral. */
:root {
  --bg: #FFFFFF;
  --surface: #F7F4F1;
  --line: #E8E2DC;
  --ink: #221E1B;
  --muted: #6A625B;
  --accent: #B8321A;
  --accent-ink: #FFFFFF;
  --accent-soft: #FBECE7;
  --gold: #E8B23A;
  --gold-ink: #221E1B;
  --gold-soft: #FCF3DC;
  --gold-text: #8A6100;
  --star: #B38200;
  --shadow: 0 6px 20px rgba(34, 30, 27, .08);

  /* Brand surfaces: chili red bands (header, hero) and a deep chili-brown footer */
  --brand: #B8321A;
  --on-brand: #FFF6EC;
  --on-brand-muted: #F7D9CF;
  --brand-gold: #FFE29A;
  --brand-deep: #2B1410;
  --field: #FFFFFF;

  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;

  --header-h: 56px;
  --radius: 12px;
  --gutter: 16px;
  --max: 1200px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #141210;
  --surface: #1E1B18;
  --line: #2F2A26;
  --ink: #F3EFEA;
  --muted: #A79E95;
  --accent: #F2735A;
  --accent-ink: #1A0E0A;
  --accent-soft: #3B1C14;
  --gold: #F0B93A;
  --gold-ink: #1A1408;
  --gold-soft: #33280F;
  --gold-text: #F0B93A;
  --star: #F0B93A;
  --shadow: 0 6px 20px rgba(0, 0, 0, .4);
  --brand: #5A1E12;
  --brand-gold: #FFD66B;
  --brand-deep: #0D0908;
  --field: #2A1712;
  color-scheme: dark;
}

@media (min-width: 1024px) {
  :root { --header-h: 64px; --gutter: 32px; }
}
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 56px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }
@media (min-width: 1024px) { h1 { font-size: 2.25rem; } }

p { margin: 0 0 .75em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
/* --header-h includes the 4px red stripe and 1px bottom border, so sticky bars below line up */
.site-header__inner { display: flex; align-items: center; gap: 12px; height: calc(var(--header-h) - 5px); }
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo__mark { width: 34px; height: 34px; }
.logo__text { display: none; font: 800 1.15rem/1 var(--font-display); white-space: nowrap; letter-spacing: -.01em; }
.logo__text em { font-style: normal; color: var(--accent); }
.site-footer .logo__text em { color: var(--brand-gold); }
.site-search {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  border-radius: 10px; background: var(--surface);
  color: var(--muted);
}
.site-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font-size: .9375rem; }
.site-search input::placeholder { color: var(--muted); }
.site-nav { display: none; gap: 20px; font-weight: 500; font-size: .9375rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-header .theme-toggle { display: none; }

@media (min-width: 1024px) {
  .site-header__inner { gap: 24px; }
  .logo__text { display: inline; }
  .site-search { max-width: 440px; height: 44px; }
  .site-nav { display: flex; }
  .site-header .theme-toggle { display: grid; margin-left: auto; }
}

/* Breadcrumb */
.crumbs { font-size: .8125rem; color: var(--muted); padding-block: 12px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }

/* Sections */
.section { padding-block: 24px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__head a { color: var(--accent); font-weight: 600; font-size: .9375rem; }

/* Footer */
.site-footer { margin-top: 48px; background: var(--brand-deep); color: var(--on-brand); font-size: .9375rem; --logo-sticks: var(--on-brand); --logo-star: var(--brand-gold); }
.site-footer__grid { display: grid; gap: 28px; padding-block: 36px 24px; grid-template-columns: minmax(0, 1fr); }
.site-footer h2 { font: 600 .75rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-gold); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--brand-gold); }
.logo--full .logo__text { display: inline; }
.site-footer__about { margin-top: 12px; max-width: 42ch; color: var(--on-brand-muted); }
.site-footer__note { font-size: .8125rem; color: var(--on-brand-muted); opacity: .8; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding-block: 16px 28px; border-top: 1px solid rgba(255, 246, 236, .15); font-size: .8125rem; color: var(--on-brand-muted); }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Mobile bottom action bar */
.action-bar {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; gap: 8px; align-items: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg); border-top: 1px solid var(--line); box-shadow: var(--shadow);
}
.action-bar__info { flex: 1; min-width: 0; font-size: .8125rem; line-height: 1.3; }
.action-bar__info strong { display: block; font-size: 1rem; }
@media (min-width: 1024px) { .action-bar { display: none; } }
/* Icons (inline SVG sprite in the layout) */
.icon { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 10px;
  font: 600 .9375rem var(--font-body); white-space: nowrap; cursor: pointer;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { filter: brightness(.94); }
.btn--ghost { background: var(--accent-soft); color: var(--accent); }
.btn--ghost:hover { filter: brightness(.97); }
.btn--line { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: .8125rem; border-radius: 8px; }

.theme-toggle {
  width: 40px; height: 40px; place-items: center; display: grid;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); cursor: pointer;
}
.theme-toggle .icon { width: 18px; height: 18px; }
.site-footer .theme-toggle { background: transparent; color: var(--on-brand); border-color: rgba(255, 246, 236, .35); }
.theme-toggle .icon--sun, :root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font-size: .875rem; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active, .chip:has(input:checked) { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

/* Rating */
.rating { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rating .icon { color: var(--star); fill: var(--star); stroke: none; }
.rating b { color: var(--ink); }

.score {
  display: grid; justify-items: center; gap: 6px; flex-shrink: 0;
  min-width: 92px; padding: 12px 12px 10px; border-radius: 12px;
  background: var(--gold-soft); color: var(--ink);
}
.score b { font: 800 2rem/1 var(--font-display); }
.score b small { font: 600 .8125rem var(--font-body); color: var(--muted); margin-left: 1px; }

/* Star bar: grey stars with a gold overlay clipped to the rating */
.stars {
  position: relative; display: inline-block; font-size: .875rem; line-height: 1; letter-spacing: 1px;
  color: var(--line);
}
.stars::before {
  content: "★★★★★"; position: absolute; inset: 0; width: var(--pct); overflow: hidden; white-space: nowrap;
  color: var(--star);
}

/* Delivery app badge: colour only on the small logo square */
.app { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .8125rem; white-space: nowrap; }
.app__logo { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font: 800 .625rem/1 var(--font-body); color: #fff; }
.app__logo--shopee { background: #EE4D2D; }
.app__logo--grab { background: #00B14F; }
.app__logo--gofood, .app__logo--gojek { background: #01A94A; }
.app__logo--be { background: #FEC418; color: #221E1B; }
.app__logo--baemin { background: #3AC5C9; }
.app__logo--loship { background: #EA001C; }

.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: .8125rem; font-weight: 600; }
.dot-sep::before { content: "·"; margin-inline: 6px; color: var(--muted); }

/* Images: fixed boxes so the page never jumps */
.thumb { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Restaurant card (vertical) */
.cards { display: grid; gap: 20px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; } }
.card { display: block; min-width: 0; }
.card .thumb { aspect-ratio: 4 / 3; }
.card h3, .row h3 { text-wrap: pretty; }
.card h3 { font: 600 .9375rem/1.35 var(--font-body); margin: 8px 0 2px; }
.card__meta { font-size: .8125rem; color: var(--muted); }
.card:hover h3 { color: var(--accent); }

/* Restaurant row (horizontal list) */
.rows { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.row .thumb { width: 96px; height: 96px; }
.row h3 { font: 600 1rem/1.35 var(--font-body); margin-bottom: 2px; }
.row__meta { font-size: .8125rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.row__addr { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.row:hover h3 { color: var(--accent); }

/* Pagination */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding-block: 24px; }
.pager a, .pager span {
  min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: .9375rem;
}
.pager [aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager span { border-color: transparent; color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* Empty state */
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto 12px; }

/* Prose (AI article, static pages) */
.prose { max-width: 68ch; line-height: 1.7; }
.prose h2, .prose h3 { margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose a { color: var(--accent); text-decoration: underline; }
.row__apps { margin-top: 6px; }
/*
 * Global styles, loaded on every page. Page-specific styles live in
 * restaurant.css / listing.css / static.css and are linked per view.
 *





 */
