:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1d1f;
  --muted: #5d6066;
  --rule: #e3e1dc;
  --accent: #1f5c8b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --surface: #1d1f23;
    --text: #e8e7e4;
    --muted: #9a9da3;
    --rule: #2e3137;
    --accent: #7bb0da;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 40rem; margin: 0 auto; }

header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.0625rem; margin: 2.5rem 0 0.75rem; letter-spacing: -0.005em; }
h2:first-of-type { margin-top: 0; }

p, li { color: var(--text); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.lede { font-size: 1.0625rem; color: var(--muted); margin-bottom: 0; }
.date { font-size: 0.875rem; color: var(--muted); margin: 0; }

.note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1rem 1.125rem;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { display: block; margin-bottom: 0.25rem; }

table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}
footer a { color: var(--muted); }

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

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
}
