/* Sushi Ya. Mobile-first: base rules target phones, media queries widen. */

@font-face {
  font-family: "Josefin Sans";
  src: url("/fonts/josefin-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fbfafa;
  --surface: #ffffff;
  --surface-2: #f3eff0;
  --text: #1d1a1b;
  --muted: #5f5759;
  --line: #e6e0e1;
  --accent: #8f1d2c;          /* brand red from the printed menu */
  --accent-text: #9e1f31;     /* accent used as text on --bg */
  --on-accent: #ffffff;
  --ink: #1d1a1b;             /* the logo's brush black */
  --on-ink: #f6f2f3;
  --shadow: 0 12px 32px rgb(80 20 30 / 0.12);

  --font-display: "Josefin Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;

  --radius: 16px;
  --header-h: 64px;
  --menubar-h: 56px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141213;
    --surface: #1c191a;
    --surface-2: #262223;
    --text: #f1edee;
    --muted: #b4abad;
    --line: #342e30;
    --accent: #a8263a;
    --accent-text: #f2808d;
    --ink: #262223;
    --on-ink: #f1edee;
    --shadow: 0 12px 32px rgb(0 0 0 / 0.4);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--menubar-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

.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;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* Display type: Josefin Sans caps, as on the printed menu. Its glyphs sit high
   in the em box, so a little top padding re-centres caps in pills and bars. */
h1, h2, h3, .btn, .chip, .menu-nav a, .site-nav a, .deal, .roll-name {
  font-family: var(--font-display);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  padding-top: 0.12em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0.85em 1.4em 0.7em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border-color 0.2s;
}
.btn .icon { margin-top: -0.18em; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }

/* --- Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: block; margin-right: auto; }
.brand img { height: 52px; width: auto; }
.site-nav { display: none; }
.btn-call { min-height: 40px; padding: 0.7em 1.1em 0.55em; font-size: 0.85rem; }
.btn-call .call-number { display: none; }

@media (min-width: 768px) {
  .site-nav { display: flex; gap: 28px; }
  .site-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding-top: 0.15em;
  }
  .site-nav a:hover { color: var(--accent-text); }
  .btn-call .call-label { display: none; }
  .btn-call .call-number { display: inline; }
}

/* In dark mode the black brush circle needs a faint rim to separate from the page. */
@media (prefers-color-scheme: dark) {
  .brand img, .site-footer img { filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.35)); }
}

/* --- Hero ------------------------------------------------------------------- */

