/* Hallmark · genre: editorial · theme: custom · posture: committed · hero: custom · nav: brand bar, three anchor links and an order button · footer: colophon with round logo and contacts · signature: one bowl held in a sticky circle while six chapters scroll past it · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: P, the full menu runs long on a phone; kept every real item, grouped under category heads with leaders so it scans like the printed menu */
/* Hallmark · waive 79 · the right half of the fold is the sticky bowl, filled edge to edge at every viewport · the space beside the headline is the dark table around that bowl, which holds still while the chapters arrive */

:root {
  --c-forest: #0f281f;
  --c-forest-2: #133328;
  --c-forest-3: #0b1f18;
  --c-green: #2f7e63;
  --c-line: #215743;
  --c-gold: #cea859;
  --c-gold-soft: #ddbe7c;
  --c-gold-deep: #8f6f2a;
  --c-gold-ink: #74581d;
  --c-ivory: #f7f2e7;
  --c-paper: #f3ecdd;
  --c-paper-2: #eae2cf;
  --c-ink: #16271f;
  --c-ink-green: #194132;
  --c-ink-muted: #4b695a;
  --c-muted: #a3bcaf;
  --c-rule-paper: #c9bc9c;
  --c-scrim: rgb(9 24 18 / 0.78);
  --c-scrim-0: rgb(9 24 18 / 0);
  --c-shadow: rgb(4 14 10 / 0.45);

  --f-display: 'Noto Serif TC', 'Songti TC', serif;
  --f-body: 'Noto Sans TC', 'PingFang TC', sans-serif;
  --f-latin: 'Cormorant Garamond', 'Noto Serif TC', serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fade: 900ms;
  --dur-zoom: 2400ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-forest);
  color: var(--c-ivory);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  min-width: 320px;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  transition: none;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--c-gold);
  color: var(--c-ink);
  padding: 8px 16px;
  z-index: 50;
}
.skip:focus-visible { top: 12px; }

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Proposal line and header ---------- */
.proposal-tag {
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-muted);
  text-align: center;
  padding: 8px var(--gutter);
  background: var(--c-forest-3);
}
.site-head {
  max-width: var(--container);
  margin-inline: auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 30px; height: auto; }
.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}
.brand-en {
  display: block;
  font-family: var(--f-latin);
  font-weight: 400;
  font-size: 15px;
  color: var(--c-muted);
}
.site-nav { display: flex; gap: 28px; font-size: 15px; }
.site-nav a { text-decoration: none; padding-block: 8px; }
.site-nav a:hover { color: var(--c-gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--c-gold);
  color: var(--c-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.btn:hover { background: var(--c-gold-soft); transform: translateY(-1px); }
.btn:active { transform: translateY(0); background: var(--c-gold); }
a:active { color: var(--c-gold-soft); }
.btn-small { min-height: 40px; padding: 8px 20px; font-size: 14px; }
.text-link {
  text-decoration: underline;
  text-decoration-color: var(--c-gold);
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
  padding-block: 12px;
}
.text-link:hover { color: var(--c-gold); }

/* ---------- Type ---------- */
.display, .display-md, .ch-title {
  font-family: var(--f-display);
  font-weight: 700;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
.display {
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.22;
}
.display span { display: block; white-space: nowrap; }
.nw { display: inline-block; }
.display-md {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.35;
}
.ch-title {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.4;
  margin-bottom: 20px;
}
.lede { font-size: 17px; color: var(--c-muted); max-width: 30em; margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

/* ---------- The story (mobile first: photo above text, one long column) ---------- */
.story {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.stage { display: none; }
.chapter { padding-block: 44px; }
.chapter + .chapter { border-top: 1px solid var(--c-line); }
.chapter-open { padding-top: 12px; }
.ch-photo {
  width: min(82vw, 380px);
  aspect-ratio: 1;
  margin: 0 auto 32px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--c-gold-deep), 0 0 0 10px var(--c-forest), 0 0 0 11px var(--c-line);
}
.ch-photo img { width: 100%; height: 100%; object-fit: cover; }
.ch-text { max-width: 34em; }
.ch-text > p:not(.glyph):not(.lede):not(.verse) { color: var(--c-muted); font-size: 17px; }
.glyph {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(64px, 8vw, 120px);
  line-height: 1;
  color: var(--c-gold);
  margin-bottom: 20px;
}
.verse {
  writing-mode: vertical-rl;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 2.1;
  color: var(--c-gold);
  margin-top: 28px;
  height: 10em;
}

/* Desktop without scripting: each chapter is its own still diptych. */
@media (min-width: 60rem) {
  html:not(.js) .chapter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    min-height: 80svh;
  }
  html:not(.js) .ch-photo { order: 2; width: min(100%, 520px); margin: 0 auto; }
}

/* Desktop with scripting: the bowl holds still on the right, the chapters pass on the left. */
@media (min-width: 60rem) {
  .js .story {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(40px, 6vw, 112px);
  }
  .js .chapters { order: 1; min-width: 0; }
  .js .stage {
    display: block;
    order: 2;
    position: sticky;
    top: 0;
    height: 100svh;
    min-width: 0;
  }
  .js .ch-photo { display: none; }
  .js .chapter {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 80px;
  }
  .js .chapter + .chapter { border-top: 0; }
  .js .chapter-open { min-height: calc(100svh - 120px); padding-top: 24px; }
  .ch-origin { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; }
  .ch-origin > .glyph, .ch-origin > .ch-title, .ch-origin > p:not(.verse) { grid-column: 1; }
  .ch-origin > .verse { grid-column: 2; grid-row: 1 / span 3; margin-top: 8px; }
}

.stage-inner {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  position: relative;
}
.bowl {
  position: relative;
  width: min(calc(100svh - 270px), 100%, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-forest-2);
  box-shadow: 0 30px 80px var(--c-shadow);
  grid-area: 1 / 1;
}
.orbit {
  grid-area: 1 / 1;
  width: calc(min(calc(100svh - 270px), 100%, 640px) + 44px);
  aspect-ratio: 1;
  overflow: visible;
  pointer-events: none;
}
.orbit-track { fill: none; stroke: var(--c-line); stroke-width: 0.25; }
.orbit-mark {
  fill: none;
  stroke: var(--c-gold);
  stroke-width: 0.6;
  stroke-linecap: round;
  stroke-dasharray: 34 326;
  transform-origin: 50% 50%;
  transform: rotate(-107deg);
  transition: transform 1100ms var(--ease-out);
}
.stage[data-step="1"] .orbit-mark { transform: rotate(-47deg); }
.stage[data-step="2"] .orbit-mark { transform: rotate(13deg); }
.stage[data-step="3"] .orbit-mark { transform: rotate(73deg); }
.stage[data-step="4"] .orbit-mark { transform: rotate(133deg); }
.stage[data-step="5"] .orbit-mark { transform: rotate(193deg); }

.frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-fade) var(--ease);
}
.frame figcaption { display: none; }
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: var(--ox) var(--oy);
  transform: scale(var(--z0));
  transition: transform var(--dur-zoom) var(--ease-out);
}
.frame.is-active { opacity: 1; }
.frame.is-active img { transform: scale(var(--z1)); }
.stage-caption {
  grid-area: 2 / 1;
  font-size: 14px;
  color: var(--c-muted);
  text-align: center;
  min-height: 1.85em;
}

