/* Shun Lee Palace — site styles.
   Palette (brand guide only): 深酒红 #710404 · 朱红 #ce4435 (tiny accents) · 米白 #eae4df · 深咖 #4b2710 ·
   棕 #8a5d42 · 金 #d6b584 (dark backgrounds only) · 墨黑 #373027 · #fff.
   Contrast notes: 棕 on 米白 = 4.47:1 (fails small text) -> never used for text on 米白.
   金 on 米白 = 1.5:1 -> never. 朱红 fails as text everywhere -> icons/lines only.
   Serif type scale (4 steps): 72 display (hero) / 56 page title / 40 section title / 28 small title.
   Phones: 40 / 36 / 30 / 24. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400.3d2c8035.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-var.38aa357a.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --wine: #710404; --verm: #ce4435; --rice: #eae4df; --umber: #4b2710; --brown: #8a5d42;
  --gold: #d6b584; --ink: #373027; --white: #fff;
  --hair: rgba(55, 48, 39, .15);
  --hair-strong: rgba(55, 48, 39, .28);
  --hair-dark: rgba(234, 228, 223, .18);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --cjk: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun",
         "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --wrap: 1200px;
  --gutter: 24px;       /* page side margin; the header logo starts at the same x */
  --hdr: 96px;          /* header height at top of page */
  --hdr-min: 72px;      /* header height after scrolling */
  --tabs-h: 54px;       /* menu tab bar (updated by JS) */
  --sec-pad: 56px;      /* space above each menu section heading */
}
@media (min-width: 601px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 64px; } }
@media (max-width: 1199px) { :root { --hdr: 68px; --hdr-min: 68px; } }
@media (max-width: 900px) { :root { --sec-pad: 40px; } }
@media (max-width: 600px) { :root { --sec-pad: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-min) + 16px); }
/* menu pages: section targets carry --sec-pad above their heading; land the heading 16px under the tab bar */
html.has-tabs { scroll-padding-top: calc(var(--hdr-min) + var(--tabs-h) + 16px - var(--sec-pad)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; padding-top: var(--hdr);
  background: var(--rice); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}
@media (max-width: 600px) { body { font-size: 16px; } }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul[role="list"], .plain { list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* focus: visible everywhere, wine on light, gold on dark */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.on-dark :focus-visible, .ftr :focus-visible, .hero :focus-visible, .band-wine :focus-visible, .mnav :focus-visible { outline-color: var(--gold); }
main:focus-visible, main:focus { outline: none; }

.skip {
  position: fixed; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--rice); padding: 12px 20px;
  font-weight: 500; font-size: 14px; letter-spacing: .04em; text-decoration: none;
}
.skip:focus { top: 12px; outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
.kicker {
  margin: 0; font-family: var(--sans); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--wine);
}
.on-dark .kicker, .band-wine .kicker { color: var(--gold); }
.title-xl { font-family: var(--serif); font-size: 56px; line-height: 1.05; letter-spacing: 0; }
.title-l { font-family: var(--serif); font-size: 40px; line-height: 1.1; letter-spacing: 0; }
@media (max-width: 600px) {
  .title-xl { font-size: 36px; line-height: 1.08; }
  .title-l { font-size: 30px; }
}
.rule-s { display: block; width: 48px; height: 1px; background: var(--ink); margin: 24px 0 0; }
.lead { font-size: 20px; line-height: 1.55; max-width: 640px; }
@media (max-width: 600px) { .lead { font-size: 18px; } }

/* horizontally scrolling rows (menu switcher, section tabs): fade the edge that has more to show (JS sets can-left/can-right) */
.hscroll.can-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.hscroll.can-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.hscroll.can-left.can-right {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 32px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--sans); font-weight: 500; font-size: 13px; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-wine { background: var(--wine); color: var(--rice); }
.btn-wine:hover { background: var(--ink); }
.btn-line { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn-line:hover { background: var(--wine); color: var(--rice); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--rice); }
.btn-ghost { background: transparent; color: var(--rice); border-color: var(--rice); }
.btn-ghost:hover { background: var(--rice); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 600px) {
  .btns { flex-direction: column; gap: 12px; }
  .btns .btn { width: 100%; }
}
.tlink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--wine);
}
.tlink span.u { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.tlink:hover span.u { border-bottom-color: var(--verm); }
.on-dark .tlink, .ftr .tlink, .band-wine .tlink { color: var(--gold); }
.i-arrow, .i-ext { flex: none; }
.i-ext { width: 12px; height: 12px; align-self: center; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hdr); background: var(--rice); border-bottom: 1px solid var(--hair);
  transition: height .2s ease;
}
.hdr-in { height: 100%; display: flex; align-items: center; padding: 0 64px; }
.logo { display: block; flex: none; }
.logo img { height: 64px; width: auto; transition: height .2s ease; }
html.is-scrolled .hdr { height: var(--hdr-min); }
html.is-scrolled .logo img { height: 48px; }

