/* Song Hee Take Out — single-red-ink-on-blush, after the paper takeout menu.
   Type is deliberately quiet: system sans for words, system mono for every
   number/price/phone. The signature is the dotted leader row. */

:root {
  color-scheme: light;

  --paper: #fcf5f2;      /* blush white — a nod to the pink clapboard, not cream */
  --paper-2: #f6e9e3;    /* tinted panel */
  --ink: #201a19;        /* warm near-black — readable dish names */
  --muted: #7c6f6a;      /* secondary brown-grey */
  --red: #cf1e2b;        /* the menu ink */
  --red-deep: #97121d;   /* headings, pressed states */
  --rule: #e2c8bf;       /* leader dots + hairlines */

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1140px;
  --bar-h: 58px;
  --radius: 4px;         /* the paper menu has square corners; keep it tight */
}

* { box-sizing: border-box; }

/* the filter toggles the `hidden` attribute; author `display` rules on rows
   would otherwise defeat it, so make hidden always win */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  /* room for the mobile call bar so it never covers content */
  padding-bottom: env(safe-area-inset-bottom);
}

img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.1; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 8px; top: -60px;
  background: var(--red); color: #fff;
  padding: .6rem .9rem; border-radius: var(--radius);
  font-weight: 700; z-index: 100;
  transition: top 140ms ease;
}
.skip:focus { top: 8px; }

/* ---------- top bar ---------- */

.bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: var(--bar-h);
  padding: .5rem clamp(1rem, 5vw, 3rem);
  /* solid, not translucent: backdrop-filter on a sticky bar locks momentum
     scrolling partway down the page on iOS Safari */
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.bar-brand {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; font-weight: 800; letter-spacing: -.01em;
  color: var(--ink); font-size: 1.15rem;
}
.bar-mark { color: var(--red); font-size: 1.3rem; line-height: 1; }
.bar-call {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--red); color: #fff;
  text-decoration: none; font-weight: 700;
  padding: .55rem .9rem; border-radius: var(--radius);
  font-family: var(--mono); font-size: .95rem;
  white-space: nowrap;
  transition: background 140ms ease;
}
.bar-call:hover { background: var(--red-deep); }

/* ---------- hero / masthead ---------- */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: .82rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--red-deep);
}

.wordmark {
  font-size: clamp(3rem, 9.5vw, 5.4rem);
  font-weight: 800; letter-spacing: -.03em;
  text-transform: uppercase; line-height: .9;
  color: var(--ink);
}
.wordmark-to {
  display: block; color: var(--red);
  font-size: .32em; letter-spacing: .42em;
  font-weight: 700; margin-top: .5em; padding-left: .1em;
}

.tagline {
  margin: 1rem 0 0;
  font-style: italic; color: var(--red-deep);
  font-size: 1.15rem;
}
.lede {
  margin: .75rem 0 1.6rem;
  color: var(--muted); max-width: 34ch;
}

.phone-block { margin: 0 0 1.6rem; }
.phone-big {
  display: inline-block;
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  letter-spacing: -.02em; color: var(--red);
  text-decoration: none; line-height: 1;
}
.phone-big:hover { color: var(--red-deep); }
.phone-actions {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: .9rem;
}

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 46px; padding: .55rem 1.1rem;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary {
  background: var(--red); border-color: var(--red); color: #fff;
}
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }

/* leader-dot facts (same device as the menu rows) */
.facts { list-style: none; margin: 0; padding: 0; }
.facts--stack { display: grid; gap: .1rem; }
.fact {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .3rem 0;
}
.fact-k {
  font-family: var(--mono); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--red-deep); white-space: nowrap; font-weight: 600;
}
.fact-v { color: var(--ink); }
.fact-v a { color: var(--red); text-underline-offset: 2px; }

