/* Slow Morning — showcase edition
   1 tokens · 2 base · 3 layout · 4 controls · 5 header · 6 sheets · 7 home
   8 page heads · 9 menu · 10 story · 11 visit · 12 workshops · 13 gift
   14 footer · 15 motion · 16 print */

/* Self-hosted Latin fonts (fonts.py): only the weights used, Latin-1 + punctuation, ~87 KB in all. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/dm-sans.woff2") format("woff2"); }

/* ============ 1. Tokens ============ */
:root {
  --bg: #f7f0e4; --bg-2: #efe5d4; --surface: #fffaf1; --ink: #2b1f17; --ink-2: #5c4838;
  --line: #dccbb3; --line-2: #988266; --accent: #a34c2e; --accent-2: #8a3d22; --on-accent: #fff;
  --sage: #56623f; --butter: #ecc978; --butter-ink: #3a2a10; --focus: #1f5f8b;
  --shadow-rgb: 70 40 15;
  --shadow-1: 0 1px 2px rgb(var(--shadow-rgb) / .08), 0 2px 8px rgb(var(--shadow-rgb) / .06);
  --shadow-2: 0 2px 4px rgb(var(--shadow-rgb) / .08), 0 12px 32px rgb(var(--shadow-rgb) / .12);
  --grain-opacity: .07;
  --serif: "Fraunces", "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 28px;
  --wrap: 1200px; --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --hh: 64px; --stick-top: var(--hh);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
[data-daypart="midday"] { --bg: #f9f2e5; --bg-2: #f1e6d3; }
[data-daypart="afternoon"] {
  --bg: #f3e4cc; --bg-2: #ead6b6; --surface: #fbf2e3; --ink: #2b1d14; --ink-2: #57412e;
  --line: #d8bf9b; --line-2: #93795a; --accent: #9b4224; --accent-2: #80361d;
}
[data-daypart="evening"] {
  --bg: #1c1511; --bg-2: #251c16; --surface: #2c221b; --ink: #f4e9da; --ink-2: #cdb9a1;
  --line: #45362b; --line-2: #836b5a; --accent: #ec9467; --accent-2: #f5ae88; --on-accent: #1c1511;
  --sage: #b2c093; --butter: #e9c477; --focus: #8cc8f2; --shadow-rgb: 0 0 0; --grain-opacity: .05;
  color-scheme: dark;
}

/* ============ 2. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 72px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .6s var(--ease), color .6s var(--ease);
  min-height: 100vh; overflow-x: clip;
}
body { position: relative; }
body::before { /* paper grain: absolute so it also covers full-page captures */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 100; opacity: var(--grain-opacity); mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 1.4 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-daypart="evening"] body::before { mix-blend-mode: screen; }
html[lang="zh-Hant"] body { line-height: 1.85; letter-spacing: .02em; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; font-variation-settings: "SOFT" 100; }
html[lang="zh-Hant"] :is(h1, h2, h3) { line-height: 1.35; letter-spacing: .04em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--butter); color: var(--butter-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-2); }
.fine { font-size: .875rem; color: var(--ink-2); line-height: 1.55; }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 40ch; }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
html[lang="zh-Hant"] .eyebrow { letter-spacing: .2em; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--surface); color: var(--ink); padding: .75rem 1rem; border-radius: var(--r-sm); box-shadow: var(--shadow-2); }
.skip:focus { top: 1rem; }

/* ============ 3. Layout ============ */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section-title { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.9rem); margin-bottom: 1.25rem; }
.sub-title { font-size: 1.35rem; margin: 0 0 1rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.section-head .section-title { margin: 0; }
.two-col { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } .two-col-map { grid-template-columns: 5fr 6fr; } }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.5rem 1rem; }

