/* ============================================================
   Fernalee Restaurant 華麗酒家
   Design system — derived from the shopfront logo:
   a red brush-script ARCH over a jade rule.
   The arch is the structural motif of the whole site.
   ============================================================ */

:root {
  /* Brand — sampled from logo.pdf */
  --ink:          #231F20;   /* logo black       15.25:1 on paper */
  --red-display:  #EF2E31;   /* logo red — LARGE/DECORATIVE ONLY (3.85:1) */
  --red:          #C81E21;   /* action red        5.36:1 on paper */
  --jade-rule:    #00A991;   /* logo jade — rules & ornament only (2.77:1) */
  --jade:         #04705F;   /* jade for text — 5.63:1 on paper, 5.12:1 on the
                                banded background. #00806E was AA on paper but
                                only 4.14:1 on the band, so it was darkened. */

  --paper:        #FAF7F2;   /* warm off-white */
  --paper-deep:   #F2ECE2;   /* banded sections */
  --card:         #FFFFFF;
  --muted:        #5A5352;   /* secondary text    7.03:1 */
  --line:         #E2DACE;

  /* Type */
  --display: "Fraunces", Georgia, serif;
  --body:    "Karla", system-ui, -apple-system, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;
  --han:     "Noto Serif SC", var(--display), serif;

  /* Spacing rhythm — 4/8 scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px;

  --measure: 68ch;
  --shell: 1180px;
  --arch: 50% 50% 0 0 / 34% 34% 0 0;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  /* faint paper grain, pure CSS */
  background-image:
    radial-gradient(circle at 20% 12%, rgba(0,169,145,.05), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(239,46,49,.045), transparent 46%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* visible focus everywhere — never removed */
:focus-visible {
  outline: 3px solid var(--jade);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4);
  z-index: 100; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; top: 0; }

/* ---------- type scale ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; letter-spacing: -.005em; }
p  { margin: 0 0 var(--s-3); max-width: var(--measure); }

.eyebrow {
  font: 400 .72rem/1 var(--mono);
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--jade); margin: 0 0 var(--s-3);
}
.han { font-family: var(--han); font-weight: 500; }

/* The Chinese name as a second line under an English heading.
   Sized in em so it stays proportional as the h1 clamps between
   phone and desktop. nowrap stops 華麗 / 酒家 splitting across lines —
   four characters should always read as one unit. */
.title-han {
  display: block;
  font-family: var(--han);
  font-weight: 500;
  font-size: .42em;
  letter-spacing: .2em;
  line-height: 1.3;
  color: var(--jade);
  white-space: nowrap;
  margin-top: var(--s-3);
}
.lede { font-size: 1.15rem; color: var(--muted); }

/* ---------- the arch: the signature element ---------- */
.arch {
  border-radius: var(--arch);
  overflow: hidden;
}
/* a jade hairline arc used as a section ornament */
.arc-rule {
  width: min(360px, 62%);
  aspect-ratio: 2 / 1;
  border: 1.5px solid var(--jade-rule);
  border-bottom: 0;
  border-radius: 100% 100% 0 0 / 100% 100% 0 0;
  margin: 0 auto;
}
.arc-rule--tight { width: 150px; margin-block: var(--s-5) 0; }

/* ---------- header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: var(--s-3) 0; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: inherit; }
.brand img { width: 116px; }
.brand__txt { display: none; }
@media (min-width: 900px) { .brand__txt { display: block; } }
.brand__name {
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: -.01em; line-height: 1.1;
}
.brand__sub { font: 400 .68rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--jade); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav a {
  display: inline-block; padding: 10px 13px; min-height: 44px;
  font: 500 .93rem/1.4 var(--body); color: var(--ink);
  text-decoration: none; border-radius: 4px; position: relative;
  transition: color .18s ease, background-color .18s ease;
}
.nav a:hover { background: var(--paper-deep); }
.nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 6px;
  height: 2px; background: var(--red-display); border-radius: 2px;
}
/* phone CTA in header */
.tel-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  background: var(--red); color: #fff; text-decoration: none;
  border-radius: 999px; font: 700 .95rem/1 var(--body);
  letter-spacing: .01em; white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease;
}
.tel-btn:hover { background: #A81719; color: #fff; transform: translateY(-1px); }
/* EVERY phone and fax number on the site uses this — one class, one look.
   Karla bold (the body face), matching the "Call 08 8384 2288" button.
   Deliberately NOT the mono face: mono is for menu item numbers and prices,
   where column alignment matters. Phone numbers are read, not scanned down
   a column, and mono's wide tracking made them sprawl. */
.num {
  font-family: var(--body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;   /* never split "08 8384 2288" across two lines */
}

/* mobile nav toggle */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--card); border-radius: 6px; cursor: pointer;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--s-2) var(--s-3) var(--s-4);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .masthead__in { position: relative; }
  .header-tel { display: none; }
}

