/* =========================================================================
   Redwood Pizzeria — run-002 "Cosmic Grove"
   Global stylesheet. Tokens are the DESIGN.md v2 contract.
   ========================================================================= */

/* ---- Tokens ---------------------------------------------------------- */
:root {
  /* Brand palette (toolkit six) */
  --twilight-indigo: oklch(0.23 0.065 300);
  --deep-plum:       oklch(0.33 0.10 328);
  --marigold-sun:    oklch(0.78 0.135 68);
  --hot-coral:       oklch(0.65 0.185 30);
  --pine-teal:       oklch(0.52 0.08 178);
  --warm-cream:      oklch(0.94 0.022 88);

  /* Surfaces (dark-mode depth via lighter surfaces, not shadow) */
  --surface-0: oklch(0.19 0.055 300);
  --surface-1: var(--twilight-indigo);
  --surface-2: var(--deep-plum);
  --surface-cream: var(--warm-cream);

  /* Semantic ink */
  --ink: var(--warm-cream);
  --ink-muted: oklch(0.82 0.03 80);
  --ink-on-cream: oklch(0.22 0.06 300);
  --ink-on-cream-muted: oklch(0.38 0.05 305);

  /* Accents */
  --accent: var(--marigold-sun);
  --accent-2: var(--hot-coral);
  --accent-3: var(--pine-teal);
  --on-accent: var(--twilight-indigo);

  /* Hairlines */
  --line-on-dark: oklch(0.82 0.03 80 / 0.16);
  --line-on-cream: oklch(0.65 0.185 30 / 0.30);

  /* Type */
  --font-display: "Shrikhand", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;

  --fs-display: clamp(2.75rem, 9vw, 7rem);
  --fs-h2: clamp(2rem, 5vw, 3.5rem);
  --fs-h3: clamp(1.35rem, 2.2vw, 1.75rem);
  --fs-lead: clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.8rem;
  --fs-kicker: 0.78rem;

  /* Spacing — 4px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --measure: 66ch;
  --wrap: 72rem;
  --wrap-wide: 80rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 10vh, 8rem);
  --nav-h: 4.5rem;

  /* Radius */
  --r-sm: 0.5rem;
  --r-md: 1rem;
  --r-lg: 1.75rem;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 600ms;
}

/* ---- Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--surface-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }

/* Grain overlay — risograph/silkscreen texture across the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Display + utility type ----------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  font-size: var(--fs-h2);
}

.display--hero {
  font-size: clamp(2.5rem, min(8.4vw, 11.5vh), 6.5rem);
  text-transform: uppercase;
  line-height: 0.86;
}

.kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* ---- Layout wraps ---------------------------------------------------- */
.wrap, .wrap-wide {
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}
.wrap { max-width: var(--wrap); }
.wrap-wide { max-width: var(--wrap-wide); }

/* ---- Skip link ------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 10000;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-sm);
  transition: top var(--dur-1) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              background-color var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  box-shadow: 0 0 0 1px var(--accent),
              0 8px 30px -8px oklch(0.78 0.135 68 / 0.6);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-on-dark);
}
.btn--secondary:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ---- Nav ------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              backdrop-filter var(--dur-2) var(--ease);
  border-bottom: 1px solid transparent;
}
/* top-down scrim so the transparent nav stays legible over the hero */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 200%;
  background: linear-gradient(to bottom,
              oklch(0.19 0.055 300 / 0.85), transparent);
  pointer-events: none;
  z-index: -1;
  transition: opacity var(--dur-2) var(--ease);
}
.nav.is-scrolled {
  background: oklch(0.33 0.10 328 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-on-dark);
}
.nav.is-scrolled::before { opacity: 0; }

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--nav-h);
}