/* ============ 4. Controls ============ */
.btn {
  --b: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px; border: 2px solid var(--b);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s, border-color .2s;
}
.btn .ic { width: 1.15em; height: 1.15em; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 0 var(--accent-2); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-primary:hover .ic { transform: translateX(2px); }
.btn-primary .ic { transition: transform .2s var(--ease); }
.btn-secondary { background: transparent; color: var(--ink); --b: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-quiet { background: var(--bg-2); color: var(--ink); --b: var(--bg-2); }
.btn-quiet:hover { --b: var(--line-2); }
.btn-chalk { background: #efe7d2; color: #23291f; --b: #efe7d2; }
.btn-chalk:hover { background: #fff; }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.icon-btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.icon-btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); transform: rotate(90deg); }
.icon-btn.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .3em; min-height: 44px; }
.text-link:hover { text-decoration-thickness: 3px; }
.text-link .ic { transition: transform .2s var(--ease); }
.text-link:hover .ic { transform: translateX(3px); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 500; font-size: .9375rem; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip-check { width: 0; opacity: 0; transition: width .2s var(--ease), opacity .2s; }
.chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] .chip-check { width: 1.1em; opacity: 1; }
.chips-radio .chip { cursor: pointer; position: relative; }
.chips-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); letter-spacing: .02em; }
.tag-accent { background: var(--accent); color: var(--on-accent); }
.status { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .8rem; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 500; font-size: .9375rem; }
.status-lg { font-size: 1.0625rem; padding: .6rem 1.2rem .6rem 1rem; }
.status-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--ink-2); flex: none; position: relative; }
.status.is-open .status-dot { background: #2f8a4a; }
.status.is-soon .status-dot { background: #c98a12; }
.status.is-closed .status-dot { background: var(--ink-2); }
[data-daypart="evening"] .status.is-open .status-dot { background: #6fd08c; }
.status.is-open .status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
.glyph { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-2); color: var(--accent); flex: none; }
.glyph .ic { width: 26px; height: 26px; }
.glyph-lg { width: 72px; height: 72px; }
.glyph-lg .ic { width: 34px; height: 34px; }

/* forms */
.field { display: grid; gap: .4rem; margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: .5rem; }
.field label, .field legend { font-weight: 700; font-size: .9375rem; }
.field input:not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: var(--r-sm); border: 1.5px solid var(--line-2);
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field [aria-invalid="true"] { border-color: #b3261e; }
[data-daypart="evening"] .field [aria-invalid="true"] { border-color: #ff9c8f; }
.field-error { color: #b3261e; font-size: .875rem; font-weight: 500; }
[data-daypart="evening"] .field-error { color: #ffb4a8; }
.hint { font-size: .875rem; color: var(--ink-2); }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
/* A date box needs ~190px for the date and its calendar button, so it gets its own row. */
.field-row > .field-date { grid-column: 1 / -1; }
.field input[type="date"] { min-width: 0; }
.form-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-1); position: relative; }
.form-done { position: absolute; inset: 0; background: var(--surface); border-radius: inherit; padding: clamp(1.5rem, 4vw, 3rem); display: grid; align-content: center; justify-items: start; gap: 1rem; }
.form-done[hidden] { display: none; }
.form-done h3 { font-size: 1.75rem; }
.done-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sage); color: #fff; }
[data-daypart="evening"] .done-check { color: #1c1511; }
.done-check .ic { width: 32px; height: 32px; stroke-width: 2.4; }
.done-check svg { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.input-prefix { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); padding-left: .9rem; }
.input-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.input-prefix span { font-weight: 700; color: var(--ink-2); }
.field .input-prefix input { border: 0; box-shadow: none !important; background: transparent; }

/* ============ 5. Demo bar + header ============ */
.demo-bar { background: var(--ink); color: var(--bg); font-size: .8125rem; line-height: 1.5; }
.demo-bar p { padding: .5rem 0; text-align: center; }
.demo-bar a { font-weight: 700; text-underline-offset: .2em; display: inline-block; padding-block: .2rem; }
@media (max-width: 640px) { .demo-sep { display: none; } .demo-bar a { margin-inline: .35rem; } }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--hh);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: transform .35s var(--ease), border-color .3s, background-color .6s;
  view-transition-name: site-header;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-row { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: baseline; gap: .55rem; text-decoration: none; margin-right: auto; min-height: 44px; align-items: center; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.wm-primary { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; }
html[lang="zh-Hant"] .wm-primary { font-style: normal; letter-spacing: .08em; font-size: 1.35rem; }
.wm-secondary { font-size: .8125rem; color: var(--ink-2); letter-spacing: .06em; }
.wm-secondary:lang(en) { font-family: var(--serif); font-style: italic; letter-spacing: 0; font-size: .95rem; }
.site-header.wm-hidden .wordmark { opacity: 0; transform: translateY(6px); pointer-events: none; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; text-decoration: none; font-weight: 500; border-radius: 999px; transition: background-color .2s;
}
.main-nav a:hover { background: var(--bg-2); }
.main-nav a[aria-current="page"] { font-weight: 700; }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 6px; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4c9-3 19-3 29-1s20 2 29-1' fill='none' stroke='%23a34c2e' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  view-transition-name: nav-underline;
}
[data-daypart="evening"] .main-nav a[aria-current="page"]::after { filter: brightness(1.9) saturate(.8); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .75rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9375rem; }
.lang-switch:hover { background: var(--bg-2); }
.btn-order { min-height: 44px; padding: .45rem 1.05rem; background: var(--ink); color: var(--bg); --b: var(--ink); position: relative; }
.btn-order:hover { background: var(--accent); --b: var(--accent); color: var(--on-accent); }
.cart-count {
  display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--butter); color: var(--butter-ink); font-size: .75rem; font-weight: 700; line-height: 1;
}
.cart-count[hidden] { display: none; }
.cart-count.is-bump { animation: bump .45s var(--ease); }
.nav-toggle { display: none; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; font-weight: 700; }
@media (max-width: 1040px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 899px) {
  :root { --hh: 58px; }
  .btn-order-label, .header-actions > .lang-switch span:not(.sr-only) { display: none; }
  .btn-order { padding: .45rem .8rem; }
  .header-actions > .lang-switch { display: none; }
  .wm-secondary { display: none; }
  html.hh-hidden { --stick-top: 0px; }
  html.hh-hidden .site-header { transform: translateY(-100%); }
}

/* ============ 6. Sheets (dialogs) ============ */
.sheet {
  margin: 0; padding: 0; border: 0; max-width: none; max-height: none; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px rgb(0 0 0 / .3); overscroll-behavior: contain;
}
.sheet::backdrop { background: rgb(28 21 17 / .45); backdrop-filter: blur(3px); }
.sheet-inner { padding: clamp(1.15rem, 4vw, 2rem); display: grid; gap: 1.25rem; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sheet-title { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.2; }
/* bottom sheet on phones, side drawer / centred card on desktop */
.sheet-cart, .sheet-item, .sheet-book {
  inset: auto 0 0 0; width: 100%; max-height: 92dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: auto;
}
.sheet-nav { inset: 0; width: 100%; height: 100dvh; overflow: auto; background: var(--bg); }
@media (min-width: 900px) {
  .sheet-cart { inset: 0 0 0 auto; width: 460px; height: 100dvh; max-height: none; border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .sheet-item, .sheet-book { inset: 0; margin: auto; width: min(620px, 92vw); max-height: 88dvh; border-radius: var(--r-lg); }
  .sheet-nav { inset: 0 0 0 auto; width: 440px; border-radius: var(--r-lg) 0 0 var(--r-lg); }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet { transition: transform .42s var(--ease), opacity .3s, overlay .42s allow-discrete, display .42s allow-discrete; }
  .sheet::backdrop { transition: opacity .3s, overlay .42s allow-discrete, display .42s allow-discrete; opacity: 0; }
  .sheet[open]::backdrop { opacity: 1; }
  @starting-style { .sheet[open]::backdrop { opacity: 0; } }
  .sheet-cart, .sheet-item, .sheet-book { transform: translateY(100%); }
  .sheet-cart[open], .sheet-item[open], .sheet-book[open] { transform: none; }
  @starting-style { .sheet-cart[open], .sheet-item[open], .sheet-book[open] { transform: translateY(100%); } }
  .sheet-nav { opacity: 0; transform: translateY(16px); }
  .sheet-nav[open] { opacity: 1; transform: none; }
  @starting-style { .sheet-nav[open] { opacity: 0; transform: translateY(16px); } }
  @media (min-width: 900px) {
    .sheet-cart, .sheet-nav { transform: translateX(100%); opacity: 1; }
    .sheet-cart[open], .sheet-nav[open] { transform: none; }
    @starting-style { .sheet-cart[open], .sheet-nav[open] { transform: translateX(100%); } }
    .sheet-item, .sheet-book { transform: translateY(24px) scale(.97); opacity: 0; }
    .sheet-item[open], .sheet-book[open] { transform: none; opacity: 1; }
    @starting-style { .sheet-item[open], .sheet-book[open] { transform: translateY(24px) scale(.97); opacity: 0; } }
  }
}
html:has(dialog[open]) { overflow: hidden; }

/* phone menu */
.intent-list { display: grid; gap: .5rem; }
.intent {
  display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1rem 1.1rem; border-radius: var(--r); text-decoration: none; text-align: left;
  border: 1.5px solid var(--line); background: var(--surface); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; transition: border-color .2s, transform .2s var(--ease);
}
.intent:hover { border-color: var(--accent); transform: translateX(4px); }
.intent[aria-current="page"] { border-color: var(--ink); }
.intent-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-2); color: var(--accent); flex: none; }
.intent-label { flex: 1; }
.intent-arrow { color: var(--ink-2); }
.sheet-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.lang-switch-lg { border: 1.5px solid var(--line-2); }
@media (prefers-reduced-motion: no-preference) {
  .sheet-nav[open] .intent-list li { animation: rise .5s var(--ease) both; }
  .sheet-nav[open] .intent-list li:nth-child(2) { animation-delay: .04s; }
  .sheet-nav[open] .intent-list li:nth-child(3) { animation-delay: .08s; }
  .sheet-nav[open] .intent-list li:nth-child(4) { animation-delay: .12s; }
  .sheet-nav[open] .intent-list li:nth-child(5) { animation-delay: .16s; }
  .sheet-nav[open] .intent-list li:nth-child(6) { animation-delay: .2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* receipt (cart) */
.receipt { background: var(--surface); position: relative; }
.cart-empty { display: grid; justify-items: center; gap: 1rem; text-align: center; padding: 2.5rem 0; }
.cart-lines { display: grid; border-top: 2px dashed var(--line-2); }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--line-2); }
.cl-name { font-weight: 700; }
.cl-opts { font-size: .875rem; color: var(--ink-2); grid-column: 1; }
.cl-price { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.cl-qty { display: flex; align-items: center; gap: .35rem; grid-column: 1 / -1; }
.cl-qty .icon-btn { width: 40px; height: 40px; }
.cl-qty output { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cl-remove { margin-left: auto; background: none; border: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: .25em; min-height: 44px; padding: 0 .25rem; }
.cart-total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; padding: 1rem 0 1.25rem; font-variant-numeric: tabular-nums; }
.slot-days { display: flex; gap: .5rem; margin-bottom: .6rem; }
.slots { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .1rem .6rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.slots .chip { scroll-snap-align: start; font-variant-numeric: tabular-nums; }
.cart-done { display: grid; justify-items: center; text-align: center; gap: 1rem; padding: 2rem 0; }
.cart-done[hidden] { display: none; }
.order-ticket { width: 100%; border: 2px dashed var(--line-2); border-radius: var(--r); padding: 1.25rem; display: grid; gap: .35rem; }
.order-ticket strong { font-family: var(--serif); font-size: 2rem; letter-spacing: .04em; }

/* item sheet */
.item-photo { margin: calc(-1 * clamp(1.15rem, 4vw, 2rem)) calc(-1 * clamp(1.15rem, 4vw, 2rem)) 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); position: relative; }
.item-photo img { width: 100%; height: 100%; object-fit: cover; }
.item-photo.is-glyph { display: grid; place-items: center; color: var(--accent); aspect-ratio: 16 / 7; }
.item-photo.is-glyph .ic { width: 88px; height: 88px; stroke-width: 1.1; }
.item-photo .icon-btn { position: absolute; top: 1rem; right: 1rem; }
.item-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.item-head .sheet-title { font-size: 1.9rem; }
.item-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; white-space: nowrap; }
.item-meta { display: grid; gap: .5rem; font-size: .9375rem; color: var(--ink-2); }
.item-meta strong { color: var(--ink); }
.item-pair { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: var(--r); background: var(--bg-2); text-align: left; border: 0; width: 100%; }
.item-pair .glyph, .item-pair .mi-thumb { width: 48px; height: 48px; }
.item-foot { display: flex; gap: .75rem; align-items: center; position: sticky; bottom: 0; background: var(--surface); padding-block: .75rem calc(.25rem + env(safe-area-inset-bottom)); margin-bottom: -.5rem; }
.stepper { display: inline-flex; align-items: center; gap: .25rem; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 2px; }
.stepper .icon-btn { border: 0; width: 42px; height: 42px; background: transparent; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.item-foot .btn { flex: 1; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: .75rem 1.15rem; border-radius: 999px; font-weight: 500; box-shadow: var(--shadow-2); max-width: calc(100% - 2rem); text-align: center;
  transition: opacity .3s, transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 2rem; } }

/* ============ 7. Home ============ */
.hero { padding-block: clamp(1.5rem, 4vw, 4rem) 0; position: relative; overflow-x: clip; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); min-height: min(78vh, 760px); } }
.hero-copy { display: grid; gap: 1.35rem; justify-items: start; }
.hero-title { display: grid; gap: .35rem; }
.hero-name { font-size: clamp(3.4rem, 1.5rem + 8vw, 8.2rem); line-height: .92; font-style: italic; letter-spacing: -.035em; font-variation-settings: "SOFT" 100, "opsz" 144; }
html[lang="zh-Hant"] .hero-name { font-style: normal; letter-spacing: .06em; line-height: 1.1; font-size: clamp(3.2rem, 1.4rem + 7vw, 7rem); }
.hero-sub { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--ink-2); font-weight: 500; letter-spacing: .12em; }
.hero-sub:lang(en) { font-style: italic; letter-spacing: 0; }
.hero-tagline { font-family: var(--serif); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem); font-style: italic; max-width: 22ch; line-height: 1.35; }
html[lang="zh-Hant"] .hero-tagline { font-style: normal; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-media { position: relative; margin: 0; order: -1; }
@media (min-width: 900px) { .hero-media { order: 0; } }
.arch { border-radius: var(--r-lg) var(--r-lg) var(--r) var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-2); box-shadow: var(--shadow-2); }
@media (min-width: 900px) { .arch { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-lg) var(--r-lg); } }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-cup { position: absolute; width: clamp(84px, 11vw, 132px); left: -1.5rem; bottom: -1.5rem; filter: drop-shadow(0 8px 14px rgb(var(--shadow-rgb) / .25)); }
.hero-cup .cup { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.hero-cup .cup-handle, .nf-cup .cup-handle { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.hero-cup .saucer, .nf-cup .saucer { fill: var(--accent); }
.steam path { fill: none; stroke: var(--ink-2); stroke-width: 2.6; stroke-linecap: round; opacity: .75; }
@media (prefers-reduced-motion: no-preference) {
  .steam path { stroke-dasharray: 40 60; animation: steam 3.6s ease-in-out infinite; }
  .steam path:nth-child(2) { animation-delay: .6s; }
  .steam path:nth-child(3) { animation-delay: 1.2s; }
}
@keyframes steam { 0% { stroke-dashoffset: 100; opacity: 0; } 30% { opacity: .8; } 100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-8px); } }
.stamp {
  position: absolute; right: -.75rem; top: 1rem; width: clamp(104px, 11vw, 136px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: .15rem;
  border: 2px solid var(--accent); color: var(--accent); background: color-mix(in srgb, var(--bg) 80%, transparent); transform: rotate(-12deg);
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(.8rem, .66rem + .3vw, .95rem); line-height: 1.05; padding: 0 1.1rem; box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--bg) 80%, transparent), inset 0 0 0 6.5px var(--accent);
}
.stamp span + span { font-size: .62rem; font-style: normal; letter-spacing: .2em; font-family: var(--sans); font-weight: 700; }
@media (max-width: 899px) { .stamp { top: auto; bottom: -1.25rem; right: .75rem; } .hero-cup { left: .5rem; bottom: -1.75rem; } }
.ticker { margin-top: clamp(2.5rem, 6vw, 4.5rem); background: var(--accent); color: var(--on-accent); overflow: hidden; padding: .8rem 0; transform: rotate(-1.2deg); margin-inline: -1rem; }
.ticker-track { display: flex; gap: 2rem; width: max-content; font-family: var(--serif); font-style: italic; font-size: 1.15rem; white-space: nowrap; }
html[lang="zh-Hant"] .ticker-track { font-style: normal; letter-spacing: .08em; }
@media (prefers-reduced-motion: no-preference) { .ticker-track { animation: ticker 38s linear infinite; } }
@keyframes ticker { to { transform: translateX(-50%); } }