.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav a, .sub-btn {
  font-family: var(--sans); font-weight: 500; font-size: 13px; line-height: 1;
  text-transform: uppercase; letter-spacing: .14em; text-decoration: none; color: var(--ink);
}
.nav > ul > li > a { display: inline-block; padding: 15px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current], .nav > ul > li > a.is-section { border-bottom-color: var(--ink); }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 44px; margin-left: 2px; padding: 0; background: none; border: 0; cursor: pointer;
}
.sub-btn svg { transition: transform .2s; }
.sub-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
/* the dropdown opens just under the header's bottom line; ::after bridges the gap so hover does not drop */
.has-sub { --sub-gap: calc((var(--hdr) - 44px) / 2); }
html.is-scrolled .has-sub { --sub-gap: calc((var(--hdr-min) - 44px) / 2); }
.has-sub::after { content: ""; position: absolute; left: -24px; right: 0; top: 100%; height: var(--sub-gap); }
.sub {
  display: none; position: absolute; left: -24px; top: calc(100% + var(--sub-gap)); min-width: 230px;
  list-style: none; padding: 10px 0; background: var(--rice);
  border: 1px solid var(--hair); box-shadow: 0 12px 24px -16px rgba(55, 48, 39, .35);
}
.has-sub:hover .sub, .sub-btn[aria-expanded="true"] + .sub { display: block; }
.has-sub.sub-suppress .sub { display: none; }
.sub a { display: block; padding: 12px 24px; letter-spacing: .12em; }
.sub a:hover { background: rgba(113, 4, 4, .06); color: var(--wine); }
/* current page: colour plus a bar, so it does not rely on colour alone */
.sub a[aria-current] { color: var(--wine); box-shadow: inset 3px 0 0 var(--wine); }
.hdr-reserve { min-height: 44px; padding: 0 28px; margin-left: 40px; }
.burger { display: none; }

@media (max-width: 1199px) {
  .hdr-in { padding: 0 24px 0 32px; }
  .logo img, html.is-scrolled .logo img { height: 52px; }
  .nav { display: none; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    margin-left: auto; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  }
  .burger i { display: block; width: 22px; height: 1.5px; background: var(--ink); }
}
/* tablets / small laptops: keep the main action next to the menu button */
@media (min-width: 601px) and (max-width: 1199px) {
  .hdr-reserve { display: inline-flex; margin-left: auto; margin-right: 12px; min-height: 40px; padding: 0 20px; font-size: 12px; }
  .burger { margin-left: 0; }
}
@media (max-width: 600px) {
  .hdr-in { padding: 0 12px 0 24px; }
  .hdr-reserve { display: none; }
}