.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  margin-right: auto;
}
.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav__place {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

.nav__links {
  display: flex;
  gap: var(--space-6);
}
.nav__links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding-block: 0.25rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transition: right var(--dur-2) var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { right: 0; }

/* ---- Sections -------------------------------------------------------- */
.section {
  padding-block: var(--section-pad);
}
.section__inner { width: 100%; }

.section--hero {
  position: relative;
  isolation: isolate;
  background: var(--surface-0);
  min-height: 100svh;
  margin-top: calc(-1 * var(--nav-h));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: calc(var(--nav-h) + var(--space-8));
  padding-bottom: clamp(2.4rem, 5vh, 4rem);
  overflow: hidden;
  text-align: center;
}
.hero__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--surface-0);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* JPEG fallback first, then WebP via image-set for modern browsers (115KB vs 807KB) */
  background-image: url("assets/hero-bg.jpg");
  background-image: -webkit-image-set(url("assets/hero-bg.webp") type("image/webp"), url("assets/hero-bg.jpg") type("image/jpeg"));
  background-image: image-set(url("assets/hero-bg.webp") type("image/webp"), url("assets/hero-bg.jpg") type("image/jpeg"));
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top,
      oklch(0.15 0.05 300 / 0.92) 0%,
      oklch(0.15 0.05 300 / 0.78) 28%,
      oklch(0.16 0.05 300 / 0.45) 46%,
      oklch(0.16 0.05 300 / 0.12) 60%,
      transparent 72%),
    radial-gradient(140% 70% at 50% 12%, transparent 50%, oklch(0.18 0.055 300 / 0.30));
}
.section__inner--hero {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section--hero .kicker {
  text-shadow: 0 1px 10px oklch(0.16 0.05 300 / 0.7);
}
.display--hero {
  margin-top: var(--space-2);
  text-shadow: 0 2px 24px oklch(0.16 0.05 300 / 0.6);
}
.hero__sub {
  font-size: var(--fs-lead);
  color: var(--ink);
  max-width: 44ch;
  margin: var(--space-4) auto 0;
  text-shadow: 0 1px 14px oklch(0.16 0.05 300 / 0.7);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-6);
}

.section--story { background: var(--surface-1); }
.section--pies  { background: var(--surface-2); }
.section--menu  { background: var(--surface-0); }

.section--visit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-1);
  border-top: 1px solid var(--line-on-dark);
  padding-bottom: clamp(6.5rem, 13vw, 10rem);
}

/* ---- Story (Lane 0, editorial text band) ---------------------------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(2rem, 6vw, 5.5rem);
  row-gap: clamp(2.5rem, 6vh, 4.5rem);
  align-items: start;
}
.story__head::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--accent);
  margin-bottom: var(--space-6);
}
.story__title { color: var(--ink); }
.story__body { max-width: 58ch; }
.story__lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink);
}
.story__punch {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.story__support {
  margin-top: var(--space-6);
  color: var(--ink-muted);
  line-height: 1.65;
}
.story__facts {
  grid-column: 1 / -1;
  list-style: none;
  padding: var(--space-8) 0 0;
  margin-top: clamp(1.5rem, 4vh, 3rem);
  border-top: 1px solid var(--line-on-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6) clamp(1.5rem, 4vw, 3rem);
}
.story__fact {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.story__fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.story__body.reveal  { transition-delay: 90ms; }
.story__facts.reveal { transition-delay: 170ms; }

@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; }
  .story__facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .story__facts { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* ---- Signature Pies (generated-graphics grid) ---------------------- */
.pies__head::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--accent);
  margin-bottom: var(--space-6);
}
.pies__intro {
  margin-top: var(--space-4);
  max-width: 60ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-muted);
}

.pies__grid {
  list-style: none;
  padding: 0;
  margin-top: clamp(2.5rem, 5vh, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.2vw, 2rem);
}
.pies__grid.reveal { transition-delay: 90ms; }

.pie-card {
  display: flex;
  flex-direction: column;
  background: oklch(0.38 0.105 326);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-lg);
  padding: clamp(1.1rem, 1.6vw, 1.5rem);
  transition: transform var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease);
}

.pie-card__disc {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--space-4);
  box-shadow: 0 0 26px -10px oklch(0.78 0.135 68 / 0.30);
  transition: box-shadow var(--dur-2) var(--ease);
}
.pie-card__disc img { width: 100%; height: 100%; object-fit: cover; }

