body.page-enter {
  animation: fade-in 0.9s ease forwards;
}

body {
  background-color: var(--color-bg-0);
  color: var(--color-text-0);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

body.intro-active {
  /* prevent scroll without clipping fixed overlay */
  position: fixed;
  width: 100%;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9999;
}

.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  background: var(--color-accent);
  color: var(--color-bg-0);
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  z-index: 10000;
  transition: top var(--duration-fast);
}

.skip-to-content:focus {
  top: var(--space-1);
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg-0);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.2;
}

p {
  color: var(--color-text-1);
}

strong {
  font-weight: 500;
  color: var(--color-text-0);
}
