body {
  position: relative;
  width: 100vw;
  display: flex;
  flex-direction: column;
  background-color: var(--clr-bg);

  &::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: transparent url("/images/noise.png") repeat left top;
    mix-blend-mode: soft-light;
    opacity: 35%;
    animation: 0.2s infinite grain linear;
  }
}

@keyframes grain {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 100%;
  }
}

@media (prefers-color-scheme: light) {
  body::after {
    opacity: 80%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    &::after {
      opacity: 25%;
      animation: none;
    }
  }
}

header,
main {
  width: 100%;
  max-width: 96rem;
  margin-inline: auto;
  padding-inline: calc(var(--gap) * 2);
}
