/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--ink-active);
  background: transparent;
  transition: color 0.9s var(--ease);
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* Display type */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--ink-active-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--s-8) 0;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink-active);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-active);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink-active);
  color: var(--bg);
  border-color: var(--ink-active);
}
.btn .arrow {
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* Animations */
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(6px, -8px) rotate(4deg); }
  66% { transform: translate(-4px, 6px) rotate(-3deg); }
}
@keyframes steam {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  50% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-30px) scale(1.3); }
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.mono { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.05em; }
.sep-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.4; margin: 0 0.6em; vertical-align: middle; }

/* =========================================================
   SCROLL-AWARE THEMING — sections blend with sky
   Sections go from opaque warm paper (day) to translucent
   panels on night sky. Text colors invert smoothly.
   ========================================================= */

/* Body is transparent so sky shows through every section */
body.has-sky { background: transparent !important; }

/* Scroll-evening: triggered at progress > 0.50 (golden hour begins) */
body.has-sky.scroll-evening {
  --ink-active: #FFF0D8;
  --ink-active-soft: #E8D4B0;
  --ink-active-muted: #B8A080;
  --line: rgba(255, 220, 170, 0.18);
  --line-strong: rgba(255, 220, 170, 0.45);
  transition: color 0.5s, background 0.5s;
}

/* Scroll-night: progress > 0.72 */
body.has-sky.scroll-night {
  --ink-active: #F5E8D0;
  --ink-active-soft: #D4BFA0;
  --ink-active-muted: #8A7B6A;
  --accent: #F4B860;
  --accent-soft: #E8A855;
  --line: rgba(244, 184, 96, 0.2);
  --line-strong: rgba(244, 184, 96, 0.5);
}

/* Make sections translucent so sky shows through, instead of solid paper */
body.has-sky .section,
body.has-sky .marquee,
body.has-sky .menu-section,
body.has-sky .events-section,
body.has-sky .story-section,
body.has-sky .res-section {
  background: transparent;
  transition: background 0.6s;
}

/* Give sections a subtle translucent backdrop panel that reads with any sky */
body.has-sky .section-panel,
body.has-sky .menu-section > .wrap,
body.has-sky .story-section > .wrap,
body.has-sky .res-section > .wrap {
  position: relative;
}

/* Day: soft warm cream tint; Night: dark warm purple tint; via ::before on sections */
body.has-sky .section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 245, 234, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
  transition: background 0.6s;
  pointer-events: none;
}
body.has-sky.scroll-evening .section::before {
  background: rgba(91, 63, 94, 0.35);
}
body.has-sky.scroll-night .section::before {
  background: rgba(20, 17, 30, 0.72);
}

/* Hero stays fully transparent */
body.has-sky .hero::before { display: none; }
body.has-sky .hero { background: transparent !important; }

/* Marquee gets a stronger panel so text is legible */
body.has-sky .marquee {
  background: rgba(245, 230, 211, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.has-sky.scroll-evening .marquee {
  background: rgba(91, 63, 94, 0.45);
}
body.has-sky.scroll-night .marquee {
  background: rgba(31, 26, 46, 0.72);
}

/* Footer keeps solid dark background to ground the page */
body.has-sky .footer { background: var(--ink); color: var(--cream); }
body.has-sky.scroll-night .footer { background: #05030a; }

