/* =========================================================
   BENTENDO — Modern Japanese Kitchen
   Palette and type are taken from the printed brochure and
   storefront signage: urushi (lacquer) maroon, unbleached
   cream, lacquer black, and the soft bamboo green from the
   brochure's sumi-e panel.
   ========================================================= */

:root {
  /* Colour */
  --urushi:        #7a1d23;   /* lacquer maroon — brochure headings */
  --urushi-deep:   #56141a;
  --urushi-tint:   #f0e2dd;
  --kinari:        #f7efe0;   /* unbleached cream — brochure ground */
  --paper:         #fdf9f1;
  --lacquer:       #17110f;   /* warm black — storefront fascia */
  --lacquer-soft:  #2b211d;
  --ink:           #241c19;
  --ink-soft:      #6b5f57;
  --take:          #7d8f6e;   /* bamboo green — brochure sumi-e */
  --hairline:      rgba(122, 29, 35, 0.22);
  --hairline-lt:   rgba(122, 29, 35, 0.11);

  /* Type */
  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;

  /* Scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.23rem, 1.15rem + 0.38vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.34rem + 0.78vw, 2.05rem);
  --step-3:  clamp(1.85rem, 1.53rem + 1.55vw, 2.8rem);
  --step-4:  clamp(2.3rem, 1.7rem + 2.9vw, 4rem);

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(3.5rem, 8vw, 7rem);
  --measure: 62ch;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--urushi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--urushi-deep); }

:focus-visible {
  outline: 2.5px solid var(--urushi);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--urushi); color: #fff;
  padding: 0.7rem 1.2rem; z-index: 200;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { width: min(1180px, 100% - (var(--gutter) * 2)); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - (var(--gutter) * 2)); margin-inline: auto; }

/* =========================================================
   The box mark — three stacked lids with a blossom, taken
   from the storefront sign. Used as nav logo and as a
   section divider ornament.
   ========================================================= */
.mark { display: block; }
.mark rect { fill: currentColor; }
.mark circle, .mark path { fill: currentColor; }

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--hairline);
  margin: 0 0 2.4rem;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
}
.divider .mark { color: var(--urushi); opacity: 0.5; flex: none; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--lacquer);
  color: var(--kinari);
  border-bottom: 1px solid rgba(247, 239, 224, 0.14);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
  padding-block: 0.55rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--kinari); text-decoration: none;
  flex: none;
}
.brand__name {
  font-family: var(--display);
  font-size: 1.22rem;
  letter-spacing: 0.2em;
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: var(--body);
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  opacity: 0.7;
  margin-top: 0.32rem;
  font-weight: 500;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a {
  color: var(--kinari);
  text-decoration: none;
  font-size: 0.87rem;
  letter-spacing: 0.06em;
  padding-block: 0.4rem;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: #fff; border-bottom-color: var(--urushi); }
.nav a[aria-current="page"] { border-bottom-color: var(--kinari); }

.nav__cta {
  background: var(--urushi);
  border: 1.5px solid var(--urushi) !important;
  padding: 0.5rem 1.05rem !important;
  border-radius: 2px;
  font-weight: 500;
}
.nav__cta:hover { background: var(--urushi-deep); border-color: var(--urushi-deep) !important; color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(247,239,224,0.3);
  color: var(--kinari); border-radius: 2px;
  padding: 0.5rem 0.7rem; cursor: pointer;
  font: inherit; font-size: 0.8rem; letter-spacing: 0.1em;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--lacquer);
    border-bottom: 1px solid rgba(247,239,224,0.14);
    padding: 0.5rem var(--gutter) 1.4rem;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid rgba(247,239,224,0.1); }
  .nav__cta { text-align: center; margin-top: 0.9rem; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  background: var(--lacquer);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  opacity: 0.62;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,17,15,0.55) 0%, rgba(23,17,15,0.2) 35%, rgba(23,17,15,0.9) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  padding-block: clamp(3rem, 9vw, 6rem);
  color: var(--kinari);
}
.hero__wordmark {
  font-size: clamp(2.6rem, 9.5vw, 5.4rem);
  letter-spacing: 0.16em;
  margin: 0 0 0.35rem;
  line-height: 1;
}
.hero__tagline {
  font-family: var(--display);
  font-size: var(--step-1);
  color: #fff;
  margin: 0 0 1.5rem;
  max-width: 32ch;
}
.hero__lede {
  max-width: 46ch;
  color: rgba(247, 239, 224, 0.86);
  margin-bottom: 2rem;
}
.hero__kicker {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  color: rgba(247,239,224,0.75);
  margin: 0 0 1.6rem;
  font-weight: 500;
}