/* ---------- hero ----------
   The photo sits BEHIND the arch rather than replacing it: the brand still
   leads, but food is the first thing the eye lands on. The overlay is what
   makes the headline readable — see .hero__veil. */
.hero {
  padding: var(--s-7) 0 var(--s-6);
  text-align: center;
  position: relative;
  isolation: isolate;          /* keeps the veil behind content, not the page */
}
/* A montage of the restaurant's own dish photos, tiled 4x2. It sits almost
   entirely behind .hero__veil, so what reads is colour and texture rather
   than any single dish — which is why small images are enough. */
.hero__bg {
  position: absolute; inset: 0;
  z-index: -2;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
/* Portrait phones: fewer, taller tiles so each dish is still legible shape. */
@media (max-width: 720px) {
  .hero__bg { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); }
}
/* Warm veil: paper at the edges, heavier in the middle where the text is.
   Without this the headline sits on a busy photo and fails contrast. */
.hero__veil {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(250,247,242,.90) 0%,
      rgba(250,247,242,.80) 45%,
      rgba(250,247,242,.94) 100%);
}
@supports (backdrop-filter: blur(2px)) {
  .hero__veil { backdrop-filter: blur(2px) saturate(.9); }
}
.hero__arch {
  width: min(560px, 100%); margin: 0 auto var(--s-5);
  background: var(--card);
  border: 1.5px solid var(--jade-rule);
  border-radius: var(--arch);
  padding: var(--s-6) var(--s-5) var(--s-5);
  box-shadow: 0 1px 0 rgba(35,31,32,.04), 0 18px 40px -28px rgba(35,31,32,.28);
}
.hero__arch img { width: min(400px, 88%); margin: 0 auto; }
.hero h1 { margin-bottom: var(--s-3); }

/* The restaurant name under the logo. Deliberately smaller than a default h1
   (which clamps up to 4.1rem) — it identifies the place, it isn't a headline,
   and the logo above it is already doing the shouting. */
.hero__name {
  font-size: clamp(2rem, 4.8vw, 3rem);
  letter-spacing: -.015em;
  margin: var(--s-2) 0 0;
}
.hero .lede { margin-inline: auto; max-width: 54ch; }
.hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  justify-content: center; margin-top: var(--s-5);
}

/* Any row of buttons. gap works in BOTH directions, so when the row wraps on
   a phone the buttons get 24px of clear air between them instead of sitting
   edge to edge — which is what an inline margin-left can't do. */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-3);   /* 24px between wrapped rows, 16px side by side */
  align-items: center;
  margin: 0;
}
.actions--center { justify-content: center; }
/* Once stacked, full-width buttons are easier to hit than centred pills. */
@media (max-width: 480px) {
  .actions { gap: var(--s-3); }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 13px 26px;
  border-radius: 999px; text-decoration: none; cursor: pointer;
  font: 700 1rem/1 var(--body); border: 1.5px solid transparent;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #A81719; color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }

/* ---------- status pill (open / closed, set by JS) ---------- */
/* With the hero headline gone, this pill is one of the few things left in the
   hero — so it carries more weight and is sized accordingly. */
.status {
  display: inline-flex; align-items: center; gap: 11px;
  font: 500 1.02rem/1 var(--body);
  padding: 13px 22px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.status__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); flex: none; }
