:root {
  --red: #9d1c14;
  --red-deep: #6e100b;
  --ink: #1c140f;
  --cream: #f6efe2;
  --paper: #fffaf3;
  --wood: #2c1b12;
  --wood-2: #4a2e1d;
  --gold: #a97832;
  --line: rgba(28, 20, 15, 0.12);
  --shadow: 0 18px 50px rgba(44, 27, 18, 0.16);
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --brush: "Ma Shan Zheng", "Noto Serif SC", cursive;
  --header: 68px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 900; }
::selection { background: #f0c4b6; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  background: rgba(246, 239, 226, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(157, 28, 20, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand strong { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: 0.08em; }
.brand small { display: block; letter-spacing: 0.28em; font-size: 11px; color: var(--red); margin-top: 1px; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 7px, var(--cream) 8px 9px, transparent 10px),
    var(--red);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.08);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  height: 8px;
  border: 2px solid var(--cream);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.nav { display: flex; gap: 18px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--red); }
.cart-btn, .btn {
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cart-btn {
  background: var(--ink);
  color: var(--cream);
  padding: 8px 14px 8px 16px;
  font-weight: 700;
}
.count {
  min-width: 22px;
  height: 22px;
  border-radius: 99px;
  background: var(--red);
  color: white;
  font-size: 12px;
  display: grid;
  place-items: center;
  padding: 0 6px;
}
.btn { padding: 12px 22px; font-weight: 700; }
.btn.solid { background: var(--red); color: #fffaf3; }
.btn.solid:hover { background: var(--red-deep); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(28, 20, 15, 0.28); }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red); }
.btn.wide { width: 100%; padding: 14px; position: sticky; bottom: 10px; }
.btn:disabled { opacity: 0.55; cursor: wait; }

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, 0.95fr);
  min-height: calc(100svh - var(--header));
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(169, 120, 50, 0.16), transparent 55%),
    var(--cream);
}
.hero-copy {
  padding: 64px 48px 56px max(24px, calc((100% - 40px) / 12));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}
.eyebrow.light { color: #f0c7a2; }
.eyebrow span {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border: 1px solid var(--red);
  letter-spacing: 0.14em;
}
h1 {
  margin: 0;
  font-size: clamp(64px, 8vw, 108px);
  letter-spacing: 0.06em;
}
h1 span {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 0.46em;
  letter-spacing: 0.34em;
}
.slogan {
  margin: 18px 0 0;
  font-family: var(--brush);
  font-size: 30px;
  line-height: 1.35;
  color: var(--red-deep);
}
.lead { max-width: 38em; margin: 16px 0 0; font-size: 16.5px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: rgba(28, 20, 15, 0.72);
}
.facts li { position: relative; }
.facts li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  margin-right: 18px;
  transform: translateY(-2px);
}
.hero-stage { position: relative; min-height: 520px; overflow: hidden; background: #3a2016; }
.hero-stage img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 239, 226, 0.55), transparent 16%),
    linear-gradient(180deg, transparent 58%, rgba(28, 20, 15, 0.55));
  pointer-events: none;
}
.hero-caption {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 18px;
  margin: 0;
  color: white;
  letter-spacing: 0.06em;
}
.seal {
  position: absolute;
  z-index: 1;
  top: 28px;
  right: 24px;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff6ea;
  border: 2px solid rgba(255, 246, 234, 0.85);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.12em;
  line-height: 1.25;
  transform: rotate(8deg);
  background: rgba(157, 28, 20, 0.78);
}

.marquee { background: var(--red); color: #fff6ea; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.marquee p {
  margin: 0;
  padding: 10px 0;
  font-weight: 700;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
@keyframes ticker { to { transform: translateX(-50%); } }

.story { padding: 88px 0; }
.story-grid, .visit-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: 0.04em; }
blockquote {
  margin: 22px 0;
  padding-left: 16px;
  border-left: 3px solid var(--red);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}
.prose { margin: 0; max-width: 40em; }
.beats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.beats li { display: grid; gap: 2px; }
.beats strong { font-family: var(--serif); font-size: 18px; }
.beats span { color: rgba(28, 20, 15, 0.74); }
.story-photo img, .visit figure img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 28px;
}
.story-photo { margin: 0; }
.story-photo figcaption, .visit figcaption, .board-photo figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(28, 20, 15, 0.72);
}
.story-photo figcaption b { display: block; color: var(--ink); font-family: var(--serif); font-size: 18px; }