/* the shared leader-dot spacer */
.dots {
  flex: 1 1 auto;
  align-self: flex-end;
  border-bottom: 2px dotted var(--rule);
  transform: translateY(-.32em);
  min-width: 1.25rem;
  margin: 0 .15rem;
}

.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; height: auto;
  border: 6px solid #fff;
  outline: 1.5px solid var(--rule);
  box-shadow: 0 22px 50px -24px rgba(60, 20, 15, .5);
  border-radius: 2px;
}
.hero-photo figcaption {
  margin-top: .7rem;
  font-family: var(--mono); font-size: .8rem;
  color: var(--muted); text-align: right;
}

/* ---------- 囍 divider ---------- */
.divider {
  max-width: var(--wrap); margin: clamp(1.5rem, 4vw, 3rem) auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  display: flex; align-items: center; gap: 1rem; color: var(--rule);
}
.divider::before, .divider::after {
  content: ""; height: 1px; background: var(--rule); flex: 1;
}
.divider span { color: var(--red); font-size: 1.3rem; }

/* ---------- menu toolbar (search + section chips) ---------- */

.toolbar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 5vw, 3rem) 0;
  scroll-margin-top: calc(var(--bar-h) + 8px);
}
.toolbar-top {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: .5rem 1rem; margin-bottom: 1rem;
}
.toolbar-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--red-deep); font-weight: 800; letter-spacing: -.01em;
}
.toolbar-note { margin: 0; color: var(--muted); font-size: .9rem; }

.searchwrap { position: relative; }
.search-ico {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 1.2rem; pointer-events: none;
}
.search {
  width: 100%; min-height: 52px;
  padding: .7rem 2.8rem;
  font-family: var(--sans); font-size: 1.05rem; color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--rule); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
}
.search::placeholder { color: #a99b95; }
.search:focus-visible { outline: 3px solid var(--red); outline-offset: 0; border-color: var(--red); }
.search-clear {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--paper-2); color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.search-clear:hover { background: var(--rule); }
/* kill the native search decorations for a consistent look */
.search::-webkit-search-decoration,
.search::-webkit-search-cancel-button { -webkit-appearance: none; }

.chips {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem;
  scrollbar-width: none;
  padding-bottom: .4rem;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: .4rem .8rem; border-radius: 100px;
  border: 1.5px solid var(--rule); background: #fff;
  color: var(--ink); text-decoration: none;
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.no-results {
  max-width: var(--wrap); margin: 1.5rem auto 0;
  padding: 1.2rem clamp(1rem, 5vw, 3rem);
  color: var(--muted);
}
.no-results strong { color: var(--ink); }
.no-results em { color: var(--red); font-style: normal; font-family: var(--mono); }

/* ---------- sections ---------- */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1rem, 5vw, 3rem);
  scroll-margin-top: calc(var(--bar-h) + 8px);
}
.section--tint { background: var(--paper-2); max-width: none; }
.section--tint > * { max-width: var(--wrap); margin-inline: auto; }

.section-head { margin-bottom: 1.4rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--red-deep); font-weight: 800; letter-spacing: -.01em;
}
.section-head p { margin: .4rem 0 0; color: var(--muted); max-width: 60ch; }

/* ---------- à la carte: paper-menu column flow ---------- */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}
.menu-grid--single { grid-template-columns: minmax(0, 460px); }

.block { scroll-margin-top: calc(var(--bar-h) + 8px); }
.block-title {
  font-size: 1.15rem; color: var(--red-deep);
  font-weight: 700; letter-spacing: .01em;
  padding-bottom: .4rem; margin-bottom: .5rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.rows { list-style: none; margin: 0; padding: 0; }
/* bottom-align so the leader dots + price always land on the dish's last line,
   even when a long name wraps to two lines */
.row {
  display: flex; align-items: flex-end; gap: .5rem;
  padding: .34rem 0;
}
.row-name { color: var(--ink); min-width: 0; }
.row-price {
  font-family: var(--mono); font-weight: 600;
  color: var(--red); white-space: nowrap;
}

.tag-spicy {
  display: inline-block; vertical-align: baseline;
  font-family: var(--mono); font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--red); border: 1px solid var(--red);
  border-radius: 3px; padding: .05em .35em; margin-left: .15em;
}

