/* =========================================================
   BASE & RESET — LIGHT THEME
   ========================================================= */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-midnight);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  min-height: 100vh;

  /* Crisp lavender-white ground with soft periwinkle + violet glows */
  background-image:
    radial-gradient(ellipse 1200px 820px at 82% -12%, rgba(91, 95, 224, 0.10), transparent 60%),
    radial-gradient(ellipse 940px 720px at 8% 112%, rgba(139, 111, 232, 0.08), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #FAFAFE 48%, #F3F4FD 100%);
  background-attachment: fixed;
}

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

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

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

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--color-cyan);
  color: #FFFFFF;
}

/* Focus rings — accessible but subtle */
:focus-visible {
  outline: 1px solid var(--color-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Custom scrollbar (desktop) */
@media (hover: hover) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #EEF0FA;
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(91, 95, 224, 0.28);
    border-radius: var(--radius-pill);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 95, 224, 0.45);
  }
}

/* Lenis smooth-scroll — required hooks (keep intact, no plugin collision) */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* Reduced motion */
@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;
  }
}
