/* Reset, page background and shared helpers. */

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

html {
  background: var(--black);
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  /* A soft violet glow that follows the pointer */
  background:
    radial-gradient(600px circle at var(--mx) var(--my),
      color-mix(in srgb, var(--violet) 9%, transparent), transparent 60%),
    var(--black);
  color: var(--white);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Background pixel grid, behind everything */
#pixels {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Visible to screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
