/* ==========================================================================
   Tiger Rice Japanese Kitchen
   Palette and letterforms are taken from the restaurant's own sign and logo:
   the red ring (#ED1B24), the gold field (#F4BD3F) and the orange tiger.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo Black';
  src: url('/assets/fonts/archivo-black-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0f0f10;
  --ink-2: #17171a;
  --ink-3: #232328;
  --line: #2e2e34;
  --paper: #ffffff;
  --muted: #a8a4a1;
  --muted-dark: #5d5954;

  --red: #df1119;        /* actions: 4.96:1 against white */
  --red-deep: #a30c12;
  --red-brand: #ed1b24;  /* decorative only, matches the logo ring */
  --gold: #f4bd3f;
  --orange: #f5973f;

  --wrap: 1240px;
  --gut: clamp(1.15rem, 4vw, 3rem);
  --display: 'Archivo Black', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

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

/* --------------------------------------------------------------- type --- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.h-xl { font-size: clamp(2.5rem, 9.5vw, 6.2rem); text-transform: uppercase; }
.h-lg { font-size: clamp(2rem, 6.2vw, 4rem); text-transform: uppercase; }
.h-md { font-size: clamp(1.5rem, 3.6vw, 2.35rem); text-transform: uppercase; }
.h-sm { font-size: clamp(1.15rem, 2.2vw, 1.5rem); text-transform: uppercase; letter-spacing: -0.005em; }

.eyebrow {
  font-family: var(--text);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow--dark { color: var(--red-deep); }

.lede {
  font-size: clamp(1.06rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  max-width: 54ch;
  color: #e6e3e0;
}

p { margin: 0 0 1.1em; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose a:not(.btn) { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover { color: var(--paper); }

.u-quiet { color: var(--muted); }

/* ------------------------------------------------------------ layout --- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 860px; }

.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--paper .lede { color: #3a3633; }
.band--paper .prose a:not(.btn) { color: var(--red-deep); }
.band--paper .prose a:not(.btn):hover { color: var(--ink); }
.band--paper .u-quiet { color: var(--muted-dark); }
.band--ink2 { background: var(--ink-2); }

/* Narrow slashes on a dark ground, spaced well apart — the stripes on the
   tiger in the logo, not hazard tape. */
.stripes {
  height: 9px;
  background-color: var(--ink);
  background-image: repeating-linear-gradient(
    108deg,
    var(--gold) 0 5px,
    transparent 5px 16px,
    var(--orange) 16px 20px,
    transparent 20px 44px
  );
}
.stripes--red {
  background-image: repeating-linear-gradient(
    108deg,
    var(--red-brand) 0 6px,
    transparent 6px 18px,
    var(--gold) 18px 22px,
    transparent 22px 46px
  );
}

/* ----------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.7rem;
  font-family: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.btn--order { background: var(--red); color: var(--paper); border-color: var(--red); }
.btn--order:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn--ghost { background: transparent; color: var(--paper); border-color: #55555e; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--dark:hover { background: var(--red); border-color: var(--red); }

.btn--onred { background: var(--paper); color: var(--red-deep); border-color: var(--paper); }
.btn--onred:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }
/* On a phone the buttons go full width so they line up and stay easy to hit. */
@media (max-width: 480px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

.arrow { font-size: 1.05em; line-height: 1; }

/* ------------------------------------------------------------ header --- */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 0.9rem 1.4rem; font-weight: 700;
}
.skip:focus { left: 0; }

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(15,15,16,.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .masthead { backdrop-filter: blur(8px); }
}
.masthead__in {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; margin-right: auto; padding-block: 0.5rem;
}
.brand img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.brand__name {
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.brand__name span { display: block; font-family: var(--text); font-weight: 600; font-size: 0.56rem; letter-spacing: 0.2em; color: var(--gold); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  padding: 0.6rem 0.72rem;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #ddd9d6;
  border-radius: 2px;
}
/* The nav carries its own Order button for the mobile drawer; on desktop the
   standalone .masthead__cta is the one that shows. Never both.
   `.nav a` is more specific than `.btn--order`, so the button's own colours
   are restated here — otherwise the drawer's Order button renders grey-on-red
   (3.5:1) instead of white-on-red. */
.nav .btn { display: none; }
.nav a.btn--order { color: var(--paper); border-bottom-color: var(--red); }
.nav a.btn--order:hover { color: var(--paper); }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--red-brand); }
.masthead .btn { min-height: 44px; padding: 0.6rem 1.15rem; font-size: 0.82rem; }