.status[data-open="yes"] { color: #0A5C4E; border-color: rgba(0,169,145,.45); background: rgba(0,169,145,.09); }
.status[data-open="yes"] .status__dot { background: var(--jade); }
.status[data-open="no"] { color: #8A1518; border-color: rgba(239,46,49,.3); background: rgba(239,46,49,.07); }
.status[data-open="no"] .status__dot { background: var(--red); }

/* ---------- sections ---------- */
.section { padding: var(--s-8) 0; }
.section--band { background: var(--paper-deep); border-block: 1px solid var(--line); }
.section__head { text-align: center; margin-bottom: var(--s-6); }
.section__head p { margin-inline: auto; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: var(--s-4); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: var(--s-5);
}
.card h3 { margin-bottom: var(--s-2); }
.card p:last-child { margin-bottom: 0; }
.card__num {
  font: 700 .78rem/1 var(--mono); color: var(--jade);
  letter-spacing: .12em; display: block; margin-bottom: var(--s-3);
}
/* arch-topped feature card */
.card--arch {
  border-radius: 90px 90px 14px 14px / 46px 46px 14px 14px;
  padding-top: var(--s-6); text-align: center;
}

/* ---------- menu ---------- */
.menu-toolbar {
  position: sticky; top: var(--head-h, 68px); z-index: 30;
  background: rgba(250,247,242,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: var(--s-3) 0 var(--s-2);
}
.menu-search {
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 4px 6px 4px 16px; max-width: 460px;
}
.menu-search:focus-within { border-color: var(--jade); }
.menu-search input {
  flex: 1; border: 0; background: transparent; min-height: 40px;
  font: 400 1rem/1 var(--body); color: var(--ink);
}
.menu-search input:focus { outline: none; }
/* 44x44 is the minimum reliable touch target — it was 34px, which is
   fine with a mouse and a miss with a thumb. */
.menu-search__clear {
  border: 0; background: var(--paper-deep); color: var(--muted);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font: 400 1.1rem/1 var(--body);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.menu-search__clear:hover { background: var(--line); color: var(--ink); }
.menu-count { font: 400 .84rem/1 var(--mono); color: var(--muted); margin-top: var(--s-2); }

/* Section links: ONE row that scrolls sideways, never a wrapping block.
   25 sections wrapped into rows inside a sticky bar ate the whole phone
   screen — nothing was left for the dishes. A single row is a fixed 46px
   tall no matter how many sections there are. */
.menu-jump {
  display: flex;
  flex-wrap: nowrap;                    /* the fix */
  gap: var(--s-1);
  margin-top: var(--s-3);
  overflow-x: auto;
  overscroll-behavior-x: contain;       /* don't chain to page scroll */
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  /* fade the right edge so it reads as "more this way" */
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 32px), transparent 100%);
}
.menu-jump::-webkit-scrollbar { height: 4px; }
.menu-jump::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.menu-jump { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

.menu-jump a {
  flex: none;                           /* stop pills being squashed */
  scroll-snap-align: start;
  white-space: nowrap;
  font: 400 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em;
  padding: 11px 13px; min-height: 44px; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); text-decoration: none; background: var(--card);
}
.menu-jump a:hover { border-color: var(--jade); color: var(--jade); }
.menu-jump[hidden] { display: none; }

/* Drag-to-scroll. The grab cursor is the only affordance telling a mouse user
   this is draggable, so it's shown only where there IS a mouse — on touch the
   pointer-fine query fails and nothing changes. */
@media (hover: hover) and (pointer: fine) {
  .menu-jump { cursor: grab; }
  .menu-jump a { cursor: pointer; }
}
/* Safari/WebKit honours this rather than the dragstart handler. Both are
   needed: links drag natively and that cancels our pointer events. */
.menu-jump a { -webkit-user-drag: none; user-drag: none; }
.menu-jump.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;   /* snap would fight the drag */
  user-select: none;
  scroll-behavior: auto;    /* override the page's smooth scrolling */
}
.menu-jump.is-dragging a { cursor: grabbing; }

/* Anchor offset is handled ONCE, by scroll-padding-top on <html> (below).
   scroll-margin-top here as well would STACK with it — the browser adds the
   target's scroll-margin to the container's scroll-padding — giving roughly
   double the intended offset and dropping the heading far below the fold.
   Explicitly zero so there is exactly one source of truth. */
.course { margin-top: var(--s-7); scroll-margin-top: 0; }
.course__head {
  display: flex; align-items: baseline; gap: var(--s-3);
  border-bottom: 1.5px solid var(--jade-rule); padding-bottom: var(--s-2);
  margin-bottom: var(--s-4);
}
.course__head h2 { font-size: clamp(1.4rem, 3vw, 1.95rem); }
.course__note { font: 400 .82rem/1.3 var(--mono); color: var(--muted); margin-left: auto; text-align: right; }

.dishes { list-style: none; margin: 0; padding: 0; }
/* FOUR children — number | name | leader dots | price — so FOUR tracks.
   Declaring three made the price wrap to a second row and knocked every
   name out of alignment.
   The first track is a FIXED width, not auto: that's what guarantees every
   dish name starts at the same x, whether its number is "1", "C11" or empty. */
.dish {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, auto) 1fr auto;
  align-items: baseline; gap: var(--s-3);
  padding: 11px 10px; border-radius: 8px;
  transition: background-color .16s ease;
}
.dish:hover { background: var(--card); }
/* No min-width needed now — the grid track sets the width. */
.dish__no {
  font: 400 .82rem/1.5 var(--mono); color: var(--jade);
  letter-spacing: .02em;
}
.dish__name { font-weight: 500; text-align: left; }
/* classic printed-menu leader dots */
.dish__name::after {
  content: ""; display: inline-block; width: 0;
}
.dish__lead {
  border-bottom: 1.5px dotted var(--line);
  align-self: end; margin-bottom: 6px; min-width: 18px;
}
.dish__price {
  font: 700 .95rem/1.5 var(--mono);
  font-variant-numeric: tabular-nums; /* prices align */
  white-space: nowrap;
}
/* House Favourites: a short list in a narrow card, where leader dots can't
   run far enough to be useful — they just leave ragged stubs, especially when
   a name wraps. Drop them and let the three columns line up instead:
   number, then name from a fixed left edge, then price hard right. */
