:root {
  --brown: #591809;
  --brown-deep: #3a0f05;
  --gold: #e3b54a;
  --gold-soft: #f3dc9a;
  --gold-ink: #8a5a0c;
  --paper: #fbf5e6;
  --paper-2: #f3e9d0;
  --ink: #2b1208;
  --ink-2: #6b4a3a;
  --head: var(--brown);
  --card: var(--paper);
  --card-line: #dcc998;
  --card-inset: #ead9ad;
  --rule: #efe3c2;
  --dots: #c9b27a;
  --band-line: #e2d3ad;
  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1a100b; --paper-2: #120a07; --ink: #f6ecd6; --ink-2: #cdb994; --gold-ink: #e3b54a;
  --head: #ecc25c; --card: #21140e; --card-line: #5a3d1c; --card-inset: #3a2712; --rule: #33221a; --dots: #6d5630; --band-line: #2e1d12;
}
@font-face { font-family: "Title ZH"; src: url(/fonts/title-zh.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Title EN"; src: url(/fonts/title-en.woff2) format("woff2"); font-display: swap; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* hero */
.hero {
  background: radial-gradient(120% 80% at 50% 20%, #74230f 0%, var(--brown) 45%, var(--brown-deep) 100%);
  color: var(--gold-soft); text-align: center; position: relative; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(40px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-left)) 44px max(20px, env(safe-area-inset-right));
  border-bottom: 4px double var(--gold);
}
.hero > canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > :not(canvas) { position: relative; }
.hero.gl .logo { visibility: hidden; }
.hero .logo { width: min(62vw, 36svh, 300px); margin: 0 auto 24px; border-radius: 50%; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(2.2rem, 9vw, 3.6rem); letter-spacing: .18em; margin-right: -.18em; color: var(--gold); line-height: 1.2; }
.hero .brand-en { font-family: Georgia, "Times New Roman", serif; letter-spacing: .32em; margin-right: -.32em; font-size: clamp(.78rem, 3vw, 1rem); margin-top: 10px; }
.hero .tag { margin-top: 18px; font-family: var(--serif); font-size: 1.1rem; letter-spacing: .5em; }
.hero .tag span { display: inline-flex; align-items: center; gap: 14px; margin-right: -.5em; }
.hero .tag span::before, .hero .tag span::after { content: ""; width: 36px; height: 1px; background: var(--gold); }
.hero .tag span::after { margin-left: -.5em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-soft); text-decoration: none; font-size: 1rem; letter-spacing: .12em; }
.btn.solid { background: linear-gradient(180deg, #f0cc6c, #cf9a2b); color: var(--brown-deep); font-weight: 700; border-color: #f0cc6c; }
.btn:focus-visible, .chips a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hero .addr { margin-top: 22px; font-size: .9rem; color: #e9d3a0; }

/* section titles */
main h2 { text-align: center; font-family: var(--serif); font-weight: 900; font-size: 1.7rem; letter-spacing: .4em; color: var(--head); }
main h2 span { display: inline-flex; align-items: center; gap: 16px; margin-right: -.4em; }
main h2 span::before, main h2 span::after { content: ""; width: 40px; height: 2px; background: var(--gold); }
main h2 span::after { margin-left: -.4em; }
main > section { padding: 56px 20px; }

/* features */
.feats .grid { max-width: 1040px; margin: 36px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
.feat { text-align: center; }
.feat img { width: min(100%, 190px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; border: 3px solid var(--gold); box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--gold), 0 10px 24px rgba(89,24,9,.25); filter: saturate(1.08) contrast(1.04); }
.feat h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--head); }
.feat p { font-size: .92rem; color: var(--ink-2); margin-top: 6px; }

/* menu */
.menu { background: var(--paper-2); border-block: 1px solid var(--band-line); }
.chips { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; margin: 24px -20px 8px; padding: 10px 20px; background: var(--paper-2); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; min-height: 44px; border: 1px solid #7a3a1c; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--brown); color: var(--gold-soft); text-decoration: none; font-size: .92rem; white-space: nowrap; }
.cols { max-width: 1040px; margin: 16px auto 0; columns: 1; column-gap: 28px; }
.cat { break-inside: avoid; background: var(--card); border: 1px solid var(--card-line); border-radius: 6px; padding: 22px 20px 14px; margin-bottom: 20px; box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px var(--card-inset); }
.cat header { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--head); }
.cat h3 { font-family: var(--serif); font-weight: 900; font-size: 1.3rem; color: var(--head); letter-spacing: .08em; }
.cat .note { font-size: .82rem; color: var(--gold-ink); }
.cat ul { list-style: none; padding: 0; }
.cat li { display: flex; align-items: baseline; gap: 8px; padding: 11px 0; font-size: 1.05rem; }
.cat li + li { border-top: 1px solid var(--rule); }
.cat .dots { flex: 1; border-bottom: 1px dotted var(--dots); transform: translateY(-4px); min-width: 16px; }
.cat .p { font-family: Georgia, "Times New Roman", serif; font-weight: 700; color: var(--head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat .p i { font-style: normal; margin: 0 4px; color: var(--gold-ink); }

/* visit */
.visit { text-align: center; }
.visit .place { font-family: var(--serif); font-size: 1.4rem; margin-top: 28px; color: var(--head); }
.visit .full { color: var(--ink-2); margin: 6px 0 24px; }
.visit .btn.solid { border-color: #cf9a2b; }
.visit .btn:focus-visible { outline-color: var(--head); }

footer { background: var(--brown-deep); color: #e9d3a0; text-align: center; padding: 28px 20px calc(36px + env(safe-area-inset-bottom)); font-size: .88rem; border-top: 4px double var(--gold); }
footer img { width: 56px; height: 56px; margin: 0 auto 10px; }

@media (min-width: 720px) {
  .hero { min-height: 0; padding: 80px 24px 64px; }
  .feats .grid { grid-template-columns: repeat(4, 1fr); }
  .chips { justify-content: center; flex-wrap: wrap; overflow: visible; }
  .cols { columns: 2; }
  main > section { padding: 72px 24px; }
}
@media (min-width: 1080px) { .cols { columns: 3; max-width: 1180px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* bilingual */
small[lang="en"] { display: block; font-family: var(--sans); font-weight: 400; letter-spacing: 0; }
main h2 { display: flex; flex-direction: column; align-items: center; gap: 6px; }
main h2 small { font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink); margin: 0; }
.hero .tag-en { margin-top: 6px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: .95rem; color: #e9d3a0; }
.btn { letter-spacing: .06em; }
.feat h3 small { font-size: .82rem; color: var(--gold-ink); margin-top: 2px; }
.feat p[lang="en"] { font-size: .84rem; margin-top: 4px; opacity: .85; }
.chips a { flex-direction: column; justify-content: center; align-items: center; padding: 6px 16px; line-height: 1.25; }
.chips a small { font-size: .68rem; opacity: .8; }
.cat header { flex-wrap: wrap; }
.cat h3 small { font-size: .8rem; color: var(--gold-ink); margin-top: 2px; }
.cat .n { min-width: 0; max-width: 72%; }
.cat .n small { font-size: .8rem; color: var(--ink-2); line-height: 1.35; margin-top: 1px; }
.cat li { align-items: flex-start; }
.cat .dots { transform: translateY(14px); align-self: flex-start; height: 1px; }

/* outlets */
.outlets { max-width: 860px; margin: 32px auto 0; display: grid; gap: 20px; }
.outlet { background: var(--card); border: 1px solid var(--card-line); border-radius: 6px; padding: 26px 20px 28px; box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px var(--card-inset); }
.outlet .kind { font-size: .9rem; color: var(--gold-ink); letter-spacing: .2em; }
.outlet .kind small { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.outlet h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--head); margin-top: 10px; }
.outlet .full { margin: 6px 0 20px; }
.hero .addr { letter-spacing: .08em; }
@media (min-width: 720px) { .outlets { grid-template-columns: 1fr 1fr; } }

.outlet { display: flex; flex-direction: column; align-items: center; }
.outlet .map { width: 100%; height: 260px; border: 1px solid var(--card-line); border-radius: 4px; margin-bottom: 20px; background: var(--paper-2); }
.outlet .full { flex: 1 0 auto; }
.outlet .full:has(+ .soon) { flex: none; margin-bottom: 0; }
.outlet .soon { margin-bottom: 20px; }
.outlet .map { margin-top: auto; }
.soon { display: inline-block; margin-top: 10px; padding: 4px 14px; border-radius: 999px; background: var(--brown); color: var(--gold-soft); font-size: .85rem; letter-spacing: .08em; }
.hero .addr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 520px; margin-inline: auto; }
.hero .addr p { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero .addr b { font-size: .95rem; letter-spacing: .02em; color: var(--gold); }
.hero .addr p { text-shadow: 0 0 5px #35100a, 0 0 5px #35100a; }
.hero .addr span { font-size: .82rem; letter-spacing: 0; line-height: 1.5; }
.hero .addr em { font-style: normal; font-size: .78rem; border: 1px solid var(--gold); border-radius: 999px; padding: 2px 10px; margin-top: 4px; white-space: nowrap; letter-spacing: .02em; }

/* dish photos: swipe on phones, four across on desktop */
.feats .grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 2px 20px 12px; scroll-padding-inline: 20px; scrollbar-width: none; max-width: none; }
.feats .grid::-webkit-scrollbar { display: none; }
.feat { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; }
.feat img { width: 100%; aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--gold); box-shadow: 0 10px 24px rgba(40,12,4,.28); filter: none; margin-bottom: 16px; }
@media (min-width: 720px) {
  .feats .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 22px; overflow: visible; max-width: 760px; margin-inline: auto; padding: 0; }
}
@media (min-width: 1080px) { .feats .grid { grid-template-columns: repeat(4, 1fr); max-width: 1180px; } }

/* menu thumbnails + photo viewer */
.cat li.pic { gap: 12px; padding: 10px 0; align-items: center; }
.cat li.pic .dots { display: none; }
.cat li.pic .n { flex: 1; max-width: none; line-height: 1.35; }
.th { flex: none; width: 64px; height: 64px; padding: 0; border: 0; background: none; }
button.th { cursor: zoom-in; border-radius: 6px; }
.th img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--gold); }
button.th:focus-visible, .view button:focus-visible { outline: 3px solid var(--head); outline-offset: 2px; }
.fine { text-align: center; font-size: .82rem; color: var(--ink-2); margin-top: 8px; }
.view { margin: auto; width: min(92vw, 560px); padding: 0 0 18px; border: 1px solid var(--gold); border-radius: 8px; background: var(--card); color: var(--ink); text-align: center; overflow: hidden auto; }
.view::backdrop { background: rgba(20, 6, 2, .78); }
.view img { width: 100%; max-height: 70svh; object-fit: cover; }
.view p { padding: 14px 16px; font-family: var(--serif); font-size: 1.1rem; color: var(--head); }
.view button { min-height: 44px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--gold); background: var(--brown); color: var(--gold-soft); font: inherit; cursor: pointer; }
.th.mark img { border: 0; border-radius: 50%; padding: 6px; opacity: .85; }
footer .co { margin-top: 4px; font-size: .8rem; opacity: .85; }

.feat .ph { margin-bottom: 16px; }
.feat .ph img { margin-bottom: 0; }

/* brand story */
.story h2 span { word-break: keep-all; }
.story .tale { max-width: 1040px; margin: 36px auto 0; display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.story img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; display: block; }
.story img, .story .words { grid-column: 1 / -1; }
.story .words { display: grid; gap: 22px; padding: 8px 0; }
.story .words p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.95; color: var(--head); }
.story .words .en { font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; line-height: 1.7; }
@media (min-width: 900px) {
  .story .tale { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .story .words { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .story img { aspect-ratio: 16 / 9; }
}

/* one language at a time; dish names keep the other one in small print for ordering at the counter */
[data-lang="zh"] .en, [data-lang="en"] .zh { display: none; }
#lang .zh, #lang .en { font-family: inherit; }
.cat .n .zh, .cat .n .en { display: block; }
[data-lang="zh"] .cat .n .en, [data-lang="en"] .cat .n .zh, :root:not([data-lang]) .cat .n .en { font-size: .8rem; color: var(--ink-2); line-height: 1.35; margin-top: 1px; }
.cat .n { display: flex; flex-direction: column; }
[data-lang="en"] .cat .n .zh { order: 2; }
.view p .zh, .view p .en { display: inline; }

/* top bar */
.bar { position: absolute; z-index: 6; top: calc(12px + env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: flex; gap: 8px; }
.bar a, .bar button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid rgba(227,181,74,.65); border-radius: 999px; background: rgba(58,15,5,.55); color: var(--gold-soft); font: inherit; font-size: .9rem; text-decoration: none; cursor: pointer; }
.bar #theme { padding: 0; }
.bar :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.bar .moon, [data-theme="dark"] .bar .sun { display: none; }
[data-theme="dark"] .bar .moon { display: inline; }
:root:not([data-lang]) .bar { display: none; }
@media (max-width: 719px) { .hero { padding-top: calc(72px + env(safe-area-inset-top)); } }

/* brush titles (Ma Shan Zheng, OFL) with an old-style roman for English (IM Fell English SC, OFL) */
.hero h1, .hero .tag, main h2 .zh, .cat h3 .zh, .feat h3 .zh { font-family: "Title ZH", var(--serif); font-weight: 400; }
.hero h1 { font-size: clamp(2.9rem, 13vw, 5rem); letter-spacing: .08em; margin-right: -.08em; line-height: 1.15; }
.hero .tag { font-size: 1.5rem; letter-spacing: .3em; }
.hero .tag span { margin-right: -.3em; }
.hero .tag span::after { margin-left: -.3em; }
main h2 { flex-direction: row; justify-content: center; align-items: center; gap: 16px; letter-spacing: 0; }
main h2::before, main h2::after { content: ""; flex: 0 1 40px; height: 2px; background: var(--gold); }
main h2 span { display: inline; margin: 0; }
main h2 span::before, main h2 span::after { content: none; }
main h2 .zh { font-size: clamp(2.1rem, 8vw, 2.9rem); letter-spacing: .1em; margin-right: -.1em; line-height: 1.25; }
main h2 .en, .hero .brand-en, .cat h3 .en, .feat h3 .en { font-family: "Title EN", Georgia, serif; font-weight: 400; }
main h2 .en { font-size: clamp(1.7rem, 6.4vw, 2.3rem); line-height: 1.2; letter-spacing: .02em; }
.hero .brand-en { display: block; font-size: clamp(1rem, 4.2vw, 1.35rem); letter-spacing: .2em; margin-right: -.2em; }
.cat h3 .zh { font-size: 1.75rem; letter-spacing: .04em; }
.cat h3 .en { font-size: 1.4rem; }
.feat h3 .zh { font-size: 1.6rem; }
.feat h3 .en { font-size: 1.25rem; }
:root:not([data-lang]) main h2 { flex-wrap: wrap; }

/* the embedded map has no dark version without an API key: its colours are turned over */
[data-theme="dark"] .outlet .map { background: #ece4e0; border-color: #c9b9ae; filter: invert(.92) hue-rotate(180deg) saturate(.75) contrast(.92); }
@media (max-width: 479px) { .cat .p b { display: block; text-align: right; } }
