:root {
  --bg: #fbfbfa;
  --surface: #f1f1ee;
  --text: #1c1d1f;
  --muted: #5b5e64;
  --line: #d9d9d4;
  --accent: #1f5f8b;
  --measure: 44rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141517;
    --surface: #1e2023;
    --text: #e6e6e3;
    --muted: #a2a5ab;
    --line: #34373c;
    --accent: #7db7e0;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.95rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

/* Sections */
section {
  padding: 3rem 0 0.5rem;
  scroll-margin-top: 1rem;
}

section + section {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.2rem;
}

.subhead {
  margin-top: 2.25rem;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Process steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1.25rem 0.25rem 3.25rem;
  background: var(--surface);
  border-radius: 8px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4rem;
  text-align: center;
}

.steps h3 {
  margin-bottom: 0.35rem;
}

/* Numbers */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
}

.stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.stats dt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.stats dd {
  margin: 0.35rem 0 0;
  font-size: 1.5rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.stats dd span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

/* What the reviews catch */
.caught {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.25rem;
  font-size: 0.97rem;
}

.caught th,
.caught td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.5rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.caught th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.caught .num {
  text-align: right;
  white-space: nowrap;
  padding-right: 0;
  padding-left: 1rem;
  font-variant-numeric: tabular-nums;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.25rem 0;
  margin: 0;
}
