/* ---------------------------------------------------
   Nagano — tokens
--------------------------------------------------- */
:root {
  --ink: #1a1613;
  --washi: #fbf3e7;
  --washi-dim: #f3e6d3;
  --sun: #f2621b;
  --ember: #b23e12;
  --umber: #6b4a34;
  --peach: #f7d9bc;

  --font-display: "Yuji Syuku", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;

  --wrap: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* header height drives the sticky sub-nav offset and anchor scroll padding */
  --header-h: 76px;
  --subnav-h: 62px;
  --gutter: 32px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* keep in-page anchors clear of the fixed header + sticky sub-nav */
  scroll-padding-top: calc(var(--header-h) + var(--subnav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--washi);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip (not hidden) so the sticky sub-nav keeps working */
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ember);
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--peach); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--ink);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-solid { background: var(--sun); color: var(--washi); box-shadow: 0 8px 20px -8px rgba(178,62,18,.55); }
.btn-solid:hover { background: var(--ember); transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--washi); transform: translateY(-2px); }
.btn-solid--light { background: var(--washi); color: var(--ember); }
.btn-solid--light:hover { background: #fff; }
.btn-outline--light { border-color: var(--washi); color: var(--washi); }
.btn-outline--light:hover { background: var(--washi); color: var(--ember); }

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251,243,231,.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26,22,19,.08);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 42px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-weight: 500; font-size: 0.95rem; position: relative; }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--sun);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--sun);
  color: var(--washi);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--ember); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  /* 44px minimum touch target */
  width: 44px;
  height: 44px;
  padding: 0;
  margin-right: -8px;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
/* burger morphs into a close cross while the panel is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero {
  position: relative;
  padding: 150px 0 100px;
  overflow: hidden;
}
.hero-sun {
  position: absolute;
  top: -18vw; right: -14vw;
  width: 46vw; height: 46vw;
  min-width: 420px; min-height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sun), var(--ember) 85%);
  z-index: 0;
}
.hero-watermark {
  position: absolute;
  left: -6%;
  bottom: -10%;
  width: 38%;
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 13vw, 8rem);
  line-height: 0.95;
  margin: 0 0 6px;
  color: var(--ink);
}
.hero-tagline {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--ember);
  margin: 0 0 18px;
}
.hero-text {
  max-width: 46ch;
  color: var(--umber);
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-photo { display: flex; justify-content: center; }

/* signature sun-frame: circular ink-ring halo around every dish photo */
.sun-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: visible;
  width: 100%;
}
.sun-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.sun-frame .ink-ring {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  pointer-events: none;
}
.sun-frame--lg { max-width: 460px; margin: 0 auto; }
.sun-frame--lg .ink-ring { stroke: var(--sun); stroke-width: 3; }

.sun-frame--wide {
  /* the room shot is panoramic — a 3:2 frame keeps more of it than 4:3 */
  aspect-ratio: 3 / 2;
  border-radius: 28px;
}
.sun-frame--wide img { border-radius: 28px; }

/* ---------------------------------------------------
   Ticker
--------------------------------------------------- */
.ticker {
  background: var(--ink);
  color: var(--washi);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(251,243,231,.1);
  border-bottom: 1px solid rgba(251,243,231,.1);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 26s linear infinite;
}
.ticker-track span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  white-space: nowrap;
  padding-right: 0;
  color: var(--sun);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------
   Histoire
--------------------------------------------------- */
.histoire { padding: 120px 0; }
.histoire-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.histoire-copy p { color: var(--umber); max-width: 54ch; }
.facts {
  list-style: none;
  margin: 34px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(26,22,19,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}
.facts li {
  font-size: 0.88rem;
  color: var(--umber);
  max-width: 15ch;
}
.facts span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--sun);
  margin-bottom: 4px;
}

/* ---------------------------------------------------
   Carte
--------------------------------------------------- */
.carte { padding: 0 0 120px; }
.carte-heading { max-width: 62ch; margin: 48px 0 60px; }
.carte-intro { color: var(--umber); font-size: 1.05rem; }

/* floating sub-nav: sticks under the header for as long as we're inside .carte */
.menu-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(251,243,231,.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26,22,19,.1);
}
.menu-subnav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--subnav-h);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px var(--gutter);
  scrollbar-width: none;
}
.menu-subnav-inner::-webkit-scrollbar { display: none; }
.menu-subnav a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--umber);
  padding: 0 16px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(26,22,19,.15);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.menu-subnav a:hover { border-color: var(--sun); color: var(--ember); }
.menu-subnav a.is-active { background: var(--sun); color: var(--washi); border-color: var(--sun); }

