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

html { background: var(--black); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 18rem;
  background:
    radial-gradient(circle at 10% 5%, rgba(48, 242, 255, 0.07), transparent 28rem),
    radial-gradient(circle at 92% 26%, rgba(255, 72, 219, 0.045), transparent 25rem),
    var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.02; }
h1, h2 { letter-spacing: -0.045em; }
h1 { font-size: clamp(3.5rem, 10vw, 9rem); }
h2 { font-size: clamp(2rem, 5vw, 4.8rem); }

button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--black);
}

.skip-link:focus { transform: translateY(0); }

::selection { background: var(--accent); color: var(--black); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
