:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b6862;
  --accent: #4f8261;
  --rule: #e5e2dc;
  --radius: 12px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --surface: #202225;
    --text: #ececea;
    --muted: #9a978f;
    --accent: #7cae8c;
    --rule: #2e3033;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1.5rem 5rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- header ---- */

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}

header.site .brand {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  color: var(--text);
  text-decoration: none;
}

header.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

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

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

header.site nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ---- type ---- */

h1 {
  font-size: 2.125rem;
  line-height: 1.2;
  font-weight: 680;
  letter-spacing: -0.021em;
  margin: 0 0 1rem;
  max-width: 34rem;
}

h2 {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.008em;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 620;
  margin: 1.75rem 0 0.4rem;
}

p { margin: 0 0 1.1rem; max-width: 40rem; }

ul { margin: 0 0 1.1rem; padding-left: 1.2rem; max-width: 40rem; }
li { margin-bottom: 0.5rem; }

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

.lede {
  font-size: 1.1875rem;
  line-height: 1.5;
  letter-spacing: -0.008em;
  color: var(--text);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ---- blocks ---- */

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
  max-width: 40rem;
}

.card p:last-child { margin-bottom: 0; }

.summary {
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
  margin: 1.75rem 0 2rem;
  max-width: 40rem;
}

.summary p:last-child { margin-bottom: 0; }

/* ---- footer ---- */

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

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

footer.site nav a { color: var(--muted); }

footer.site .legal { margin: 0.9rem 0 0; }

@media (max-width: 34rem) {
  h1 { font-size: 1.75rem; }
  header.site { margin-bottom: 2.25rem; }
}
