/* Design 2, "Omakase". Intentionally dark in every color scheme: the look is a
   sushi bar at night. Sharp corners throughout (radius 0-2px). Mobile-first. */

@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("/fonts/zen-kaku-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("/fonts/zen-kaku-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0f0e0e;
  --raised: #171515;
  --text: #ece8e6;
  --muted: #a39b9c;
  --faint: #6f6869;
  --line: #2c2829;
  --accent: #e0485a;        /* brand red, lifted for contrast on near-black */
  --accent-solid: #b8263a;  /* red for filled buttons with light text */
  --font: "Zen Kaku Gothic New", ui-sans-serif, system-ui, sans-serif;
  --gutter: 16px;
  --masthead-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--masthead-h) + 64px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (min-width: 960px) { html { scroll-padding-top: calc(var(--masthead-h) + 24px); } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.frame {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 30;
  padding: 10px 16px; background: var(--text); color: var(--bg); font-weight: 700;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }

.icon { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.section-lead { margin-top: 8px; color: var(--muted); }

/* --- Buttons -------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.button:active { transform: translateY(1px); }
.button-solid { background: var(--accent-solid); color: #fff; }
.button-solid:hover { background: #a01f31; }
.button-line { border-color: var(--line); color: var(--text); }
.button-line:hover { border-color: var(--muted); }

/* --- Masthead --------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--masthead-h);
  background: rgb(15 14 14 / 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
/* The black brush circle needs a faint rim on a near-black page. */
.brand img, .colophon img { filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.4)); }
.brand img { height: 46px; width: auto; }
.masthead-nav { display: flex; align-items: center; gap: 20px; font-size: 0.9rem; }
.masthead-nav a { text-decoration: none; color: var(--muted); }
.masthead-nav a:hover { color: var(--text); }
.masthead-nav a:not(.masthead-call) { display: none; }
.masthead-nav .masthead-call { color: var(--text); font-weight: 700; letter-spacing: 0.03em; }
@media (min-width: 640px) { .masthead-nav a:not(.masthead-call) { display: inline; } }

/* --- Opening ---------------------------------------------------------------- */

.opening { padding-top: 40px; }
.opening-inner { display: grid; gap: 40px; }
.opening h1 {
  font-size: clamp(2.4rem, 9vw, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 12ch;
}
.opening-sub { margin-top: 20px; max-width: 38ch; color: var(--muted); font-size: 1.05rem; }
.opening-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.opening-photo { margin: 0; overflow: hidden; border-radius: 2px; }
/* Zoomed so the rectangle stays inside the round print photo (no paper at the corners). */
.opening-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transform: scale(1.3); }

@media (min-width: 900px) {
  .opening { padding-top: 72px; }
  .opening-inner { grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 64px; }
  .opening-copy { padding-bottom: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .opening-copy > *, .opening-photo { animation: fade 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .opening-copy > :nth-child(2) { animation-delay: 0.08s; }
  .opening-copy > :nth-child(3) { animation-delay: 0.16s; }
  .opening-photo { animation-delay: 0.12s; }
}
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.facts {
  display: grid;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--faint); font-size: 0.85rem; letter-spacing: 0.06em; }
.facts dd { text-align: right; }
.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.facts [data-open="true"] { color: var(--text); }
.facts [data-open="false"] { color: var(--muted); }

@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
  .facts > div { display: block; padding: 20px 24px 22px 0; }
  .facts > div + div { border-top: 0; border-left: 1px solid var(--line); padding-left: 24px; }
  .facts dt { margin-bottom: 4px; }
  .facts dd { text-align: left; }
}

/* --- Featured rolls --------------------------------------------------------- */

/* The roll photos come from round prints, so they stay round: the one shape
   exception to the sharp-corner rule. Laid out as a list, not a gallery. */
