:root {
  --bg: #fbfaf7; --text: #1d1d1f; --muted: #5b5b63; --rule: #e3e1da; --accent: #2f5bd3; --draft-bg: #fff4d6; --draft-text: #6b4b00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141416; --text: #ececf0; --muted: #a3a3ad; --rule: #2c2c31; --accent: #8fb0ff; --draft-bg: #3a3014; --draft-text: #f5d98a; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
main { max-width: 46rem; margin: 0 auto; padding: 2.5rem 16px 1rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .25rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.05rem; margin: 1.25rem 0 .25rem; }
p, li { overflow-wrap: anywhere; }
a { color: var(--accent); }
.lede { color: var(--muted); margin-top: 0; }
.owner { background: var(--draft-bg); color: var(--draft-text); padding: 0 .25rem; border-radius: 3px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem .5rem .5rem 0; border-bottom: 1px solid var(--rule); }
nav { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
footer { max-width: 46rem; margin: 2rem auto 0; padding: 1rem 16px 2.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
.draft { display: inline-block; background: var(--draft-bg); color: var(--draft-text); font-weight: 600; padding: .25rem .5rem; border-radius: 4px; }
