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

html {
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 100%;
  font-weight: 400;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
}

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

canvas {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--ink);
}

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

h1,
h2,
h3,
h4,
p,
dl,
dt,
dd,
figure,
blockquote,
ul,
ol,
li {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--ink);
}

h1 {
  font-size: var(--fs-5);
  font-weight: 400;
  max-width: var(--measure);
}

h2 {
  font-size: var(--fs-4);
  font-weight: 500;
}

h3 {
  font-size: var(--fs-3);
  font-weight: 500;
}

p {
  font-size: var(--fs-2);
  max-width: 62ch;
}

p + p {
  margin-top: var(--s-4);
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(calc(100% - var(--s-8)), var(--desk));
  margin-inline: auto;
}

.lede {
  font-size: var(--fs-2);
  color: var(--ink);
  max-width: var(--measure);
}

.ink-soft {
  color: var(--ink-soft);
}

.label {
  white-space: normal;
  overflow-wrap: anywhere;
  font-family: var(--font-label);
  font-size: var(--fs-1);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0 var(--s-5);
  font-family: var(--font-label);
  font-size: var(--fs-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ground);
  transition: opacity 180ms var(--ease-out-expo);
}

.btn:hover {
  background: var(--ground);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-label);
  font-size: var(--fs-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.state::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}

.state-present::before {
  background: var(--accent);
  border-color: var(--accent);
}

.state-missing::before {
  background: transparent;
}

.state-stale::before {
  background: var(--ground);
  box-shadow: inset 0 0 0 2px var(--accent);
  border-color: var(--ink);
}

.state-zero::before {
  background: var(--ink);
  border-color: var(--ink);
  border-radius: 0;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 80;
  padding: var(--s-2) var(--s-4);
  background: var(--ink);
  color: var(--ground);
}

.skip:focus {
  top: var(--s-4);
}
