@font-face {
  font-family: "xTorrent";
  src: url("/fonts/xtorrent.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  /* Inter, subset to exactly the glyphs this page sets. Anything else falls
     through to the system stack rather than rendering tofu. */
  unicode-range: U+20, U+54, U+61, U+65, U+69, U+6e-6f, U+72-74, U+78;
}

:root {
  --ground: #08090b;
  --ink: #e6e8ea;
  --edge: clamp(20px, 4vw, 44px);
}

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

html { height: 100%; }

body {
  height: 100dvh;
  overflow: hidden;
  background: var(--ground);
  color: var(--ink);
  font-family: "xTorrent", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* No gradient overlay here on purpose. A large radial-gradient over a near-black
   ground bands badly on 8-bit displays - it drew visible concentric rings. The
   edge falloff is done per-particle in signal.js instead, where there is no
   flat area wide enough to band. */

#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

main {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  height: 100%;
}

#wordmark {
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: 0.145em;
  /* Tracking adds a trailing gap; pull it back so the mark optically centres. */
  margin-right: -0.145em;
  color: rgba(230, 232, 234, 0.94);
  white-space: nowrap;
  user-select: none;
}

.mark {
  position: fixed;
  z-index: 2;
  left: var(--edge);
  bottom: calc(var(--edge) + env(safe-area-inset-bottom, 0px));
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: rgba(230, 232, 234, 0.2);
  user-select: none;
}

::selection { background: rgba(230, 232, 234, 0.14); }

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