:root {
  --bg: #fbfaf7;
  --text: #22201c;
  --muted: #6b665d;
  --rule: #ddd8ce;
  --accent: #7a3b1d;
  --panel: #f2efe8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --text: #e6e2da;
    --muted: #a19b90;
    --rule: #34353a;
    --accent: #e0a37a;
    --panel: #202125;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Georgia, "Iowan Old Style", "Times New Roman", serif;
}
header.site {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--rule);
  font: 600 0.95rem/1.4 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
header.site a { color: var(--text); text-decoration: none; }
nav.crumbs {
  max-width: 46rem;
  margin: 1rem auto 0;
  padding: 0 1rem;
  font: 0.85rem/1.4 system-ui, sans-serif;
  color: var(--muted);
}
main { max-width: 46rem; margin: 0 auto; padding: 1rem 1rem 4rem; }
a { color: var(--accent); }
h1, h2, h3, h4, h5, h6 { font-family: system-ui, sans-serif; line-height: 1.25; }
h1 { font-size: 2rem; margin: 0.6rem 0 1rem; }
h2 { font-size: 1.45rem; margin-top: 2.2rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.3rem; }
h3 { font-size: 1.2rem; margin-top: 1.8rem; }
h4, h5, h6 { font-size: 1.05rem; margin-top: 1.4rem; }
.bold { font-weight: 700; }
.italic { font-style: italic; }
.placeholder { color: var(--muted); }
.styled-header { font: 700 1.05rem/1.4 system-ui, sans-serif; }
dl.properties {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15rem 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--panel);
  border-radius: 6px;
  font: 0.85rem/1.5 system-ui, sans-serif;
}
dl.properties dt { color: var(--muted); }
dl.properties dd { margin: 0; }
pre {
  overflow-x: auto;
  padding: 0.8rem;
  background: var(--panel);
  border-radius: 6px;
  font-size: 0.85rem;
}
table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1rem 0;
  font: 0.9rem/1.45 system-ui, sans-serif;
}
th, td { border: 1px solid var(--rule); padding: 0.35rem 0.6rem; vertical-align: top; text-align: left; }
th { background: var(--panel); }
nav.toc ul { list-style: none; padding-left: 1.1rem; }
nav.toc > ul { padding-left: 0; }
nav.toc li.folder > a { font-weight: 700; }
.timeline-tracks { list-style: none; padding: 0; }
.swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.4rem;
  border-radius: 2px;
  vertical-align: baseline;
}
