:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1f23;
  --muted: #5b6069;
  --line: #e2e0da;
  --accent: #1f5f8b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1c1f23;
    --text: #e8e6e1;
    --muted: #a2a6ad;
    --line: #2f333a;
    --accent: #7db7e0;
  }
}

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

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

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

a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.tagline { color: var(--muted); font-size: 0.9rem; }

main { padding: 2rem 0 3rem; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.35rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
li + li { margin-top: 0.35rem; }

.lead { font-size: 1.2rem; color: var(--text); }
.meta { color: var(--muted); font-size: 0.9rem; }

.steps { padding-left: 1.4rem; }
.steps li { padding-left: 0.25rem; }
.steps strong { display: block; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: 0.95rem; }
.site-footer .wrap { padding-top: 1.1rem; padding-bottom: 1.4rem; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; padding: 0; margin: 0 0 0.6rem; }
.site-footer nav li + li { margin-top: 0; }
.site-footer p { color: var(--muted); margin: 0; font-size: 0.85rem; }

@media (max-width: 30rem) {
  h1 { font-size: 1.6rem; }
  .site-header .wrap { flex-direction: column; gap: 0.1rem; }
  dl.facts { grid-template-columns: 1fr; gap: 0.1rem; }
  dl.facts dd { margin-bottom: 0.6rem; }
}
