:root {
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --paper: #faf8f4;
  --rule: #ddd6ca;
  --accent: #7a4a24;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e3da;
    --ink-soft: #a49c90;
    --paper: #16150f;
    --rule: #38342c;
    --accent: #c98b52;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 43rem; margin: 0 auto; padding: 0 1.35rem; }
header.site {
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 0 1.2rem;
  margin-bottom: 2.6rem;
}
header.site .name {
  font-size: 1.22rem; font-weight: 700; letter-spacing: .015em;
  color: var(--ink); text-decoration: none;
}
header.site .tagline {
  margin: .3rem 0 0; color: var(--ink-soft); font-size: .93rem; font-style: italic;
}
nav.site { margin-top: .95rem; font-size: .9rem; font-family: system-ui, sans-serif; }
nav.site a { color: var(--ink-soft); text-decoration: none; margin-right: 1.15rem; }
nav.site a:hover { color: var(--accent); text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 2.2rem 0 .8rem; }
h1 { font-size: 2rem; margin-top: 0; letter-spacing: -.012em; }
h2 { font-size: 1.36rem; border-bottom: 1px solid var(--rule); padding-bottom: .32rem; }
h3 { font-size: 1.1rem; }
p, li { color: var(--ink); }
a { color: var(--accent); }
em { color: var(--ink-soft); }
blockquote {
  margin: 1.4rem 0; padding: .1rem 0 .1rem 1.15rem;
  border-left: 3px solid var(--rule); color: var(--ink-soft);
}
code {
  font: .87em/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(128,110,80,.13); padding: .1em .34em; border-radius: 3px;
}
pre { overflow-x: auto; padding: .9rem 1rem; background: rgba(128,110,80,.1); border-radius: 5px; }
pre code { background: none; padding: 0; }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--rule); padding: .45rem .6rem; text-align: left; }
ul.index { list-style: none; padding: 0; }
ul.index li { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
ul.index a { font-size: 1.12rem; font-weight: 700; text-decoration: none; }
ul.index a:hover { text-decoration: underline; }
ul.index .when {
  display: block; color: var(--ink-soft); font-size: .82rem;
  font-family: system-ui, sans-serif; margin-top: .22rem;
}
footer.site {
  margin: 4rem 0 2.5rem; padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft); font-size: .85rem; font-family: system-ui, sans-serif;
}
footer.site a { color: var(--ink-soft); }
