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

html {
  scroll-behavior: smooth;
  /* ~18px root for comfortable long-form reading */
  font-size: clamp(106.25%, 0.5vw + 103%, 118.75%);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(30, 58, 95, 0.45), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 20%, rgba(52, 211, 153, 0.06), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 60%, rgba(99, 102, 241, 0.05), transparent 50%);
  color: var(--color-text);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, transparent 40%, rgba(0, 0, 0, 0.38) 100%);
  opacity: 0.88;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