.favourites .dish__lead { display: none; }
.favourites .dish {
  grid-template-columns: 2.4rem 1fr auto;
  align-items: start;
}
.favourites .dish__price { text-align: right; }

/* Chilli heat marks. The glyph is lifted from the printed menu itself, so the
   site and the paper menu carry an identical mark. One pod = hot & spicy,
   two = hotter, exactly as the original. */
.heat {
  display: inline-flex;
  gap: 2px;
  margin-left: 7px;
  vertical-align: -1px;
}
.heat img {
  height: .95em;
  width: auto;
  display: block;
}

/* The asterisk marker. Red so it reads as a flag rather than punctuation,
   cursor:help + title so hovering explains it without leaving the row. */
.star {
  color: var(--red);
  font-weight: 700;
  cursor: help;
  margin-left: 1px;
}

/* Visible to screen readers, invisible on screen. Used to spell out the
   asterisk, which assistive tech otherwise reads as bare punctuation or
   skips entirely. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.menu-legend {
  font: 400 .86rem/1.5 var(--body);
  color: var(--muted);
  margin: var(--s-4) auto 0;
  max-width: max-content;
}

.dish__tag {
  font: 400 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .09em;
  color: var(--red); border: 1px solid currentColor; border-radius: 3px;
  padding: 3px 5px; margin-left: 8px; vertical-align: 1px;
}
.dish[hidden] { display: none; }
.dish mark { background: rgba(0,169,145,.22); color: inherit; border-radius: 2px; padding: 0 2px; }

.menu-empty {
  text-align: center; padding: var(--s-8) var(--s-4); color: var(--muted);
}
.menu-empty p { margin-inline: auto; }

/* banquet / set panels */
.set {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: var(--s-5);
}
.set__price {
  font: 700 1.9rem/1 var(--mono); color: var(--red);
  font-variant-numeric: tabular-nums; display: block; margin: var(--s-2) 0 var(--s-1);
}
.set__for { font: 400 .78rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.set ul { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.set li { padding: 7px 0 7px 22px; position: relative; border-bottom: 1px dotted var(--line); }
.set li:last-child { border-bottom: 0; }
.set li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--jade-rule);
}

/* ---------- menu page: phone sizing ----------
   Budget on a 375x667 phone:
     masthead 60 + toolbar ~104 = 164px pinned, ~500px left for dishes. */
/* Fallbacks only — script.js measures the real bars on load and overwrites
   both of these. Values chosen to be slightly generous, since landing a
   little low is survivable and landing behind the toolbar is not. */
:root { --head-h: 92px; --stick: 262px; }

