:root {
  color-scheme: light dark;
  --bg: #fdfcfa;
  --fg: #1c1b1a;
  --muted: #5f5c58;
  --rule: #e4e0da;
  --accent: #7a5c3e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191817;
    --fg: #ecebe8;
    --muted: #a5a19b;
    --rule: #333130;
    --accent: #d2b48c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.5rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 3rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  margin: 2rem 0 0.5rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 2.5rem;
}

p { margin: 0 0 1rem; }

a {
  color: inherit;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: var(--accent); }

ul.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.plain > li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

ul.plain > li:first-child { border-top: 1px solid var(--rule); }

ul.bullets {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

ul.bullets > li { margin-bottom: 0.35rem; }

ol { padding-left: 1.2rem; }

ol > li { margin-bottom: 0.5rem; }

.scroll {
  overflow-x: auto;
  margin: 0 0 1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}

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

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.note {
  border-left: 2px solid var(--accent);
  padding: 0.1rem 0 0.1rem 1rem;
  margin: 0 0 1rem;
  color: var(--muted);
}

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

footer a { margin-right: 1rem; }
