:root {
  color-scheme: light dark;
  --bg: #f7f4ef;
  --fg: #1a1a1a;
  --muted: #555;
  --link: #06c;
  --visited: #639;
  --rule: #d8d3cc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --fg: #eee;
    --muted: #aaa;
    --link: #8bf;
    --visited: #caf;
    --rule: #333;
  }
}

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

body {
  max-width: 40em;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

a {
  color: var(--link);
}

a:visited {
  color: var(--visited);
}

h1, h2, h3 {
  font-family: system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2em;
}

img {
  max-width: 100%;
  height: auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--fg);
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
}

.brand:visited {
  color: var(--fg);
}

.logo {
  width: 2.75rem;
  height: 2.75rem;
  display: block;
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  .logo {
    filter: invert(1);
    mix-blend-mode: screen;
  }
}

nav a {
  margin-left: 1.25rem;
  text-decoration: none;
}

nav a:first-child {
  margin-left: 0;
}

nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
}

.lede {
  font-size: 1.2em;
}

ul {
  padding-left: 1.2em;
}

li + li {
  margin-top: 0.4em;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95em;
}

th, td {
  text-align: left;
  padding: 0.4em 0.75em 0.4em 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}