/* THE single anchor offset. Every in-page jump — section pills, the skip
   link, banquets, lunch special — lands this far below the viewport top,
   which is exactly the height of the two sticky bars plus a small gap.
   Nothing else in this file may set scroll-margin-top, or the two add up. */
html { scroll-padding-top: var(--stick, 262px); }

@media (max-width: 720px) {
  :root { --head-h: 64px; --stick: 208px; }

  .masthead__in { min-height: 60px; padding: var(--s-2) 0; }
  .brand img { width: 92px; }

  .menu-toolbar { padding: var(--s-2) 0; }
  .menu-search { padding: 3px 4px 3px 13px; }
  .menu-search input { min-height: 38px; font-size: 16px; } /* 16px stops iOS zooming on focus */
  .menu-count { margin-top: 6px; font-size: .76rem; }
  .menu-jump { margin-top: var(--s-2); }
  .menu-jump a { min-height: 44px; padding: 8px 11px; font-size: .7rem; }

  .course { margin-top: var(--s-6); }
  .course__head { flex-wrap: wrap; gap: var(--s-1); }
  .course__note { margin-left: 0; text-align: left; width: 100%; }

  /* Narrower number gutter, but still FIXED so names stay aligned. */
  .dish { grid-template-columns: 2.1rem minmax(0, auto) 1fr auto; gap: var(--s-2); padding: 10px 4px; }
  .dish__no { font-size: .76rem; }
  .dish__price { font-size: .88rem; }
  .dish__lead { min-width: 10px; }
}

@media (max-width: 380px) {
  /* Very small phones: the leader dots go first. With .dish__lead removed
     from flow there are three children, so the template drops to three
     tracks — otherwise the price would land in the dots' column. */
  .dish__lead { display: none; }
  .dish { grid-template-columns: 2.1rem 1fr auto; }
}

/* ---------- back to top ----------
   164 dishes is a long way from the bottom of the page to the search box. */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 10px 26px -14px rgba(35,31,32,.5);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.to-top[data-show="true"] { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-2px); border-color: var(--jade); color: var(--jade); }
@media print { .to-top { display: none; } }

/* ---------- full-width photo band (menu page) ----------
   Sits between course sections as a visual breather. Deliberately short so
   it punctuates the list rather than interrupting it. */
.band {
  position: relative;
  margin: var(--s-8) 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 21 / 6;         /* reserves height: no layout shift on load */
  background: var(--paper-deep);
}
.band img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }

/* A taller band for photos whose subject fills the frame. The default 21:6
   letterbox crops a 16:9 source to about half its height, which slices the
   plate. 5:2 keeps roughly 72% — the dish sits properly in frame — without
   growing so tall it dwarfs the other bands and breaks the page rhythm.
   (2:1 would show ~90% but stands 570px tall on desktop vs 326px.) */
.band--tall { aspect-ratio: 5 / 2; }
.band--tall img { object-position: center center; }
.band__cap {
  position: absolute; left: 0; bottom: 0;
  padding: var(--s-4) var(--s-5);
  width: 100%;
  background: linear-gradient(0deg, rgba(35,31,32,.82) 0%, rgba(35,31,32,0) 100%);
  color: #fff;
  text-align: left;
}
.band__dish { font: 700 1.05rem/1.2 var(--body); }
.band__no {
  font: 400 .74rem/1 var(--mono); letter-spacing: .12em;
  text-transform: uppercase; color: #9FE6D8; display: block; margin-bottom: 6px;
}
/* A row of smaller tiles, for sections where several dishes are worth showing.
   auto-fit means three across on desktop, two on a tablet, one on a phone —
   without a media query. */
.band-row {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin: var(--s-8) 0;
}
.band-row .band { margin: 0; aspect-ratio: 3 / 2; }
.band-row .band__cap { padding: var(--s-3); }
.band-row .band__dish { font-size: .92rem; line-height: 1.3; }

@media (max-width: 720px) {
  .band { aspect-ratio: 16 / 9; margin: var(--s-6) 0; }
  .band__cap { padding: var(--s-3) var(--s-4); }
  .band__dish { font-size: .95rem; }
  .band-row { margin: var(--s-6) 0; }
  .band-row .band { aspect-ratio: 16 / 9; }
}