.category { margin-bottom: 76px; scroll-margin-top: calc(var(--header-h) + var(--subnav-h) + 12px); }
.category:last-child { margin-bottom: 0; }
.category-placeholder {
  color: var(--umber);
  font-style: italic;
  padding: 20px 24px;
  background: var(--peach);
  border-radius: 14px;
  max-width: 60ch;
}

.category-note {
  color: var(--umber);
  font-size: 0.88rem;
  font-style: italic;
  margin: -20px 0 24px;
}
.subheading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ember);
  margin: 32px 0 12px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
}
.subheading:first-of-type { margin-top: 8px; }
.subheading small { font-weight: 500; color: var(--umber); font-size: 0.78rem; }

/* à la carte: compact price-list rows with a small photo thumbnail */
.alacarte-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 40px;
}
.alacarte-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(26,22,19,.15);
}
.alacarte-thumb { width: 48px; flex-shrink: 0; }
.alacarte-text { flex: 1; min-width: 0; }
/* drinks carry no photo, and wines show two formats in one price cell */
.alacarte-list--plain .alacarte-row { gap: 16px; }
.alacarte-list--plain .price { font-variant-numeric: tabular-nums; }
.alacarte-text strong { font-weight: 700; font-size: 0.92rem; }
.alacarte-text .desc { display: block; font-size: 0.8rem; color: var(--umber); font-weight: 400; }

.category-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 4.5vw, 1.6rem);
  color: var(--ink);
  margin: 0 0 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.category-title span {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}
.category-title small { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; color: var(--umber); }
.category-title::after {
  content: "";
  flex: 1 1 auto;
  min-width: 24px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--sun) 0 8px, transparent 8px 14px);
}

/* menu list: compact rows, built for a long formula-driven menu */
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.menu-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(26,22,19,.1);
}
.menu-list .menu-row:last-child { border-bottom: none; padding-bottom: 0; }
.menu-thumb { width: 84px; flex-shrink: 0; }
.menu-row-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.menu-row-top h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0;
  flex: 1;
}
.code {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--washi);
  background: var(--umber);
  padding: 3px 8px;
  border-radius: 5px;
}
.price { color: var(--ember); font-weight: 900; white-space: nowrap; }
.menu-row-info p { margin: 0; font-size: 0.9rem; color: var(--umber); }

/* divider */
.divider { line-height: 0; color: var(--sun); }
.divider svg { width: 100%; height: 40px; }
.divider path { fill: none; stroke: currentColor; stroke-width: 3; }

/* ---------------------------------------------------
   CTA / Reserver
--------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--sun), var(--ember));
  color: var(--washi);
  padding: 110px 0;
  text-align: center;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 20px;
}
.cta-text { max-width: 46ch; margin: 0 auto 36px; color: var(--peach); }
.cta-actions { justify-content: center; }

/* ---------------------------------------------------
   Nous trouver
--------------------------------------------------- */
.find-us { padding: 100px 0; }
.find-us-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.info-list { margin: 28px 0 0; }
.info-list > div { margin-bottom: 24px; }
.info-list > div:last-child { margin-bottom: 0; }
.info-list dt {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 700;
  margin-bottom: 6px;
}
.info-list dd { margin: 0; color: var(--umber); }
.info-list dd a:hover { color: var(--sun); }
.find-us-map { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(26,22,19,.3); }
.find-us-map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--washi-dim); padding: 70px 0 30px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251,243,231,.12);
}
.footer-brand .brand-mark { height: 48px; margin-bottom: 12px; background: var(--washi); border-radius: 50%; padding: 4px; }
.footer-brand p { font-family: var(--font-display); font-size: 1.1rem; color: var(--sun); }
.footer-col h5 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  margin: 0 0 14px;
}
.footer-col p { margin: 0; font-size: 0.92rem; color: var(--washi-dim); }
.footer-col a:hover { color: var(--sun); }
/* umber is too dark to read on the ink footer — use a dimmed washi instead */
.footer-legal { text-align: center; font-size: 0.8rem; color: rgba(243,230,211,.6); margin: 26px 0 0; }

/* ---------------------------------------------------
   Reveal on scroll
--------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
/* ---- tablet / small laptop ---- */
@media (max-width: 1000px) {
  .alacarte-list { gap: 4px 28px; }
}

