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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  background: var(--asphalt);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--green); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

#os-root[hidden], #plain-root[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0.001ms !important;
  }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--carbon); color: var(--bone); padding: var(--sp-2) var(--sp-3);
}
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); }

#escape-hatch {
  display: none !important;
}

/* Surfaces the browser draws for us. Left at defaults they belong to no design
   system at all, so they are themed from the palette like everything else. */
::selection { background: var(--green); color: var(--asphalt); }
::-moz-selection { background: var(--green); color: var(--asphalt); }

html { scrollbar-color: var(--line) var(--asphalt); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--asphalt); }
::-webkit-scrollbar-thumb { background: var(--line); border: 2px solid var(--asphalt); }
::-webkit-scrollbar-thumb:hover { background: var(--slate); }

input, textarea { caret-color: var(--green); }

a { text-underline-offset: .22em; text-decoration-thickness: 1px; }

/* Measurements line up column-wise wherever numbers are the argument. */
.fig-v, .pv-metric-value, .qe-table td, .hero-readout b { font-variant-numeric: tabular-nums; }
