:root {
  color-scheme: light dark;
  --bg: #fbf7f2;
  --surface: #ffffff;
  --text: #221a14;
  --muted: #6d6058;
  --rule: #e6dcd1;
  --brand: #8a5a35;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16120f;
    --surface: #1f1a16;
    --text: #f2ece6;
    --muted: #a4968b;
    --rule: #322a24;
    --brand: #d3a077;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

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

header .wordmark {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand);
  text-decoration: none;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.35rem;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.6rem;
}

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

p, li { color: var(--text); }

.lede, .updated {
  color: var(--muted);
}

.updated {
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

ul, ol { padding-left: 1.3rem; }
li { margin: 0.35rem 0; }

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

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

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

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

footer {
  max-width: 44rem;
  margin: 4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { margin-right: 1rem; }
