/* Shiro — concept site for a sushi restaurant. Made by Nexus Digital. */
@font-face { font-family: "Shippori Mincho"; src: url("fonts/ShipporiMincho-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("fonts/ZenKakuGothicNew-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f4efe6;   /* rice paper: page ground */
  --ink: #1d1b19;     /* sumi ink: text */
  --indigo: #27365c;  /* the noren curtain: headings and lines */
  --lacquer: #b8322a; /* red lacquer: the one accent */
  --hinoki: #e6dccb;  /* pale wood: quiet panels */
  --soft: #6d665c;    /* secondary text */
  --pad: clamp(1.25rem, 3.5vw, 3.5rem);
  --split: 46vw;      /* width of the hanging film */
  --ease: cubic-bezier(0.25, 0.9, 0.3, 1);
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 1.0625rem/1.7 "Zen Kaku Gothic New", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, dl, dd, table { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lacquer); outline-offset: 3px; }
.skip { position: fixed; left: -999rem; top: 0.75rem; z-index: 50; background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; }
.skip:focus { left: var(--pad); }

/* the film hangs on the left, with a wooden rod at the top and bottom like a scroll */
.scroll { position: fixed; z-index: 5; top: 0; bottom: 0; left: 0; width: var(--split); padding: 1.4rem 0 1.4rem 1.4rem; }
.scroll::before, .scroll::after { content: ""; position: absolute; left: 0.8rem; right: -0.6rem; height: 0.7rem; border-radius: 0.35rem; background: linear-gradient(#8a6a48, #5e4630); z-index: 2; }
.scroll::before { top: 0.9rem; } .scroll::after { bottom: 0.9rem; }
.stage { position: relative; height: 100%; overflow: hidden; background: var(--hinoki) center / cover no-repeat; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }

.top { position: fixed; z-index: 30; top: 0; left: var(--split); right: 0; display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem var(--pad); background: linear-gradient(var(--paper) 60%, rgb(244 239 230 / 0)); }
.mark { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.2em; text-decoration: none; }
.hanko { width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--lacquer); }
.status { display: none; font-size: 0.875rem; color: var(--soft); }
.top-nav { margin-left: auto; display: flex; gap: clamp(0.9rem, 2vw, 1.8rem); font-size: 0.9375rem; }
.top-nav a { text-decoration: none; padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.top-nav a:hover { border-bottom-color: var(--lacquer); }
@media (min-width: 1100px) { .status { display: block; } }

.chapters { display: none; }
@media (min-width: 1100px) {
  .chapters { display: block; position: fixed; z-index: 20; right: var(--pad); bottom: 2rem; }
  .chapters ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; font-size: 0.8125rem; }
  .chapters a { text-decoration: none; color: var(--soft); }
  .chapters a[aria-current="true"] { color: var(--lacquer); }
}

/* ── the paper side ── */
main { position: relative; z-index: 10; margin-left: var(--split); }
.ch { position: relative; min-height: 200vh; }
.ch--hero { min-height: 180vh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; justify-items: start; gap: 1.3rem; padding: 6rem var(--pad) 4rem calc(var(--pad) + 1.5rem); }
.kicker { font-size: 0.8125rem; letter-spacing: 0.4em; color: var(--lacquer); }
.name { font-family: var(--serif); font-weight: 500; font-size: clamp(4.5rem, 10vw, 9rem); line-height: 0.95; letter-spacing: 0.12em; }
.name span { display: inline-block; }
/* letters appear as if brushed: a short fade from blurred ink */
.js .name span { opacity: 0; filter: blur(8px); transform: translateY(0.1em); animation: brush 1.2s var(--ease) forwards; animation-delay: calc(0.3s + var(--i) * 0.14s); }
@keyframes brush { to { opacity: 1; filter: none; transform: none; } }
.say { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 3.2rem); line-height: 1.25; max-width: 18ch; text-wrap: balance; color: var(--indigo); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 34ch; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0 1.6rem; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font: inherit; letter-spacing: 0.08em; text-decoration: none; cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.btn:hover { background: var(--lacquer); border-color: var(--lacquer); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { color: var(--paper); }

/* counts set like vertical labels: the number, then a thin rule */
.counts { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3rem); }
.counts div { display: flex; flex-direction: column; border-left: 1px solid var(--indigo); padding-left: 0.9rem; }
.counts dd { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; color: var(--indigo); }
.counts dt { color: var(--soft); font-size: 0.875rem; max-width: 12ch; }

.ch--list { min-height: 0; padding: 22vh var(--pad) 30vh calc(var(--pad) + 1.5rem); }
.sheet { width: min(100%, 36rem); }
.group { margin-top: 2.4rem; }
.group h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; letter-spacing: 0.1em; color: var(--indigo); padding-bottom: 0.5rem; border-bottom: 1px solid var(--indigo); }
.group ul { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 1.5rem; padding: 0.85rem 0; border-bottom: 1px solid var(--hinoki); }
.item-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-desc { grid-column: 1 / -1; color: var(--soft); font-size: 0.9375rem; }
.note { color: var(--soft); font-size: 0.9375rem; margin-top: 0.6rem; }

.estimate { display: grid; gap: 0.7rem; width: min(100%, 36rem); }
.label { margin-top: 0.4rem; font-size: 0.8125rem; letter-spacing: 0.2em; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { min-height: 2.75rem; padding: 0 1rem; border: 1px solid rgb(29 27 25 / 0.3); background: transparent; color: var(--ink); font: inherit; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--paper); }
.est-out { margin-top: 0.6rem; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--lacquer); }