.features { padding-block: 72px 24px; }
.feature-grid {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.feature {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.feature img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }
.feature-name { font-size: 1.1rem; font-weight: 700; }
.feature-price { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .feature img { width: 112px; height: 112px; }
  .feature { grid-template-columns: 112px 1fr auto; padding: 20px 0; }
}

/* --- Menu ------------------------------------------------------------------- */

.menu { padding-block: 72px; }
.menu-layout { display: grid; }
.menu-layout > * { min-width: 0; }

.menu-side {
  position: sticky;
  top: var(--masthead-h);
  z-index: 10;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  background: var(--bg);
}
.menu-side h2 { padding-block: 8px 12px; }
.menu-index {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.menu-index::-webkit-scrollbar { display: none; }
.menu-index a {
  flex: none;
  padding: 6px 0;
  color: var(--faint);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.menu-index a:hover { color: var(--text); }
.menu-index a[aria-current="true"] { color: var(--text); border-bottom-color: var(--accent); }

@media (min-width: 960px) {
  .menu-layout { grid-template-columns: 240px 1fr; gap: 72px; align-items: start; }
  .menu-side { top: calc(var(--masthead-h) + 32px); margin: 0; padding: 0; }
  .menu-side h2 { padding: 0 0 24px; }
  .menu-index { flex-direction: column; gap: 2px; overflow: visible; border: 0; padding: 0; }
  .menu-index a { padding: 6px 0 6px 14px; border-bottom: 0; border-left: 1px solid var(--line); }
  .menu-index a[aria-current="true"] { border-left-color: var(--accent); }
}

.key { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: 0.85rem; }
.key .mark + .mark, .key .mark:not(:first-child) { margin-left: 12px; }
@media (min-width: 960px) { .key { margin-top: 0; } }

.mark { display: inline-flex; color: var(--faint); vertical-align: -0.1em; margin-left: 6px; }
.key .mark { margin-left: 0; }
.mark .icon { width: 0.95em; height: 0.95em; }
.mark-spicy { color: var(--accent); }

.course { padding-top: 56px; }
.course h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.course-lead { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }
.dishes { margin-top: 16px; }
.dish { padding-block: 12px; }
.dish-line { display: flex; align-items: baseline; gap: 10px; }
.dish-name { font-size: 1rem; font-weight: 400; }
.leader { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--faint); transform: translateY(-4px); }
.dish-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.variant + .variant { margin-left: 14px; }
.variant { color: var(--muted); font-size: 0.9rem; }
.dish-desc { margin-top: 2px; max-width: 56ch; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 479px) {
  /* Two prices do not fit beside a long name on a phone: move them under it. */
  .dish-line:has(.variant) { flex-wrap: wrap; }
  .dish-line:has(.variant) .leader { display: none; }
  .dish-line:has(.variant) .dish-price { flex-basis: 100%; }
}

.advisory { margin-top: 56px; max-width: 64ch; color: var(--faint); font-size: 0.85rem; }

/* --- Visit ------------------------------------------------------------------ */

.visit { padding-block: 72px; border-top: 1px solid var(--line); }
.visit-layout { display: grid; gap: 40px; }
.hours { width: 100%; max-width: 440px; margin-top: 24px; border-collapse: collapse; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.hours td { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--text); font-weight: 700; }
.hours tr.is-today th::after {
  content: "Today";
  margin-left: 10px;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.visit-address { margin-top: 24px; color: var(--muted); }
.visit-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.map { min-height: 340px; border: 1px solid var(--line); background: var(--raised); }
/* Inverted, desaturated map so it sits in the dark page instead of glaring. */
.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: invert(0.92) hue-rotate(180deg) saturate(0.4) brightness(0.95); }

@media (min-width: 900px) {
  .visit-layout { grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
  .map, .map iframe { min-height: 480px; }
}

/* --- Colophon --------------------------------------------------------------- */

.colophon { padding-block: 48px calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.colophon-inner { display: grid; gap: 16px; color: var(--faint); font-size: 0.85rem; }
.colophon img { width: 88px; }
.colophon a { color: var(--muted); }
@media (min-width: 768px) {
  .colophon-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
}
