:root {
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --rule: #e2e2e2;
  --bg: #ffffff;
  --accent: #2b6cb0;
  --warn: #b02b2b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e8e8;
    --muted: #a0a0a0;
    --rule: #333;
    --bg: #161616;
    --accent: #7fb3e8;
    --warn: #ff8a8a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
  max-width: 44rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

header { border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: 2rem; }
header a { color: var(--muted); text-decoration: none; font-weight: 600; }
nav { margin-top: .5rem; font-size: .9rem; }
nav a { color: var(--accent); text-decoration: none; margin-right: 1rem; }
nav a:hover { text-decoration: underline; }

h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 .25rem; }
h2 { font-size: 1.2rem; margin: 2.25rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1.5rem 0 .35rem; }
.updated { color: var(--muted); font-size: .9rem; margin: 0 0 2rem; }

a { color: var(--accent); }
ul { padding-left: 1.25rem; }
li { margin: .3rem 0; }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .93rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; white-space: nowrap; }

code { font-size: .9em; background: rgba(128,128,128,.14); padding: .1em .35em; border-radius: 3px; }

/* Deliberately loud: these must be replaced before this page is published. */
.todo {
  color: var(--warn);
  font-weight: 700;
  border: 1px dashed var(--warn);
  padding: 0 .3em;
  border-radius: 3px;
}

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