:root {
  --bg: #fbfaf8;
  --fg: #1c1a17;
  --muted: #6b655c;
  --rule: #e4e0d8;
  --accent: #7a5c3e;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --fg: #eae7e1;
    --muted: #9b948a;
    --rule: #2e2b27;
    --accent: #c9a37a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1.5rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 ui-serif, Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.mark {
  font: 600 1.05rem/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
}

.mark span { color: var(--accent); }

nav { margin-top: 1.25rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }

nav a {
  font: 400 0.875rem/1 ui-sans-serif, -apple-system, sans-serif;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

nav a:hover { color: var(--fg); border-bottom-color: var(--accent); }

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 2.75rem 0 0.75rem;
}

.effective {
  font: 400 0.8125rem/1.5 ui-sans-serif, -apple-system, sans-serif;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

p, li { margin: 0 0 1rem; }

ul { padding-left: 1.25rem; }

li::marker { color: var(--accent); }

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

code {
  font: 0.875em/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--rule);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.lede {
  font-size: 1.0625rem;
  color: var(--muted);
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font: 400 0.8125rem/1.6 ui-sans-serif, -apple-system, sans-serif;
  color: var(--muted);
}

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