/* Colours, fonts and spacing tokens, page basics, the particle canvas and grid background. */

html,
body {
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
:root {
  color-scheme: dark;
}
body {
  background: #0d1830;
}
:root {
  --ink: #0d1830;
  --ink-2: #12203d;
  --rule: #213459;
  --rule-2: #2e4675;
  --paper: #e7ebf3;
  --muted: #8794b0;
  --signal: #f2b544;
  --data: #7fb7c9;
  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --cell: clamp(56px, 7.4vw, 112px);
  --pad: var(--cell);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}
*,
:before,
:after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
body {
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  overflow-x: hidden;
}
body.is-locked {
  overflow: hidden;
}
a {
  color: inherit;
}
img,
svg {
  max-width: 100%;
  display: block;
}
::selection {
  background: var(--signal);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
.sr {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}
.skip {
  z-index: 100;
  background: var(--signal);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 600;
  text-decoration: none;
  position: fixed;
  top: -60px;
  left: 12px;
}
.skip:focus {
  top: 12px;
}
.mono {
  font-family: var(--f-mono);
  letter-spacing: 0;
  color: var(--muted);
  font-size: 11px;
}
#field {
  z-index: 0;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  position: fixed;
  inset: 0;
}
.grid-bg {
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  opacity: 0.55;
  position: fixed;
  inset: 0;
  -webkit-mask-image: radial-gradient(90% 80% at 50% 45%, #000 40%, #0000 100%);
  mask-image: radial-gradient(90% 80% at 50% 45%, #000 40%, #0000 100%);
}
main,
.hdr,
.ftr {
  z-index: 2;
  position: relative;
}
