/* Reset, page, type roles, focus. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  height: 100%;
  background: var(--void);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  font: 400 var(--t-ui) / 1.45 var(--f-read);
  /* The void is not flat black: it is slightly lit where the projection is. Static, no blur. */
  background: radial-gradient(110% 80% at 50% 38%, var(--glow) 0%, var(--deep) 46%, var(--void) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  margin: 0;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
svg {
  display: block;
}
::selection {
  background: rgba(98, 221, 242, 0.32);
  color: var(--ink);
}

/* Type roles */
.label,
.plane-label,
.readout-label {
  font: 500 var(--t-micro) / 1.2 var(--f-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mono,
.qty,
.readout-value {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.unit {
  color: var(--ink-3);
  font-size: 0.82em;
  letter-spacing: 0;
}
.num-hero {
  font: 300 var(--t-hero) / 1 var(--f-mono);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.num-mid {
  font: 400 var(--t-head) / 1.1 var(--f-mono);
  letter-spacing: -0.02em;
}
.muted {
  color: var(--ink-3);
}
.link {
  color: var(--cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font: 500 var(--t-small) / 1 var(--f-display);
  letter-spacing: 0.02em;
}
.link:hover {
  color: var(--ink);
}

/* Icons: the emphasis stroke, square ends. */
.icon {
  flex: none;
}
.icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* Focus is a bright 2 px outline everywhere; elements with a cut corner draw it inside instead. */
:focus {
  outline: none;
}
:focus-visible {
  outline: var(--bold) solid var(--ink);
  outline-offset: 2px;
}

/* Scrollbars: thin, in the line colour. */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 215, 235, 0.3) transparent;
}

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

/* Reduced motion: nothing glides, arrives or lifts over time. States change at once.
   (Transitions are switched off outright. Shortening them instead would leave every property of
   every element transitioning, and a layout read just after a change would see the old value.) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