/* one orchestrated page-load reveal, nothing else animates on scroll */
.reveal > * { animation: rise 0.9s cubic-bezier(0.16, 0.84, 0.44, 1) backwards; }
.reveal > *:nth-child(1) { animation-delay: 0.05s; }
.reveal > *:nth-child(2) { animation-delay: 0.16s; }
.reveal > *:nth-child(3) { animation-delay: 0.27s; }
.reveal > *:nth-child(4) { animation-delay: 0.38s; }
.reveal > *:nth-child(5) { animation-delay: 0.49s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  padding: 0.85rem 1.9rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1.5px solid var(--urushi);
  background: var(--urushi);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--urushi-deep); border-color: var(--urushi-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--kinari); border-color: rgba(247,239,224,0.55); }
.btn--ghost:hover { background: rgba(247,239,224,0.12); color: #fff; border-color: var(--kinari); }
.btn--quiet { background: transparent; color: var(--urushi); }
.btn--quiet:hover { background: var(--urushi); color: #fff; }
/* p sets a 62ch max-width; button rows must span the full column so that
   justify-content: center actually centres against the container. */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; max-width: none; }

/* =========================================================
   Sections
   ========================================================= */
.band { padding-block: var(--band); }
.band--cream { background: var(--kinari); }
.band--lacquer { background: var(--lacquer); color: var(--kinari); }
.band--lacquer h2, .band--lacquer h3 { color: var(--kinari); }
.band--lacquer p { color: rgba(247,239,224,0.82); }
.band--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: 0.35rem; }
.section-head__ja {
  font-family: var(--display);
  color: var(--urushi);
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  margin: 0 0 0.7rem;
  opacity: 0.75;
}
.band--lacquer .section-head__ja { color: var(--take); opacity: 1; }
.lede { font-size: var(--step-1); font-family: var(--display); line-height: 1.5; }

/* Two-column split with an image */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--flip .split__media { order: -1; }
}
.split__media img { width: 100%; border-radius: 2px; }
.figure-note {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 0.7rem;
  font-style: normal;
}

/* =========================================================
   The compartment grid — echoes the jyu box's divided tray.
   Used for the menu preview and the "what's in the box" list.
   ========================================================= */
.tray {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.tray__cell {
  background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.band--cream .tray__cell { background: var(--kinari); }
.tray__cell h3 { margin-bottom: 0.35rem; font-size: var(--step-1); }
.tray__cell p { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.65; }
.tray__price {
  display: block;
  font-family: var(--display);
  color: var(--urushi);
  font-size: var(--step-0);
  margin-bottom: 0.7rem;
}

/* Signature dish cards on the home page */
.dishes {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.4rem) clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.dish {
  border-top: 2px solid var(--urushi);
  padding-top: 1.1rem;
}
.dish__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
}
.dish h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.dish__price { font-family: var(--display); color: var(--urushi); white-space: nowrap; }
.dish p { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 0; }

/* =========================================================
   Bentendo Time — rebuilt from the brand's own icon strip
   ========================================================= */
.moments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(247,239,224,0.2);
  border-block: 1px solid rgba(247,239,224,0.2);
  margin-block: clamp(2rem, 5vw, 3.2rem);
}
.moment {
  background: var(--lacquer);
  padding: 1.8rem 1rem;
  text-align: center;
}
.moment svg { margin: 0 auto 0.9rem; color: var(--kinari); opacity: 0.9; }
.moment span {
  display: block;
  font-size: var(--step--1);
  color: rgba(247,239,224,0.82);
  line-height: 1.45;
}

.closing-lines {
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.8;
  color: var(--kinari);
}
.closing-lines span { display: block; }

/* =========================================================
   Menu page
   ========================================================= */
.menu-nav {
  position: sticky; top: 68px; z-index: 50;
  background: var(--kinari);
  border-bottom: 1px solid var(--hairline);
  padding-block: 0.7rem;
}
.menu-nav ul {
  display: flex; gap: 0.35rem;
  list-style: none; margin: 0; padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.menu-nav a {
  display: block;
  white-space: nowrap;
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 2px;
}
.menu-nav a:hover { border-color: var(--hairline); color: var(--urushi); }

.menu-section { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--hairline-lt); }
.menu-section:last-of-type { border-bottom: 0; }
.menu-section__head {
  display: flex; align-items: baseline; gap: 1rem;
  border-bottom: 2px solid var(--urushi);
  padding-bottom: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.menu-section__head h2 {
  margin: 0;
  font-size: var(--step-2);
  color: var(--urushi);
}
.menu-section__note {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0;
}

.items { display: grid; gap: 1.9rem; }
@media (min-width: 760px) { .items--two { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; } }

.item__head {
  display: flex; align-items: baseline; gap: 0.75rem;
  border-bottom: 1px dotted var(--hairline);
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
}
.item__name {
  font-family: var(--display);
  font-size: var(--step-1);
  margin: 0;
  color: var(--ink);
}
.item__price {
  margin-left: auto;
  font-family: var(--display);
  font-size: var(--step-1);
  color: var(--urushi);
  white-space: nowrap;
}
.item__desc { font-size: var(--step--1); color: var(--ink-soft); margin: 0 0 0.6rem; max-width: 54ch; }
.item__spec { font-size: var(--step--1); color: var(--urushi); margin: 0 0 0.3rem; font-weight: 500; }

.sizes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.size {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--hairline);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  color: var(--ink-soft);
  background: var(--paper);
}
.band--cream .size { background: var(--kinari); }

