:root {
  color-scheme: light;
  --ink: #152640;
  --navy: #172e4b;
  --soft-ink: #545f68;
  --cream: #f8f5ee;
  --paper: #fcfaf5;
  --blue: #335477;
  --line: #d9d7cd;
  --header: 5rem;
  --serif: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --latin: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.85 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ad814d; outline-offset: 5px; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.35; }
h2 { font-size: clamp(2rem, 4.65vw, 3.45rem); letter-spacing: .055em; }
.shell { width: min(100% - 4rem, 1160px); margin-inline: auto; }
.section-pad { padding-block: clamp(4.5rem, 9vw, 8rem); }
.center { text-align: center; }
.skip-link { position: fixed; top: .6rem; left: .6rem; z-index: 20; padding: .4rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { height: var(--header); position: sticky; z-index: 10; top: 0; background: rgba(252,250,245,.97); border-bottom: 1px solid #182a4318; }
.header-inner { width: min(100% - 4rem, 1270px); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; width: fit-content; gap: .7rem; line-height: 1.08; }
.brand img { width: 49px; height: 49px; border-radius: 50%; object-fit: cover; }
.brand strong { display: block; font: 700 1.36rem/1.15 var(--serif); letter-spacing: .13em; }
.brand small { display: block; margin-top: .16rem; font: 600 .76rem/1 var(--latin); letter-spacing: .27em; }
.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.7rem); }
.site-nav a { position: relative; font-size: .94rem; font-weight: 500; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; inset: auto 0 -.4rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .22s; }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.nav-toggle { display: none; }
.hero { min-height: clamp(510px, 47vw, 710px); position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; background: #e8dfd3; }
.hero-image { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 57% center; animation: photo-in 1.15s both, photo-drift 12s .2s both; }
.hero::after { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(247,240,230,.8),rgba(248,241,229,.46) 36%,transparent 66%); }
.hero-inner { padding-block: 4rem; padding-left: clamp(0rem, 3vw, 2.75rem); }
.hero-inner > * { animation: text-in .8s .18s both; }
.hero-inner h1 { animation-delay: .34s; }
.hero-inner .button { animation-delay: .55s; }
.hero-brand { width: fit-content; margin-bottom: 1.2rem; font: 600 1.3rem/1.4 var(--serif); letter-spacing: .18em; }
.hero-brand span { margin-left: .35rem; font: 600 1.2rem/1 var(--latin); letter-spacing: .24em; }
.hero h1 { width: fit-content; font-size: clamp(3rem, 6.1vw, 6rem); letter-spacing: .08em; line-height: 1.25; }
.hero h1 span { display: block; }
.hero .button { margin-top: 2.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-image { inset: -36px -12px; translate: var(--hero-photo-x, 0px) var(--hero-photo-y, 0px); }
  .hero-brand, .hero h1 { translate: var(--hero-text-x, 0px) var(--hero-text-y, 0px); }
}
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: .55rem 1.45rem; border: 1px solid var(--navy); font-weight: 500; letter-spacing: .045em; transition: background .2s, color .2s, border .2s; }
.button-primary { color: #fffaf0; background: var(--navy); }
.button-primary:hover { background: #2f5075; border-color: #2f5075; }
.button-outline:hover { background: var(--navy); color: #fffaf0; }
.section-label { color: #546c85; font: 600 1.15rem/1.2 var(--latin); letter-spacing: .1em; margin-bottom: .55rem; }
.section-heading { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-heading > p:last-child { margin-top: .9rem; color: var(--soft-ink); }
.story-copy { display: grid; grid-template-columns: .78fr 1.22fr; align-items: start; gap: 1.6rem 4rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.story-lead { margin-bottom: .65rem; font: 500 clamp(1.32rem, 2.6vw, 1.95rem)/1.55 var(--serif); letter-spacing: .045em; }
.story-copy > div > p:last-child { color: var(--soft-ink); max-width: 31ch; }
.story-panels { display: flex; gap: clamp(.35rem, 1vw, .8rem); height: clamp(280px, 37vw, 460px); }
.story-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: block; padding: 0; border: 0; background: var(--cream); color: var(--cream); cursor: pointer; transition: flex-grow .6s ease-out; }
.story-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-panel::after { position: absolute; inset: 38% 0 0; content: ""; background: linear-gradient(transparent, var(--navy)); opacity: 0; transition: opacity .25s ease-out; }
.story-panel-title { position: absolute; z-index: 1; bottom: clamp(.75rem, 3vw, 2rem); left: clamp(.6rem, 3vw, 2rem); font: 600 clamp(1rem, 3vw, 1.85rem)/1.3 var(--serif); letter-spacing: .08em; white-space: nowrap; opacity: 0; transition: opacity .25s ease-out; }
.story-panel[aria-pressed="true"] { flex-grow: 4; }
.story-panel[aria-pressed="true"]::after { opacity: .85; }
.story-panel[aria-pressed="true"] .story-panel-title { opacity: 1; transition-delay: .6s; }
@media (hover: hover) and (pointer: fine) {
  .story-panels:has(.story-panel:hover) .story-panel:not(:hover) { flex-grow: 1; }
  .story-panels:has(.story-panel:hover) .story-panel:not(:hover)::after,
  .story-panels:has(.story-panel:hover) .story-panel:not(:hover) .story-panel-title { opacity: 0; transition-delay: 0s; }
  .story-panel:hover { flex-grow: 4; }
  .story-panel:hover::after { opacity: .85; }
  .story-panel:hover .story-panel-title { opacity: 1; transition-delay: .6s; }
}
.home-menu, .faq { background: #f3ecdf url("/assets/paper.webp") repeat; }
.category-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 720px; gap: clamp(1.25rem,4vw,3.25rem); margin: 0 auto 2.3rem; }
.category-preview a { display: block; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.category-preview a:hover { border-color: var(--navy); }
.category-preview img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.category-preview span { display: block; text-align: center; padding: .8rem 0; font: 600 1.22rem/1.5 var(--serif); letter-spacing: .12em; }
.soy-milk { background: var(--cream); padding-block: clamp(3rem, 7vw, 6rem); }
.soy-milk-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.soy-milk-copy { max-width: 25rem; }
.soy-milk-copy .soy-milk-lead { margin-block: .8rem .65rem; color: var(--ink); font: 600 clamp(1.125rem, 2vw, 1.5rem)/1.55 var(--serif); }
.soy-milk-copy p { color: var(--soft-ink); }
.soy-milk-photo { overflow: hidden; }
.soy-milk-photo img { width: 100%; height: auto; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .soy-milk-layout.will-reveal .soy-milk-photo {
    clip-path: inset(0 0 0 100%);
  }
  .soy-milk-layout.has-entered .soy-milk-photo {
    animation: soy-photo-reveal .85s cubic-bezier(.2,.65,.3,1) both;
  }
  .soy-milk-layout.has-entered .soy-milk-photo img {
    animation: soy-photo-zoom 1.1s ease-out both;
    transform-origin: 65% center;
    translate: 0 var(--soy-photo-y, 0%);
    transition: translate .15s ease-out;
  }
}
@keyframes soy-photo-reveal {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0); }
}
@keyframes soy-photo-zoom {
  from { scale: 1; }
  to { scale: 1.04; }
}
.store-card { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); max-width: 950px; margin-inline: auto; }
.store-visual { min-height: 250px; background: #e3d6c4 url("/assets/buns.webp") center / cover; }
.store-copy { padding: clamp(1.6rem, 4vw, 3rem); }
.store-copy h3 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: .8rem; }
.store-copy address { font-style: normal; }
.store-copy dl { margin: .8rem 0 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; }
.store-copy dt { font-weight: 600; }
.store-copy dd { color: var(--soft-ink); margin: 0; }
.faq-layout { display: grid; grid-template-columns: .68fr 1.32fr; gap: clamp(2rem, 6vw, 6rem); }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; padding: 1.05rem 0; font-weight: 500; gap: .85rem; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); color: var(--blue); }
.questions details[open] summary::after { content: "−"; }
.questions details p { padding: 0 1.6rem 1rem 0; color: var(--soft-ink); }
.site-footer { padding: clamp(3.2rem,7vw,5.5rem) 0 1.4rem; background: #142843; color: #fbf3e5; }
.footer-grid { display: grid; grid-template-columns: 1.55fr .8fr 1fr; gap: clamp(2rem, 7vw, 7rem); }
.footer-grid h2 { font-size: 1.15rem; margin-bottom: .85rem; }
.footer-grid p, .footer-grid nav > a, .footer-grid div:not(.social) > a:not(.brand) { font-size: .94rem; color: #d4deea; }
.footer-grid nav > a, .footer-grid div:not(.social) > a:not(.brand) { display: block; width: fit-content; padding: .06rem 0; }
.footer-grid nav > a:hover, .footer-grid div:not(.social) > a:not(.brand):hover { text-decoration: underline; }
.footer-about > p { margin-top: .75rem; }
.social { margin-top: 1rem; display: flex; gap: .55rem; }
.social > a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #b5c7de6b; color: #d4deea; line-height: 1; font-weight: 600; }
.social > a:hover { border-color: currentColor; }
.social i { width: 15px; height: 15px; border: 1.4px solid currentColor; display: grid; place-items: center; border-radius: 4px; position: relative; }
.social i::before { content: ""; width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; }
.social i::after { content: ""; width: 2px; height: 2px; background: currentColor; border-radius: 50%; position: absolute; top: 2px; right: 2px; }
.footer-bottom { border-top: 1px solid #91a8c348; margin-top: 3rem; padding-top: 1.15rem; font-size: .85rem; color: #d4deea; }
.menu-banner { padding: clamp(2.5rem, 6vw, 5.1rem) 1.2rem; background: #eadcc4 url("/assets/buns.webp") center 40% / cover; text-align: center; position: relative; isolation: isolate; }
.menu-banner::before { content: ""; z-index: -1; position: absolute; inset: 0; background: radial-gradient(ellipse, #fff7e6da, #fff6e96b 60%, #fff3e218); }
.menu-banner h1 { font-size: clamp(2.25rem, 5vw, 4.1rem); letter-spacing: .14em; }
.menu-layout { display: grid; grid-template-columns: 170px 1fr; gap: clamp(2rem,5vw,5rem); padding-block: clamp(2.8rem, 6vw, 5.5rem); align-items: start; }
.category-nav { display: flex; flex-direction: column; position: sticky; top: calc(var(--header) + 1.5rem); gap: .2rem; }
.category-nav button { border: 0; border-left: 2px solid transparent; background: transparent; padding: .58rem .85rem; text-align: left; color: var(--ink); cursor: pointer; white-space: nowrap; }
.category-nav button:hover { background: #f0eadf; }
.category-nav button[aria-pressed="true"] { background: #e9e8e0; border-color: var(--navy); font-weight: 600; }
.menu-results { min-width: 0; }
.menu-results h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-bottom: .45rem; }
.menu-status { color: var(--soft-ink); margin-bottom: 1.4rem; }
.menu-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem, 3vw, 2.3rem); }
.menu-grid article { border-bottom: 1px solid var(--line); }
.menu-grid img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.menu-grid h3 { font: 600 1.03rem/1.5 var(--sans); padding: .65rem .1rem; }
.will-reveal { opacity: 0; transform: translateY(17px); transition: opacity .55s ease, transform .55s ease; }
.will-reveal.has-entered, .will-reveal:focus-within { opacity: 1; transform: none; }
@keyframes text-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes photo-drift { from { transform: scale(1.035); } to { transform: scale(1.10); } }
@media (max-width: 770px) {
  :root { --header: 4.1rem; }
  .shell, .header-inner { width: calc(100% - 2.35rem); }
  .brand img { width: 40px; height: 40px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: .7rem; padding: .4rem .25rem; color: var(--ink); background: transparent; cursor: pointer; border: 0; }
  .nav-toggle span { display: block; width: 18px; height: 8px; border-block: 1px solid currentColor; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; width: 100%; padding: .75rem 1.2rem 1.2rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: .2rem; }
  .site-nav a { padding: .36rem 0; }
  .site-nav a::after { bottom: 0; max-width: 5em; }
  .hero { min-height: min(630px, 80svh); align-items: end; }
  .hero-image img { object-position: 66% center; }
  .hero::after { background: linear-gradient(0deg,rgba(249,242,230,.94),rgba(249,242,230,.76) 24%,rgba(249,242,230,.1) 68%,transparent); }
  .hero-inner { padding-block: 2.4rem; }
  .hero-brand { margin-bottom: .65rem; }
  .hero h1 { font-size: clamp(2.7rem, 10.2vw, 4.9rem); }
  .hero .button { margin-top: 1.2rem; }
  .story-copy, .soy-milk-layout, .store-card, .faq-layout { grid-template-columns: 1fr; }
  .store-visual { min-height: 175px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; }
  .footer-about { grid-column: 1 / -1; }
  .menu-layout { grid-template-columns: 1fr; gap: 1.35rem; }
  .category-nav { position: static; flex-direction: row; overflow-x: auto; padding: .2rem; }
  .category-nav button { border-left: 0; border-bottom: 2px solid transparent; padding: .45rem .65rem; }
  .menu-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .will-reveal { opacity: 1; transform: none; }
}
