@font-face {
  font-family: "Aileron";
  src: url("../fonts/Aileron-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aileron";
  src: url("../fonts/Aileron-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PARPG";
  src: url("../fonts/PARPG.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --void: #040504;
  --bone: #d9d2bd;
  --bone-dim: #9c968a;
  --ash: #858179;
  --stamp: #a3291c;
  --flame: #ffb25a;

  --sans: "Aileron", sans-serif;
  --typed: "PARPG", "Aileron", sans-serif; /* PARPG's space is narrower than its letters: give it word-spacing .46em */

  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--stamp); color: var(--bone); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--bone); color: var(--void); padding: 8px 12px; text-decoration: none;
}
.skip:focus { top: 8px; }
:focus-visible { outline: 2px dashed var(--flame); outline-offset: 3px; }

.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none;
  background: url("../img/grain.png");
  opacity: .075; mix-blend-mode: overlay;
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-3%, 2%); }
  33% { transform: translate(2%, -4%); } 50% { transform: translate(-1%, 3%); }
  67% { transform: translate(4%, 1%); } 83% { transform: translate(-2%, -2%); }
  100% { transform: translate(1%, 2%); }
}

@media (max-width: 700px) { .grain { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .grain { animation: none; }
}