.hours { width: min(100%, 24rem); }
.hours h3 { font-size: 0.8125rem; letter-spacing: 0.2em; color: var(--soft); font-weight: 400; }
.hours table { width: 100%; margin-top: 0.4rem; border-collapse: collapse; border-top: 1px solid var(--indigo); }
.hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--hinoki); }
.hours td:last-child { text-align: right; }
.hours tr[data-today] td { color: var(--lacquer); }

.ch--book { min-height: 0; padding: 25vh var(--pad) 0 calc(var(--pad) + 1.5rem); display: flex; flex-direction: column; }
.book { display: grid; gap: 1rem; width: min(100%, 36rem); padding-bottom: 5rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 0.6rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--soft); min-width: 0; }
.form input, .form select { width: 100%; min-height: 3rem; padding: 0 0.85rem; border: 1px solid rgb(29 27 25 / 0.3); border-radius: 0; background: #fbf8f2; color: var(--ink); font: inherit; letter-spacing: 0; }
.form input:focus, .form select:focus { outline: 2px solid var(--indigo); border-color: var(--indigo); }
.form [aria-invalid="true"] { border-color: var(--lacquer); }
.wide { grid-column: 1 / -1; }
.form-note { padding: 0.9rem 1rem; background: var(--hinoki); font-size: 0.9375rem; color: var(--ink); }
.find { margin-top: 1rem; font-style: normal; line-height: 1.9; color: var(--soft); }
.find h3 { font-size: 0.8125rem; letter-spacing: 0.2em; font-weight: 400; }
.find a { margin-right: 1rem; color: var(--ink); }
.foot { margin: auto calc(var(--pad) * -1) 0 calc((var(--pad) + 1.5rem) * -1); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding: 1.4rem var(--pad); border-top: 1px solid var(--hinoki); font-size: 0.875rem; color: var(--soft); }

/* phones and tablets: the scroll hangs across the top, the paper scrolls under a band */
@media (max-width: 899px) {
  :root { --split: 0px; }
  .scroll { right: 0; width: auto; top: 3.8rem; bottom: auto; height: 38svh; padding: 0.9rem 1rem; }
  .scroll::before, .scroll::after { left: 0.5rem; right: 0.5rem; }
  .scroll::before { top: 0.45rem; } .scroll::after { bottom: 0.45rem; top: auto; }
  body::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: calc(3.8rem + 38svh + 0.4rem); background: var(--paper); z-index: 4; pointer-events: none; }
  .top { left: 0; background: var(--paper); }
  main { margin-left: 0; z-index: 3; }
  .scroll { z-index: 7; }
  body::before { z-index: 6 !important; }
  .ch .pin { position: relative; height: auto; min-height: 100svh; align-content: start; padding: calc(3.8rem + 38svh + 2rem) var(--pad) 2.5rem; }
  .ch { min-height: 125svh; }
  .ch--list, .ch--book { padding: calc(3.8rem + 38svh + 2rem) var(--pad) 3rem; }
  .foot { margin-left: calc(var(--pad) * -1); }
  .form { grid-template-columns: 1fr; }
  .top-nav a:first-child { display: none; }
}

/* no film: reduced motion, or no script. The scroll shows one still. */
.static .stage video, .no-js .stage video { display: none; }
.static .stage, .no-js .stage { background-image: url("films/r3-nigiri-poster-p.webp"); }
.static .ch, .no-js .ch { min-height: 0; }
.static .pin, .no-js .pin { position: relative; height: auto; min-height: 80vh; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .name span { animation: none !important; opacity: 1; filter: none; transform: none; }
  .btn, .chip { transition: none; }
}