/* ---------- The bowl opens into the table ---------- */
.unfold { position: relative; margin-top: clamp(24px, 6vw, 96px); }
.unfold-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.unfold-photo img { width: 100%; height: 100%; object-fit: cover; }
.unfold-text {
  max-width: var(--container);
  margin-inline: auto;
  padding: 32px var(--gutter) 8px;
}
.unfold-text p { color: var(--c-muted); margin-top: 16px; font-size: 17px; }

@media (min-width: 48rem) {
  .unfold-photo { aspect-ratio: auto; height: clamp(460px, 82vh, 880px); }
  .unfold-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--c-scrim) 0%, var(--c-scrim-0) 55%);
  }
  .unfold-text {
    position: absolute;
    inset: auto 0 0 0;
    padding-bottom: clamp(36px, 6vw, 80px);
  }
  .unfold-text p { color: var(--c-ivory); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 48rem) {
    .unfold-photo {
      animation: bowl-opens linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 48%;
    }
    @keyframes bowl-opens {
      from { clip-path: circle(24% at 50% 50%); }
      to { clip-path: circle(72% at 50% 50%); }
    }
  }
}

/* ---------- Menu, on paper ---------- */
.menu {
  background: var(--c-paper);
  color: var(--c-ink);
  padding-block: clamp(64px, 9vw, 136px);
}
.menu-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.menu-head .display-md { color: var(--c-ink-green); }
.menu-head p { color: var(--c-ink-muted); max-width: 30em; }
@media (min-width: 60rem) {
  .menu-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; column-gap: clamp(48px, 7vw, 112px); }
}

.menu-board { display: grid; gap: 56px; }
@media (min-width: 60rem) {
  .menu-board { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(40px, 5vw, 80px); }
  .dish-name { white-space: nowrap; }
}
.menu-side { columns: 1; column-gap: 40px; }
@media (min-width: 40rem) { .menu-side { columns: 2; } }
.menu-group { break-inside: avoid; margin-bottom: 40px; }
.menu-cat {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.4;
  color: var(--c-ink-green);
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--c-gold-deep);
}
.menu-main .menu-cat { font-size: 26px; }
.dish-line { display: flex; align-items: baseline; gap: 12px; line-height: 1.5; }
.dish-name { font-weight: 400; font-size: 16px; }
.leader {
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted var(--c-rule-paper);
  transform: translateY(-5px);
}
.price {
  font-family: var(--f-latin);
  font-weight: 700;
  font-size: 20px;
  font-variant-numeric: lining-nums;
  color: var(--c-gold-ink);
  white-space: nowrap;
}
.price-multi { text-align: right; line-height: 1.3; }
.tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--c-gold-ink);
  border: 1px solid var(--c-rule-paper);
  border-radius: 4px;
  padding: 0 4px;
  margin-left: 8px;
  vertical-align: 2px;
}
.dishes-text li { padding-block: 8px; }
.dishes-photo li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding-block: 16px;
  border-bottom: 1px solid var(--c-paper-2);
}
.dishes-photo img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--c-rule-paper), 0 0 0 5px var(--c-paper), 0 0 0 6px var(--c-paper-2);
}
.dishes-photo .dish-name { font-size: 18px; font-weight: 700; }
.dish-note { font-size: 14px; color: var(--c-ink-muted); margin-top: 4px; line-height: 1.7; }
.dishes-photo + .dishes-text { margin-top: 12px; }
.menu-aside {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-rule-paper);
  font-size: 14px;
  color: var(--c-ink-muted);
}