/* ---------- combos: numbered chits (you order by number) ---------- */

.chit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .8rem;
}
.chit {
  background: #fff; border: 1.5px solid var(--rule);
  border-radius: var(--radius); padding: .9rem 1rem 1rem;
}
.chit-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .6rem; padding-bottom: .5rem; margin-bottom: .5rem;
  border-bottom: 1px dashed var(--rule);
}
.chit-no {
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem;
  color: #fff; background: var(--red);
  padding: .1em .5em; border-radius: 3px; letter-spacing: -.02em;
}
.chit-price { font-family: var(--mono); font-weight: 700; color: var(--red-deep); }
.chit-items { list-style: none; margin: 0; padding: 0; color: var(--ink); }
.chit-items li { padding: .12rem 0; font-size: .95rem; }

/* ---------- family dinners ---------- */

.dinner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.dinner {
  background: #fff; border: 1.5px solid var(--rule);
  border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem;
}
.dinner-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .8rem; padding-bottom: .6rem; margin-bottom: .6rem;
  border-bottom: 2px solid var(--red);
}
.dinner-head h3 { font-size: 1.1rem; color: var(--red-deep); }
.dinner-price {
  font-family: var(--mono); font-weight: 700; font-size: 1.15rem; color: var(--red);
}
.dinner-items { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.dinner-items li { padding: .14rem 0; }
.dinner-items li::before { content: "· "; color: var(--red); }

/* ---------- house specialties ---------- */

.special-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem 2.2rem;
}
.special {
  padding-bottom: 1rem; border-bottom: 1px solid var(--rule);
}
.special-line { display: flex; align-items: flex-end; gap: .5rem; }
.special-line .row-name { font-weight: 600; }
.special-desc { margin: .35rem 0 0; color: var(--muted); font-size: .93rem; max-width: 52ch; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.4rem;
  align-items: stretch;
}
.contact-card {
  background: #fff; border: 1.5px solid var(--rule);
  border-radius: var(--radius); padding: 1.4rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem;
}
.contact-card .phone-actions { margin-top: 0; }
.map {
  width: 100%; min-height: 320px; height: 100%;
  border: 0; border-radius: var(--radius);
  outline: 1.5px solid var(--rule);
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink); color: var(--paper);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 5vw, 3rem);
  /* clear the mobile call bar */
  padding-bottom: calc(2rem + 76px);
}
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: .35rem; }
.footer-brand { margin: 0; font-weight: 800; font-size: 1.2rem; }
.footer-brand span { color: var(--red); }
.footer-meta { margin: 0; color: #d9c7c0; }
.footer-meta a { color: #fff; font-family: var(--mono); }
.footer-since { margin: .3rem 0 0; color: #9c8880; font-style: italic; font-size: .9rem; }

/* ---------- persistent mobile call bar ---------- */

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none;
  align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem clamp(1rem, 5vw, 1.5rem);
  padding-bottom: calc(.85rem + env(safe-area-inset-bottom));
  background: var(--red); color: #fff; text-decoration: none;
  box-shadow: 0 -10px 30px -12px rgba(60, 20, 15, .55);
}
.callbar-label { font-weight: 800; display: inline-flex; align-items: center; gap: .5rem; }
.callbar-num { font-family: var(--mono); font-weight: 700; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }        /* photo first on phones */
  .hero-photo figcaption { text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
  .map { min-height: 280px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .bar-call { padding: .5rem .7rem; font-size: .82rem; }
  .callbar { display: flex; }        /* thumb-reach call action */
  .special-grid { gap: 1rem; }
  .chips { flex-wrap: nowrap; overflow-x: auto; }  /* scroll on phones */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