@media (hover: hover) {
  .pie-card:hover {
    transform: translateY(-4px);
    border-color: oklch(0.94 0.022 88 / 0.32);
    box-shadow: 0 16px 44px -18px oklch(0.78 0.135 68 / 0.45);
  }
  .pie-card:hover .pie-card__disc {
    box-shadow: 0 0 38px -6px oklch(0.78 0.135 68 / 0.45);
  }
}

.pie-card__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.1;
  color: var(--ink);
}
.pie-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-3);
}
.pie-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.62rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent-3);
  color: var(--ink);
}
.pie-fav {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.pie-fav::before { content: "\2605"; font-size: 0.85em; line-height: 1; }

.pie-card__desc {
  margin-top: var(--space-3);
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.pie-card__note {
  margin-top: var(--space-2);
  color: var(--ink-muted);
  font-size: var(--fs-small);
  opacity: 0.85;
}

.pie-card__prices {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-on-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.pie-price { display: flex; flex-direction: column; gap: 2px; }
.pie-price__size {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--ink-muted);
}
.pie-price__amt {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  font-feature-settings: "tnum";
}

@media (max-width: 980px) {
  .pies__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .pies__grid { grid-template-columns: 1fr; }
}

/* ---- Menu (Lane 0, cream reading panel on a dark band) -------------- */
.section--menu .section__inner { display: block; }

.menu-panel {
  /* scoped ink for the cream surface */
  --menu-accent: oklch(0.48 0.16 33);          /* deep coral, large headings + rules */
  --menu-accent-strong: oklch(0.42 0.155 34);  /* darker coral, small text */
  --menu-line: oklch(0.30 0.08 320 / 0.15);    /* soft row divider on cream */

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-cream);
  color: var(--ink-on-cream);
  border: 1px solid oklch(0.65 0.185 30 / 0.20);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4.5vw, 4.5rem);
  box-shadow: 0 34px 90px -46px oklch(0.12 0.04 300 / 0.65);
}
.menu-panel > :not(.menu-panel__rays) { position: relative; z-index: 1; }

/* faint marigold sunburst rising behind the title */
.menu-panel__rays {
  position: absolute;
  z-index: 0;
  top: clamp(-260px, -18vw, -140px);
  left: 50%;
  width: min(820px, 130%);
  aspect-ratio: 1;
  translate: -50% 0;
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
              oklch(0.78 0.135 68 / 0.20) 0deg 5deg,
              transparent 5deg 17deg);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent 72%);
          mask-image: radial-gradient(closest-side, #000, transparent 72%);
}

.menu-panel__head {
  text-align: center;
  margin-bottom: clamp(2.25rem, 5vh, 3.5rem);
}
.menu-panel__head .display { color: var(--ink-on-cream); }
.menu-panel__sub {
  margin: var(--space-4) auto 0;
  max-width: 64ch;
  color: var(--ink-on-cream-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* region scaffolding (Pizzas) */
.menu-region__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.05;
  color: var(--menu-accent);
}
.menu-region__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: var(--space-3);
  border-radius: var(--r-pill);
  background: var(--menu-accent);
  opacity: 0.55;
}
.menu-region__note,
.menu-block__note {
  margin-top: var(--space-3);
  max-width: 64ch;
  color: var(--ink-on-cream-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.menu-region__note b { color: var(--ink-on-cream); font-weight: 700; }

/* shared list + item primitives */
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-item { padding-block: var(--space-3); }
.menu-item + .menu-item { border-top: 1px solid var(--menu-line); }
.menu-item__name { font-weight: 600; color: var(--ink-on-cream); }
.menu-item__desc {
  color: var(--ink-on-cream-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* dietary pill on cream */
.menu-tag {
  display: inline-block;
  margin-left: 0.4rem;
  vertical-align: 0.06em;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
  border-radius: var(--r-pill);
  background: oklch(0.65 0.185 30 / 0.12);
  color: var(--menu-accent-strong);
}

/* Pizzas: three price tiers */
.menu-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(1.5rem, 3vh, 2.25rem);
}
.menu-tier__head {
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--line-on-cream);
}
.menu-tier__name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--ink-on-cream);
}
.menu-tier__price {
  margin-top: 3px;
  font-size: 0.85rem;
  color: var(--ink-on-cream-muted);
  font-variant-numeric: tabular-nums;
}
.menu-tier__price span {
  color: var(--menu-accent-strong);
  font-weight: 700;
  margin-right: 1px;
}
.menu-item--pizza .menu-item__name { display: block; }
.menu-item--pizza .menu-item__desc { display: block; margin-top: 2px; }