.how {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 40px;
  border-top: 1px solid var(--c-gold-deep);
  display: grid;
  gap: 28px;
}
.how-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--c-ink-green);
}
.how-steps { display: grid; gap: 24px; }
.how-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.how-num { font-family: var(--f-display); font-weight: 900; font-variant-numeric: tabular-nums; font-size: 34px; line-height: 1; color: var(--c-gold-ink); }
.how-steps p { font-size: 15px; color: var(--c-ink); }
.how-links { font-size: 14px; color: var(--c-ink-muted); }
.how-links a { color: var(--c-ink-green); text-decoration: underline; text-decoration-color: var(--c-gold-deep); text-underline-offset: 5px; margin-inline: 4px; }
.how-links a:focus-visible { outline-color: var(--c-gold-deep); }
@media (min-width: 60rem) {
  .how { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: clamp(48px, 7vw, 112px); }
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .how-links { grid-column: 2; }
}

/* ---------- Stores ---------- */
.stores { padding-block: clamp(64px, 9vw, 136px); }
.stores-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 64px); }
.stores-head p { color: var(--c-muted); }
@media (min-width: 60rem) {
  .stores-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; column-gap: clamp(48px, 7vw, 112px); }
}
.city {
  display: grid;
  gap: 28px;
  padding-block: 40px;
  border-top: 1px solid var(--c-line);
}
.city-side { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.city-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 1;
  color: var(--c-gold);
}
.arch { width: min(44vw, 260px); }
.arch img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
}
.arch figcaption { font-size: 13px; color: var(--c-muted); margin-top: 12px; }
.city:last-child .arch img { object-position: 78% 50%; }
.store {
  display: grid;
  gap: 8px 32px;
  padding-block: 24px;
  border-bottom: 1px solid var(--c-line);
}
.store:first-child { padding-top: 0; }
.store:last-child { border-bottom: 0; }
.store h3 { font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.4; }
.store-addr, .store-hours { font-size: 15px; line-height: 1.75; }
.store-hours { color: var(--c-muted); }
.store-hint { display: block; font-size: 14px; color: var(--c-muted); margin-top: 2px; }
.store-links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; }
.store-links a {
  text-decoration: underline;
  text-decoration-color: var(--c-gold-deep);
  text-underline-offset: 6px;
  padding-block: 8px;
}
.store-links a:hover { color: var(--c-gold); }
@media (min-width: 60rem) {
  .city { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(48px, 7vw, 112px); padding-block: 56px; }
  .city-side { flex-direction: column; align-items: start; justify-content: start; }
  .arch { width: min(100%, 300px); }
  .store { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .store h3, .store-links { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */
.site-foot { background: var(--c-forest-3); padding-block: 56px 40px; }
.foot-grid { display: grid; gap: 20px; justify-items: start; }
.foot-logo { width: 96px; height: 96px; }
.foot-line { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.4; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; }
.foot-links a { text-decoration: none; padding-block: 8px; display: inline-block; }
.foot-links a:hover { color: var(--c-gold); text-decoration: underline; text-underline-offset: 6px; }
.foot-legal { font-size: 13px; color: var(--c-muted); }
@media (min-width: 60rem) {
  .foot-grid { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 40px; }
  .foot-logo { grid-row: 1 / span 2; }
  .foot-links { grid-column: 3; grid-row: 1; justify-content: end; }
  .foot-legal { grid-column: 3; grid-row: 2; justify-self: end; }
}

/* ---------- Small screens ---------- */
@media (max-width: 47.99rem) {
  .site-head { padding-block: 16px 12px; gap: 12px 16px; }
  .site-nav { order: 3; width: 100%; gap: 24px; border-top: 1px solid var(--c-line); padding-top: 4px; }
  .brand-name { font-size: 16px; }
  .brand-en { font-size: 14px; }
}

/* ---------- Reduced motion: every state lands at once ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame, .frame img, .orbit-mark, .btn { transition: none; }
  .frame img, .frame.is-active img { transform: scale(var(--z1)); }
  .unfold-photo { animation: none; clip-path: none; }
}
