:root {
  --paper: #f5f7fa;
  --ink: #121a26;
  --muted: #566173;
  --rule: #d5dbe4;
  --accent: #0b6e6e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1620;
    --ink: #e8edf3;
    --muted: #9aa6b6;
    --rule: #263040;
    --accent: #4fc3bd;
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.75rem, 10vw, 4.5rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }

p { margin: 0 0 1rem; max-width: 62ch; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.lead {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.4rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.ledger {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.ledger li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.ledger .item { font-weight: 600; }

.ledger .leader {
  flex: 1;
  border-bottom: 1px dotted var(--muted);
  transform: translateY(-0.25em);
}

.ledger .state { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

.ledger-title { font-size: 1rem; font-weight: 600; margin: 2.5rem 0 0; }

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

footer a { margin-right: 1.25rem; }

.updated { color: var(--muted); font-size: 0.9rem; }