.hero { padding-block: 32px 40px; overflow: hidden; }
.hero-inner { display: grid; gap: 32px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status[data-open="true"] { color: var(--text); }
.status[data-open="true"] .status-dot { background: #2f9e5b; box-shadow: 0 0 0 3px rgb(47 158 91 / 0.2); }

.hero h1 {
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  padding-top: 0.1em;
  max-width: 18ch;
}
.hero-sub {
  margin-top: 16px;
  max-width: 40ch;
  font-size: 1.1rem;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-media {
  position: relative;
  margin: 0 auto;
  width: min(86%, 420px);
  aspect-ratio: 1;
}
/* Offset brand-red disc behind the photo, echoing the round photos on the printed menu. */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 6% -6% -6% 6%;
  border-radius: 50%;
  background: var(--accent);
}
.hero-media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .hero { padding-block: 56px 72px; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
  .hero-media { width: min(100%, 480px); margin-right: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-media {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-media { animation-delay: 0.1s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* --- Deals ------------------------------------------------------------------ */

.deals-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deal {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.deal:active { transform: scale(0.98); }
.deal-classic { background: var(--accent); color: var(--on-accent); }
.deal-special { background: var(--ink); color: var(--on-ink); }
.deal-price { font-size: clamp(2rem, 8vw, 3rem); font-weight: 700; line-height: 1; padding-top: 0.1em; }
.deal-text { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em; line-height: 1.25; }

@media (min-width: 768px) {
  .deal { padding: 28px 32px; grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
  .deal-text { font-size: 1.1rem; }
}

/* --- House favorites -------------------------------------------------------- */

.signature { padding-block: 48px 8px; }
.rolls {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 42%;
  gap: 16px;
  margin-top: 20px;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rolls::-webkit-scrollbar { display: none; }
.roll { scroll-snap-align: start; }
.roll a { display: grid; justify-items: center; gap: 4px; text-decoration: none; text-align: center; }
.roll img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.roll a:hover img { transform: scale(1.04); }
.roll-name { font-weight: 600; letter-spacing: 0.06em; padding-top: 0.1em; }
.roll-price { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (min-width: 768px) {
  .rolls {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

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

.menu { padding-block: 48px 64px; }

.menu-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  margin-top: 16px;
  margin-inline: calc(-1 * var(--gutter));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.menu-nav {
  display: flex;
  gap: 8px;
  height: var(--menubar-h);
  align-items: center;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: none;
  padding: 0.7em 1em 0.55em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.menu-nav a:hover { color: var(--text); }
.menu-nav a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }

@media (min-width: 1232px) {
  .menu-bar { margin-inline: 0; }
  .menu-nav { padding-inline: 0; }
}

.menu-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 20px;
}
.filters { display: flex; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0.6em 1em 0.45em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.chip .icon { margin-top: -0.18em; }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
@media (prefers-color-scheme: dark) {
  .chip[aria-pressed="true"] { background: var(--on-ink); border-color: var(--on-ink); color: var(--bg); }
}

.legend { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--muted); }
.legend .badge + * { margin-right: 8px; }
.legend .badge:not(:first-child) { margin-left: 10px; }

.badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
}
.badge .icon { width: 14px; height: 14px; }
.badge-raw { background: var(--surface-2); color: var(--muted); }
.badge-spicy { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); }

.menu-empty { margin-top: 32px; color: var(--muted); }
.link-button {
  border: 0; padding: 0; background: none;
  color: var(--accent-text); font: inherit; font-weight: 600;
  text-decoration: underline; cursor: pointer;
}

.categories { display: grid; gap: 48px; margin-top: 36px; }

.category-header {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}
.category-header > :not(.category-image) { grid-column: 1; }
.category h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.15;
  padding-top: 0.12em;
}
.category-deal { margin-top: 4px; font-weight: 700; color: var(--accent-text); }
.category-note { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }
.category-image {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

.items { display: grid; }
.item { padding-block: 14px; border-bottom: 1px solid var(--line); }
.item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.item-name { font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.item-head .badge { align-self: center; }
.item-price,
.item-variants {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.item-variants { display: flex; gap: 14px; }
.variant-name { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.item-desc { margin-top: 2px; color: var(--muted); font-size: 0.925rem; max-width: 60ch; }

@media (min-width: 768px) {
  .items { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

.advisory {
  margin-top: 48px;
  max-width: 70ch;
  font-size: 0.875rem;
  color: var(--muted);
}

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

.visit { padding-block: 56px; background: var(--surface-2); }
.visit-inner { display: grid; gap: 32px; }
.visit-info { display: grid; gap: 24px; justify-items: start; }

.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
/* Today is marked with a neutral highlight and a label, not the brand red,
   which would read as "closed". */
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; background: var(--surface); }
.hours tr.is-today th { border-radius: 10px 0 0 10px; }
.hours tr.is-today td { border-radius: 0 10px 10px 0; }
.hours tr.is-today th::after {
  content: "Today";
  margin-left: 8px;
  padding: 3px 8px 2px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: 1px;
}

.contact { display: grid; gap: 14px; font-style: normal; }
.contact a { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; }
.contact a:hover span { text-decoration: underline; }
.contact .icon { margin-top: 0.2em; color: var(--accent-text); }

.map {
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

@media (min-width: 900px) {
  .visit { padding-block: 80px; }
  .visit-inner { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: stretch; }
  .map, .map iframe { min-height: 460px; }
}

/* --- Footer ----------------------------------------------------------------- */

.site-footer { padding-block: 40px calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--muted); font-size: 0.925rem; }
.site-footer img { width: 96px; margin-bottom: 4px; }
.footer-social {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text);
  transition: color 0.2s;
}
.footer-social:hover { color: var(--accent-text); }
.footer-social .icon { width: 24px; height: 24px; }
.copyright { font-size: 0.8rem; }