.intent-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ig {
  display: flex; align-items: center; gap: 1rem; width: 100%; height: 100%; padding: 1.25rem; border-radius: var(--r-lg); text-decoration: none; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.ig:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-2); border-color: var(--accent); }
.ig-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--bg-2); color: var(--accent); flex: none; transition: transform .3s var(--ease), background-color .3s, color .3s; }
.ig:hover .ig-ic { transform: rotate(-8deg) scale(1.06); background: var(--accent); color: var(--on-accent); }
.ig-ic .ic { width: 28px; height: 28px; }
.ig-text { display: grid; gap: .15rem; flex: 1; }
.ig-title { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.ig-sub { font-size: .9375rem; color: var(--ink-2); }
.ig-arrow { color: var(--ink-2); transition: transform .25s var(--ease); }
.ig:hover .ig-arrow { transform: translateX(4px); color: var(--accent); }

.season { background: var(--bg-2); }
.season-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .season-grid { grid-template-columns: 1fr 1fr; } }
.season-copy { display: grid; gap: 1rem; }
.season-copy .section-title { margin: 0; }
.season-items { display: grid; gap: .75rem; margin-top: .75rem; }
.season-item { display: flex; align-items: center; gap: 1rem; padding: .75rem; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); }
.si-thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; }
.si-thumb img { width: 100%; height: 100%; object-fit: cover; }
.si-text { display: grid; flex: 1; }
.si-name { font-weight: 700; }
.si-desc { font-size: .9375rem; color: var(--ink-2); }
.si-price { font-family: var(--serif); font-weight: 600; white-space: nowrap; margin-top: .15rem; }
.season-media { position: relative; }
.season-photo img { border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow-2); }
.season-badge { position: absolute; left: -1rem; top: 2rem; background: var(--butter); color: var(--butter-ink); padding: .5rem 1rem; font-family: var(--serif); font-style: italic; font-weight: 600; transform: rotate(-6deg); box-shadow: var(--shadow-1); border-radius: 4px; }
@media (max-width: 899px) { .season-media { order: -1; max-width: 520px; } .season-photo img { aspect-ratio: 5 / 4; } .season-badge { left: .75rem; top: .75rem; } }