.navtoggle {
  display: none;
  min-height: 44px; min-width: 44px;
  align-items: center; justify-content: center; gap: 0.5rem;
  background: none; border: 1px solid var(--line); border-radius: 2px;
  color: var(--paper); font-family: var(--text); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0 0.85rem; cursor: pointer;
}
.navtoggle:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 900px) {
  .navtoggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gut) 1.25rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 0.95rem 0; font-size: 1rem; border-bottom: 1px solid var(--ink-3); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--gold); }
  .nav .btn { display: inline-flex; margin-top: 1rem; }
  .masthead__in { position: relative; }
  .masthead__cta { display: none; }
}

/* -------------------------------------------------------------- hero --- */

.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: stretch;
  gap: 0;
}
.hero__copy { padding: clamp(2.75rem, 6vw, 5.5rem) 0 clamp(2.75rem, 6vw, 5rem); padding-right: clamp(1.5rem, 4vw, 3.5rem); }
.hero h1 { margin-bottom: 1.3rem; }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
/* The hero photo bleeds off the right edge rather than stopping at the
   content column — the food should run to the edge of the screen. */
.hero__media { position: relative; min-height: 320px; margin-right: calc(50% - 50vw); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(15,15,16,.55) 26%, rgba(15,15,16,0) 62%);
}

.factbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem; margin-top: 2.2rem;
  font-size: 0.87rem; color: var(--muted);
}
.factbar strong { color: var(--paper); font-weight: 600; }
/* Separators are drawn on the item, not written into the markup, so a wrapped
   row never leaves a dangling bullet at the end of a line. */
.factbar span + span { border-left: 1px solid var(--line); padding-left: 1.6rem; }
@media (max-width: 600px) {
  .factbar { gap: 0.45rem; flex-direction: column; }
  .factbar span + span { border-left: 0; padding-left: 0; }
}
/* In the hero the fact list sits in a narrow column, where three facts never
   fit on one line. Stack it there rather than letting it wrap mid-row. */
.hero .factbar { flex-direction: column; gap: 0.45rem; }
.hero .factbar span + span { border-left: 0; padding-left: 0; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: 0; aspect-ratio: 16 / 10; order: -1; margin-inline: calc(var(--gut) * -1); }
  .hero__media::after { background: linear-gradient(0deg, var(--ink) 2%, rgba(15,15,16,.25) 55%, rgba(15,15,16,.1) 100%); }
  .hero__copy { padding-right: 0; padding-top: 2rem; }
}

/* ------------------------------------------------------- signature --- */

.signature { background: var(--red-deep); color: var(--paper); position: relative; overflow: hidden; }
.signature__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.signature .eyebrow { color: var(--gold); }
.signature .lede { color: #ffe9e9; }

.pricelist { margin: 0; border-top: 1px solid rgba(255,255,255,.28); }
.pricelist div {
  display: flex; align-items: baseline; gap: 0.8rem;
  padding: 0.72rem 0; border-bottom: 1px solid rgba(255,255,255,.18);
}
.pricelist dt { font-weight: 600; margin: 0; }
.pricelist dd { margin: 0 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; color: var(--gold); }
.pricelist .rule { flex: 1; border-bottom: 1px dotted rgba(255,255,255,.35); transform: translateY(-4px); }

@media (max-width: 800px) { .signature__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ tiles --- */

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.6rem); }
.tile {
  position: relative; display: block; text-decoration: none;
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } }
.tile:hover img { transform: scale(1.045); }
.tile__label {
  position: absolute; inset: auto 0 0 0;
  padding: 3.5rem 1.4rem 1.25rem;
  background: linear-gradient(0deg, rgba(10,10,11,.94) 18%, rgba(10,10,11,0) 100%);
}
.tile__label span {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-top: 0.4rem;
}
.tile:hover .tile__label span { color: var(--paper); }

@media (max-width: 660px) { .tiles { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ menu --- */

.menunav {
  position: sticky; top: 68px; z-index: 40;
  background: var(--ink-2); border-bottom: 1px solid var(--line);
}
.menunav ul {
  display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0.5rem 0;
  overflow-x: auto; scrollbar-width: thin;
}
.menunav a {
  display: block; white-space: nowrap; text-decoration: none;
  padding: 0.55rem 0.85rem; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: #d6d2cf; border-radius: 2px;
}
.menunav a:hover { background: var(--ink-3); color: var(--gold); }

.course { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); scroll-margin-top: 130px; }
.course:first-of-type { border-top: 0; }
.course__head { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1.5rem; margin-bottom: 1.6rem; }
.course__head h2 { flex: 1 1 auto; }
.course__head a { display: inline-block; padding-block: 0.4rem; min-height: 28px; }
.course__blurb { max-width: 62ch; color: var(--muted); margin: -0.5rem 0 1.9rem; }

.dishes { margin: 0; padding: 0; list-style: none; }
.dish {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--ink-3);
}
.dish:first-child { border-top: 1px solid var(--line); }
.dish__name {
  font-family: var(--display); font-size: clamp(1.02rem, 1.9vw, 1.28rem);
  text-transform: uppercase; line-height: 1.12; letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.dish__name em { font-style: normal; font-family: var(--text); font-weight: 600; font-size: 0.72em; letter-spacing: 0.06em; color: var(--gold); text-transform: uppercase; display: block; margin-top: 0.3rem; }
.dish__price {
  font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold);
  font-size: clamp(1rem, 1.7vw, 1.15rem); white-space: nowrap; text-align: right;
}
.dish__desc { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.93rem; max-width: 72ch; }

