/* ==========================================================================
   ROOT & EMBER — Farm-to-table Bistro
   Design system
   --------------------------------------------------------------------------
   TYPE SCALE — golden ratio (φ = 1.618), base 1rem, fluid via clamp() so the
   ratio holds at desktop width and compresses gracefully on small viewports.
   Fixed steps kept where fluidity would hurt legibility (xs, sm/body).
     xs   0.618rem
     sm   1rem      (body)
     md   1.618rem
     lg   2.618rem
     xl   4.236rem
     xxl  6.854rem  (hero display)

   SPACING — Fibonacci, px, no values outside this set:
     8  13  21  34  55  89  144  233

   LAYOUT — asymmetric splits use 61.8% / 38.2% (golden ratio), never 50/50.

   PALETTE — one considered, earthy system. Deep forest ground, warm ember
   accent, natural cream page colour. No gradients outside a single
   restrained firelight glow used once, thematically, on the reservation band.

   TYPE PAIRING — no font CDNs. A warm old-style serif for display, carrying
   the handset/print heritage of a considered menu, paired with a humanist
   sans for body copy — both reached deliberately via a tuned system stack,
   not a default UI-font fallback.
   ========================================================================== */

:root {
  /* --- palette -------------------------------------------------------- */
  --forest-950: #0F1C16;   /* deepest ground: header, hero overlay, footer */
  --forest-800: #1B2E22;   /* dark panels */
  --forest-700: #24402F;   /* mid dark, section alt bg */
  --forest-600: #3C5A43;   /* sage line / borders on dark */
  --forest-400: #6C8873;   /* muted sage text on dark */

  --cream-100: #F7F0DFa2;
  --cream-100-solid: #F7F0DF; /* page ground */
  --cream-200: #EEE2C4;   /* alt panel on light */
  --cream-300: #E4D5AF;   /* hairline / border on light */

  --ink-900: #201A11;     /* body text on cream */
  --ink-700: #4A4030;     /* secondary text on cream */

  --ember-300: #E9BE86;   /* pale gold, on-dark secondary text */
  --ember-500: #C9862F;   /* primary accent: eyebrows, links, tags */
  --ember-600: #B5551F;   /* deep ember: button fill */
  --ember-700: #8F3F17;   /* button hover / active */
  --ember-glow: #FF8A3D;  /* firelight glow, used once */

  /* --- type -------------------------------------------------------------
     scale is fluid between a compressed mobile value and the golden-ratio
     desktop value; xs and sm (body) stay fixed for legibility. */
  --text-xs: 0.618rem;
  --text-sm: 1rem;
  --text-md: clamp(1.25rem, 1.02rem + 1.1vw, 1.618rem);
  --text-lg: clamp(1.618rem, 1.15rem + 2.3vw, 2.618rem);
  --text-xl: clamp(2.05rem, 1.2rem + 4.2vw, 4.236rem);
  --text-xxl: clamp(2.618rem, 1.05rem + 7vw, 6.854rem);

  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino,
    'URW Palladio L', P052, 'Book Antiqua', Georgia, serif;
  --font-body: 'Gill Sans Nova', 'Gill Sans MT', 'Gill Sans', Corbel,
    'Trebuchet MS', 'Segoe UI', sans-serif;

  /* --- spacing (Fibonacci, px) ------------------------------------------ */
  --sp-1: 8px;
  --sp-2: 13px;
  --sp-3: 21px;
  --sp-4: 34px;
  --sp-5: 55px;
  --sp-6: 89px;
  --sp-7: 144px;
  --sp-8: 233px;

  /* --- motion ------------------------------------------------------------ */
  --ease-organic: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body, h1, h2, h3, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }

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

button, input, select, textarea { font: inherit; color: inherit; }

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

body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--cream-100-solid);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* Visible, deliberate focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ember-500);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: var(--sp-2);
  top: -80px;
  background: var(--forest-950);
  color: var(--cream-100-solid);
  padding: var(--sp-2) var(--sp-3);
  z-index: 999;
  transition: top 0.25s var(--ease-soft);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus {
  top: var(--sp-2);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-500);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 21px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

section {
  position: relative;
}

/* Asymmetric split: 61.8% / 38.2% — golden ratio, never 50/50 */
.split {
  display: grid;
  grid-template-columns: 61.8% 38.2%;
  gap: var(--sp-6);
  align-items: center;
}
.split--reverse {
  grid-template-columns: 38.2% 61.8%;
}
.split--reverse > :first-child { order: 2; }
.split--reverse > :last-child { order: 1; }

