:root {
  color-scheme: light;
  --bg: #f7f5ef; --surface: #eeece4; --card: #fffdf8;
  --ink: #273c32; --muted: #626b61; --line: #d6dbcf;
  --accent: #365b47; --button-ink: #fffdf8; --header-h: 84px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17221d; --surface: #202e26; --card: #25352b;
  --ink: #edece1; --muted: #b9c4b6; --line: #405146;
  --accent: #c1d3aa; --button-ink: #17221d;
}
* { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
section:focus { outline: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; background: var(--card); padding: .8rem; }
.skip-link:focus { top: 1rem; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; min-height: var(--header-h); padding: 16px clamp(20px, 4vw, 72px); display: flex; align-items: center; gap: 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-brand { white-space: nowrap; font-family: "Noto Serif TC", "PMingLiU", serif; font-size: 26px; letter-spacing: .12em; }
.site-brand span { display: block; font: 10px/1.2 sans-serif; letter-spacing: .3em; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.8vw, 28px); margin-left: auto; }
.main-nav a { font-size: 14px; padding: 9px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.main-nav a[aria-current] { border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 16px; }
#theme-toggle { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 50%; width: 44px; height: 44px; font-size: 24px; display: grid; place-items: center; }
.theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; padding: 13px 24px; min-height: 44px; background: var(--accent); color: var(--button-ink); border-radius: 3px; font-size: 14px; }
.button:hover { color: var(--button-ink); filter: brightness(.92); }
.booking { gap: 14px; padding: 10px 18px; white-space: nowrap; }
main { padding-top: var(--header-h); }
.page-section { min-height: calc(100svh - var(--header-h)); padding: 32px clamp(24px, 6vw, 100px); position: relative; display: flex; flex-direction: column; justify-content: center; gap: 24px; border-bottom: 1px solid var(--line); }
.page-section:nth-child(even) { background: var(--surface); }
.eyebrow { font: 11px/1.4 sans-serif; letter-spacing: .22em; color: var(--muted); }
.section-heading { text-align: center; }
h2 { font-family: "Noto Serif TC", "PMingLiU", serif; font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: .08em; line-height: 1.4; margin: 8px 0; }
.section-heading > p:last-child { font-size: 14px; color: var(--muted); }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5vw; align-items: center; padding-bottom: 64px; }
.hero-copy h1 { font-family: "Noto Serif TC", "PMingLiU", serif; font-size: clamp(36px, 4vw, 64px); font-weight: 500; line-height: 1.65; letter-spacing: .08em; margin: 20px 0; }
.hero-description { color: var(--muted); line-height: 2; margin-bottom: 28px; }
.text-link { display: inline-block; font-size: 14px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.hero .text-link { margin-left: 24px; }
.hero-visual { min-width: 0; }
.hero-visual img { width: 100%; aspect-ratio: 1.1; height: auto; object-fit: cover; border-radius: 45% 45% 3px 3px; }
.visual-caption { display: block; text-align: right; font-size: 9px; letter-spacing: .25em; margin-top: 14px; color: var(--muted); }
.scroll-cue { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .15em; }
.gallery { width: 100%; max-width: 1180px; margin: 0 auto; min-width: 0; }
.gallery-stage { height: clamp(240px, calc(100svh - var(--header-h) - 270px), 680px); }
.gallery-slide { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gallery-slide img { width: 100%; height: calc(100% - 28px); min-height: 0; object-fit: contain; object-position: center; }
.gallery-slide figcaption { flex: 0 0 20px; color: var(--muted); font-size: 12px; text-align: center; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 12px; }
.gallery-controls button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 22px; }
.gallery-controls button:hover { background: var(--accent); color: var(--button-ink); }
.gallery-status { min-width: 60px; text-align: center; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ingredient-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1280px; width: 100%; margin: 0 auto; }
.ingredient-card { background: var(--card); border: 1px solid var(--line); padding: 20px; border-radius: 4px; }
.ingredient-card h3 { font-size: 17px; font-weight: 500; margin-bottom: 12px; }
.ingredient-card p { font-size: 13px; color: var(--muted); line-height: 1.9; overflow-wrap: anywhere; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px auto; width: 100%; max-width: 1280px; }
.video-card iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; background: var(--card); }
.video-card figcaption { color: var(--muted); font-size: 13px; margin-top: 12px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; max-width: 1100px; width: 100%; margin: 20px auto; }
.contact-details h3 { font-size: 22px; font-weight: 500; margin-bottom: 22px; }
dl { margin: 0 0 14px; }
dt { font-size: 12px; color: var(--muted); margin-top: 16px; }
dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.contact-details .text-link { display: table; }
.contact-map { width: 100%; height: 360px; max-height: 50svh; border: 1px solid var(--line); border-radius: 3px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.page-dots { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 15; display: grid; }
.page-dots a { width: 32px; height: 32px; display: grid; place-items: center; }
.page-dots span { width: 6px; height: 6px; border: 1px solid var(--muted); border-radius: 50%; }
.page-dots a[aria-current] span { background: var(--accent); border-color: var(--accent); transform: scale(1.5); }
.page-progress { position: fixed; bottom: 16px; right: 20px; z-index: 15; display: flex; gap: 8px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; background: var(--bg); padding: 4px 8px; border-radius: 2px; }
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y mandatory; }
  .page-section { scroll-snap-align: start; scroll-snap-stop: always; }
}
@media (max-width: 1100px) {
  .site-header { gap: 20px; padding-inline: 24px; }
  .main-nav { gap: 14px; }
  .header-actions { gap: 10px; }
  .ingredient-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 980px) {
  :root { --header-h: 124px; }
  .site-header { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 12px 24px 6px; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; margin: 0; justify-content: space-between; }
  .main-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .header-actions { grid-row: 1; grid-column: 2; }
  .page-dots, .page-progress { display: none; }
  .hero-copy h1 { font-size: 32px; }
  .hero .text-link { display: table; margin: 12px 0 0; }
}
@media (max-width: 767px) {
  :root { --header-h: 124px; }
  .site-header { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 12px 20px 6px; }
  .site-brand { font-size: 22px; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; width: 100%; margin: 0; justify-content: space-between; gap: 8px; }
  .main-nav a { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .header-actions { grid-row: 1; grid-column: 2; }
  .page-section { min-height: auto; padding: 44px 20px; gap: 24px; }
  .hero { min-height: calc(100svh - var(--header-h)); grid-template-columns: 1fr; gap: 24px; padding: 32px 24px 64px; }
  .hero-copy h1 { font-size: clamp(30px, 8vw, 44px); margin: 12px 0; line-height: 1.5; }
  .hero-description { font-size: 14px; margin-bottom: 18px; }
  .hero-visual { max-width: 480px; width: 100%; margin: 0 auto; }
  .hero-visual img { aspect-ratio: 1.9; border-radius: 3px; }
  .visual-caption { font-size: 8px; margin-top: 8px; }
  .gallery-stage { height: clamp(260px, 65svh, 560px); }
  .ingredient-grid { gap: 12px; }
  .ingredient-card { padding: 16px; }
  .video-grid { grid-template-columns: 1fr; max-width: 560px; gap: 28px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; margin: 0 auto; }
  .contact-map { height: 300px; }
  .page-dots, .page-progress { display: none; }
  .site-footer { flex-wrap: wrap; font-size: 9px; }
}
@media (max-width: 420px) {
  .ingredient-grid { grid-template-columns: 1fr; }
  .booking { padding-inline: 12px; }
  .hero .text-link { margin-left: 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
}