.tag {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  border: 1px solid var(--take);
  color: var(--take);
  padding: 0.12rem 0.4rem;
  border-radius: 2px;
  vertical-align: 0.22em;
}

/* Small in-menu callouts: "make it a meal", "add a topping" */
.callout {
  border: 1px solid var(--hairline);
  background: var(--urushi-tint);
  padding: 1.2rem 1.4rem;
  border-radius: 2px;
  margin-top: 2rem;
}
.callout h3 { font-size: var(--step-0); color: var(--urushi); margin-bottom: 0.3rem; }
.callout p { font-size: var(--step--1); margin: 0; color: var(--ink); }

/* Compact list for drinks / sides */
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.price-list li {
  display: flex; align-items: baseline; gap: 0.6rem;
  padding-block: 0.45rem;
  border-bottom: 1px dotted var(--hairline);
  font-size: var(--step--1);
}
.price-list li::after {
  content: attr(data-price);
  margin-left: auto;
  font-family: var(--display);
  color: var(--urushi);
  white-space: nowrap;
}
.price-list small { color: var(--ink-soft); }

.menu-legend {
  font-size: var(--step--1);
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
  margin-top: 1rem;
}

/* =========================================================
   Contact / visit
   ========================================================= */
.info-grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.info h3 {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--urushi);
  margin-bottom: 0.7rem;
}
.band--lacquer .info h3 { color: var(--take); }

.nowrap { white-space: nowrap; }

.info p, .info address {
  font-style: normal;
  font-size: var(--step-0);
  line-height: 1.75;
  margin: 0;
}
.info a { color: inherit; }

.map-frame {
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
  background: var(--kinari);
}
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Form */
.form { display: grid; gap: 1.15rem; max-width: 560px; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.04em; }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: var(--step-0);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--urushi); }
.form__note { font-size: var(--step--1); color: var(--ink-soft); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--lacquer);
  color: rgba(247,239,224,0.78);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--step--1);
}
.site-footer h3 {
  font-family: var(--body);
  font-size: 0.7rem; letter-spacing: 0.2em; font-weight: 600;
  color: var(--take); margin-bottom: 0.8rem;
}
.site-footer a { color: rgba(247,239,224,0.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247,239,224,0.16);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-brand .mark { color: var(--kinari); margin-bottom: 1rem; }
.footer-brand p { color: rgba(247,239,224,0.6); max-width: 32ch; }
.footer-base {
  padding-top: 1.8rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem 2rem;
  justify-content: space-between;
  color: rgba(247,239,224,0.5);
  font-size: 0.78rem;
}

/* =========================================================
   Page header for interior pages
   ========================================================= */
.page-head {
  background: var(--lacquer);
  color: var(--kinari);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.page-head h1 { font-size: var(--step-3); margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.page-head p { color: rgba(247,239,224,0.8); max-width: 50ch; margin: 0; }
.page-head__ja {
  font-family: var(--display);
  color: var(--take);
  letter-spacing: 0.4em;
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
}

/* Prose blocks on the story page */
.prose h2 { font-size: var(--step-2); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose blockquote {
  margin: 2.4rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--urushi);
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--urushi-deep);
}
.prose blockquote p { max-width: 46ch; }

/* Honeypot: a field only bots fill in. Hidden from people and screen readers. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__opt { color: var(--ink-soft); font-weight: 400; }

/* Side-by-side fields (date + guest count) */
.field--pair { display: grid; gap: 1.15rem; }
.field--pair span { display: grid; gap: 0.4rem; }
@media (min-width: 520px) { .field--pair { grid-template-columns: 1fr 1fr; } }

/* Confirmation page */
.thanks { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.thanks .mark { color: var(--urushi); margin: 0 auto 1.6rem; }
