:root {
  --bg: #ffffff;
  --fg: #1b1b1f;
  --muted: #5c5f6b;
  --brand: #2f5fd0;
  --rule: #e3e5ea;
  --todo-bg: #fff3cd;
  --todo-fg: #7a5b00;
  --todo-br: #e0b400;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151a;
    --fg: #e8e9ed;
    --muted: #a0a4b0;
    --brand: #7fa4f5;
    --rule: #2b2d36;
    --todo-bg: #3d3413;
    --todo-fg: #ffd970;
    --todo-br: #8a7420;
  }
}

* { box-sizing: border-box; }

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

h1 { font-size: 1.85rem; line-height: 1.25; margin: 0 0 .35rem; }
h2 { font-size: 1.2rem; margin: 2.4rem 0 .6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.02rem; margin: 1.5rem 0 .4rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: .35rem; }

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

.meta { color: var(--muted); font-size: .92rem; margin-bottom: 2rem; }
.lang { font-size: .92rem; margin-bottom: 2rem; }

.todo {
  background: var(--todo-bg);
  color: var(--todo-fg);
  border: 1px dashed var(--todo-br);
  border-radius: 4px;
  padding: 0 .3em;
  font-weight: 600;
  white-space: nowrap;
}

.note {
  background: var(--todo-bg);
  color: var(--todo-fg);
  border-left: 4px solid var(--todo-br);
  border-radius: 4px;
  padding: .9rem 1.1rem;
  margin: 0 0 2rem;
  font-size: .95rem;
}
.note p:last-child { margin-bottom: 0; }

address { font-style: normal; margin-bottom: 1rem; }

table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }

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