/* Hallmark · theme: custom · idea: "直書題字與錯落的展品，讓一碗河粉像掛在藝廊牆上" · vibe: "quiet gallery, vertical calligraphy, deep green, sparse gold" · paper: deep green #0f281f with one rice-paper chapter · accent: gold #cfa959 · faces: Noto Serif TC display and body, Noto Sans TC labels, Cormorant Garamond latin · posture: restrained · axes: dark/roman-serif/warm · hero: custom, vertical title on the right edge, one large and one tiny exhibit to its left · nav: logo mark and name left, five plain links right · footer: round logo, vertical motto, contact links, company name · signature: the vertical hero title hung beside the first bowl on the menu */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5 · weakest: E, vertical body text on phones is slow to read; long passages and the menu switch to horizontal below 760px while titles stay vertical */
/* Hallmark · waive 39b · the hero button is set in vertical-rl, 44px wide, its height follows the four-character label · a hanging vertical tag beside the vertical title is the page's own idea; on phones it returns to a 48px horizontal button */
/* Hallmark · dismissed F17 · the hero sentence is set vertical-rl on purpose, so 95px is three columns of 17 characters, not a squeezed horizontal line */

:root {
  --paper: #0f281f;
  --paper-2: #12301f;
  --paper-3: #163a2d;
  --ink: #f6f0e2;
  --ink-soft: #a9c0b3;
  --line: #2a5645;
  --gold: #cfa959;
  --rice: #ece6d9;
  --rice-ink: #19392d;
  --rice-soft: #4a685a;
  --rice-line: #cdc4b0;
  --gold-deep: #765818;

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

  --gutter: clamp(16px, 4vw, 56px);
  --col-gap: clamp(24px, 3.4vw, 56px);
  --measure: 1360px;
  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.0625rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.75rem, 2.4vw, 2.25rem);
  --display: clamp(2.75rem, 6vw, 5.5rem);
  --display-s: clamp(2.25rem, 3.6vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-variant-numeric: lining-nums;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.9;
  font-weight: 400;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, .corridor:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  transition: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a:active, button:active { opacity: 0.7; }
button:disabled { opacity: 0.4; cursor: not-allowed; }

.wrap { width: min(var(--measure), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Vertical type */
.tategaki { writing-mode: vertical-rl; text-orientation: mixed; }
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.08em;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
.display .drop { display: inline-block; padding-inline-start: 2.2em; }
.tcy, .price, .p { text-combine-upright: all; }

.quiet {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}
.quiet:hover { text-decoration-color: var(--gold); }

/* Proposal line and header */
.proposal {
  font-family: var(--font-label);
  font-size: var(--step--1);
  color: var(--ink-soft);
  text-align: center;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 30px; height: auto; }
.brand span { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; letter-spacing: 0.04em; line-height: 1.3; }
.brand small { display: block; font-family: var(--font-latin); font-size: var(--step--1); letter-spacing: 0; color: var(--ink-soft); }
.site-head nav { display: flex; gap: clamp(16px, 2.4vw, 36px); font-family: var(--font-label); font-size: var(--step--1); }
.site-head nav a { padding-block: 8px; color: var(--ink-soft); white-space: nowrap; }
.site-head nav a:hover { color: var(--ink); }
.site-head nav .order { color: var(--ink); border-bottom: 1px solid var(--gold); }

/* 1. Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 5.4fr) minmax(0, 1.9fr) minmax(0, 1.7fr);
  grid-template-areas: "small main copy title";
  gap: var(--col-gap);
  min-height: min(740px, calc(100svh - 120px));
  padding-block: clamp(16px, 3vh, 36px) clamp(48px, 8vh, 96px);
}
.hero-small { grid-area: small; align-self: end; }
.hero-small img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; max-width: 150px; }
.hero-main { grid-area: main; display: flex; align-items: flex-end; gap: 16px; align-self: start; }
.hero-main img { flex: 1; min-width: 0; height: min(64svh, 600px); object-fit: cover; object-position: 50% 50%; }
.hero-main figcaption,
.story-tiny figcaption {
  writing-mode: vertical-rl;
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.8;
}
.hero-copy { grid-area: copy; writing-mode: vertical-rl; align-self: end; justify-self: center; }
.hero-copy .lede { inline-size: 17em; font-size: var(--step-0); line-height: 2.1; color: var(--ink-soft); }
.hero-actions { margin-block-start: 1.6em; display: flex; gap: 24px; align-items: flex-start; }
.btn {
  display: inline-block;
  padding: 20px 12px;
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: var(--step-0);
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--gold); color: var(--paper); }
.hero-actions .quiet { padding-block: 20px; }
.hero h1 { grid-area: title; font-size: var(--display); justify-self: end; align-self: start; }

/* 2. Story on rice paper */
.story { background: var(--rice); color: var(--rice-ink); padding-block: clamp(64px, 10vw, 140px); }
.story-inner { display: flex; flex-direction: row-reverse; align-items: flex-start; justify-content: space-between; gap: clamp(20px, 3vw, 48px); }
.story h2 { font-size: var(--display-s); flex: none; }
.couplet { font-size: var(--step-2); letter-spacing: 0.32em; color: var(--gold-deep); margin-top: 3.5em; flex: none; }
.couplet span { display: block; margin-block-end: 14px; }
.couplet span:nth-child(2) { padding-inline-start: 1.5em; }
.couplet span:nth-child(3) { padding-inline-start: 3em; }
.story-text { writing-mode: vertical-rl; inline-size: 24em; font-size: var(--step-1); line-height: 2.25; color: var(--rice-soft); flex: none; }
.story-text p + p { margin-block-start: 1.2em; }
.story-tall { width: clamp(220px, 22vw, 320px); margin-block-start: clamp(40px, 8vw, 120px); flex: none; }
.story-tiny { display: flex; align-items: flex-end; gap: 12px; align-self: flex-end; flex: none; }
.story-tiny img { width: clamp(96px, 9vw, 140px); aspect-ratio: 1; object-fit: cover; }
.story-tiny figcaption { color: var(--rice-soft); }

/* 3. Photo corridor */
.gallery { padding-block: clamp(72px, 10vw, 140px) clamp(40px, 6vw, 80px); }
.gallery-head { display: flex; flex-direction: row-reverse; align-items: flex-end; justify-content: space-between; gap: 32px; margin-block-end: clamp(32px, 4vw, 56px); }
.gallery-head h2 { font-size: var(--display-s); }
.gallery-note { max-width: 18em; color: var(--ink-soft); font-size: var(--step-0); }
.corridor-controls { display: flex; gap: 12px; }
.corridor-controls[hidden] { display: none; }
.corridor-controls button {
  font-family: var(--font-label);
  font-size: var(--step--1);
  padding: 8px 16px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s;
}
.corridor-controls button:hover { border-color: var(--gold); color: var(--ink); }
.gallery-head > div { display: flex; flex-direction: column; gap: 20px; }

.corridor {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 4.5vw, 80px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding-block-end: 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.ex { flex: none; display: flex; align-items: flex-end; gap: 12px; scroll-snap-align: start; }
.ex img { object-fit: cover; }
.ex-xl img { width: min(640px, 78vw); aspect-ratio: 3 / 2; }
.ex-l img { width: min(500px, 70vw); aspect-ratio: 3 / 2; }
.ex-m img { width: min(360px, 60vw); aspect-ratio: 4 / 3; }
.ex-tall img { width: min(300px, 56vw); aspect-ratio: 2 / 3; }
.ex-s img { width: min(220px, 44vw); aspect-ratio: 2 / 3; }
.ex-xs img { width: min(150px, 36vw); aspect-ratio: 3 / 4; }
.ex-low { margin-block-start: clamp(80px, 12vw, 180px); }
.ex-mid { margin-block-start: clamp(40px, 6vw, 90px); }
.label { writing-mode: vertical-rl; display: flex; gap: 0.9em; font-size: var(--step-0); line-height: 1.6; }
.label .price { font-family: var(--font-latin); color: var(--ink-soft); letter-spacing: 0; }

/* 4. Five crafts */
.craft { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: clamp(32px, 6vw, 112px); padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.craft h2 { font-size: var(--display-s); flex: none; }
.five { display: flex; flex-direction: row-reverse; flex: 1; justify-content: space-between; min-width: 0; }
.five li { writing-mode: vertical-rl; display: flex; gap: 1em; padding-inline: 0; }
.five li:nth-child(even) { margin-top: clamp(40px, 6vw, 100px); }
.five b { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.5rem, 4.6vw, 4.25rem); line-height: 1; }
.five p { inline-size: 15em; font-size: var(--step-0); line-height: 2.1; color: var(--ink-soft); }

/* 5. Menu */
.menu { background: var(--paper-2); padding-block: clamp(72px, 10vw, 140px); }
.menu-top { display: flex; flex-direction: row-reverse; align-items: flex-start; justify-content: space-between; gap: clamp(28px, 4vw, 64px); }
.menu-top h2 { font-size: var(--display-s); flex: none; }
.pho-block { display: flex; flex-direction: row-reverse; gap: 28px; flex: none; }
.pho-block .menu-cat { writing-mode: vertical-rl; color: var(--gold); }
.pho-list { writing-mode: vertical-rl; height: 15em; font-size: var(--step-1); }
.pho-list li { display: flex; justify-content: space-between; padding-inline: 0; margin-block-end: 0.85em; border-inline-end: 1px solid transparent; }
.pho-list li + li { padding-block-start: 0; }
.pho-list .p { font-family: var(--font-latin); font-size: var(--step-1); color: var(--ink-soft); letter-spacing: 0; }
.menu-cat { font-family: var(--font-label); font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); }
.menu-notes { max-width: 300px; display: flex; flex-direction: column; gap: 16px; color: var(--ink-soft); font-size: var(--step--1); line-height: 2; align-self: flex-end; }
.menu-sheet { margin-block-start: 16px; }
.menu-sheet img { width: 100%; border: 1px solid var(--line); }
.menu-sheet figcaption { display: flex; flex-wrap: wrap; gap: 8px 20px; white-space: nowrap; margin-block-start: 10px; }

.menu-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); margin-block-start: clamp(64px, 8vw, 112px); padding-block-start: 32px; border-top: 1px solid var(--line); }
.menu-cols .menu-cat { margin-block-end: 10px; }
.menu-cols .menu-cat:not(:first-child) { margin-block-start: 28px; }
.row-list li { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: var(--step-0); }
.row-list li span:last-child { font-family: var(--font-latin); font-size: var(--step-1); color: var(--ink-soft); white-space: nowrap; }

/* 6. Rooms */
.rooms {
  display: grid;
  grid-template-columns: minmax(0, 3.6fr) minmax(0, 2.2fr) minmax(0, 4.4fr);
  grid-template-areas: "a copy b" "a copy c";
  gap: var(--col-gap);
  padding-block: clamp(72px, 10vw, 140px);
}
.room-a { grid-area: a; }
.room-a img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.rooms-copy { grid-area: copy; display: flex; flex-direction: row-reverse; gap: 28px; justify-self: center; align-self: center; }
.rooms-copy h2 { font-size: var(--display-s); }
.rooms-copy p { writing-mode: vertical-rl; color: var(--ink-soft); font-size: var(--step-1); line-height: 2.2; padding-top: 5em; }
.room-b { grid-area: b; align-self: start; margin-block-start: clamp(40px, 6vw, 90px); }
.room-b img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.room-c { grid-area: c; width: 48%; justify-self: start; align-self: start; }
.room-c img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rooms figcaption { font-family: var(--font-label); font-size: var(--step--1); color: var(--ink-soft); margin-block-start: 8px; }

/* 7. Stores, set like seals */
.stores { background: var(--rice); color: var(--rice-ink); padding-block: clamp(72px, 10vw, 140px); }
.stores > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "seals head" "last last"; column-gap: var(--col-gap); align-items: start; }
.stores-head { grid-area: head; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 24px; }
.stores-head h2 { font-size: var(--display-s); }
.stores-note { writing-mode: vertical-rl; color: var(--rice-soft); font-size: var(--step-0); line-height: 2; margin-top: 9em; }
.seals { grid-area: seals; padding-top: clamp(40px, 6vw, 96px); display: flex; flex-direction: row-reverse; justify-content: space-between; gap: clamp(16px, 2.4vw, 40px); }
.seals li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  grid-template-areas: ". addr name city" "info info info info";
  align-content: start;
  column-gap: 16px;
  row-gap: 24px;
  flex: 1;
  min-width: 0;
}
.seals .city {
  grid-area: city;
  writing-mode: vertical-rl;
  align-self: start;
  font-family: var(--font-label);
  font-size: var(--step--1);
  color: var(--gold-deep);
  border: 1px solid var(--gold-deep);
  padding: 8px 4px;
  line-height: 1.2;
}
.seals h3 { grid-area: name; writing-mode: vertical-rl; font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); letter-spacing: 0.2em; line-height: 1.2; }
.seals .addr { grid-area: addr; writing-mode: vertical-rl; inline-size: max-content; max-inline-size: 26em; font-size: var(--step--1); line-height: 1.9; color: var(--rice-soft); padding-top: 1.5em; }
.seals .info { grid-area: info; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 4px; font-family: var(--font-label); font-size: var(--step--1); line-height: 1.7; color: var(--rice-soft); }
.seals .info a[href^="tel"] { font-family: var(--font-latin); font-size: var(--step-1); color: var(--rice-ink); }
.seals .quiet { text-decoration-color: var(--rice-line); margin-block-start: 4px; color: var(--rice-ink); }
.seals .quiet:hover { text-decoration-color: var(--gold-deep); }
.seals a:focus-visible { outline-color: var(--gold-deep); }
.last-order { grid-area: last; margin-block-start: 48px; padding-block-start: 18px; border-top: 1px solid var(--rice-line); font-family: var(--font-label); font-size: var(--step--1); color: var(--rice-soft); text-align: right; }