/* mobile / tablet navigation: full-screen 墨黑 dialog */
.mnav {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--ink); color: var(--rice); overflow-y: auto; overscroll-behavior: contain;
}
.mnav::backdrop { background: var(--ink); }
.mnav[open] { display: flex; flex-direction: column; }
/* same insets as the header, so the logo and the close button do not jump when the dialog opens */
.mnav-top { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 24px 0 32px; flex: none; }
@media (max-width: 600px) { .mnav-top { padding: 0 12px 0 24px; } }
.mnav-top img { height: 52px; width: auto; }
.mnav-close {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: none; border: 0; color: var(--rice); cursor: pointer;
}
.mnav nav { padding: 8px var(--gutter) 0; }
.mnav ul { list-style: none; }
.mnav li { border-bottom: 1px solid var(--hair-dark); }
.mnav a.m1 {
  display: flex; align-items: center; min-height: 52px; padding: 6px 0;
  font-family: var(--serif); font-size: 28px; line-height: 1.15; color: var(--rice); text-decoration: none;
}
.mnav .m2 { padding: 0 0 10px 16px; border: 0; }
.mnav .m2 li { border: 0; }
.mnav .m2 a {
  display: flex; align-items: center; min-height: 44px;
  font-size: 15px; letter-spacing: .06em; color: var(--rice); text-decoration: none;
}
/* current page: gold plus an underline (colour alone is not enough) */
.mnav a[aria-current] { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
/* Reserve + phone stay on screen at the bottom even when the list is taller than a small phone */
.mnav-foot {
  position: sticky; bottom: 0; margin-top: auto; padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px; background: var(--ink); border-top: 1px solid var(--hair-dark);
}
.mnav-foot .btn { width: 100%; }
.mnav-phone { display: inline-flex; align-items: center; min-height: 44px; color: var(--rice); font-size: 17px; text-decoration: none; }
.mnav-phone .lbl { color: var(--gold); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-right: 12px; }
.mnav-phone .num { text-decoration: underline; text-decoration-color: rgba(234, 228, 223, .45); }
html.nav-open { overflow: hidden; }

/* ---------- media / placeholders ---------- */
.media { position: relative; overflow: hidden; background: var(--ink); }
.media picture, .media img { width: 100%; height: 100%; }
.media img { object-fit: cover; }
.ph-badge {
  position: absolute; z-index: 3; right: 12px; bottom: 12px;
  font-family: var(--sans), "Noto Sans CJK SC", "PingFang SC", sans-serif;
  font-size: 11px; line-height: 1; letter-spacing: .04em; color: var(--rice);
  padding: 6px 8px; background: rgba(55, 48, 39, .72); border: 1px solid rgba(234, 228, 223, .45);
  pointer-events: none;
}
.ph-todo {
  position: relative; display: flex; align-items: flex-end; min-height: 200px; padding: 16px;
  background:
    repeating-linear-gradient(135deg, rgba(234, 228, 223, .05) 0 12px, transparent 12px 24px),
    var(--ink);
  color: var(--rice); font-family: var(--sans), "Noto Sans CJK SC", "PingFang SC", sans-serif; font-size: 13px; line-height: 1.4;
}
.ph-todo b { display: block; color: var(--gold); font-weight: 500; letter-spacing: .1em; margin-bottom: 4px; }
.preview-note {
  display: inline-block; margin: 0 0 24px; padding: 8px 12px; font-size: 13px; line-height: 1.4;
  font-family: var(--sans), "Noto Sans CJK SC", "PingFang SC", sans-serif;
  background: var(--white); color: var(--wine); border: 1px dashed var(--wine);
}

/* seal ornament: one SVG used as a mask. It always sits behind the content (z-index -1);
   sections with their own background isolate so it stays above that background.
   Light backgrounds: 墨黑 at 7% (a faint grey, per the brand spec). Dark backgrounds: tone-on-tone. */
.seal {
  position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1;
  -webkit-mask: url("/assets/brand/seal.dffd147e.svg") center / contain no-repeat;
  mask: url("/assets/brand/seal.dffd147e.svg") center / contain no-repeat;
  background: var(--ink); opacity: .07;
}
.hero, .band-wine, .ftr { isolation: isolate; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--rice);
  height: calc(100vh - var(--hdr) - 40px); height: calc(100svh - var(--hdr) - 40px); min-height: 600px; max-height: 1000px;
}
.hero .media { position: absolute; inset: 0; }
.hero .media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  /* extra soft shade behind the copy so small gold text stays >= 4.5:1 on light parts of any photo */
  background:
    radial-gradient(ellipse 48% 42% at 24% 66%, rgba(55, 48, 39, .5) 0%, rgba(55, 48, 39, 0) 100%),
    linear-gradient(to right, rgba(55, 48, 39, .70) 0%, rgba(55, 48, 39, .50) 42%, rgba(55, 48, 39, 0) 68%),
    linear-gradient(to top, rgba(55, 48, 39, .62) 0%, rgba(55, 48, 39, .22) 45%, rgba(55, 48, 39, 0) 72%);
}
/* no confirmed photo yet: 墨黑 with the dragon seal tone-on-tone (Mood Board p.1) */
.hero.is-plain { max-height: 760px; }
.hero.is-plain .seal { width: min(1000px, 78vw); right: -14%; top: 50%; transform: translateY(-50%); background: #000; opacity: .16; }
.hero-copy { position: absolute; z-index: 2; left: max(var(--gutter), (100% - var(--wrap)) / 2); bottom: 120px; max-width: 760px; }
.eyebrow {
  margin: 0 0 20px; font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.eyebrow .m { display: none; }
.hero .eyebrow, .hero h1 { text-shadow: 0 0 18px rgba(55, 48, 39, .55); }
.hero h1 { margin: 0 0 36px; font-family: var(--serif); font-size: 72px; line-height: 1.05; color: var(--rice); text-wrap: balance; }
.hero .ph-badge { bottom: 20px; right: 24px; }
@media (max-width: 600px) {
  /* the box grows with its text (large text / text-spacing settings) instead of clipping it */
  .hero {
    display: flex; flex-direction: column; justify-content: flex-end;
    height: auto; min-height: clamp(480px, calc(100svh - var(--hdr) - 24px), 620px); max-height: none;
  }
  .hero.is-plain { min-height: 440px; }
  .hero.is-plain .seal { width: 420px; right: -170px; top: 36%; }
  .hero .media::after { background: linear-gradient(to top, rgba(55, 48, 39, .88) 0%, rgba(55, 48, 39, .82) 58%, rgba(55, 48, 39, .25) 78%, rgba(55, 48, 39, .05) 100%); }
  .hero-copy { position: relative; left: auto; right: auto; bottom: auto; max-width: none; padding: 96px 24px 32px; }
  .eyebrow { font-size: 12px; line-height: 16px; margin-bottom: 14px; }
  .eyebrow .d { display: none; } .eyebrow .m { display: inline; }
  .hero h1 { font-size: 40px; line-height: 1.08; margin-bottom: 28px; }
  .hero .ph-badge { top: 12px; right: 12px; bottom: auto; }
}

/* ---------- story (home) ---------- */
.story { position: relative; overflow: hidden; padding-bottom: 120px; }
.story .seal { width: 620px; right: -150px; top: 140px; }
.peek { display: flex; align-items: center; gap: 24px; height: 40px; }
.peek .line { flex: 1; height: 1px; background: var(--hair); }
.story-body { position: relative; display: grid; grid-template-columns: 5fr 6fr; column-gap: 96px; padding-top: 80px; }
.story h2 { font-family: var(--serif); font-size: 56px; line-height: 1.04; color: var(--ink); }
.story h2 em { font-style: normal; color: var(--wine); }
.story-text p { max-width: 600px; margin-bottom: 20px; }
.story-text p:first-child { margin-top: 8px; }
.story-photo { margin-top: 48px; aspect-ratio: 4 / 5; max-width: 360px; }
.more summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--wine);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 18px; letter-spacing: 0; }
.more[open] summary::after { content: "–"; }
.more summary span { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.more { margin-bottom: 20px; }
.more[open] summary { margin-bottom: 12px; }
.miles { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 32px; margin-top: 72px; border-top: 1px solid var(--hair); list-style: none; }
.miles li { padding-top: 24px; }
.miles b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; color: var(--wine); margin-bottom: 12px; }
.miles span { display: block; font-size: 14px; line-height: 1.5; color: var(--umber); max-width: 230px; }
.strip { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 80px; list-style: none; }
.strip .media { aspect-ratio: 4 / 5; }
.strip figure { margin: 0; }
.strip figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.strip figcaption .en { font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--ink); }
.strip figcaption .zh { font-family: "Noto Serif TC", "Noto Serif SC", "Songti SC", "PMingLiU", serif; font-size: 14px; color: var(--umber); }
.strip .dish-link { display: block; color: inherit; text-decoration: none; }
.strip .dish-link:hover .en, .strip .dish-link:focus-visible .en { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  /* tablets keep two columns: heading + photo | text */
  .story-body { column-gap: 40px; padding-top: 40px; }
  .story h2 { font-size: 40px; line-height: 1.06; }
  .story .seal { width: 360px; right: -140px; top: 40px; }
  .miles { grid-template-columns: 1fr 1fr; row-gap: 28px; column-gap: 20px; margin-top: 48px; }
  .strip { gap: 12px; margin-top: 48px; }
  .story { padding-bottom: 72px; }
  .story-photo { margin-top: 32px; }
}
@media (max-width: 600px) {
  .peek { height: auto; padding-top: 24px; }
  .story-body { grid-template-columns: 1fr; row-gap: 24px; padding-top: 24px; }
  .story h2 { font-size: 36px; }
  .miles b { font-size: 30px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-photo { max-width: none; }
}

/* ---------- wine band: menus (home) ---------- */
.band-wine { position: relative; overflow: hidden; background: var(--wine); color: var(--rice); padding: 96px 0; }
.band-wine .seal { width: 560px; right: -170px; top: 50%; transform: translateY(-50%); background: var(--gold); opacity: .08; }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.band-head h2 { font-family: var(--serif); font-size: 40px; line-height: 1.1; margin-top: 14px; }
.menu-links { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 32px; list-style: none; border-top: 1px solid rgba(234, 228, 223, .25); }
.menu-links a { display: block; height: 100%; padding: 24px 0 8px; text-decoration: none; color: var(--rice); }
.menu-links .t { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.menu-links .t .i-arrow { color: var(--gold); transition: transform .2s; }
.menu-links a:hover .u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.menu-links a:hover .i-arrow { transform: translateX(3px); }
.menu-links .a { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--gold); }
@media (max-width: 900px) {
  .band-wine { padding: 64px 0; }
  .band-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .band-head h2 { font-size: 30px; }
  .menu-links { grid-template-columns: 1fr; }
  .menu-links li { border-bottom: 1px solid rgba(234, 228, 223, .25); }
  .menu-links a { padding: 18px 0; }
  .menu-links .t { font-size: 24px; }
  .band-wine .seal { width: 380px; right: -190px; }
}

/* ---------- interior + private teaser (home) ---------- */
.room { padding: 120px 0; }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; list-style: none; }
.room-grid .media, .room-grid .ph-todo { aspect-ratio: 4 / 3; }
.room-grid .ph-todo { min-height: 0; }
.teaser { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--hair); }
.teaser p { margin: 12px 0 0; max-width: 560px; }
.room .teaser:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.room:has(.teaser:first-child) { padding: 96px 0; }
@media (max-width: 900px) {
  .room { padding: 72px 0; }
  .room-grid { gap: 12px; }
  .teaser { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
}
@media (max-width: 600px) { .room-grid { grid-template-columns: 1fr; } }

/* ---------- page head (inner pages) ---------- */
/* the seal runs past the bottom of the head, behind the content below (it is never cut by a hard edge) */
.phead, .mhead { position: relative; overflow: hidden; }
@supports (overflow: clip) { .phead, .mhead { overflow: clip visible; } }
.phead { padding: 72px 0 40px; }
.phead .seal { width: 460px; right: -120px; top: -60px; }
.phead .lead { margin-top: 24px; margin-bottom: 0; }
@media (max-width: 600px) { .phead { padding: 44px 0 28px; } .phead .seal { width: 280px; right: -110px; top: -20px; } }
.section { padding: 40px 0 120px; }
@media (max-width: 600px) { .section { padding: 24px 0 72px; } }

/* two-column content with photo */
.split { display: grid; grid-template-columns: 6fr 5fr; column-gap: 96px; align-items: start; }
.split.split-solo { grid-template-columns: minmax(0, 720px); }
.split .media, .split .ph-todo { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; row-gap: 40px; } .split .media, .split .ph-todo { aspect-ratio: 4 / 3; } }


