/* Base layer: element defaults, layout primitives and the page canvas. */

html {
  overflow-x: hidden;
}

body {
  background-color: var(--os-ink);
  color: var(--os-text);
  font-family: var(--os-font-body);
  font-size: var(--os-step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--os-font-display);
  font-stretch: 80%;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin: 0;
}

h1 {
  font-size: var(--os-step-4);
}

h2 {
  font-size: var(--os-step-3);
}

h3 {
  font-size: var(--os-step-2);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--os-volt);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--os-volt);
  color: var(--os-ink);
}

/* Layout primitives */

.os-shell {
  width: 100%;
  max-width: var(--os-shell);
  margin-inline: auto;
  padding-inline: var(--os-space-5);
}

.os-section {
  padding-block: var(--os-space-8);
}

@media (max-width: 575px) {
  .os-shell {
    padding-inline: var(--os-space-4);
  }

  .os-section {
    padding-block: var(--os-space-6);
  }
}

.os-rule {
  height: 1px;
  background: var(--os-line);
  border: 0;
  margin: 0;
}

/* The monitoring canvas: a 1px grid, barely there. */
.os-grid-field {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.os-grid-field::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(138, 148, 166, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138, 148, 166, 0.11) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(110% 75% at 68% 5%, #000 0%, transparent 70%);
}

/* Text roles */

.os-eyebrow {
  font-family: var(--os-font-mono);
  font-size: var(--os-step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--os-muted);
}

.os-lead {
  font-size: var(--os-step-1);
  color: var(--os-muted);
  max-width: 46ch;
}

.os-data {
  font-family: var(--os-font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 1;
}

.os-fineprint {
  font-size: var(--os-step--1);
  color: var(--os-muted);
  line-height: 1.5;
}

.os-volt-text {
  color: var(--os-volt);
}

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