*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -25%, rgba(55, 55, 65, 0.4), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(35, 35, 42, 0.55), transparent 50%),
    linear-gradient(180deg, var(--bg-page) 0%, var(--bg-void) 100%);
  background-attachment: fixed;
  line-height: 1.5;
}

::selection {
  background: rgba(160, 160, 175, 0.28);
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg-void);
}
.skip-link:focus {
  left: 0;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease);
}
a:hover {
  color: var(--accent);
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--border-strong);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