@media (max-width: 860px) {
  .split, .split--reverse {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  .split--reverse > :first-child,
  .split--reverse > :last-child { order: initial; }
}

/* ==========================================================================
   Buttons — flat, square-edged, stamped rather than rounded-card-soft
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.35s var(--ease-soft),
              color 0.35s var(--ease-soft),
              border-color 0.35s var(--ease-soft),
              transform 0.35s var(--ease-organic);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ember-600);
  color: var(--cream-100-solid);
  border-color: var(--ember-600);
}
.btn--primary:hover {
  background: var(--ember-700);
  border-color: var(--ember-700);
}

.btn--ghost {
  background: transparent;
  color: var(--cream-100-solid);
  border-color: rgba(247, 240, 223, 0.45);
}
.btn--ghost:hover {
  background: rgba(247, 240, 223, 0.1);
  border-color: var(--cream-100-solid);
}

.btn--outline-dark {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-900);
}
.btn--outline-dark:hover {
  background: var(--ink-900);
  color: var(--cream-100-solid);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: var(--sp-2);
  background: linear-gradient(to bottom, rgba(15,28,22,0.55), rgba(15,28,22,0));
  transition: background-color 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}
.site-header.is-scrolled {
  background: var(--forest-950);
  box-shadow: 0 8px 21px rgba(0,0,0,0.25);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--cream-100-solid);
}
.brand-mark { flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  letter-spacing: 0.01em;
}
.brand-name em {
  font-style: normal;
  color: var(--ember-400, var(--ember-500));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.main-nav ul {
  display: flex;
  gap: var(--sp-4);
}
.main-nav a:not(.btn) {
  color: var(--cream-100-solid);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}
.main-nav a:not(.btn):hover {
  border-color: var(--ember-500);
  color: var(--ember-300);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(247,240,223,0.4);
  color: var(--cream-100-solid);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-soft), opacity 0.3s var(--ease-soft);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .main-nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest-950);
    padding: var(--sp-4);
    gap: var(--sp-3);
    /* Baseline (pre-animation / no-JS) state — GSAP drives the actual
       open/close motion from script.js; this is just the resting state
       so the panel doesn't flash open before JS runs, and a functional
       (if unanimated) fallback if GSAP fails to load. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
  }
  .main-nav.is-open ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  /* Pre-existing overflow bug: this CTA lives outside the <ul> so the old
     `.main-nav ul { display:none }` rule never touched it — it stayed
     visible at mobile widths and pushed .nav-toggle off-screen, making the
     hamburger unclickable. The reserve CTA is already covered by the hero
     button and the reservation band, so hide it here alongside the list. */
  .main-nav > .btn--ghost { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Hero — scroll-scrubbed video
   ========================================================================== */
.hero-scrub {
  position: relative;
  height: 260vh; /* scroll range that drives the scrub */
}

@media (prefers-reduced-motion: reduce) {
  .hero-scrub { height: 100vh; }
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--cream-100-solid);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,16,12,0.92) 0%, rgba(10,16,12,0.45) 42%, rgba(10,16,12,0.35) 100%),
    linear-gradient(to right, rgba(10,16,12,0.35) 0%, rgba(10,16,12,0) 45%);
}

/* Embers — restrained three.js particle accent, sits above the overlay but
   below the headline/CTA layer (z-index 2) so it never competes with them.
   Additive glow comes from the particle shader itself; screen blend lets it
   read against the dark video without flattening the footage. */
.hero-embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: reduce) {
  .hero-embers { display: none; }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--sp-7) var(--sp-6);
}

.hero-eyebrow {
  color: var(--ember-300);
}

.hero-title {
  font-size: var(--text-xxl);
  max-width: 15ch;
  margin-block: var(--sp-3) var(--sp-4);
  text-wrap: balance;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-md);
  max-width: 46ch;
  color: var(--cream-200, #EEE2C4);
  line-height: 1.55;
  margin-bottom: var(--sp-5);
}

.hero-ctas {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--cream-200, #EEE2C4);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-cue svg { animation: scrollBob 2.2s var(--ease-soft) infinite; }
@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg { animation: none; }
}
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-organic), transform 0.9s var(--ease-organic);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Story section
   ========================================================================== */
.story {
  background: var(--cream-100-solid);
  padding-block: var(--sp-7);
}

.story-copy .eyebrow { margin-bottom: var(--sp-3); }

.story-heading {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-4);
  max-width: 18ch;
}

.story-copy p {
  max-width: 58ch;
  color: var(--ink-700);
  margin-bottom: var(--sp-4);
  font-size: var(--text-sm);
}
.story-copy p:last-child { margin-bottom: 0; }
.story-copy strong {
  color: var(--ink-900);
  font-weight: 600;
}

.wheel-panel {
  background: var(--cream-200);
  border: 1px solid var(--cream-300);
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.wheel-caption {
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--ink-700);
  max-width: 28ch;
}
.wheel-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--ink-900);
  letter-spacing: 0;
  margin-bottom: var(--sp-1);
}

