:root {
  --paper: #f5f2ea;
  --ink: #23201c;
  --ink-soft: #5d574d;
  --rule: #ddd6c6;
  --rust: #8a4b2a;
  --measure: 63ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16150f;
    --ink: #e6e1d4;
    --ink-soft: #9a9284;
    --rule: #322e25;
    --rust: #d08b5f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.4rem 5rem;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.62 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.bar {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 0 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font: 600 1.05rem/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
}

.bar nav { margin-left: auto; display: flex; gap: 1.1rem; }
.bar nav a { font-size: .9rem; color: var(--ink-soft); text-decoration: none; }
.bar nav a:hover { color: var(--rust); }

main { max-width: var(--measure); margin: 0 auto; }

h1 {
  font: 400 1.95rem/1.2 Georgia, "Iowan Old Style", "Times New Roman", serif;
  margin: 2.4rem 0 .9rem;
  letter-spacing: -.01em;
}

h2 {
  font: 400 1.25rem/1.3 Georgia, "Iowan Old Style", "Times New Roman", serif;
  margin: 2.6rem 0 .6rem;
}

.lede { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 2rem; }

p, ul, ol { margin: 0 0 1.15rem; }
li { margin-bottom: .35rem; }

a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: .15em; }

.meta {
  font: .78rem/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--ink-soft);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.entry { padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.entry h2 { margin: .3rem 0 .5rem; }
.entry p:last-child { margin-bottom: 0; }

.spec {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1.6rem;
  font-size: .93rem;
}
.spec th, .spec td {
  text-align: left;
  padding: .45rem .8rem .45rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.spec th { font-weight: 600; white-space: nowrap; color: var(--ink-soft); }

.callout {
  border-left: 3px solid var(--rust);
  padding: .1rem 0 .1rem 1.1rem;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

figure { margin: 1.8rem 0; }
figure img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
figcaption { margin-top: .5rem; font-size: .85rem; color: var(--ink-soft); }

footer {
  max-width: var(--measure);
  margin: 3.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: .85rem;
  color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }

.big-num {
  font: 400 4rem/1 Georgia, "Times New Roman", serif;
  color: var(--rust);
  margin: 2.5rem 0 .5rem;
}