.menu {
  background:
    radial-gradient(900px 380px at 90% 0%, rgba(232, 176, 96, 0.16), transparent 50%),
    linear-gradient(180deg, #3b2418, var(--wood) 18%);
  color: var(--cream);
  padding: 78px 0 64px;
}
.menu-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.menu-head h2 { color: #fff8ee; }
.menu-head p { max-width: 34em; margin: 0; color: rgba(255, 246, 234, 0.78); }

.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.card {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  overflow: hidden;
  text-align: left;
  border: 0;
  padding: 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card:hover { transform: translateY(-3px); }
.card .pic { position: relative; height: 230px; background: #eadcc8; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover img { transform: scale(1.05); }
.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--red);
  color: white;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: 4px;
}
.card .txt { padding: 14px 16px 16px; display: grid; gap: 6px; }
.card .name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.card .price { color: var(--red); font-variant-numeric: tabular-nums; }
.card .blurb { color: rgba(28, 20, 15, 0.72); font-size: 14px; min-height: 3em; }
.card .go {
  justify-self: start;
  margin-top: 4px;
  color: var(--red-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.board-grid { display: grid; grid-template-columns: 1.35fr 0.8fr; gap: 16px; }
.panel {
  background: #fffaf3;
  color: var(--ink);
  border-radius: 22px;
  padding: 18px 18px 8px;
}
.panel h3 {
  margin: 0;
  display: inline-block;
  background: var(--red);
  color: #fffaf3;
  font-size: 18px;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.12em;
}
.panel-note { margin: 10px 0 4px; font-size: 13px; color: rgba(28, 20, 15, 0.62); }
.bowl-row, .side-row {
  width: 100%;
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px dashed rgba(157, 28, 20, 0.2);
  background: transparent;
  text-align: left;
}
.bowl-row { grid-template-columns: 42px 1fr auto auto; }
.side-row { grid-template-columns: 1fr auto auto; }
.bowl-row:hover { background: rgba(157, 28, 20, 0.04); }
.thumb, .letter {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.letter {
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  font-family: var(--serif);
  font-weight: 900;
}
.row-name { display: grid; }
.row-name b { font-size: 16px; }
.row-name small { color: rgba(28, 20, 15, 0.58); font-size: 12px; }
.row-price { color: var(--red); font-family: var(--serif); font-weight: 900; font-size: 18px; }
.pick {
  border: 0;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(28, 20, 15, 0.2);
  background: white;
  font-size: 18px;
  line-height: 1;
}
.stepper button[data-delta="-99"] {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 2px;
}
.stepper button:disabled { opacity: 0.35; }
.stepper span { min-width: 1.2em; text-align: center; font-variant-numeric: tabular-nums; }

.board-photo { margin: 28px 0 0; }
.board-photo figcaption { color: rgba(255, 246, 234, 0.78); letter-spacing: 0.14em; }
.board-scroll {
  margin-top: 8px;
  overflow-x: auto;
  border-radius: 18px;
  background: #5a3b22;
}
.board-scroll img { width: 100%; min-width: 860px; height: auto; }

.visit { padding: 84px 0; }
.visit figure { margin: 0; }
.visit figure img { height: 460px; object-position: center 35%; }
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.steps span {
  font-family: var(--serif);
  font-weight: 900;
  color: var(--red);
  font-size: 22px;
}
.steps p { margin: 4px 0 0; color: rgba(28, 20, 15, 0.74); }

.noren { margin: 0; background: var(--red); }
.noren img { width: min(1100px, 100%); margin: 0 auto; max-height: 460px; object-fit: cover; object-position: center; }

.orders { padding: 72px 0 96px; background: #efe4d2; }
.orders-head, .drawer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.orders-hint { color: rgba(28, 20, 15, 0.7); max-width: 46em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.order-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(157, 28, 20, 0.35);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.6);
}
.ticket {
  background: var(--paper);
  border-radius: 18px;
  padding: 16px 16px 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}
.ticket header, .ticket li, .ticket .sum {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.ticket header strong { font-family: var(--serif); font-size: 22px; }
.ticket time, .muted { color: rgba(28, 20, 15, 0.58); font-size: 13px; }
.ticket ul, .ticket-body ul { list-style: none; margin: 0; padding: 8px 0; border-top: 1px dashed rgba(157, 28, 20, 0.28); border-bottom: 1px dashed rgba(157, 28, 20, 0.28); }
.ticket li, .ticket-body li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.ticket-body li.subline, .ticket li.subline { display: block; }
.subline { color: rgba(28, 20, 15, 0.62); font-size: 13px; padding-left: 0; }
.status { display: flex; flex-wrap: wrap; gap: 6px; }
.status button {
  border: 1px solid rgba(28, 20, 15, 0.16);
  background: white;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
}
.status button.on { background: var(--red); color: white; border-color: var(--red); }

.foot { background: var(--ink); color: rgba(246, 239, 226, 0.82); padding: 28px 0 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.foot strong { color: white; font-family: var(--serif); letter-spacing: 0.12em; }

.dock {
  position: fixed;
  z-index: 35;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.dock b { background: var(--red); padding: 8px 12px; border-radius: 999px; }
.dock[hidden] { display: none !important; }

.shade {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 15, 0.46);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.shade.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  z-index: 45;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 100%);
  background: var(--paper);
  transform: translateX(104%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow: auto;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
}
.drawer.open { transform: none; }
.drawer-bar, .checkout, .drawer-body { padding-left: 18px; padding-right: 18px; }
.drawer-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  padding-top: 16px;
  padding-bottom: 8px;
}
.drawer-bar h2 { margin: 0; font-size: 28px; }
.drawer-bar button, .modal-x {
  border: 0;
  background: transparent;
  font-weight: 700;
  color: var(--red-deep);
}
.drawer-body { flex: none; }
.checkout { padding-bottom: 22px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.checkout[hidden] { display: none !important; }
fieldset { border: 0; margin: 0; padding: 8px 0 0; }
legend { font-weight: 700; padding: 0; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.methods label {
  text-align: center;
  padding: 9px 4px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(28, 20, 15, 0.18);
  cursor: pointer;
}
.methods input { position: absolute; opacity: 0; pointer-events: none; }
.methods label:has(input:checked) { background: var(--red); color: white; box-shadow: none; }
.methods label:has(input:focus-visible) { outline: 2px solid var(--gold); }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.field input, .field textarea, .modal-card input[type="text"], .modal-card textarea {
  width: 100%;
  border: 1px solid rgba(28, 20, 15, 0.16);
  background: white;
  border-radius: 12px;
  padding: 12px 12px;
  font-weight: 500;
}
.field textarea { min-height: 72px; resize: vertical; }
.form-error { margin: 0; min-height: 1.2em; color: var(--red); font-weight: 700; }
.pay-note { margin: 0; font-size: 13px; color: rgba(28, 20, 15, 0.66); }
.cart-line { padding: 12px 0; border-bottom: 1px dashed rgba(157, 28, 20, 0.22); display: grid; gap: 4px; }
.cart-line .top-line { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.cart-empty { padding: 28px 8px 40px; }
.cart-empty a { color: var(--red); font-weight: 700; }

.modal, .overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(28, 20, 15, 0.52);
}
.modal.open, .overlay.open { display: grid; }
.modal-card, .ticket-pop {
  width: min(680px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.modal-hero { position: relative; height: 210px; background: #eadcc8; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-x { position: absolute; top: 10px; right: 12px; background: rgba(255, 250, 243, 0.92); border-radius: 999px; padding: 6px 10px; }
.modal-body { padding: 16px 18px 20px; display: grid; gap: 12px; }
.modal-body h2 { margin: 0; font-size: 32px; display: flex; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button, .extra-toggle {
  border: 1px solid rgba(28, 20, 15, 0.16);
  background: white;
  border-radius: 999px;
  padding: 8px 12px;
}
.chips button.on, .extra-toggle.on { background: var(--red); color: white; border-color: var(--red); }
.group-label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: rgba(28, 20, 15, 0.6); }
.qty-row { display: flex; align-items: center; justify-content: space-between; }

.ticket-pop { width: min(440px, 100%); }
.ticket-noren { height: 112px; overflow: hidden; background: var(--red); }
.ticket-noren img { width: 100%; height: 140px; object-fit: cover; object-position: center 30%; }
.ticket-body { padding: 18px 18px 20px; display: grid; gap: 8px; }
.ticket-body h2 { margin: 0; font-size: 18px; letter-spacing: 0.18em; color: var(--red); }
.big-no { margin: 0; font-family: var(--serif); font-size: 64px; line-height: 0.95; font-weight: 900; }
.phrase { margin: 0; font-family: var(--brush); font-size: 28px; color: var(--red-deep); }
.ticket-actions { display: flex; gap: 8px; margin-top: 8px; }

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-width: 980px) {
  .hero, .story-grid, .visit-grid, .board-grid, .featured { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-stage { min-height: 68vw; order: -1; }
  .hero-copy { padding: 32px 20px 42px; }
  .story-photo img, .visit figure img { height: 320px; }
  .nav { display: none; }
  .menu-head { flex-direction: column; align-items: start; }
  .dock:not([hidden]) { display: grid; }
  .toast.show { bottom: 78px; }
  .orders { padding-bottom: 120px; }
}

@media (max-width: 640px) {
  h1 { font-size: 64px; }
  .slogan { font-size: 26px; }
  .card .pic { height: 210px; }
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .top { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .card, .card img, .drawer, .shade, .toast { transition: none; }
  .card:hover { transform: none; }
  .card:hover img { transform: none; }
}
