*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

html:has(body.site) {
  scroll-padding-top: 92px;
}

@media (max-width: 767px) {
  html:has(body.site) {
    scroll-padding-top: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  --bg: #050810;
  --bg-2: #0a101c;

  background-color: var(--bg);
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(88, 110, 180, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 40%, rgba(70, 90, 160, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 45% at 100% 60%, rgba(100, 80, 160, 0.07), transparent 48%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 42%, #070b14 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