.story-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.polaroid { margin: 0; background: #fffdf8; padding: .8rem .8rem 3rem; box-shadow: var(--shadow-2); transform: rotate(-3deg); max-width: 420px; position: relative; color: #2b1f17; }
.polaroid::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(2deg); background: color-mix(in srgb, var(--butter) 70%, transparent); opacity: .9; }
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.polaroid figcaption { position: absolute; bottom: .7rem; left: 0; right: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.pull-quote { margin: 1.5rem 0; padding-left: 1.5rem; border-left: 3px solid var(--accent); }
.pull-quote p { font-family: var(--serif); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.45; font-style: italic; }
html[lang="zh-Hant"] .pull-quote p { font-style: normal; line-height: 1.7; }
.pull-quote p::before { content: "“"; } .pull-quote p::after { content: "”"; }
html[lang="zh-Hant"] .pull-quote p::before { content: "「"; } html[lang="zh-Hant"] .pull-quote p::after { content: "」"; }
.pull-quote footer { margin-top: .75rem; font-size: .9375rem; color: var(--ink-2); font-weight: 500; }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: clamp(3rem, 6vw, 5rem) 0 0; border-top: 1.5px solid var(--ink); }
.numbers > div { display: flex; flex-direction: column-reverse; justify-content: start; gap: .35rem; padding: 1.5rem 1.25rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.numbers dd { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; font-weight: 600; color: var(--accent); font-variant-numeric: lining-nums; }
.numbers dt { color: var(--ink-2); font-size: .9375rem; max-width: 22ch; }

/* tickets */
.tickets { display: grid; gap: 1rem; }
.ticket {
  --notch: 14px; display: grid; grid-template-columns: auto 1fr; align-items: stretch; background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-1); border: 1.5px solid var(--line); overflow: hidden; position: relative; transition: transform .25s var(--ease), box-shadow .25s;
}
.ticket:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ticket[hidden] { display: none; }
.ticket-date { display: grid; place-content: center; text-align: center; padding: 1rem 1.25rem; background: var(--accent); color: var(--on-accent); min-width: 92px; }
.t-mon { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.t-day { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; line-height: 1; }
.t-dow { font-size: .8125rem; opacity: .9; }
.ticket-body { padding: 1rem 1.25rem; display: grid; align-content: center; gap: .2rem; }
.ticket-title { font-size: 1.3rem; }
.ticket-meta { color: var(--ink-2); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.ticket-seats { font-size: .875rem; font-weight: 700; color: var(--sage); }
.ticket-seats.is-low { color: var(--accent); }
.ticket-seats.is-full { color: var(--ink-2); }
.ticket-stub { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-top: 2px dashed var(--line-2); }
.ticket-price { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; display: grid; line-height: 1.1; }
.ticket-price small { font-family: var(--sans); font-size: .75rem; font-weight: 500; color: var(--ink-2); }
/* Wide tickets (Workshops page) put the price and Book button in a side stub. The narrow tickets in the
   home page's three columns keep the stacked layout: price left, Book right, no empty strip. */
@media (min-width: 700px) {
  .tickets-full .ticket { grid-template-columns: auto 1fr auto; }
  .tickets-full .ticket-stub { grid-column: auto; border-top: 0; border-left: 2px dashed var(--line-2); flex-direction: column; justify-content: center; align-items: stretch; text-align: center; min-width: 170px; }
  .tickets-full .ticket::before, .tickets-full .ticket::after { content: ""; position: absolute; right: 169px; width: var(--notch); height: var(--notch); border-radius: 50%; background: var(--bg); transform: translateX(50%); border: 1.5px solid var(--line); }
  .tickets-full .ticket::before { top: calc(var(--notch) / -2 - 1px); } .tickets-full .ticket::after { bottom: calc(var(--notch) / -2 - 1px); }
}
.classes .tickets { grid-template-columns: 1fr; }
@media (min-width: 1100px) { .classes .tickets { grid-template-columns: repeat(3, 1fr); } .classes .ticket { grid-template-columns: auto 1fr; } .classes .ticket-stub { grid-column: 1 / -1; flex-direction: row; border-left: 0; border-top: 2px dashed var(--line-2); text-align: left; } .classes .ticket::before, .classes .ticket::after { display: none; } }

/* reviews */
.reviews { background: var(--bg-2); }
.notes { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding-top: 1rem; }
.note { background: var(--surface); padding: 1.75rem 1.5rem 1.5rem; box-shadow: var(--shadow-1); position: relative; border-radius: 4px; }
.note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; background: color-mix(in srgb, var(--butter) 75%, transparent); transform: translateX(-50%) rotate(-3deg); }
.note-1 { transform: rotate(-1.2deg); } .note-2 { transform: rotate(.8deg) translateY(.75rem); } .note-3 { transform: rotate(-.5deg); }
.note blockquote { margin: 0; }
.note p:first-child { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }
html[lang="zh-Hant"] .note p:first-child { line-height: 1.8; }
.note-who { margin-top: 1rem; font-weight: 700; }
.note-who span { font-weight: 400; color: var(--ink-2); }

/* visit teaser + map */
.visit-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 5fr 6fr; } }
.visit-grid > div { display: grid; gap: 1rem; justify-items: start; }
.visit-grid .btn-row { margin: .5rem 0 0; }
.mini-hours { display: grid; width: 100%; max-width: 360px; border-top: 1px solid var(--line); }
.mini-hours li { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mini-hours li.is-today { font-weight: 700; color: var(--accent); }
.map-card { margin: 0; display: grid; gap: .5rem; }
.map { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.m-ground { fill: var(--bg-2); }
.m-park { fill: color-mix(in srgb, var(--sage) 22%, var(--bg-2)); rx: 18; }
.m-trees circle { fill: color-mix(in srgb, var(--sage) 55%, var(--bg-2)); }
.m-roads path { stroke: var(--surface); stroke-width: 28; fill: none; stroke-linecap: round; }
.m-blocks rect { fill: color-mix(in srgb, var(--line) 55%, var(--bg-2)); }
.m-label { font: 600 14px var(--sans); fill: var(--ink-2); letter-spacing: .02em; }
.m-label-sm { font-size: 12px; }
.m-label-strong { font: 700 17px var(--serif); fill: var(--ink); }
.m-station circle { fill: var(--sage); }
.m-station text { font: 700 18px var(--sans); fill: #fff; }
.m-route { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 10; }
@media (prefers-reduced-motion: no-preference) { .m-route { animation: march 1.2s linear infinite; } }
@keyframes march { to { stroke-dashoffset: -24; } }
.m-cafe circle { fill: var(--accent); }
.m-cafe path { stroke: var(--on-accent); fill: var(--on-accent); }
.m-cafe path:first-of-type { fill: var(--on-accent); }
.m-walk rect { fill: var(--ink); }
.m-walk text { font: 700 12px var(--sans); fill: var(--bg); }
.m-compass circle { fill: var(--surface); stroke: var(--line-2); }
.m-compass path { fill: var(--accent); }
.m-compass text { font: 700 11px var(--sans); fill: var(--ink-2); }

/* ============ 8. Page heads ============ */
.page-head { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.page-head .wrap { display: grid; gap: 1rem; justify-items: start; }
.page-title { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5rem); letter-spacing: -.02em; max-width: 18ch; view-transition-name: page-title; }
html[lang="zh-Hant"] .page-title { letter-spacing: .04em; }
.page-lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); color: var(--ink-2); max-width: 46ch; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .875rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.crumbs a { display: inline-block; padding-block: .6rem; text-underline-offset: .2em; }
.crumbs [aria-current] { display: inline-block; padding-block: .6rem; }

/* ============ 9. Menu ============ */
.menu-tools { position: sticky; top: var(--stick-top); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); transition: top .35s var(--ease); }
.tools-row { display: grid; gap: .5rem; padding-block: .6rem; }
@media (min-width: 1040px) { .tools-row { grid-template-columns: auto 1fr; align-items: center; gap: 1.5rem; } }
.cat-nav, .subnav nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.cat-nav::-webkit-scrollbar, .subnav nav::-webkit-scrollbar, .filter-row::-webkit-scrollbar { display: none; }
.cat-nav a, .subnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; white-space: nowrap; text-decoration: none; font-weight: 700; font-family: var(--serif); font-size: 1.05rem; scroll-snap-align: start; transition: background-color .25s, color .25s;
}
.cat-nav a:hover, .subnav a:hover { background: var(--bg-2); }
.cat-nav a.is-active, .subnav a.is-active { background: var(--accent); color: var(--on-accent); }
.filter-row { display: flex; gap: .5rem; align-items: center; overflow-x: auto; scrollbar-width: none; justify-content: end; }
.filter-row .chips { flex-wrap: nowrap; }
@media (max-width: 1039px) { .filter-row { justify-content: start; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); } }
.search { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); flex: 0 0 auto; width: 240px; transition: width .3s var(--ease), border-color .2s; }
.search:focus-within { border-color: var(--accent); width: 280px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.search input { border: 0; background: transparent; outline: none; width: 100%; min-width: 0; padding: .55rem 0; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
@media (max-width: 1039px) { .search { order: -1; width: 200px; } .search:focus-within { width: 240px; } }
.menu-layout { display: grid; gap: 3rem; padding-block: 1.5rem 5rem; }
@media (min-width: 1040px) { .menu-layout { grid-template-columns: 1fr 340px; align-items: start; } }
.results { font-size: .9375rem; color: var(--ink-2); margin-bottom: .5rem; min-height: 1.6em; }
.menu-section { padding-block: 1.75rem 1rem; scroll-margin-top: calc(var(--stick-top) + 130px); }
.menu-section[hidden] { display: none; }
.ms-head { display: grid; gap: .35rem; margin-bottom: 1rem; }
.ms-head .section-title { margin: 0; }
.ms-note { color: var(--ink-2); font-size: .9375rem; }
.menu-list { display: grid; }
.menu-item { display: flex; align-items: center; gap: .75rem; border-bottom: 1px dashed var(--line-2); }
.menu-item[hidden] { display: none; }
.mi-open { flex: 1; display: flex; align-items: center; gap: 1rem; padding: 1rem .25rem; background: none; border: 0; text-align: left; border-radius: var(--r-sm); min-width: 0; }
.mi-open:hover .mi-name { color: var(--accent); }
.mi-thumb { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; flex: none; background: var(--bg-2); }
.mi-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.mi-open:hover .mi-thumb img { transform: scale(1.06); }
.mi-thumb.glyph { border-radius: 16px; width: 72px; height: 72px; }
.mi-thumb.glyph .ic, .si-thumb.glyph .ic { width: 36px; height: 36px; stroke-width: 1.4; }
.si-thumb.glyph { width: 64px; height: 64px; border-radius: 14px; }
.mi-main { display: grid; gap: .2rem; flex: 1; min-width: 0; }
.mi-line { display: flex; align-items: baseline; gap: .5rem; }
.mi-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.3; transition: color .2s; }
.mi-dots { flex: 1; border-bottom: 2px dotted var(--line-2); transform: translateY(-.3em); min-width: 1rem; }
.mi-price { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mi-desc { color: var(--ink-2); font-size: .9375rem; }
.mi-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.mi-add { margin-right: .25rem; }
.menu-item.is-seasonal .mi-name::after { content: "✺"; color: var(--accent); margin-left: .35rem; font-size: .85em; }
mark { background: var(--butter); color: var(--butter-ink); border-radius: 3px; padding: 0 .1em; }
.empty { display: grid; justify-items: center; text-align: center; gap: .75rem; padding: 4rem 1rem; }
.empty[hidden] { display: none; }
.empty-title { font-size: 1.6rem; }
.order-aside { position: sticky; top: calc(var(--stick-top) + 90px); display: none; }
@media (min-width: 1040px) { .order-aside { display: block; } }
.receipt-aside { padding: 1.5rem 1.5rem 2.25rem; border-radius: var(--r) var(--r) 0 0; box-shadow: var(--shadow-2); display: grid; gap: 1rem; }
.receipt-aside::after { /* torn edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 12px; background: var(--surface);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%;
}
.receipt-title { font-size: 1.4rem; padding-bottom: .75rem; border-bottom: 2px dashed var(--line-2); }
.aside-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; padding: .3rem 0; }
.aside-line span:last-child { font-variant-numeric: tabular-nums; }
.aside-total { display: flex; justify-content: space-between; font-weight: 700; padding-top: .6rem; margin-top: .4rem; border-top: 2px dashed var(--line-2); font-variant-numeric: tabular-nums; }

/* ============ 10. Story ============ */
.story-intro { padding-top: 1rem; }
.story-intro-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .story-intro-grid { grid-template-columns: 6fr 5fr; } }
.story-text { display: grid; gap: 1rem; font-size: 1.15rem; }
.dropcap::first-letter { float: left; font-family: var(--serif); font-size: 4.6rem; line-height: .82; padding: .35rem .6rem 0 0; color: var(--accent); font-weight: 600; }
html[lang="zh-Hant"] .dropcap::first-letter { font-size: 3.6rem; line-height: 1; padding-top: .2rem; }
.story-figure { margin: 0; }
.story-figure img { border-radius: 999px 999px var(--r-lg) var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.story-figure figcaption, .gallery figcaption { font-size: .875rem; color: var(--ink-2); margin-top: .6rem; font-style: italic; }
.timeline { position: relative; display: grid; gap: 2rem; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 3.25rem; top: .5rem; bottom: .5rem; border-left: 2px dashed var(--line-2); }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; position: relative; }
.tl-year { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--on-accent); background: var(--accent); justify-self: center; align-self: start; padding: .35rem .75rem; border-radius: 999px; position: relative; z-index: 1; font-variant-numeric: lining-nums; }
.timeline h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.timeline p { color: var(--ink-2); max-width: 56ch; }
@media (min-width: 900px) { .timeline { max-width: 880px; } }
.value-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value-grid li { display: grid; gap: .75rem; justify-items: start; padding: 1.75rem; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line); }
.value-grid h3 { font-size: 1.35rem; }
.value-grid p { color: var(--ink-2); }
.board {
  background: #23291f radial-gradient(120% 90% at 20% 0%, #2f3729 0%, #23291f 60%, #1b2018 100%); color: #efeadc; border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 3.5rem); box-shadow: inset 0 0 0 10px #5b4130, inset 0 0 0 12px #3e2c20, var(--shadow-2); display: grid; gap: 1rem; justify-items: start;
}
.board-title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-style: italic; font-weight: 500; color: #fbf6e9; }
html[lang="zh-Hant"] .board-title { font-style: normal; }
.board-lede { color: #d6d0bd; max-width: 60ch; }
.bean-list { display: grid; gap: 0; width: 100%; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-block: 1rem; }
.bean { padding: 1.25rem 1rem 1.25rem 0; border-bottom: 1px dashed rgb(239 234 220 / .3); display: grid; gap: .3rem; }
.bean-origin { font-size: 1.35rem; color: #fbf6e9; font-weight: 500; }
.bean-now { display: inline-block; font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .06em; background: #ecc978; color: #2a210d; padding: .1rem .5rem; border-radius: 999px; vertical-align: middle; transform: rotate(-3deg); }
.bean-notes { font-family: var(--serif); font-style: italic; color: #f0d99a; font-size: 1.1rem; }
html[lang="zh-Hant"] .bean-notes { font-style: normal; }
.bean-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; font-size: .875rem; color: #d6d0bd; }
.roast { display: inline-flex; gap: 4px; }
.roast span { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #d6d0bd; }
.roast span.on { background: #d6d0bd; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; } .gallery .g-1 { grid-row: span 2; } .gallery .g-4, .gallery .g-5 { grid-column: span 2; } .gallery .g-5 img { aspect-ratio: 2 / 1; } }
.gallery figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.gallery picture { flex: 1; border-radius: var(--r); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .6s var(--ease); }
.gallery .g-1 img { aspect-ratio: auto; min-height: 100%; }
.gallery figure:hover img { transform: scale(1.04); }
.cta-band { background: var(--ink); color: var(--bg); text-align: center; }
.cta-band .cta-inner { display: grid; justify-items: center; gap: 1rem; }
.cta-band .status { background: transparent; border-color: color-mix(in srgb, var(--bg) 35%, transparent); color: var(--bg); }
.cta-band .btn-primary { background: var(--bg); color: var(--ink); --b: var(--bg); box-shadow: none; }
.cta-band .btn-secondary { color: var(--bg); --b: var(--bg); }
.cta-band .btn-secondary:hover { background: var(--bg); color: var(--ink); }

/* ============ 11. Visit ============ */
.subnav { position: sticky; top: var(--stick-top); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); transition: top .35s var(--ease); }
.subnav nav { padding-block: .5rem; }
.subnav a { font-size: .975rem; }
[data-section] { scroll-margin-top: calc(var(--stick-top) + 70px); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; max-width: 460px; }
.hours-table th, .hours-table td { padding: .75rem .25rem; border-bottom: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; }
.hours-table td { text-align: right; }
.hours-table th { font-weight: 500; }
.today-badge { display: none; margin-left: .6rem; font-size: .75rem; font-weight: 700; background: var(--accent); color: var(--on-accent); padding: .1rem .55rem; border-radius: 999px; vertical-align: middle; }
.hours-table tr.is-today :is(th, td) { font-weight: 700; color: var(--ink); }
.hours-table tr.is-today { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent); }
.hours-table tr.is-today .today-badge { display: inline-block; }
.special-days { display: grid; gap: .75rem; }
.special-days li { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; padding: 1rem 1.25rem; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); border-left: 6px solid var(--butter); }
.special-days li.is-closed { border-left-color: var(--accent); }
.sd-date { font-weight: 700; }
.sd-hours { grid-column: 2; grid-row: 1; justify-self: end; font-variant-numeric: tabular-nums; font-weight: 700; }
.sd-label { grid-column: 1 / -1; color: var(--ink-2); font-size: .9375rem; }
.seg { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; border-radius: 999px; background: var(--bg-2); margin-block: 1.5rem 1rem; }
.seg button { min-height: 44px; min-width: 52px; padding: 0 1rem; border-radius: 999px; border: 0; background: transparent; font-weight: 700; transition: background-color .2s, color .2s; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.busy-panel { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(1rem, 3vw, 2rem); }
.busy-chart { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; align-items: end; height: 220px; padding-top: 2rem; border-bottom: 1.5px solid var(--line-2); }
.busy-col { position: relative; height: 100%; display: flex; align-items: end; justify-content: center; }
.busy-bar { width: min(70%, 44px); border-radius: 4px 4px 0 0; background: var(--accent); transition: height .5s var(--ease), background-color .2s; min-height: 4px; }
.busy-col.is-now .busy-bar { background: var(--ink); }
.busy-col:hover .busy-bar, .busy-col:focus-visible .busy-bar { background: var(--accent-2); }
.busy-col.is-now:hover .busy-bar { background: var(--ink); }
.busy-now { position: absolute; top: -1.75rem; left: 50%; transform: translateX(-50%); font-size: .75rem; font-weight: 700; background: var(--ink); color: var(--bg); padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; }
.busy-axis { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; margin-top: .5rem; font-size: .8125rem; color: var(--ink-2); text-align: center; font-variant-numeric: tabular-nums; }
.busy-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--ink); color: var(--bg); padding: .45rem .7rem; border-radius: var(--r-sm); font-size: .875rem; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .15s; box-shadow: var(--shadow-2); }
.busy-tip.is-on { opacity: 1; }
.busy-tip strong { display: block; }
.busy-closed { display: grid; place-items: center; height: 220px; color: var(--ink-2); }
.table-view { margin-top: 1.25rem; }
.table-view summary { cursor: pointer; font-weight: 700; color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; margin-top: .75rem; }
.data-table :is(th, td) { padding: .4rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.table-view { overflow-x: auto; }
.addr-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); margin-bottom: 1.5rem; }
.addr-card address { font-weight: 700; font-size: 1.1rem; }
.directions { display: grid; gap: 1.25rem; }
.directions li { display: flex; gap: 1rem; align-items: start; }
.directions h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.directions p { color: var(--ink-2); }
.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.facts li { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); font-weight: 500; }
.faq { display: grid; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { transition: transform .3s var(--ease); color: var(--accent); }
.faq details[open] .faq-ic { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.25rem; color: var(--ink-2); max-width: 62ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
  :root { interpolate-size: allow-keywords; }
}
.contact-cards { display: grid; gap: .75rem; margin-top: 1.5rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; }
a.contact-card:hover { border-color: var(--accent); }
.contact-card span:last-child { display: grid; }

/* ============ 12. Workshops ============ */
.ws-cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ws-card { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1.5px solid var(--line); display: flex; flex-direction: column; scroll-margin-top: calc(var(--stick-top) + 24px); }
.ws-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.ws-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.ws-level { margin: 0; }
.ws-level + h3 { margin-top: -.25rem; }
.ws-body h3 { font-size: 1.5rem; }
.ws-body > p { color: var(--ink-2); }
.ws-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem .5rem; margin: auto 0 0; padding-top: 1rem; border-top: 1px dashed var(--line-2); }
.ws-facts .ws-when { grid-column: 1 / -1; }
.nowrap { white-space: nowrap; }
.ws-facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ws-facts dd { margin: 0; font-weight: 700; }
.book-summary { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1rem; border-radius: var(--r); background: var(--bg-2); }
.book-summary .ticket-date { border-radius: var(--r-sm); min-width: 76px; padding: .6rem .9rem; }
.book-summary .t-day { font-size: 2rem; }

