/* Saigon Bistro v5. Taken from the restaurant itself (docs/design/real-brand.md):
   the storefront wall and its orange channel-letter sign, the crimson round emblem,
   the red and blue "Phở Vietnamese Cuisine" lightbox, the yellow frame of the printed menu
   and the red number discs on the window posters. */
:root {
  --wall: #f1efe9;
  --wall-2: #e4e0d6;
  --paper: #fffdf9;
  --ink: #1f1d1e;
  --ink-soft: #4d4945;
  --sign: #d4552a;
  --sign-text: #a8401c;
  --crimson: #a3172f;
  --crimson-press: #86112a;
  --blue: #1d3f93;
  --yellow: #eedd1a;
  --poster: #f4ec9f;
  --gold: #f2b223;
  --night: #1f1d1e;
  --night-2: #2b2a2c;
  --night-line: #46423f;
  --on-night: #f1efe9;
  --on-night-soft: #c9c3bb;
  --serif: 'Roboto Serif', Georgia, serif;
  --cond: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --text: 'Be Vietnam Pro', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 20px;
  --dock-h: 0px;
  /* fine stucco grain, like the storefront wall */
  --stucco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .17  0 0 0 0 .13  0 0 0 -.42 .25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--wall);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--dock-h);
}
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; border-radius: 4px; }
.visit :focus-visible, .footer :focus-visible, .dock :focus-visible { outline-color: var(--gold); }

.skip { position: fixed; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: var(--paper); padding: 12px 16px; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn small { font-weight: 500; font-size: 14px; opacity: .85; }
.btn-order { background: var(--crimson); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink-line { border-color: var(--on-night-soft); color: var(--on-night); }
@media (hover: hover) and (pointer: fine) {
  .btn-order:hover { background: var(--crimson-press); }
  .btn-line:hover { background: var(--ink); color: var(--paper); }
  .btn-ink:hover { background: var(--crimson); }
  .btn-ink-line:hover { border-color: var(--on-night); background: var(--on-night); color: var(--ink); }
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px var(--gutter);
  background: var(--wall);
  border-bottom: 1px solid var(--wall-2);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 34px; width: auto; }
.topnav { display: none; }
.topbar .brand { transition: opacity 180ms ease, transform 220ms var(--ease-out); }
.at-top .topbar .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; }
.topbar-call {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--crimson);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.topbar-order { display: none; }
@media (max-width: 999px) {
  .topbar { position: fixed; left: 0; right: 0; transition: transform 220ms var(--ease-out); }
  .at-top .topbar { transform: translateY(-100%); }
  .hero { padding-top: 26px; }
}

/* Hero: the storefront wall with the sign on it */
.hero {
  position: relative;
  padding: 26px var(--gutter) 30px;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  background: var(--stucco), var(--wall);
}
.hero h1 { font-weight: inherit; }
/* The recreated storefront sign. The drop shadow stands in for the sun shadow the letters cast on the stucco. */
.hero-sign {
  width: 100%;
  height: auto;
  filter: drop-shadow(3px 10px 5px rgba(60, 48, 36, .16));
}
.hero-line {
  display: block;
  margin-top: 22px;
  max-width: 30ch;
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

/* Three dishes set out on the counter. */
.hero-spread { position: relative; aspect-ratio: 1 / .78; margin-inline: -6px -24px; }
.hero-spread img { position: absolute; height: auto; filter: drop-shadow(0 16px 18px rgba(40, 30, 20, .3)); }
.spread-pho { width: 58%; left: 2%; top: 0; }
.spread-boba { width: 27%; right: 9%; top: 1%; }
.spread-banh-mi { width: 96%; left: 0; bottom: 4%; }
/* Price tag styled like the shop's red and blue lightbox. */
.price-card {
  position: absolute;
  left: 8px;
  bottom: 0;
  display: inline-flex;
  align-items: stretch;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  color: #fff;
  box-shadow: -2px 4px 0 var(--night-2), 0 8px 18px rgba(0, 0, 0, .18);
}
.price-card span { padding: 9px 12px 8px; background: var(--crimson); }
.price-card b { padding: 9px 14px 8px; background: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }

.hero-actions { display: grid; gap: 10px; }
.hero-actions .btn { width: 100%; }

.hero-facts {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 29, 30, .16);
}
.hero-facts div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline; }
.hero-facts dt { font-family: var(--cond); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; color: var(--crimson); }
.hero-facts dd { color: var(--ink); }
.hero-facts a { color: var(--crimson); font-weight: 600; text-underline-offset: 3px; margin-left: 4px; white-space: nowrap; }

