/* ==========================================================
   SKY — KYTHERA — BASE
   Reset, typography, global scaffolding.
   ========================================================== */

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

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

html, body {
  height: 100%;
  background: var(--c-deep-navy);
  color: var(--c-text);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  position: relative;
}

/* Lenis applies this to the scrolling wrapper */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

svg {
  display: block;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-tight);
  color: var(--c-text);
  text-shadow: 0 2px 16px rgba(3,5,9,0.65), 0 1px 2px rgba(3,5,9,0.8);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p {
  font-size: var(--fs-body);
  color: var(--c-text-dim);
  font-weight: 300;
  line-height: var(--lh-loose);
  text-shadow: 0 1px 8px rgba(3,5,9,0.5);
}

.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-aurora-cyan);
  opacity: 0.85;
  text-shadow: 0 1px 8px rgba(3,5,9,0.6);
}

.gold-text {
  background: linear-gradient(135deg, var(--c-gold-soft) 0%, var(--c-moon-white) 40%, var(--c-warm-gold) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Accessibility ---------- */

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

:focus-visible {
  outline: 2px solid var(--c-aurora-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respect reduced motion globally; JS also reads this flag
   to disable heavier scroll-driven work. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout scaffolding ---------- */

.world {
  position: relative;
  z-index: var(--z-content);
}

.section {
  position: relative;
  padding: var(--section-pad-y) var(--section-pad-x);
  width: 100%;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

::selection {
  background: var(--c-warm-gold);
  color: var(--c-deep-navy);
}

/* Scrollbar (webkit) — kept subtle, on-brand */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--c-deep-navy); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--c-warm-gold), var(--c-aurora-cyan));
  border-radius: var(--r-pill);
  border: 2px solid var(--c-deep-navy);
}