/* ---- collapse to the mobile nav ---- */
@media (max-width: 900px) {
  :root { --gutter: 28px; }

  .nav { display: none; }
  .nav-toggle { display: flex; }
  /* The header carries a backdrop-filter, which makes it the containing block
     for fixed children — so the panel is anchored to the header instead. */
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--washi);
    border-bottom: 1px solid rgba(26,22,19,.12);
    box-shadow: 0 20px 30px -22px rgba(26,22,19,.5);
    flex-direction: column;
    align-items: stretch;
    padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    gap: 0;
    font-size: 1.15rem;
  }
  .nav.is-open a {
    padding: 16px 0;
    font-weight: 700;
    border-bottom: 1px solid rgba(26,22,19,.1);
  }
  .nav.is-open a::after { display: none; }
  /* the phone number stays a button, not a list row */
  .nav.is-open .nav-cta {
    margin-top: 20px;
    border-bottom: none;
    text-align: center;
    padding: 16px 24px;
    font-size: 1.05rem;
  }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; }
  /* below this width the photo drifts onto the sun, where an orange ring vanishes */
  .sun-frame--lg .ink-ring { stroke: var(--ink); stroke-width: 2.5; }
  .histoire-inner { grid-template-columns: 1fr; gap: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .find-us-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- phones ---- */
@media (max-width: 640px) {
  :root {
    --header-h: 64px;
    --subnav-h: 58px;
    --gutter: 20px;
  }

  .brand-mark { height: 36px; }
  .brand-word { font-size: 1.3rem; }

  /* hero: shrink the sun into a corner accent instead of a full-width wash */
  .hero { padding: calc(var(--header-h) + 36px) 0 64px; }
  .hero-sun {
    width: 68vw; height: 68vw;
    min-width: 0; min-height: 0;
    top: -16vw; right: -20vw;
  }
  .hero-watermark { width: 62%; left: -14%; bottom: -4%; }
  .hero-photo { max-width: 250px; margin: 0 auto; }
  .hero-text { margin-bottom: 28px; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .btn { padding: 16px 24px; }

  .ticker { padding: 12px 0; }
  .ticker-track span { font-size: 1.05rem; }

  .histoire { padding: 64px 0; }
  .facts { gap: 20px 28px; margin-top: 28px; padding-top: 22px; }
  .facts li { max-width: none; flex: 1 1 40%; }
  .facts span { font-size: 1.35rem; }

  .carte { padding-bottom: 72px; }
  .carte-heading { margin: 36px 0 40px; }
  .category { margin-bottom: 52px; }
  .category-note { margin: -14px 0 20px; }
  .subheading { margin: 26px 0 10px; }

  /* a wrapped title keeps its dashed rule, but on its own full-width line */
  .category-title { flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
  .category-title::after { flex: 1 0 100%; }

  /* menu rows: keep code + name + price on one line so 100+ dishes stay scannable */
  .menu-list { gap: 20px; }
  .menu-row { grid-template-columns: 68px 1fr; gap: 14px; padding-bottom: 20px; }
  .menu-thumb { width: 68px; }
  .menu-row-top { gap: 4px 8px; margin-bottom: 4px; }
  .menu-row-top h4 { flex: 1 1 0; min-width: 0; font-size: 0.98rem; }
  .menu-row-info p { font-size: 0.86rem; }

  .alacarte-list { grid-template-columns: 1fr; gap: 0; }
  .alacarte-row { padding: 10px 0; gap: 10px; }
  .alacarte-thumb { width: 52px; }

  /* customers order by these codes, so keep them comfortably readable */
  .code { font-size: 0.78rem; padding: 3px 7px; }

  .cta { padding: 72px 0; }
  .find-us { padding: 64px 0; }
  .find-us-map iframe { height: 300px; }
  .info-list > div { margin-bottom: 20px; }
  .info-list dd a { display: inline-block; padding: 6px 0; }

  .site-footer { padding: 52px 0 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  /* footer links are stacked with <br>, so give each its own comfortable row */
  .footer-col p a, .footer-brand a { display: inline-block; padding: 7px 0; }
}

/* ---- small phones (older/compact Android, iPhone SE 1st gen) ---- */
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand-word { font-size: 1.15rem; }
  .hero-photo { max-width: 210px; }
  .menu-row { grid-template-columns: 58px 1fr; gap: 12px; }
  .menu-thumb { width: 58px; }
  .alacarte-thumb { width: 46px; }
  .facts li { flex: 1 1 100%; }
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.1em; }
}

/* ---- phone in landscape: the hero must not eat the whole screen ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: calc(var(--header-h) + 24px) 0 40px; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
  .hero-photo { order: 0; max-width: 200px; }
  .nav.is-open { gap: 0; padding-top: 16px; }
  .nav.is-open a { padding: 12px 0; }
}

/* ---- coarse pointers: no hover lift, bigger hit areas ---- */
@media (hover: none) {
  .btn:hover { transform: none; }
  .dish:hover .sun-frame { transform: none; }
  .menu-subnav a { min-height: 42px; }
}
