:root {
  --paper: #f1efe9;
  --ink: #0d0d0b;
  --charcoal: #42423c;
  --mist: #c3c3ba;
  --dust: #85847b;
  --pad: max(1.5rem, env(safe-area-inset-left, 0px));
  --pad-r: max(1.5rem, env(safe-area-inset-right, 0px));
  --pad-b: max(1.25rem, env(safe-area-inset-bottom, 0px));
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  min-height: 100dvh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
}

@media (prefers-reduced-data: reduce) {
  .noise {
    display: none;
  }

  .hero-bg {
    background-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .noise {
    display: none;
  }
}