.placeholder-tag {
  display: inline-block;
  padding: 1px 7px;
  border: 1.5px dashed currentColor;
  border-radius: 4px;
  font-family: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  vertical-align: 2px;
  margin-right: 6px;
}
.hero .placeholder-tag { color: var(--crimson); }

/* Shared section heads, set in the sign's wide serif */
.section-head { display: grid; gap: 8px; margin-bottom: 24px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 820;
  font-stretch: 112%;
  font-variation-settings: 'opsz' 72;
  text-transform: uppercase;
  font-size: clamp(36px, 10vw, 72px);
  line-height: .95;
  letter-spacing: .01em;
}
.section-head p { max-width: 46ch; font-size: 17px; }

/* What to order */
.good { background: var(--wall); padding: 52px 0 56px; border-top: 1px solid var(--wall-2); }
.good .section-head h2 { color: var(--ink); }
.good .section-head p { color: var(--ink-soft); }
.good-grid { display: grid; gap: 14px; }

.dish { border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 1px 0 rgba(31, 29, 30, .08), 0 0 0 1px rgba(31, 29, 30, .07); }
.dish-link { display: grid; grid-template-columns: 42% 1fr; height: 100%; text-decoration: none; color: inherit; }
.dish-link:active { transform: scale(0.99); }
.dish-link { transition: transform 140ms var(--ease-out); }
.dish-media { display: grid; place-items: center; padding: 12px; min-height: 150px; background: var(--poster); }
.dish-media img { max-height: 150px; width: auto; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .22)); transition: transform 300ms var(--ease-out); }
.dish-photo { background: #0b0605; padding: 0; overflow: hidden; }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.dish-text { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 16px 14px; }
.dish h3 { font-size: 18px; font-weight: 700; line-height: 1.25; }
.dish .price { display: block; margin-top: 2px; font-family: var(--cond); font-size: 20px; font-weight: 700; color: var(--crimson); }
.dish p { font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
/* Menu numbers in red discs, as on the window posters */
.no {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  margin-right: 6px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-family: var(--cond);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 2px;
  font-variant-numeric: tabular-nums;
}
.more { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--crimson); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .dish-link:hover .dish-media img { transform: scale(1.04); }
  .dish-link:hover .more { text-decoration-color: var(--sign); }
}

.dish-feature .dish-link { grid-template-columns: 1fr; }
.dish-feature .dish-media { min-height: 0; }
.dish-feature .dish-media img { max-height: none; width: 100%; }
.dish-feature h3 { font-size: 22px; }
.dish-feature .price { display: inline; margin-left: 8px; font-size: 24px; }
.dish-feature .dish-text { padding: 16px 18px 18px; }

.dish-quote { background: var(--crimson); color: #fff; }
.dish-quote .dish-link { grid-template-columns: 1fr; }
.dish-quote blockquote { margin: 0; padding: 22px 18px 4px; }
.dish-quote blockquote p { font-family: var(--serif); font-weight: 760; font-stretch: 108%; font-size: 27px; line-height: 1.12; color: #fff; }
.dish-quote blockquote footer { margin-top: 10px; font-size: 13px; color: #f6d3d9; }
.dish-quote .dish-text { padding: 12px 18px 18px; }
.dish-quote .dish-text p { color: #fbe4e8; }
.dish-quote .price { display: inline; margin-left: 8px; color: var(--gold); }
.dish-quote .no { background: var(--paper); color: var(--crimson); }
.dish-quote .more { color: #fff; text-decoration-color: var(--gold); }

.dish-note { padding: 20px 18px; border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); }
.dish-note > p:first-child { font-family: var(--serif); font-weight: 760; font-stretch: 108%; font-size: 24px; line-height: 1.15; }
.dish-note footer { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.dish-note-also { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(31, 29, 30, .18); font-size: 15px; color: var(--ink); }

/* Menu: their printed menu, a white sheet inside a yellow frame */
.menu { background: var(--yellow); padding: 14px 0; }
.menu .wrap { width: min(100% - 28px, 1200px); background: var(--paper); padding: 34px 20px 36px; box-shadow: 0 1px 2px rgba(60, 50, 0, .18); }
.menu .section-head h2 { color: var(--ink); padding-bottom: 10px; border-bottom: 4px solid var(--ink); }
.menu .section-head p { color: var(--ink-soft); }

.menu-tools { display: grid; gap: 14px; margin-bottom: 18px; }
.search input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.search input::placeholder { color: #77716b; }
.search input:focus-visible { outline: 3px solid var(--crimson); outline-offset: 2px; }

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: -20px;
  padding: 3px 20px;
  scroll-padding-inline: 20px;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none;
  min-height: 44px;
  padding: 6px 16px 5px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-family: var(--cond);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}
.tabs button:active { transform: scale(0.97); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .tabs button[aria-pressed="false"]:hover { background: var(--poster); }
}

.menu-status { font-size: 14px; color: var(--ink-soft); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.menu-list { display: grid; }
.menu-item { padding: 16px 0 15px; border-bottom: 1px solid rgba(31, 29, 30, .14); }
.menu-item .row { display: flex; align-items: baseline; gap: 10px; }
.menu-item h3 { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.menu-item .leader { flex: 1; min-width: 16px; border-bottom: 2px dotted #a7a097; transform: translateY(-4px); }
.menu-item .price { font-family: var(--serif); font-weight: 760; font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.menu-item p { margin-top: 3px; font-size: 15px; color: var(--ink-soft); max-width: 52ch; }
.menu-item .cat { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--crimson); font-weight: 600; }
.empty-menu { padding: 24px 0; color: var(--ink-soft); }

.menu-foot { margin-top: 26px; display: grid; gap: 12px; color: var(--ink-soft); }
.menu-foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.menu-foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--crimson); font-weight: 700; text-underline-offset: 4px; }

/* Hours & location: the storefront glass at night */
.visit { background: var(--night); color: var(--on-night); padding: 52px 0 60px; }
.visit .section-head h2 { color: var(--sign); }
.visit-grid { display: grid; gap: 14px; }
.visit-block { background: var(--wall); color: var(--ink); border-radius: 12px; padding: 20px 18px; display: grid; gap: 8px; align-content: start; }
.visit-block h3 { font-family: var(--cond); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: .02em; color: var(--crimson); display: flex; align-items: center; gap: 10px; }
.visit-block h3 .placeholder-tag { margin: 0; color: var(--crimson); }
.visit-block .big { font-size: 21px; font-weight: 600; line-height: 1.3; }
.visit-block .btn { margin-top: 8px; justify-self: start; }
.phone { text-decoration: underline; text-decoration-color: var(--crimson); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hours { border: 2px solid rgba(31, 29, 30, .4); }
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 9px 0; text-align: left; border-bottom: 1px solid rgba(31, 29, 30, .12); font-size: 16px; }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--ink-soft); }
.hours-note { font-size: 14px; color: var(--ink-soft); }

.order-row { display: grid; gap: 10px; margin-top: 24px; }

/* Footer */
.footer { background: #171617; color: var(--on-night-soft); padding: 28px 0 32px; font-size: 14px; border-top: 1px solid var(--night-line); }
.footer .wrap { display: grid; gap: 14px; justify-items: start; }
.footer a:not(.footer-brand) { color: var(--on-night); }
.footer-brand { display: inline-flex; min-height: 44px; align-items: center; }
.footer-brand img { height: 36px; width: auto; }

/* Mobile quick actions */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(31, 29, 30, .96);
  border-top: 1px solid var(--night-line);
}
.dock .btn { min-height: 50px; }
.dock .btn-line { border-color: var(--on-night-soft); color: var(--on-night); }
.dock { transition: transform 220ms var(--ease-out), visibility 0s; }
.hero-actions-visible .dock { transform: translateY(110%); visibility: hidden; transition: transform 200ms var(--ease-out), visibility 0s 200ms; }
.dock .btn-line { padding-inline: 26px; }
body { --dock-h: 72px; }

/* Small phones */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .dish-link { grid-template-columns: 38% 1fr; }
  .hero-facts div { grid-template-columns: 1fr; gap: 2px; }
  .menu .wrap { padding-inline: 16px; }
  .tabs { margin-inline: -16px; padding-inline: 16px; }
}

/* Tablet */
@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
  .hero-board { grid-column: 1 / -1; }
  .hero-spread { grid-column: 2; grid-row: 2 / span 2; margin: 0 -40px 0 0; }
  .hero-actions { grid-column: 1; grid-row: 2; align-self: end; }
  .hero-facts { grid-column: 1; grid-row: 3; align-self: start; }
  .good-grid { grid-template-columns: 1fr 1fr; }
  .dish-feature { grid-column: 1 / -1; }
  .dish-feature .dish-link { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .dish-feature .dish-media { height: 100%; }
  .dish-link { grid-template-columns: 1fr; }
  .dish-media { height: 230px; min-height: 0; }
  .dish-media img { max-height: 196px; }
  .dish-feature .dish-media { height: 100%; min-height: 300px; }
  .menu { padding: 28px 0; }
  .menu .wrap { width: min(100% - 56px, 1200px); padding: 44px 36px 48px; }
  .tabs { margin-inline: 0; padding-inline: 3px; flex-wrap: wrap; overflow: visible; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .hours { grid-column: 1 / -1; }
  .order-row { display: flex; flex-wrap: wrap; }
  .dish-note { grid-column: 1 / -1; }
  .menu-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

/* Desktop */
@media (min-width: 1000px) {
  :root { --gutter: 48px; }
  body { --dock-h: 0px; }
  .dock { display: none; }
  .topbar { padding-block: 10px; gap: 28px; }
  .brand img { height: 40px; }
  .topnav { display: flex; gap: 26px; margin-left: auto; }
  .topnav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
  .topnav a:hover { color: var(--crimson); }
  .topbar-call { margin-left: 0; }
  .topbar-order { display: inline-flex; min-height: 44px; padding: 8px 18px; font-size: 15px; }

  .hero {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 56px;
    row-gap: 26px;
    padding: 64px max(var(--gutter), (100% - 1200px) / 2) 72px;
  }
  .hero-board { grid-column: 1 / -1; grid-row: 1; }
  .hero-sign { max-width: 1040px; }
  .hero-line { margin-top: 30px; font-size: 24px; max-width: 34ch; }
  .hero-spread { grid-column: 2; grid-row: 2 / span 2; align-self: center; margin: -40px -24px 0 0; }
  .price-card { font-size: 26px; left: 24px; bottom: 0; }
  .hero-actions { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-self: start; margin-top: 8px; }
  .hero-actions .btn { width: auto; }
  .hero-facts { grid-column: 1; grid-row: 3; max-width: 520px; }

  .good, .visit { padding: 88px 0 96px; }
  .menu { padding: 44px 0; }
  .menu .wrap { padding: 60px 56px 64px; }
  .section-head { grid-template-columns: auto 1fr; align-items: end; gap: 40px; margin-bottom: 36px; }
  .section-head p { justify-self: end; text-align: right; max-width: 40ch; }
  .menu .section-head { grid-template-columns: 1fr; gap: 12px; }
  .menu .section-head p { justify-self: start; text-align: left; }

  .good-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; }
  .dish-feature { grid-column: 1 / span 4; }
  .dish-quote { grid-column: 5 / span 2; }
  .good-grid > .dish:nth-child(3) { grid-column: 1 / span 2; }
  .good-grid > .dish:nth-child(4) { grid-column: 3 / span 2; }
  .good-grid > .dish:nth-child(5) { grid-column: 5 / span 2; }
  .dish-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
  .dish-note footer { margin-top: 0; }
  .dish-note-also { margin: 0 0 0 auto; padding: 0; border: 0; }
  .dish-quote blockquote p { font-size: 32px; }
  .dish-quote blockquote { padding: 28px 24px 4px; }
  .dish-quote .dish-text { padding: 14px 24px 24px; }

  .menu-tools { grid-template-columns: 1fr minmax(260px, 340px); align-items: center; }
  .menu-tools .search { order: 2; }
  .tabs { margin: 0; padding: 3px; }

  .visit-grid { grid-template-columns: 1fr 1fr 1.2fr; }
  .hours { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
  .btn:active, .tabs button:active, .dish-link:active { transform: none; }
}
