/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select { font: inherit; }

/* ---------- base ---------- */
html {
  color-scheme: dark;
  scroll-behavior: smooth;
}
[data-theme="light"] { color-scheme: light; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { color: var(--paper-dim); max-width: var(--measure); }
p.lede { font-size: var(--step-1); color: var(--paper); max-width: 42ch; }

.mono { font-family: var(--font-mono); letter-spacing: 0; }

a.inline-link {
  color: var(--paper);
  border-bottom: 1px solid var(--ink-line-strong);
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
a.inline-link:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- focus & accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: var(--sp-2) var(--sp-3);
  z-index: 200;
}
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); }

/* ---------- layout primitives ---------- */
.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 60rem) {
  .wrap { padding-inline: var(--sp-6); }
}

section { padding-block: var(--sp-7); }
section.tight { padding-block: var(--sp-5); }
.border-top { border-top: 1px solid var(--ink-line); }
.border-bottom { border-bottom: 1px solid var(--ink-line); }

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 60rem) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--paper-faint);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