/* label/value list (contact, delivery, private dining) */
.facts { display: grid; gap: 28px; margin: 0; }
.facts dt { font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); margin-bottom: 8px; }
.facts dd { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.facts dd > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 1px solid var(--hair-strong); }
.facts dd a:hover { border-bottom-color: var(--wine); }
.facts dd .tlink { font-family: var(--sans); margin-top: 6px; border-bottom: 0; }
@media (max-width: 600px) { .facts dd { font-size: 24px; } }
.stack > * + * { margin-top: 40px; }
/* secondary boxes: a rule on top, no white card (the brand never puts white boxes on 米白) */
.note-box { padding: 28px 0 0; border-top: 1px solid var(--hair-strong); }
.note-box h2 { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
.note-box p:last-child { margin-bottom: 0; }
.note-box a { display: inline-flex; align-items: center; min-height: 44px; }
.note-box .contact-lines a { min-height: 36px; }
@media (max-width: 600px) { .note-box h2 { font-size: 24px; } }

/* ---------- menu overview cards ---------- */
.mcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 64px; list-style: none; }
.mcard { position: relative; display: flex; flex-direction: column; height: 100%; padding: 28px 0 0; border-top: 1px solid var(--hair-strong); text-decoration: none; color: var(--ink); }
.mcard h2 { font-family: var(--serif); font-size: 40px; line-height: 1.1; color: var(--wine); margin: 0; }
.mcard h2 .u { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .14em; transition: text-decoration-color .2s; }
.mcard:hover h2 .u { text-decoration-color: currentColor; }
.mcard .avail { margin: 12px 0 0; color: var(--umber); font-size: 15px; }
.mcard .go { margin-top: auto; padding-top: 24px; }
@media (max-width: 900px) { .mcards { grid-template-columns: 1fr; gap: 40px; } .mcard h2 { font-size: 30px; } }

