@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Newsreader;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --sans: Inter, "Helvetica Neue", sans-serif;
  --serif: Newsreader, Georgia, serif;
  --ground: #111110;
  --paper: #ebe8df;
  --muted: #b4b1a8;
  --gutter: clamp(1.15rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, p { margin: 0; }
body { background: var(--ground); color: var(--paper); font-family: var(--sans); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #e5dfd2; outline-offset: 5px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.art-dither { background-image: url("hawk.webp"); background-color: #161613; }
.art { background-size: cover; background-position: center; }

.landing { --edge: var(--gutter); }
.stage {
  display: grid;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--edge) + 3rem) var(--edge);
}
.art {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}
.art canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.art canvas[data-ready] { opacity: 1; }
.identity { pointer-events: none; align-self: center; justify-self: start; }
.identity h1 {
  font: 460 clamp(3rem, 7.5vw, 7.1rem)/.91 var(--serif);
  letter-spacing: -.055em;
}
.identity p { margin-top: .5rem; font-size: .875rem; color: var(--muted); }
.art[data-live] { cursor: crosshair; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.art[data-dragging] { cursor: grabbing; }

.dither { --edge: clamp(1.35rem, 5.3vw, 5.5rem); }
.dither .art { inset: 0 0 0 23%; }
.dither .art::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, var(--ground), transparent 27%);
  pointer-events: none;
}

@media (max-width: 650px) {
  .stage { padding-top: 5rem; padding-bottom: 5rem; }
  .dither .identity { align-self: end; }
  .dither .art { inset: 0 0 12%; }
  .dither .art::after { background: linear-gradient(0deg, var(--ground), transparent 42%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