/* ---------- delivery partner buttons ----------
   Brand colours are each platform's own. Official logo files are NOT bundled —
   drop assets/ubereats.svg and assets/doordash.svg in and they appear
   automatically; until then a type wordmark stands in (see .ord__word). */
.ord-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.ord {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
  padding: var(--s-5) var(--s-4);
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 14px; text-decoration: none; color: var(--ink);
  min-height: 168px; justify-content: center; text-align: center;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ord:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -26px rgba(35,31,32,.4);
  color: var(--ink);
}
.ord__mark {
  display: flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 var(--s-4); border-radius: 8px;
}
/* Default state is the TYPE WORDMARK — so the button is correct with no logo
   file and with JavaScript off. The image only takes over once it has actually
   loaded, which flips data-logo on the wrapper. */
.ord__mark img { max-height: 26px; width: auto; display: none; }
.ord__word { font: 700 1.15rem/1 var(--body); letter-spacing: -.02em; }
.ord__mark[data-logo="true"] img { display: block; }
.ord__mark[data-logo="true"] .ord__word { display: none; }

.ord__cta { font: 700 1rem/1.3 var(--body); }
.ord__ext { font-weight: 400; }
.ord__note { font: 400 .72rem/1 var(--mono); color: var(--muted); letter-spacing: .06em; }

/* Uber Eats — dark text on their green (8.83:1). White would be 2.38:1. */
.ord--ubereats .ord__mark { background: #06C167; }
.ord--ubereats .ord__word { color: #000; }
.ord--ubereats:hover { border-color: #06C167; }

/* DoorDash — white on their red (4.51:1) */
.ord--doordash .ord__mark { background: #EB1700; }
.ord--doordash .ord__word { color: #fff; }
.ord--doordash:hover { border-color: #EB1700; }

/* ---------- embedded map ---------- */
.map-frame {
  border: 1.5px solid var(--jade-rule);
  border-radius: 14px;
  overflow: hidden;              /* clips the iframe to the rounded corners */
  background: var(--paper-deep);
  aspect-ratio: 16 / 8;          /* reserves height before the map loads: no layout shift */
  max-width: 940px;
  margin-inline: auto;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map-frame { aspect-ratio: 4 / 3; } }

/* ---------- hours table ---------- */
.hours { width: 100%; border-collapse: collapse; max-width: 520px; }
.hours caption { text-align: left; font-family: var(--display); font-size: 1.2rem; font-weight: 600; padding-bottom: var(--s-3); }
.hours th, .hours td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.hours th { font: 500 .95rem/1.4 var(--body); }
.hours td { font: 400 .92rem/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.hours tr[data-today="true"] { background: rgba(0,169,145,.08); }
.hours tr[data-today="true"] th::after {
  content: "Today"; font: 400 .64rem/1 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--jade); margin-left: 8px;
}
.hours td[data-closed="true"] { color: var(--muted); }

/* ---------- info callout ---------- */
.note {
  border-left: 3px solid var(--red-display);
  background: var(--card); border-radius: 0 10px 10px 0;
  padding: var(--s-4) var(--s-5);
}
.note strong { font-weight: 700; }
.note p:last-child { margin-bottom: 0; }

/* definition-style facts */
.facts { display: grid; gap: var(--s-4); margin: 0; }
.facts > div { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.facts dt {
  font: 400 .72rem/1 var(--mono); letter-spacing: .15em;
  text-transform: uppercase; color: var(--jade); margin-bottom: 7px;
}
.facts dd { margin: 0; font-size: 1.05rem; }
.facts a { font-weight: 600; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink); color: #E9E2DA; margin-top: var(--s-8);
  padding: var(--s-8) 0 var(--s-5);
}
.footer h2, .footer h3 { color: #fff; }
.footer a { color: #F5B9BA; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer__logo { width: 190px; filter: brightness(0) invert(1); opacity: .92; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 5px 0; }
.footer__base {
  margin-top: var(--s-6); padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between;
  font: 400 .8rem/1.5 var(--mono); color: #ABA29A;
}

/* ---------- motion, respectfully ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- print: the menu should print cleanly ---------- */
@media print {
  .masthead, .menu-toolbar, .footer, .hero__actions, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .course { break-inside: avoid; }
  .dish { padding: 3px 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
