:root {
  color-scheme: dark;
  --background: #1a1a1a;
  --muted: rgb(255 255 255 / 80%);
  --heading: clamp(18px, calc(0.1988071571vw + 17.284294235px), 20px);
  --small: clamp(13px, calc(0.0500373602vw + 12.819865503px), 13.503375844px);
  --large: clamp(27.648px, calc(1.489729092vw + 22.284975269px), 42.634674666px);
  --h1: clamp(31.104px, calc(1.6170835726vw + 25.282499139px), 47.37186074px);
  --gap: clamp(31.992px, calc(1.2930417495vw + 27.337049702px), 45px);
  --dot-gap: 13.506752532px;
  --grid: linear-gradient(rgb(217 217 217 / 10%) 2px, transparent 2px),
    linear-gradient(90deg, rgb(217 217 217 / 10%) 2px, transparent 2px),
    linear-gradient(rgb(217 217 217 / 10%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(217 217 217 / 10%) 1px, transparent 1px);
  --grid-size: 100px 100px, 100px 100px, 25px 25px, 25px 25px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: #fff;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.landing {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 60px 20px;
  background-image: var(--grid);
  background-size: var(--grid-size);
}

/* Fade the CSS grid toward the edges with an elliptical vignette. */
.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--grid);
  background-size: var(--grid-size);
  border-image: fill 1 radial-gradient(ellipse at center, rgb(26 26 26 / 80%) 0%, #1a1a1a 100%);
  opacity: 0.9;
}

.content {
  width: 100%;
  max-width: 1366px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  text-align: center;
}
.dots { display: flex; gap: var(--dot-gap); }
.dots span {
  display: block;
  width: calc(var(--large) * 1.7);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
}
.message { display: flex; flex-direction: column; align-items: center; gap: var(--dot-gap); }
h1, h2, p { margin: 0; }
h1, h2 { font-size: var(--heading); font-weight: 700; line-height: calc(4px + 2ex); text-wrap: pretty; }
p, a { font-size: var(--small); line-height: calc(6px + 2ex); }
p { color: var(--muted); text-wrap: pretty; }
a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: #32a2c1;
  text-underline-offset: 4px;
}
a[target="_blank"]::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.6em;
  font-size: 0.9em;
}
a:hover { color: #fff; text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid #32a2c1; outline-offset: 6px; }
.error-code { font-size: calc(var(--h1) * 5); letter-spacing: -0.03em; }
.message--error { gap: calc(var(--dot-gap) * 0.5); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 12px 16px;
  background: #fff;
  color: #1a1a1a;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
@media (max-width: 767px) { .error-code { font-size: calc(var(--h1) * 4); } }
@media (max-width: 478px) { .error-code { font-size: calc(var(--h1) * 3); } }
