:root {
  color-scheme: dark;
  --bg: #100e11;
  --raised: #19161a;
  --text: #f2eae0;
  --muted: #c3b6af;
  --accent: #eca981;
  --rule: #362b30;
  --serif: "WenKai", "Songti SC", SimSun, serif;
  --latin: "Cormorant", Georgia, serif;
  font-family: "Menu Sans", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
main { overflow-x: clip; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
p { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(1260px, calc(100% - 9vw)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 5; left: 1rem; top: 1rem; background: var(--bg); padding: 1rem; }
.header { position: relative; z-index: 1; border-bottom: 1px solid #ffffff12; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 84px; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-family: var(--serif); font-weight: 700; white-space: nowrap; }
.brand small { display: block; font: 400 0.71rem / 1 var(--latin); color: var(--accent); letter-spacing: .17em; margin-top: .4rem; }
.brand-mark {
  width: 36px; height: 36px; border: 1px solid #d78e69; border-radius: 50%;
  background: repeating-linear-gradient(0deg, transparent 0 5px, #d78e692a 5px 6px);
  display: grid; place-items: center;
}
.brand-mark::after { content: ""; width: 13px; height: 13px; background: #d78e69; border-radius: 50%; }
.header nav { display: flex; align-items: center; gap: clamp(1rem, 3.4vw, 3.5rem); font-size: .94rem; }
.header nav a, .back { color: var(--muted); padding-block: .65rem; }
.header nav a:hover, .back:hover { color: var(--accent); }
.eyebrow { display: flex; gap: .72rem; align-items: center; color: var(--accent); font-size: .87rem; letter-spacing: .16em; }
.eyebrow[lang="en"] { font: 400 1.26rem / 1 var(--latin); letter-spacing: .1em; }
.eyebrow span { width: 25px; height: 1px; background: currentColor; flex: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.45rem); line-height: 1.24; margin-top: .8rem; }
.section-heading > p, .flavor-copy > p:last-child { color: var(--muted); line-height: 1.8; max-width: 28ch; }
.catalog { border-top: 1px solid var(--rule); background: #141114; padding: clamp(3.4rem, 7.5vw, 7rem) 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.section-heading > p { text-align: right; max-width: 22em; }
.menu-switch { display: flex; flex-wrap: wrap; gap: 0 clamp(.55rem, 3vw, 1.6rem); margin-top: 2.2rem; border-bottom: 1px solid var(--rule); }
.menu-switch button { border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; padding: .7rem .2rem .87rem; font-size: 1rem; color: var(--muted); }
.menu-switch button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); font-weight: 700; }
.filters { display: flex; gap: .55rem; flex-wrap: wrap; margin: 1.2rem 0 1.6rem; }
.filters button, .tags span {
  border: 1px solid #59424a; background: transparent; border-radius: 999px; color: var(--muted);
  padding: .44rem .8rem; font-size: .88rem; line-height: 1.4;
}
.filters button { cursor: pointer; min-height: 40px; }
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] { border-color: #e0a17c; background: #34241f; color: #ffd3b9; }
.active-flavor { color: var(--accent); margin: -.4rem 0 1.1rem; display: flex; align-items: center; gap: .75rem; }
.active-flavor button { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: .4rem; cursor: pointer; }
.dish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.5rem); }
.dish-card { position: relative; overflow: hidden; background: #1c171b; border: 1px solid var(--rule); min-width: 0; }
.dish-card:hover { border-color: #a67562; }
.dish-visual { width: 100%; aspect-ratio: 1.51; object-fit: cover; background: #241b1d; transition: transform .32s; }
.dish-card:hover .dish-visual { transform: scale(1.035); }
.dish-button { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; background: transparent; padding: 0; }
.dish-button:focus-visible { outline-offset: -4px; }
.dish-order { margin-top: 1rem; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.dish-order .order-picker { position: relative; z-index: 1; }
.order-picker .order-action { border-radius: 999px; min-height: 44px; min-width: 6.4rem; }
.order-picker .order-stepper { gap: 0; border: 1px solid #cfa175; border-radius: 999px; background: #4a3022; color: #ffe5bf; }
.order-picker .order-stepper button { border: 0; border-radius: 999px; min-height: 42px; min-width: 44px; font: inherit; color: inherit; background: transparent; cursor: pointer; }
.order-picker .order-stepper button:hover { background: #ffffff14; }
.order-picker .order-stepper button:disabled { opacity: .5; cursor: default; }
.order-picker .order-stepper span { min-width: 1.4em; text-align: center; font-variant-numeric: tabular-nums; }
.order-action { background: #301f19; color: #ffe5bf; border: 1px solid #a97f61; border-radius: .35rem; font: inherit; cursor: pointer; padding: .45rem .75rem; min-height: 40px; }
.order-action:hover { background: #493227; }
.order-action:disabled { opacity: .5; cursor: default; }
.order-menu { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; color: var(--muted); }
#order-count { font-variant-numeric: tabular-nums; margin-inline-start: .35rem; }
.menu-price { color: #ffd8a8; font-weight: 650; font-variant-numeric: tabular-nums; }
#order-dialog { width: min(92vw, 35rem); max-height: 86svh; overflow: auto; }
#order-dialog[open] { display: block; }
.order-content { padding: clamp(1.25rem, 4vw, 2rem); }
.order-content h2 { margin: 0 2rem .5rem 0; }
.order-note { color: var(--muted); }
.order-item { padding: .65rem 0; border-bottom: 1px solid var(--rule); }
.order-item-name small { display: block; color: var(--muted); }
.order-stepper { display: flex; gap: .5rem; align-items: center; }
.order-stepper button { min-width: 2.5rem; padding-inline: .4rem; }
.order-total { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
#detail-price { display: block; }
.dish-image-wrap { border-bottom: 1px solid var(--rule); overflow: hidden; }
.dish-copy { padding: clamp(.9rem, 1.7vw, 1.45rem); }
.dish-label { color: var(--accent); font-size: .85rem; letter-spacing: .045em; }
.dish-copy h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin: .45rem 0 .55rem; }
.dish-copy p:not(.dish-label) { font-size: .95rem; line-height: 1.65; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tags span { padding: .25rem .53rem; font-size: .83rem; }
.flavors {
  padding: clamp(3.6rem, 8vw, 7.5rem) 0;
  border-top: 1px solid var(--rule);
  background: linear-gradient(90deg, #120f13cb 2%, #120f1379 50%, #120f13aa 100%),
    url("assets/fuji.webp") center 46% / cover;
}
.flavors-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 7vw, 8rem); }
.flavor-copy > p:last-child { margin-top: 1rem; max-width: 20em; }
.flavor-list { border-top: 1px solid #ac897c65; }
.flavor-option {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid #ac897c65; text-align: left;
  display: grid; grid-template-columns: minmax(4.2rem, .4fr) 1fr auto; align-items: center; gap: 1rem;
  padding: 1rem .24rem; cursor: pointer; transition: background .2s;
}
.flavor-option:hover { background: #e3ac8620; }
.flavor-name { font: 600 clamp(1.1rem, 2.1vw, 1.48rem) / 1.2 var(--serif); color: var(--text); }
.flavor-desc { color: var(--muted); line-height: 1.6; }
.flavor-browse { color: var(--accent); font-size: .89rem; white-space: nowrap; }
footer { border-top: 1px solid var(--rule); }
.footer-inner { padding-block: 1.45rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.footer-inner p { color: var(--muted); }
dialog {
  width: min(840px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0;
  color: var(--text); background: #1c171b; border: 1px solid #906955; box-shadow: 0 20px 100px #000c;
}
dialog[open] { display: grid; grid-template-columns: 1fr 1fr; }
dialog::backdrop { background: #0b090bd9; backdrop-filter: blur(5px); }
dialog > img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.detail-copy { padding: 2rem 1.6rem; }
.detail-copy h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
.detail-japanese { color: var(--accent); margin: .25rem 0 .9rem; }
#detail-description { color: var(--muted); line-height: 1.7; }
.detail-copy dl { margin-bottom: 0; }
.detail-copy dt { margin-top: .85rem; font-weight: 650; }
.detail-copy dd { margin: .2rem 0 0; color: var(--muted); line-height: 1.6; }
.pairing { padding: .2rem 0; color: #ffd0b5; background: none; border: 0; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.close { position: absolute; right: .65rem; top: .65rem; background: #22191de8; border: 1px solid #a67965; border-radius: 50%; width: 42px; height: 42px; cursor: pointer; font-size: 1.48rem; z-index: 1; }
@media (max-width: 900px) {
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 70px; gap: .65rem; }
  .header nav { gap: clamp(.45rem, 2.2vw, 1rem); font-size: .875rem; white-space: nowrap; }
  .brand { gap: .48rem; font-size: .94rem; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-mark::after { width: 10px; height: 10px; }
  .brand small { font-size: .62rem; letter-spacing: .12em; }
  .section-heading, .flavors-layout { display: grid; grid-template-columns: 1fr; }
  .section-heading > p { text-align: left; }
  .flavors { background-position: 78% center; }
  .dish-grid { gap: .75rem; }
  .dish-copy p:not(.dish-label) { font-size: .91rem; }
  .flavor-option { grid-template-columns: 4rem minmax(0,1fr); gap: .15rem .75rem; }
  .flavor-browse { grid-column: 2; }
  dialog[open] { grid-template-columns: 1fr; }
  dialog > img { min-height: 0; height: 190px; }
  .detail-copy { padding: 1.15rem; }
  .footer-inner > p { display: none; }
}
@media (max-width: 360px) {
  .dish-grid { grid-template-columns: 1fr; }
  .header-inner .brand small { display: none; }
}
.jp,.dish-reading,.detail-japanese { font-family:"Shippori","Yu Mincho",serif; font-weight:500; }
.jp { display:inline-block; color:#e1b58b; font-size:.77rem; letter-spacing:.07em; margin-inline-start:.65rem; }
.header nav a { display:flex; align-items:baseline; flex-wrap:wrap; }
.header .brand { font-size:1.3rem; font-weight:400; }
.header nav,.menu-switch,.filters { font-family:var(--serif); }
.dish-copy h3 .jp,.flavor-name .jp { display:block; margin:.3rem 0 0; line-height:1.45; }
.filters .jp { font-size:.75rem; }
.detail-copy dt .jp { display:inline-block; }
.theater { background:#100f0e; color:#fcf4e6; }
.stage { position:relative; isolation:isolate; overflow:hidden; height:clamp(420px,66svh,730px);
  background:radial-gradient(ellipse at 67% 38%,#584534 0%,#30271f 28%,#171612 54%,#10100e 84%); }
.scenery,.rails,.spot { position:absolute; inset:0; pointer-events:none; }
.scenery { background:linear-gradient(90deg,#0c0c0b 2%,transparent 75%),url("assets/kyoto.webp") center 58%/cover; opacity:.21; }
.rails { width:91%; margin:auto; border-inline:1px solid #dac6a91a; }
.subject { position:absolute; left:67%; top:51%; transform:translate(-50%,-50%); width:min(47vw,76svh,790px); border:0; background:none; padding:0; cursor:pointer; }
.subject img { width:100%; height:auto; filter:drop-shadow(0 15px 12px #08060480); }
.stage-copy { position:absolute; width:33%; top:50%; left:max(6.5%,calc((100% - 1210px)/2)); transform:translateY(-50%); }
.stage-kicker { display:flex; align-items:baseline; color:#f4c79b; gap:.45rem; font-size:.94rem; }
.stage-kicker:before { content:""; align-self:center; width:25px; height:1px; background:#d8a16d; }
.stage-copy h1 { font:400 clamp(2.9rem,5.6vw,6rem)/1.18 var(--serif); margin:.42em 0 .06em; letter-spacing:.015em; }
.romaji { font:400 italic clamp(1.42rem,2.8vw,2.8rem)/1.12 var(--latin); color:#f0d3ad; }
.stage-summary { margin:1.15rem 0; line-height:1.9; color:#dfd5c7; max-width:28em; }
.detail-link,.stage-bar button,#film-toggle { font:inherit; cursor:pointer; }
.detail-link { background:none; border:0; padding:.45rem 0; border-bottom:1px solid #be9269; color:#f9f0df; }
.dish-reading { position:absolute; right:5.8%; top:9%; writing-mode:vertical-rl; letter-spacing:.3em; color:#ffe5bc; font-size:.87rem;
 text-shadow:0 1px 6px #22150a; border-inline-start:1px solid #d6ad775e; padding-inline-start:.7rem; }
.stage-bar { min-height:66px; border-top:1px solid #b3956c44; display:flex; justify-content:space-between; align-items:center; gap:.5rem; font-family:var(--serif); }
#feature-toggle { background:none; border:0; color:#d8c4ae; padding:.65rem .1rem; }
#feature-toggle:hover { color:#ffe3ba; }
.detail-visual { position:relative; display:grid; align-content:center; min-width:0; overflow:hidden; background:radial-gradient(ellipse,#393027,#100f0e); }
.detail-visual video { width:100%; display:block; aspect-ratio:3/2; object-fit:contain; }
#film-toggle { position:absolute; left:.7rem; bottom:.65rem; background:#11100ee8; color:#fff4de; border:1px solid #b99c75; border-radius:1.4rem; padding:.4rem .85rem; font-size:.88rem; }
.detail-japanese { font-size:.85rem; }
@media (max-width:900px) {
 .header nav a { flex-direction:column; align-items:center; gap:.15rem; }
 .header nav .jp { margin:0; }
}
@media (max-width:680px) {
 .stage { height:clamp(420px,75svh,655px); background:radial-gradient(ellipse at 54% 28%,#624c34,#272119 46%,#141310 80%); }
 .subject { top:31.5%; left:51%; width:min(79vw,57svh,490px); }
 .stage-copy { top:auto; bottom:5.5%; transform:none; width:auto; left:6.5%; right:6%; }
 .stage-copy h1 { font-size:clamp(2.3rem,8.6vw,3.3rem); margin:.18em 0 0; }
 .stage-kicker { font-size:.84rem; }
 .romaji { font-size:1.4rem; }
 .stage-summary { margin:.4rem 0 .2rem; font-size:.93rem; line-height:1.65; max-width:33em; }
 .dish-reading { top:7%; right:6.4%; }
 .header .brand { font-size:1.08rem; }
 .stage-bar .jp { display:none; }
 .detail-visual { align-content:start; }
 .detail-visual video { max-height:36svh; }
 .dish-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:420px) {
 .header nav .jp { font-size:.69rem; }
 .header-inner { gap:.3rem; }
 .dish-grid { grid-template-columns:1fr; }
 .stage { min-height:440px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }

.dish-visual { width:100%; height:auto; aspect-ratio:3/2; }
.detail-copy h2 { font-weight:400; }
dialog[open] { animation:detail-arrive .36s ease-out both; }
@keyframes detail-arrive { from { opacity:.25; transform:translateY(10px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { dialog[open] { animation:none; } }

.stage {
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
  justify-items: center;
  height: auto;
  min-height: clamp(440px, 70svh, 760px);
  padding: clamp(1rem, 3vh, 2rem) 1rem 1.5rem;
  background: radial-gradient(ellipse at 50% 35%, #584534, #272119 45%, #100f0e 82%);
}
.stage-portrait {
  position: relative;
  align-self: center;
  display: grid;
  place-items: center;
  width: min(88vw, 71svh, 740px);
  aspect-ratio: 3 / 2;
}
.stage-portrait .subject { inset: auto; position: relative; width: 100%; translate: var(--spot-travel) 0; transform: none; }
.stage-portrait .subject img { display: block; filter: brightness(var(--spot-light)) drop-shadow(0 12px 12px #08060480); }
.stage:not(.has-cutout) .subject { width: 74%; }
.stage:not(.has-cutout) .subject img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: .65rem; }
.stage-portrait .halo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  translate: var(--spot-travel) 0;
  background: radial-gradient(ellipse 44% 42% at 50% 50%, #ffda926e, #ffac4a30 56%, transparent);
}
.stage .stage-copy { position: relative; inset: auto; width: min(100%, 46rem); text-align: center; transform: none; }
.stage-kicker { justify-content: center; }
.stage-copy h1 { margin: .18em 0 .04em; font-size: clamp(2.3rem, 5vw, 4.6rem); }
.stage-summary { margin: .45rem auto .25rem; }
.stage .spot {
  inset: -30% 0 42%;
  filter: blur(5px);
}
.spot::before, .spot::after {
  content: "";
  position: absolute;
  inset: 0;
}
.spot::before {
  background: linear-gradient(#fff2cfe0, #ffdc9ca3 38%, #ffce7c52 75%, transparent);
  clip-path: polygon(35% 0, 40% 0, calc(82% + var(--spot-travel)) 100%, calc(18% + var(--spot-travel)) 100%);
}
.spot::after {
  background: linear-gradient(#fffce9, #fff0c786 44%, #ffdd9033 78%, transparent);
  clip-path: polygon(36% 0, 39% 0, calc(64% + var(--spot-travel)) 100%, calc(36% + var(--spot-travel)) 100%);
}
.stage .spot-through {
  position: absolute;
  z-index: 1;
  inset: -30% 0 3%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(7px);
}
.spot-through::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#ffe9b00a 19%, #ffce7a18 36%, #ffcf792d 57%, #ffd98d21 77%, #e9a4450b 93%, transparent);
  /* Extend the same ray beyond the food into the space underneath it. */
  clip-path: polygon(36% 0, 39% 0, calc(90% + 1.56 * var(--spot-travel)) 100%, calc(24% + 1.56 * var(--spot-travel)) 100%);
}
@property --spot-travel {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}
@property --spot-light {
  syntax: "<number>";
  inherits: true;
  initial-value: 1.05;
}
@media (prefers-reduced-motion: no-preference) {
  /* Drive the beam and dish from one position, then hold for three seconds. */
  .stage.is-lighting :is(.stage-portrait, .stage-copy) {
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
  }
  .stage.is-lighting .stage-portrait { animation-name: follow-spotlight; }
  .stage.is-lighting .stage-copy { animation-name: caption-arrive; }
  .stage.is-paused :is(.stage-portrait, .stage-copy) { animation-play-state: paused; }
}
@keyframes follow-spotlight {
  0% { --spot-travel: 32%; --spot-light: .72; }
  25% { --spot-travel: -4%; --spot-light: 1.12; }
  50%, 100% { --spot-travel: 0%; --spot-light: 1.05; }
}
@keyframes caption-arrive {
  0%, 27% { opacity: .08; transform: translateY(.5rem); }
  50%, 100% { opacity: 1; transform: translateY(0); }
}