/* spacing + divider above the remaining-categories block */
.menu-more {
  margin-top: clamp(2.5rem, 5vh, 4rem);
  padding-top: clamp(2.5rem, 5vh, 4rem);
  border-top: 1px solid var(--line-on-cream);
}

/* the remaining categories flow in balanced columns */
.menu-more {
  column-count: 3;
  column-gap: clamp(2rem, 4vw, 3.5rem);
}
.menu-block {
  break-inside: avoid;
  margin-bottom: var(--space-8);
}
.menu-block:last-child { margin-bottom: 0; }
.menu-block__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--menu-accent-strong);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--line-on-cream);
}
.menu-block__note { margin-top: 0; margin-bottom: var(--space-2); font-size: 0.84rem; }

/* non-pizza item: name/desc left, price right */
.menu-item:not(.menu-item--pizza) {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--space-3);
}
.menu-item__main { min-width: 0; }
.menu-item__main .menu-item__desc { display: block; margin-top: 1px; }
.menu-item__price {
  font-weight: 600;
  color: var(--ink-on-cream);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* footnotes + ordering CTA */
.menu-panel__foot {
  margin-top: clamp(2.5rem, 5vh, 4rem);
  padding-top: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid var(--line-on-cream);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) clamp(2rem, 6vw, 4rem);
  align-items: start;
  justify-content: space-between;
}
.menu-foot__notes {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 56ch;
  display: grid;
  gap: var(--space-2);
}
.menu-foot__notes li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-on-cream-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.menu-foot__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--menu-accent);
}
.menu-foot__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.menu-foot__pdf {
  font-weight: 600;
  color: var(--menu-accent-strong);
  text-decoration: underline;
  text-decoration-color: oklch(0.65 0.185 30 / 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-1) var(--ease);
}
.menu-foot__pdf:hover { text-decoration-color: var(--menu-accent); }

@media (max-width: 980px) {
  .menu-tiers { grid-template-columns: repeat(2, 1fr); }
  .menu-more { column-count: 2; }
}
@media (max-width: 620px) {
  .menu-tiers { grid-template-columns: 1fr; }
  .menu-more { column-count: 1; }
  .menu-panel__foot { flex-direction: column; }
}

/* ---- Visit (Lane 0, full-width footer band with silhouettes) -------- */
.visit__art {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: clamp(84px, 10vw, 140px);
  z-index: 0;
  pointer-events: none;
}
.visit__treeline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.visit__bigfoot {
  position: absolute;
  bottom: 0;
  left: clamp(16%, 22vw, 26%);
  height: clamp(58px, 8.5vw, 102px);
  width: auto;
}
.section--visit > .section__inner { position: relative; z-index: 1; }

.visit__title { color: var(--ink); }
.visit__title::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--accent);
  margin-bottom: var(--space-6);
}
.visit__intro {
  margin-top: var(--space-4);
  max-width: 48ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-muted);
}

.visit__grid {
  margin-top: clamp(2.5rem, 5vh, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.visit__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.visit__lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--ink);
  line-height: 1.5;
}
.visit__lines a {
  width: fit-content;
  position: relative;
}
.visit__lines a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 1.5px;
  background: var(--accent);
  transition: right var(--dur-2) var(--ease);
}
.visit__lines a:hover::after,
.visit__lines a:focus-visible::after { right: 0; }
.visit__muted { color: var(--ink-muted); }

