html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(44px, 4.1vw, 62px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.035em;
  font-weight: 600;
}

h3 {
  font-size: 21px;
  font-weight: 500;
}

p {
  color: var(--text-muted);
}

pre,
code,
.technical-label,
.terminal {
  font-family: var(--font-mono);
}

pre {
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.accent {
  color: var(--accent);
}

.success {
  color: var(--success);
}

.error {
  color: var(--error);
}

.technical-label,
.eyebrow {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.075em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
}

.code-muted {
  color: var(--text-subtle);
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: var(--layer-skip);
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.no-js-note {
  padding: 16px;
  border: 1px solid var(--line);
}

section[id],
#terminal {
  scroll-margin-top: 100px;
}
