:root {
  --paper: #f5efe3;
  --paper-2: #fbf7ec;
  --ink: #20190f;
  --ink-2: #574e3c;
  --ink-3: #8b7f68;
  --rule: #d9cdb1;
  --rule-soft: #e7ddc6;
  --strong: #a84a21;
  --slate: #3e5a74;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, "SF Pro Text", "Segoe UI", system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 34px 80px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
}
a { color: var(--ink); text-decoration-color: var(--strong); text-underline-offset: 3px; }
a:hover { color: var(--strong); }
.site-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0 -34px 30px;
  padding: 12px 34px;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: blur(8px);
  font: 600 14px/1.2 var(--sans);
}
.site-nav strong { color: var(--strong); }
.status-banner {
  margin: 0 0 44px;
  padding: 26px 30px;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--strong);
  background: var(--paper-2);
}
.status-banner h1 { margin: 2px 0 8px; font-size: clamp(30px, 5vw, 48px); }
.status-banner p, .status-banner li { max-width: 850px; }
.eyebrow {
  margin: 0;
  color: var(--strong);
  font: 700 12px/1.4 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.status-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.status-actions a {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font: 600 13px/1.3 var(--sans);
  text-decoration: none;
}
.build-note { color: var(--ink-3); font: 12px/1.5 var(--sans); overflow-wrap: anywhere; }
.reuse-notice { font: 13px/1.5 var(--sans); overflow-wrap: anywhere; }
body > header, body > nav#TOC, body > section, body > div, .data-page { max-width: 820px; margin-left: auto; margin-right: auto; }
body > header h1 { font-size: clamp(44px, 8vw, 78px); line-height: 1; margin-bottom: 18px; }
h1, h2, h3, h4 { line-height: 1.16; }
h2 { margin-top: 2.2em; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
h3 { margin-top: 1.8em; }
blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--rule); color: var(--ink-2); }
code { font-size: .84em; overflow-wrap: anywhere; }
pre { overflow-x: auto; padding: 14px; background: var(--paper-2); border: 1px solid var(--rule-soft); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1.2em 0; }
.table-scroll:focus-visible { outline: 2px solid var(--strong); outline-offset: 3px; }
th, td { padding: 8px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; text-align: left; }
#TOC {
  padding: 18px 22px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  font-family: var(--sans);
  font-size: 14px;
}
#TOC::before { content: "Contents"; display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
#TOC ul { padding-left: 20px; }
#TOC > ul { columns: 2; }
#TOC ul ul { columns: 1; }
.data-page { max-width: 960px; }
.data-page section { margin: 42px 0; }
.file-list { list-style: none; padding: 0; }
.file-list li { padding: 11px 0; border-bottom: 1px solid var(--rule-soft); overflow-wrap: anywhere; }
.file-list a { display: block; font-family: var(--sans); font-size: 14px; font-weight: 650; }
.file-list small, .file-list span { display: block; color: var(--ink-3); font: 12px/1.5 var(--sans); }
.file-list span { color: var(--ink-2); margin-top: 2px; }

@media (max-width: 720px) {
  body { padding: 0 16px 48px; font-size: 17px; }
  .site-nav { margin: 0 -16px 22px; padding: 11px 16px; gap: 12px; overflow-x: auto; white-space: nowrap; }
  .status-banner { padding: 20px; }
  #TOC ul { columns: 1; }
}

@media print {
  @page { size: Letter; margin: 0.72in 0.68in 0.78in; }
  html, body { background: white; color: #20190f; }
  body { max-width: none; padding: 0; font-size: 10.2pt; line-height: 1.42; }
  .site-nav { display: none; }
  .status-banner { display: none; }
  .status-banner.preparation-notice { display: block; }
  .status-banner.preparation-notice { break-after: avoid; margin-bottom: 10pt; padding: 8pt 12pt; }
  .status-banner h1 { font-size: 24pt; }
  .status-actions { display: none; }
  body > header, body > nav#TOC, body > section, body > div, .data-page { max-width: none; }
  body > header { break-after: avoid; }
  body > header h1 { font-size: 34pt; }
  h1, h2, h3, h4 { break-after: avoid; }
  h2 { margin-top: 20pt; }
  table, blockquote, pre { break-inside: avoid; }
  .table-scroll { overflow: visible; }
  #references, #background-reading { font-size: 9.7pt; line-height: 1.36; }
  #references li p, #background-reading li p { margin: 6pt 0; }
  #references li, #background-reading li { break-inside: avoid; }
  #background-reading { break-before: page; }
  a { color: inherit; text-decoration: none; }
  a[href^="http"]::after { content: ""; }
  #TOC { break-after: page; font-size: 8.7pt; line-height: 1.28; }
  #TOC ul { columns: 1; }
  #TOC li { break-inside: avoid; }
}

/* Keep native fragment headings clear of the sticky publication navigation. */
@media screen {
  html { scroll-padding-top: 64px; }
}