.visit__cta {
  margin-top: clamp(2rem, 4vh, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.visit__notes {
  margin-top: clamp(2rem, 4vh, 3rem);
  max-width: 70ch;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.visit__base {
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
}
.visit__brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3);
}
.visit__wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}
.visit__sig { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.visit__copy { color: var(--ink-muted); font-size: var(--fs-small); }

.visit__head.reveal  { transition-delay: 0ms; }
.visit__grid.reveal  { transition-delay: 90ms; }
.visit__cta.reveal   { transition-delay: 150ms; }
.visit__notes.reveal { transition-delay: 210ms; }

/* ===== Phase 5 polish (focus ring · scrollspy · menu strip · map · story glow · open-now) ===== */

/* a11y focus ring — DESIGN.md contract: 2px marigold ring, 2px offset */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* marigold fails the 3:1 ring-contrast rule on the cream menu panel → dark ink ring there */
.menu-panel :focus-visible { outline-color: var(--ink-on-cream); }

/* nav scrollspy — persistent marigold underline on the current section's link */
.nav__links a.is-active::after { right: 0; }

/* Story mid-page motif echo — faint cosmic sun, masked, low opacity, behind content */
.section--story { position: relative; overflow: hidden; isolation: isolate; }
.story { position: relative; z-index: 1; }
.story__glow {
  position: absolute;
  top: clamp(-340px, -26vw, -180px);
  right: clamp(-160px, -10vw, -60px);
  width: min(60vw, 680px);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side, oklch(0.78 0.135 68 / 0.5), transparent 70%),
    repeating-conic-gradient(from 0deg at 50% 50%,
      oklch(0.78 0.135 68 / 0.5) 0deg 4deg, transparent 4deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent 72%);
          mask-image: radial-gradient(closest-side, #000, transparent 72%);
  opacity: 0.10;
}

/* Menu category strip — sticky in-panel wayfinding (sits above the panel so the
   panel's own overflow:hidden never breaks position:sticky) */
.menu-nav {
  position: sticky;
  top: calc(var(--nav-h) + 0.5rem);
  z-index: 20;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: oklch(0.94 0.022 88 / 0.85);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
          backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid oklch(0.65 0.185 30 / 0.22);
  border-radius: var(--r-pill);
  box-shadow: 0 16px 44px -20px oklch(0.12 0.04 300 / 0.7);
}
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--ink-on-cream);
  white-space: nowrap;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.menu-nav a:hover { background: oklch(0.65 0.185 30 / 0.12); }
.menu-nav a.is-active { background: oklch(0.48 0.16 33); color: var(--warm-cream); }
/* targets clear both the page nav and the pinned category strip when jumped to */
#cat-pizzas, #cat-salads, #cat-baked, #cat-drinks, #cat-sweet {
  scroll-margin-top: calc(var(--nav-h) + 4.75rem);
}

/* Open-now status (Visit › Hours) */
.visit__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: var(--space-3);
  padding: 0.28rem 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-on-dark);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.visit__status[hidden] { display: none; }
.visit__status::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}
.visit__status.is-open { color: var(--accent); border-color: oklch(0.78 0.135 68 / 0.45); }
.visit__status.is-closed { color: var(--ink-muted); }
.visit__nextopen { margin-top: -0.35rem; margin-bottom: var(--space-3); font-size: var(--fs-small); }
.visit__nextopen[hidden] { display: none; }

/* Visit location map cue (code-drawn inline SVG; no maps API key available) */
.visit__grid { align-items: start; }
.visit__map {
  margin-top: var(--space-4);
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 8 / 5;
  border-radius: var(--r-md);
  border: 1px solid var(--line-on-dark);
  overflow: hidden;
  background: var(--surface-0);
}
.visit__map svg { width: 100%; height: 100%; }

/* ---- Scroll-in reveal (content sections) ---------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-3) var(--ease),
              transform var(--dur-3) var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---- Motion / responsive guards ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

.nav__cta-short { display: none; }

@media (max-width: 640px) {
  :root { --nav-h: 4rem; }
  .nav__links { display: none; }
  .nav__wordmark { font-size: 1.1rem; white-space: nowrap; }
  .nav__cta-long { display: none; }
  .nav__cta-short { display: inline; }
  .hero__scrim {
    background:
      linear-gradient(to top,
        oklch(0.14 0.05 300 / 0.95) 0%,
        oklch(0.14 0.05 300 / 0.88) 34%,
        oklch(0.15 0.05 300 / 0.62) 52%,
        oklch(0.16 0.05 300 / 0.26) 67%,
        transparent 80%);
  }
}
