
:root {
  color-scheme: light;
  --bg: #f4f0e6;
  --ink: #1a1714;
  --muted: #3f3933;
  --line: #c9c0b2;
  --rule: #6e2a22;
  --paper: #fbf8f2;
  --focus: #1a1714;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #141210;
    --ink: #f3efe6;
    --muted: #d2cbc0;
    --line: #3a342c;
    --rule: #e7b2a4;
    --paper: #1c1916;
    --focus: #f3efe6;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: var(--rule); }
a:hover { text-decoration: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.4rem 0.7rem;
}
.skip:focus { transform: none; }
.mast {
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.wordmark {
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.shell { display: flex; flex-direction: column; }
.rail {
  order: 2;
  border-top: 1px solid var(--line);
  padding: 1rem 1.25rem 0.5rem;
}
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-left: 3px solid transparent;
  padding-left: 0.7rem;
}
.rail a[aria-current="page"] {
  border-left-color: var(--rule);
  font-weight: 650;
}
.rail .num { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 0.4rem; }
main { order: 1; padding: 1.5rem 1.25rem 2.5rem; }
article { max-width: 68ch; }
.eyebrow {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
h1, h2 {
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  font-weight: 600;
  line-height: 1.15;
}
h1 { font-size: 2.15rem; margin: 0 0 0.8rem; }
h2 { font-size: 1.45rem; margin: 2rem 0 0.5rem; }
.standfirst { font-size: 1.2rem; line-height: 1.45; margin: 0 0 1.4rem; }
.short h2 { margin-top: 0; }
.short ul { padding-left: 1.15rem; }
.pull {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--rule);
}
.pull p { margin: 0; font-family: Georgia, "Iowan Old Style", Palatino, serif; font-size: 1.35rem; line-height: 1.35; }
.pull figcaption { margin-top: 0.45rem; color: var(--muted); font-size: 0.92rem; }
.pushback { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 0.2rem; }
.related ul { padding-left: 1.15rem; }
.source dl { display: grid; grid-template-columns: 8rem 1fr; gap: 0.35rem 0.8rem; margin: 0.4rem 0 0; }
.source dt { color: var(--muted); }
.source dd { margin: 0; }
.foot {
  border-top: 1px solid var(--line);
  padding: 1rem 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.pager { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; }
.pager a { color: var(--rule); }
.index-list { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: 68ch; }
.index-list li { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.index-list h2 { font-size: 1.35rem; margin: 0.15rem 0 0.35rem; }
@media (max-width: 420px) {
  .source dl { grid-template-columns: 1fr; }
}
.index-list .when { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 17rem minmax(0, 1fr); }
  .rail {
    order: 0;
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100vh;
    overflow: auto;
    border-top: 0;
    border-right: 1px solid var(--line);
    padding-top: 1.25rem;
  }
  main { order: 0; padding: 2rem 2rem 3rem; }
}