.band--paper .dish { border-bottom-color: #e7e2da; }
.band--paper .dish:first-child { border-top-color: #cfc8bd; }
.band--paper .dish__price { color: var(--red-deep); }
.band--paper .dish__name em { color: var(--red-deep); }
.band--paper .dish__desc { color: #5d5954; }
.band--paper .course { border-top-color: #cfc8bd; }
.band--paper .course__blurb { color: #5d5954; }
.band--paper .eyebrow { color: var(--red-deep); }

/* ------------------------------------------------------------ misc --- */

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 4rem); align-items: center;
}
.split--top { align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.figure { margin: 0; }
.figure img { width: 100%; }
.figure figcaption { margin-top: 0.7rem; font-size: 0.8rem; color: var(--muted); }

.hours { width: 100%; border-collapse: collapse; margin: 0; max-width: 460px; }
.hours th, .hours td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid var(--ink-3); font-weight: 400; }
.hours th { font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--gold); }
.hours tr[data-today="true"] th { color: var(--gold); }
.band--paper .hours th, .band--paper .hours td { border-bottom-color: #e7e2da; }
.band--paper .hours td { color: var(--red-deep); }

.addr { font-style: normal; font-size: 1.12rem; line-height: 1.5; }
.addr strong { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; display: block; margin-bottom: 0.45rem; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.checks li { display: flex; gap: 0.7rem; align-items: baseline; }
.checks li::before { content: "\2014"; color: var(--gold); flex: none; font-weight: 700; }
.band--paper .checks li::before { color: var(--red-deep); }

.notice {
  border-left: 3px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 64ch;
}
.band--paper .notice { border-left-color: var(--red-deep); color: #5d5954; }

.crumbs { font-size: 0.8rem; color: var(--muted); padding-block: 1.15rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 0.4rem; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--paper); }

.cardless-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1.5rem, 3.5vw, 3rem); }
.cardless-grid h3 { margin-bottom: 0.6rem; }
.cardless-grid p { font-size: 0.95rem; color: var(--muted); }
.band--paper .cardless-grid p { color: #5d5954; }

.photostrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.photostrip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 640px) { .photostrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .photostrip img:last-child { display: none; } }

/* ------------------------------------------------------- order bar --- */

.orderbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: 0.6rem; align-items: center;
  padding: 0.6rem var(--gut) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(15,15,16,.97);
  border-top: 1px solid var(--line);
}
.orderbar__txt { font-size: 0.78rem; line-height: 1.25; color: var(--muted); }
.orderbar__txt b { display: block; color: var(--paper); font-size: 0.85rem; font-weight: 700; }
.orderbar .btn { margin-left: auto; min-height: 46px; padding: 0.6rem 1.15rem; font-size: 0.82rem; }
@media (max-width: 900px) {
  .orderbar[data-show="true"] { display: flex; }
  body { padding-bottom: 0; }
}

/* ---------------------------------------------------------- footer --- */

.foot { background: #0a0a0b; border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); }
.foot h2 { font-family: var(--text); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
/* Footer links are list rows, not prose, so they carry their own 28px+ hit
   area rather than relying on the WCAG inline-link exception. */
.foot li a { display: inline-block; padding-block: 0.4rem; min-height: 28px; }
.foot a { color: #ddd9d6; text-decoration: none; font-size: 0.93rem; }
.foot a:hover { color: var(--gold); }
.foot address { font-style: normal; font-size: 0.93rem; color: var(--muted); line-height: 1.9; }
.foot address a { display: inline-block; padding-block: 0.35rem; }
.foot__legal {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-size: 0.79rem; color: #6f6b67;
}
@media (max-width: 720px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------- 404 --- */

.notfound { min-height: 56vh; display: flex; align-items: center; }
.notfound .num {
  font-family: var(--display);
  font-size: clamp(5rem, 22vw, 13rem);
  line-height: 0.82;
  margin: 0;
  color: var(--red-brand);
}