.season-wheel { width: 100%; max-width: 280px; height: auto; }
.season-wheel .ring-active {
  stroke: var(--ember-500);
}
.season-wheel .ring-idle {
  stroke: var(--forest-600);
  opacity: 0.55;
}
.season-wheel .wheel-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--ink-700);
}
.season-wheel .wheel-label.is-active {
  fill: var(--ember-600);
  font-weight: 700;
}
.season-wheel .wheel-center-title {
  font-family: var(--font-display);
  font-size: 15px;
  fill: var(--ink-900);
}
.season-wheel .wheel-center-sub {
  font-family: var(--font-body);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  fill: var(--ink-700);
}
.season-wheel .wheel-marker {
  transform-origin: 160px 160px;
}
@media (prefers-reduced-motion: no-preference) {
  .season-wheel .wheel-marker {
    animation: markerDrift 9s var(--ease-soft) infinite;
  }
}
@keyframes markerDrift {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ==========================================================================
   Menu highlights — editorial list, not cards
   ========================================================================== */
.menu {
  background: var(--forest-950);
  color: var(--cream-100-solid);
  padding-block: var(--sp-7);
}

.menu-head {
  display: grid;
  grid-template-columns: 61.8% 38.2%;
  gap: var(--sp-5);
  align-items: end;
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--forest-600);
  padding-bottom: var(--sp-5);
}
.menu-head .eyebrow { color: var(--ember-400, var(--ember-500)); margin-bottom: var(--sp-3); }
.menu-heading { font-size: var(--text-lg); max-width: 14ch; }
.menu-note {
  color: var(--forest-400);
  font-size: var(--text-sm);
  max-width: 40ch;
  justify-self: end;
  text-align: right;
}

@media (max-width: 860px) {
  .menu-head { grid-template-columns: 1fr; }
  .menu-note { justify-self: start; text-align: left; }
}

.dish-list {
  display: flex;
  flex-direction: column;
}

.dish {
  display: grid;
  grid-template-columns: 61.8% 38.2%;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--forest-700);
  align-items: start;
  transition: transform 0.4s var(--ease-soft), border-bottom-color 0.4s var(--ease-soft);
}
.dish:first-child { padding-top: 0; }
.dish:last-child { border-bottom: none; padding-bottom: 0; }
.dish:hover {
  transform: translateX(var(--sp-2));
  border-bottom-color: var(--ember-500);
}

.dish-tag {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-400, var(--ember-500));
  margin-bottom: var(--sp-2);
}

.dish-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  margin-bottom: var(--sp-2);
  max-width: 26ch;
}

.dish-desc {
  color: var(--forest-400);
  font-size: var(--text-sm);
  max-width: 48ch;
}

.dish-price {
  justify-self: end;
  text-align: right;
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--ember-300, var(--ember-500));
  white-space: nowrap;
}

@media (max-width: 860px) {
  .dish { grid-template-columns: 1fr; gap: var(--sp-2); }
  .dish-price { justify-self: start; text-align: left; margin-top: var(--sp-1); }
}

/* ==========================================================================
   Reservation CTA band — firelight glow, used once, deliberately
   ========================================================================== */
.reserve-band {
  position: relative;
  background: var(--forest-800);
  color: var(--cream-100-solid);
  padding-block: var(--sp-7);
  overflow: hidden;
  text-align: center;
}
.reserve-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(255,138,61,0.35), transparent 60%);
  pointer-events: none;
}

.reserve-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.reserve-band .eyebrow { justify-content: center; color: var(--ember-400, var(--ember-500)); margin-bottom: var(--sp-3); }

.reserve-heading {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-4);
}

.reserve-text {
  color: var(--cream-200, #EEE2C4);
  font-size: var(--text-md);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: var(--sp-5);
}

.reserve-ctas {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ==========================================================================
   Contact / location
   ========================================================================== */
.contact {
  background: var(--cream-100-solid);
  padding-block: var(--sp-7);
}

.contact-details dt {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-600);
  margin-top: var(--sp-4);
}
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd {
  font-size: var(--text-md);
  font-family: var(--font-display);
  margin-top: var(--sp-1);
}
.contact-details dd a:hover { color: var(--ember-600); }

.hours-table {
  margin-top: var(--sp-5);
  width: 100%;
  border-collapse: collapse;
}
.hours-table td {
  padding-block: var(--sp-1);
  border-bottom: 1px solid var(--cream-300);
  font-size: var(--text-sm);
}
.hours-table td:last-child {
  text-align: right;
  color: var(--ink-700);
}

.map-panel {
  background: var(--forest-950);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.map-panel svg { width: 100%; height: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--forest-950);
  color: var(--forest-400);
  padding-block: var(--sp-6) var(--sp-5);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--forest-700);
  margin-bottom: var(--sp-4);
}

.footer-top .brand-name { color: var(--cream-100-solid); }
.footer-top .brand { color: var(--cream-100-solid); }

.footer-nav {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-400);
  transition: color 0.3s var(--ease-soft);
}
.footer-nav a:hover { color: var(--ember-400, var(--ember-500)); }

.footer-social {
  display: flex;
  gap: var(--sp-2);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--forest-700);
  color: var(--cream-100-solid);
  transition: border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}
.footer-social a:hover {
  border-color: var(--ember-500);
  color: var(--ember-400, var(--ember-500));
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--text-xs);
}