/* ============ 13. Gift ============ */
.gift-sec { padding-top: 1rem; }
.gift-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .gift-grid { grid-template-columns: 1fr 1fr; } .gift-preview { position: sticky; top: calc(var(--stick-top) + 24px); } }
.gift-preview { display: grid; gap: 1rem; justify-items: center; }
.gift-preview .sub-title { justify-self: start; margin-top: 1.5rem; }
.checklist { display: grid; gap: .6rem; justify-self: start; }
.checklist li { display: flex; gap: .6rem; align-items: start; }
.checklist .ic { color: var(--sage); margin-top: .2rem; }
.gcard { width: min(100%, 460px); aspect-ratio: 1.6; perspective: 1400px; }
.gcard-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.gcard.is-flipped .gcard-inner { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) { .gcard-inner { transition: none; } }
.gcard-face { position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 20px 50px rgb(var(--shadow-rgb) / .28), 0 2px 6px rgb(var(--shadow-rgb) / .2); }
.gcard-front { display: grid; grid-template-rows: auto 1fr auto; padding: 1.5rem 1.75rem; color: #2b1f17; background: #f6e7cf; }
.gc-art { position: absolute; inset: 0; }
.gc-brand, .gc-kind, .gc-amount { position: relative; }
.gc-brand { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.6rem; }
html[lang="zh-Hant"] .gc-brand { font-style: normal; letter-spacing: .08em; }
.gc-kind { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; align-self: start; }
.gc-amount { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); justify-self: end; font-variant-numeric: lining-nums; }
.gcard[data-design="morning"] .gcard-front { background: #f6e7cf; }
.gcard[data-design="morning"] .gc-art { background: radial-gradient(circle at 78% 112%, #ecc978 0 26%, transparent 26.5%), radial-gradient(circle at 78% 112%, #f0d79a 0 36%, transparent 36.5%), repeating-linear-gradient(0deg, transparent 0 22px, rgb(163 76 46 / .07) 22px 24px); }
.gcard[data-design="latte"] .gcard-front { background: #6b4630; color: #fbf3e6; }
.gcard[data-design="latte"] .gc-art { background: radial-gradient(ellipse 38% 46% at 80% 60%, #f3e3cb 0 40%, transparent 41%), radial-gradient(ellipse 30% 36% at 80% 60%, #6b4630 0 42%, transparent 43%), radial-gradient(ellipse 22% 26% at 80% 60%, #f3e3cb 0 44%, transparent 45%), radial-gradient(circle at 80% 60%, #8a5b3d 0 34%, transparent 34.5%); }
.gcard[data-design="winter"] .gcard-front { background: #3f4a3a; color: #f5efe0; }
.gcard[data-design="winter"] .gc-art { background: radial-gradient(circle, rgb(255 255 255 / .55) 1.5px, transparent 2px) 0 0 / 26px 26px, radial-gradient(circle, rgb(255 255 255 / .35) 1px, transparent 1.5px) 13px 13px / 26px 26px; }
.gcard-back { transform: rotateY(180deg); background: #fffaf1; color: #2b1f17; padding: 1.5rem 1.75rem; display: grid; align-content: space-between; gap: .5rem; background-image: repeating-linear-gradient(0deg, transparent 0 31px, #ead9bf 31px 32px); }
.gc-to span, .gc-from span { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6d5644; }
.gc-to strong, .gc-from strong { font-family: var(--serif); font-size: 1.25rem; }
.gc-msg { font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.45; min-height: 3em; overflow-wrap: anywhere; }
html[lang="zh-Hant"] .gc-msg { font-style: normal; }
.gc-msg.is-placeholder { color: #8a7563; }
.gc-from { justify-self: end; text-align: right; }
.gc-valid { font-size: .75rem; color: #6d5644; }
.design-pick { display: flex; gap: .75rem; flex-wrap: wrap; }
.design-opt { position: relative; display: grid; justify-items: center; gap: .35rem; cursor: pointer; font-weight: 500; font-size: .9375rem; }
.design-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.design-swatch { width: 84px; height: 54px; border-radius: 10px; border: 3px solid transparent; box-shadow: 0 0 0 1.5px var(--line-2); transition: transform .2s var(--ease), border-color .2s; }
.design-morning .design-swatch { background: radial-gradient(circle at 78% 115%, #ecc978 0 40%, transparent 41%), #f6e7cf; }
.design-latte .design-swatch { background: radial-gradient(circle at 75% 60%, #f3e3cb 0 22%, #8a5b3d 23% 36%, transparent 37%), #6b4630; }
.design-winter .design-swatch { background: radial-gradient(circle, rgb(255 255 255 / .6) 1.5px, transparent 2px) 0 0 / 12px 12px, #3f4a3a; }
.design-opt:has(input:checked) .design-swatch { border-color: var(--accent); transform: translateY(-3px); }
.design-opt:has(input:focus-visible) .design-swatch { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ============ 14. Footer + action bar ============ */
.site-footer { background: var(--bg-2); padding-block: clamp(3rem, 6vw, 5rem) 2rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-sign { display: grid; gap: 1rem; align-content: start; justify-items: start; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.sign-off { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.05; font-weight: 600; }
html[lang="zh-Hant"] .sign-off { font-style: normal; letter-spacing: .06em; line-height: 1.3; }
.footer-h { font-family: var(--sans); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .9rem; }
.footer-col { display: grid; gap: .35rem; align-content: start; }
.footer-col ul { display: grid; gap: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; text-underline-offset: .25em; }
.light-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: .5rem; }
.light-switch button { display: flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .75rem; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--surface); font-size: .875rem; font-weight: 500; text-align: left; }
.light-switch button[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); }
.footer-base a { display: inline-block; padding-block: .3rem; }
.action-bar {
  position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); color: var(--bg); border-radius: 22px; box-shadow: 0 10px 30px rgb(0 0 0 / .3); padding: .3rem; transition: transform .35s var(--ease);
}
.action-bar :is(a, button) { display: grid; justify-items: center; gap: .1rem; padding: .45rem .25rem; min-height: 56px; border-radius: 16px; text-decoration: none; font-size: .75rem; font-weight: 700; background: none; border: 0; color: inherit; position: relative; }
.action-bar :is(a, button):hover { background: rgb(255 255 255 / .1); }
[data-daypart="evening"] .action-bar :is(a, button):hover { background: rgb(0 0 0 / .08); }
.action-bar .ic { width: 22px; height: 22px; }
.action-bar .cart-count { position: absolute; top: .2rem; left: calc(50% + 4px); }
html.hh-hidden .action-bar { transform: translateY(0); }
@media (min-width: 900px) { .action-bar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } }

html[lang="zh-Hant"] :is(figcaption, .gc-msg, .note-who, .nf-en, .season-badge, .stamp) { font-style: normal; }
html[lang="zh-Hant"] .gc-msg { font-family: var(--sans); }

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.nf-inner { display: grid; justify-items: center; gap: 1.25rem; }
.nf-cup { width: 120px; }
.nf-cup .cup { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.nf-en { display: block; font-size: .5em; font-style: italic; color: var(--ink-2); margin-top: .5rem; }
.nf-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

/* ============ 15. Motion ============ */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-media .arch img { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes drift { to { transform: scale(1.08) translateY(3%); } }
  }
  /* reveal on scroll: only hidden once the script has confirmed it can show them again */
  html.can-reveal [data-reveal]:not(.is-in) { opacity: 0; translate: 0 28px; }
  html.can-reveal [data-reveal] { transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: var(--d, 0s); }
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; } .hero-copy > :nth-child(5) { animation-delay: .24s; }
}

/* ============ 16. Print (gift card) ============ */
@media print {
  body * { visibility: hidden; }
  body::before { display: none; }
  .gcard, .gcard * { visibility: visible; }
  .gcard { position: absolute; left: 1cm; top: 1cm; width: 12cm; }
  .gcard-inner { transform: none !important; }
  .gcard-back { position: relative; transform: none; margin-top: 1cm; }
  .gcard-face { box-shadow: none; border: 1px solid #ccc; }
}
@media (forced-colors: active) {
  .btn, .chip, .icon-btn, .status { border: 2px solid ButtonText; }
  .busy-bar { background: CanvasText !important; }
}

/* ============ Compare page ============ */
.shot-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .shot-grid { grid-template-columns: 1fr 1fr; } }
.shot-grid-phone { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; margin-top: 2.5rem; }
.shot { margin: 0; display: grid; gap: .75rem; }
.shot figcaption { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; text-align: center; }
.shot-frame { border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--line); box-shadow: var(--shadow-2); background: var(--surface); padding-top: 22px; position: relative; }
.shot-frame::before { content: ""; position: absolute; top: 8px; left: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); box-shadow: 14px 0 var(--line-2), 28px 0 var(--line-2); }
.shot-phone .shot-frame { border-radius: 28px; padding: 10px; }
.shot-phone .shot-frame::before { display: none; }
.shot-phone img { border-radius: 20px; }
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table :is(th, td) { text-align: left; vertical-align: top; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-family: var(--serif); font-size: 1.2rem; background: var(--bg-2); }
.compare-table thead th:last-child { color: var(--accent); }
.compare-table tbody th { font-weight: 700; width: 18%; }
.compare-table td:last-child { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.compare-table tr:last-child :is(th, td) { border-bottom: 0; }
/* Phones: one card per row with both versions side by side, so the premium column is never scrolled out of view. */
@media (max-width: 640px) {
  .table-scroll { overflow: visible; }
  .compare-table { min-width: 0; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .compare-table tr:last-child { border-bottom: 0; }
  .compare-table :is(th, td) { border-bottom: 0; padding: .75rem 1rem; }
  .compare-table tbody th { grid-column: 1 / -1; width: auto; padding-bottom: 0; }
  .compare-table td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; opacity: .7; margin-bottom: .2rem; }
  .compare-table td:last-child::before { color: var(--accent); opacity: 1; }
}
.compare-numbers td { font-variant-numeric: tabular-nums; white-space: nowrap; width: 30%; }
.compare-numbers tbody th { width: 40%; }
.numbers-sec .lede { margin-bottom: 1.5rem; max-width: 60ch; }
.numbers-sec .fine { margin-top: 1rem; }

/* ============ Client sites (lib/premium): sending by LINE, map link card ============ */
.form-done { overflow: auto; }
.send-out { display: grid; gap: .25rem; width: 100%; text-align: start; }
.send-out .btn-row { margin-block: .5rem 0; }
.send-text { margin: 0; padding: .9rem 1rem; background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: .9rem; line-height: 1.55; white-space: pre-wrap; max-height: 11rem; overflow: auto; }
.map-link { display: grid; gap: 1rem; align-content: center; justify-items: start; min-height: 100%; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-1); }
.map-link .glyph { width: 64px; height: 64px; }
.map-link address { font-weight: 700; font-size: 1.15rem; }
.map-link .btn-row { margin: 0; }
