:root {
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: system-ui, sans-serif;
  background: Canvas;
  color: CanvasText;
}

/* The animation sits behind the text and fills the window. */
#dots {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
}

nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
}

nav a:hover,
nav a:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

main {
  position: relative;
  text-align: center;
  padding: 1rem;
  max-width: 36rem;
}

p + p {
  margin-top: 0.75rem;
}

h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  margin: 0 0 0.5rem;
}

p {
  margin: 0;
  opacity: 0.7;
}

#js-status {
  margin-top: 1.5rem;
  font-variant-numeric: tabular-nums;
}

footer {
  position: fixed;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.45;
}