/* Footer */
.site-foot { background: var(--paper); border-top: 1px solid var(--line); padding-block: 56px 40px; }
.foot-inner { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: end; gap: 28px 40px; }
.foot-seal { width: 88px; }
.foot-motto { font-size: var(--step-2); letter-spacing: 0.24em; line-height: 1.4; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--font-label); font-size: var(--step--1); color: var(--ink-soft); }
.foot-links a:hover { color: var(--ink); }
.foot-legal { font-family: var(--font-label); font-size: var(--step--1); color: var(--ink-soft); }

/* Tablet */
@media (max-width: 1100px) {
  .story-inner { flex-wrap: wrap; justify-content: flex-start; }
  .story-tiny { display: none; }
  .menu-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-top { flex-wrap: wrap; justify-content: flex-start; }
  .menu-notes { max-width: none; flex: 1 1 100%; }
  .menu-sheet { max-width: 420px; }
  .seals { flex-wrap: wrap; justify-content: flex-start; row-gap: 56px; }
  .seals li { flex: 0 0 calc(33.333% - 28px); }
}

/* Phone: titles stay vertical, long passages and lists go horizontal */
@media (max-width: 760px) {
  .site-head { padding-block: 16px; }
  .site-head nav a:nth-child(-n+2) { display: none; }
  .brand small { display: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "main title" "main small" "copy copy";
    gap: 16px;
    min-height: 0;
    padding-block: 8px 64px;
  }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.25rem); }
  .hero-main { flex-direction: column; align-items: stretch; }
  .hero-main img { height: auto; aspect-ratio: 3 / 5; }
  .hero-main figcaption { writing-mode: horizontal-tb; letter-spacing: 0; }
  .hero-main figcaption br { display: none; }
  .hero-small { align-self: end; justify-self: end; }
  .hero-small img { width: 88px; }
  .hero-copy { writing-mode: horizontal-tb; justify-self: stretch; }
  .hero-copy .lede { inline-size: auto; font-size: var(--step-1); }
  .hero-actions { flex-direction: row; align-items: center; }
  .btn { padding: 12px 24px; }
  .hero-actions .quiet { padding-block: 12px; }

  .story-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: ". couplet title" "text text text" "tall tall tall"; gap: 28px 16px; }
  .story h2 { grid-area: title; font-size: clamp(2rem, 9vw, 2.5rem); }
  .couplet { grid-area: couplet; margin-top: 2em; font-size: var(--step-1); gap: 8px; }
  .story-text { grid-area: text; writing-mode: horizontal-tb; inline-size: auto; line-height: 2; }
  .story-tall { grid-area: tall; width: 72%; margin-block-start: 0; }

  .gallery-head { align-items: flex-start; }
  .gallery-head h2 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .corridor-controls { display: none; }
  .ex-low { margin-block-start: 48px; }
  .ex-mid { margin-block-start: 24px; }
  .ex-xl img { width: 70vw; aspect-ratio: 4 / 5; }

  .craft { display: grid; grid-template-columns: 1fr; gap: 36px; }
  .craft h2 { justify-self: end; font-size: clamp(2rem, 9vw, 2.5rem); }
  .five { flex-direction: column; gap: 0; }
  .five li { writing-mode: horizontal-tb; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; padding-block: 16px; border-top: 1px solid var(--line); }
  .five li:nth-child(even) { margin-top: 0; }
  .five b { font-size: 2.5rem; }
  .five p { inline-size: auto; }

  .menu-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .menu-top h2 { justify-self: end; font-size: clamp(2rem, 9vw, 2.5rem); }
  .pho-block { flex-direction: column; gap: 12px; }
  .pho-block .menu-cat { writing-mode: horizontal-tb; }
  .pho-list { writing-mode: horizontal-tb; height: auto; }
  .pho-list li { margin: 0; padding-block: 8px; border-bottom: 1px solid var(--line); gap: 16px; }
  .pho-list .p::before { content: "$"; }
  .menu-notes { max-width: none; align-self: stretch; }
  .menu-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-block-start: 48px; }

  .rooms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy copy" "a b" "a c"; gap: 16px; }
  .rooms-copy { justify-self: end; margin-block-end: 20px; }
  .rooms-copy h2 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .rooms-copy p { font-size: var(--step-0); }
  .room-b { margin-block-start: 0; }
  .room-c { width: 80%; }

  .stores > .wrap { display: block; }
  .stores-head { justify-content: flex-start; margin-block-end: 24px; }
  .stores-note { margin-top: 5em; font-size: var(--step--1); }
  .seals { padding-top: 0; }
  .stores-head h2 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .seals { flex-direction: column; gap: 0; }
  .seals li {
    flex: none;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-areas: "info addr name city";
    padding-block: 28px;
    border-top: 1px solid var(--rice-line);
  }
  .seals .addr { max-inline-size: 24em; }
  .seals .info { align-self: end; align-items: flex-start; text-align: left; }
  .last-order { text-align: left; }

  .foot-inner { grid-template-columns: auto minmax(0, 1fr); }
  .foot-motto { grid-row: span 2; justify-self: end; }
  .foot-links, .foot-legal { grid-column: 1 / -1; }
}

@media (max-width: 400px) {
  .site-head nav { gap: 12px; }
  .brand { gap: 8px; }
  .brand span { font-size: var(--step-0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .corridor-controls button { transition: none; }
}