/* ---------- loyalty cards ---------- */
.lcards { display: grid; grid-template-columns: 1fr; gap: 0; list-style: none; border-bottom: 1px solid var(--hair-strong); }
.lcard { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; column-gap: 24px; padding: 24px 0; border-top: 1px solid var(--hair-strong); }
.lcard p { margin: 0; }
.lcard .kicker { margin: 0; }
.lcard .big { display: block; font-family: var(--serif); font-size: 40px; line-height: 1.1; color: var(--wine); text-wrap: balance; }
.lcard .small { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.fine { margin-top: 20px; font-size: 14px; color: var(--umber); }
.fine p { margin: 0 0 4px; }
@media (max-width: 1199px) { .lcard { grid-template-columns: 1fr; row-gap: 8px; } }
@media (max-width: 600px) { .lcard { padding: 20px 0; } .lcard .big { font-size: 30px; } }
.split > .btns, .fine + .btns { margin-top: 32px; }

/* ---------- menu pages ---------- */
.mhead { padding: 48px 0 36px; border-bottom: 1px solid var(--hair); }
.mhead .seal { width: 460px; right: -120px; top: -60px; }
/* Dinner / Lunch / Happy Hour / Dessert & Drinks: serif, so it reads apart from the header and the section tabs */
.mswitch ul { display: flex; flex-wrap: wrap; gap: 0 32px; list-style: none; margin-bottom: 28px; }
.mswitch a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap;
  font-family: var(--serif); font-size: 28px; line-height: 1.15; color: var(--ink);
  border-bottom: 1px solid transparent;
}
.mswitch a:hover { border-bottom-color: var(--hair-strong); }
.mswitch a[aria-current] { color: var(--wine); border-bottom-color: var(--wine); }
.mmeta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; margin-top: 28px; }
/* hours: kicker style (a filled chip looked like a button) */
.avail-tag { margin: 0; font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); }
.prix { margin: 0; }
.prix .p { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--wine); }
.prix .x { display: block; margin-top: 8px; font-size: 14px; color: var(--umber); }
.mnotes { list-style: none; margin-top: 24px; max-width: 760px; font-size: 14px; line-height: 1.55; color: var(--umber); }
.mnotes li { margin-bottom: 4px; }
.mnotes .legend { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.mnotes .legend .chili { margin-left: 0; }
@media (max-width: 600px) {
  /* phones: a compact head so the first dishes show on the first screen */
  .mhead { padding: 12px 0 20px; }
  .mhead .seal { width: 260px; right: -120px; top: -30px; }
  .mswitch { margin-inline: calc(-1 * var(--gutter)); }
  .mswitch ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 22px; padding: 0 var(--gutter); margin-bottom: 8px; }
  .mswitch ul::-webkit-scrollbar { display: none; }
  .mswitch a { font-size: 24px; }
  .mhead .rule-s { display: none; }
  .mmeta { margin-top: 14px; gap: 8px 24px; }
  .avail-tag { font-size: 14px; line-height: 1.4; letter-spacing: .02em; text-transform: none; } /* one line instead of two */
  .prix .p { font-size: 30px; }
  .prix .x { margin-top: 4px; font-size: 13px; }
  .mnotes { margin-top: 14px; font-size: 13px; line-height: 1.45; }
  .mnotes li { margin-bottom: 2px; }
}

