:root {
  --bg: #f7f6f2;
  --text: #2b2a27;
  --muted: #6b675e;
  --accent: #3d6b57;
  --rule: #dcd8ce;
  --measure: 36rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1f1c;
    --text: #e8e6df;
    --muted: #a7a398;
    --accent: #8fc2a8;
    --rule: #3a3d37;
  }
}

:root[data-theme="dark"] {
  --bg: #1d1f1c;
  --text: #e8e6df;
  --muted: #a7a398;
  --accent: #8fc2a8;
  --rule: #3a3d37;
}

* {
  box-sizing: border-box;
}

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;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}

.lead {
  color: var(--muted);
}

.note {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

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

nav a[aria-current="page"] {
  color: var(--text);
}

.site-footer {
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer p {
  margin-top: 1rem;
}
