/* Reset, graph-paper ground and type scale. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  letter-spacing: var(--body-tracking);
  line-height: 1.45;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: -1px -1px;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Type scale */
.t-display {
  font-size: var(--display-size);
  font-weight: var(--display-weight);
  font-stretch: 100%;
  letter-spacing: var(--display-tracking);
  line-height: 0.9;
  white-space: nowrap;
}

.t-h1 {
  font-size: var(--h1-size);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 0.95;
}

.t-h2 {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  letter-spacing: var(--h2-tracking);
  line-height: 1.05;
}

.t-pill {
  font-size: var(--pill-size);
  font-weight: var(--pill-weight);
  letter-spacing: var(--pill-tracking);
  line-height: 1;
}

.t-body {
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  letter-spacing: var(--body-tracking);
  line-height: 1.45;
}

.t-small {
  font-size: var(--small-size);
  font-weight: var(--body-weight);
  letter-spacing: var(--body-tracking);
}

.t-score {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Code brackets around display headings: <ARCADE> */
.bracketed::before {
  content: "<";
}

.bracketed::after {
  content: ">";
}

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