/* section tabs: one sticky row that scrolls sideways below 1200px; a sticky sidebar list from 1200px up */
.tabs {
  position: sticky; top: var(--hdr-min); z-index: 20;
  margin-inline: calc(-1 * var(--gutter)); background: var(--rice); border-bottom: 1px solid var(--hair);
}
.tabs ul {
  display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  gap: 0 26px; list-style: none; padding: 4px var(--gutter); scroll-padding: 0 var(--gutter);
}
.tabs ul::-webkit-scrollbar { display: none; }
.tabs ul.tight { gap: 0 14px; }
.tabs a {
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; text-decoration: none;
  font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--wine); }
.tabs a[aria-current="true"] { color: var(--wine); border-bottom-color: var(--wine); }
@media (max-width: 900px) { .tabs ul { gap: 0 22px; } }
@media (min-width: 1200px) {
  .mlayout { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .tabs {
    top: calc(var(--hdr-min) + 32px); margin: calc(var(--sec-pad) + 8px) 0 0; padding: 0 0 24px;
    background: none; border: 0; max-height: calc(100vh - var(--hdr-min) - 56px); overflow-y: auto; scrollbar-width: thin;
  }
  .tabs ul { flex-direction: column; overflow: visible; gap: 0; padding: 0; border-left: 1px solid var(--hair); -webkit-mask-image: none; mask-image: none; }
  .tabs a {
    min-height: 36px; padding: 7px 0 7px 18px; margin-left: -1px; white-space: normal; line-height: 1.35;
    font-size: 12px; letter-spacing: .1em; border-bottom: 0; border-left: 2px solid transparent;
  }
  .tabs a[aria-current="true"] { border-left-color: var(--wine); }
  html.has-tabs { scroll-padding-top: calc(var(--hdr-min) + 32px - var(--sec-pad)); }
}

/* short screens (phone on its side, big zoom): the header scrolls away so the tab bar has the top of the screen */
@media (max-height: 500px) {
  .hdr { position: absolute; }
  html { scroll-padding-top: 16px; }
  html.has-tabs { scroll-padding-top: calc(var(--tabs-h) + 16px - var(--sec-pad)); }
  .tabs { top: 0; }
}
@media (max-height: 500px) and (min-width: 1200px) {
  .tabs { top: 16px; max-height: calc(100vh - 32px); }
  html.has-tabs { scroll-padding-top: calc(32px - var(--sec-pad)); }
}

.mbody { padding-bottom: 96px; }
.msec { padding-top: var(--sec-pad); }
.msec h2 { font-family: var(--serif); font-size: 40px; line-height: 1.1; color: var(--wine); }
.msub { padding-top: 32px; }
.msub h3 {
  font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--wine);
}
.msub .items { margin-top: 12px; }
/* a section price sits with its heading, as printed ("Wine by Glass / 12"); the number stays as printed (no $) */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 0 18px; }
.sec-price { display: inline-flex; align-items: baseline; margin: 0; font-family: var(--serif); font-size: 40px; line-height: 1.1; color: var(--ink); }
.sec-price::before { content: ""; align-self: center; width: 1px; height: .62em; margin-right: 18px; background: var(--hair-strong); }
.sec-sub { margin: 10px 0 0; font-size: 14px; color: var(--umber); }
.sec-sub + .sec-sub { margin-top: 0; }
.items { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; list-style: none; margin-top: 20px; border-top: 1px solid var(--hair); }
.it { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.it-main { min-width: 0; flex: 1 1 auto; }
.it-name { margin: 0; font-weight: 500; font-size: 17px; line-height: 1.4; color: var(--ink); }
/* wine bin: its own narrow column; digits are proportional in DM Sans, so the numbers are right-aligned */
.has-bin { gap: 14px; }
.it-bin { flex: none; width: 2.4em; margin: 0; font-size: 13px; line-height: calc(17px * 1.4); color: var(--umber); text-align: right; }
.it-qty { font-weight: 400; color: var(--umber); }
.chili { display: inline-flex; gap: 1px; vertical-align: -1px; margin-left: 6px; color: var(--verm); }
/* Latin inside the Chinese line ("扇贝(Hotate)") uses DM Sans; the subset has no CJK, so Chinese falls through to --cjk */
.it-zh { margin: 4px 0 0; font-family: "DM Sans", var(--cjk); font-size: 15px; line-height: 1.5; color: var(--umber); letter-spacing: .04em; overflow-wrap: anywhere; }
.it-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--umber); overflow-wrap: anywhere; }
.it-price { flex: none; margin: 0; font-weight: 500; font-size: 17px; line-height: 1.4; color: var(--ink); text-align: right; white-space: nowrap; }
.it-price abbr { text-decoration: none; }
@media (max-width: 900px) {
  .items { column-gap: 40px; }
  .msec h2, .sec-price { font-size: 30px; }
}
@media (max-width: 700px) { .items { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .msec h2, .sec-price { font-size: 28px; } .msub { padding-top: 24px; } }
.mfoot { padding: 48px 0 0; border-top: 1px solid var(--hair); margin-top: 72px; }
.mfoot p { color: var(--umber); font-size: 14px; }

/* ---------- accessibility page ---------- */
.prose { max-width: 720px; }
.prose .facts { margin-top: 32px; }
.prose .updated { margin-top: 40px; font-size: 14px; color: var(--umber); }
.prose h2 { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin: 48px 0 14px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
@media (max-width: 600px) { .prose h2 { font-size: 24px; } }

/* ---------- 404 ---------- */
.nf { position: relative; overflow: hidden; min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 96px 0; }
.nf .seal { width: 440px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.nf .inner { position: relative; }
.nf p { margin: 16px 0 32px; }
.nf .btns { justify-content: center; }

/* ---------- footer ---------- */
.ftr { position: relative; overflow: hidden; background: var(--ink); color: var(--rice); }
.ftr .seal { width: 640px; right: -320px; top: -40px; background: #000; opacity: .13; }
.ftr-in { position: relative; display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; column-gap: 48px; padding: 80px 0 64px; }
.ftr-logo { width: 160px; height: auto; }
.ftr-links { list-style: none; margin-top: 20px; display: grid; gap: 0; }
.ftr-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--rice); text-decoration: none; }
@media (pointer: fine) { .ftr-links a { min-height: 32px; } }
.ftr-links a:hover { text-decoration: underline; }
.ftr dl { display: grid; gap: 24px; }
.ftr dt { font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ftr dd { font-size: 16px; line-height: 1.55; color: var(--rice); }
.ftr dd a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; text-decoration: underline; text-decoration-color: rgba(234, 228, 223, .45); }
.ftr dd a:hover { text-decoration-color: var(--gold); }
.ftr-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ftr-base { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 24px; border-top: 1px solid var(--hair-dark); font-size: 12px; line-height: 1.6; letter-spacing: .02em; }
.ftr-base p { margin: 0; }
.ftr-base a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; color: var(--rice); }
@media (max-width: 900px) {
  .ftr-in { grid-template-columns: 1fr; row-gap: 40px; padding: 56px 0 48px; }
  .ftr .seal { width: 420px; right: -230px; top: auto; bottom: 40px; }
  .ftr-cta .btn { width: 100%; }
  .ftr-base { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .hdr, .ftr, .tabs, .mswitch, .burger, .skip, .seal, .mfoot .btns { display: none !important; }
  body { padding-top: 0; background: #fff; }
  .mlayout { display: block; }
  .items { grid-template-columns: 1fr 1fr; }
}

a[href^="tel:"] { white-space: nowrap; }
/* tightened serif hyphen (see hy() in src/lib.mjs) */
.hy { position: relative; top: -.06em; margin: 0 -.05em; }

/* ---------- storefront mosaic (contact page) ---------- */
/* 2fr + 1fr + 1fr columns: a 4:3 main photo and two 2:3 details come out exactly the same height */
.store-section { padding-top: 0; margin-top: -64px; }
.store-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; align-items: start; }
.store-mosaic .store-main { aspect-ratio: 4 / 3; }
.store-mosaic .store-detail { aspect-ratio: 2 / 3; }
.store-mosaic .media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .store-section { margin-top: -56px; }
  .store-mosaic { grid-template-columns: 1fr 1fr; gap: 12px; }
  .store-mosaic .store-main { grid-column: 1 / -1; }
}

/* photo crop positions (from content/photos.json "focus") */
.media img.fp-50-85 { object-position: 50% 85%; }
@media (max-width: 600px), (max-width: 1199px) and (orientation: portrait) { .media img.fpm-50-0 { object-position: 50% 0%; } }
.media img.fp-50-50 { object-position: 50% 50%; }
.media img.fp-50-42 { object-position: 50% 42%; }
.media img.fp-50-73 { object-position: 50% 73%; }
.media img.fp-50-45 { object-position: 50% 45%; }
.media img.fp-50-0 { object-position: 50% 0%; }
.media img.fp-50-12 { object-position: 50% 12%; }
