:root {
  color-scheme: light;
  --paper: #fafaf8;
  --ink: #172333;
  --muted: #4c5d70;
  --rule: #dce1e6;
  --stage: #315c83;
  --base: #895724;
  --tint: #edf3f7;
  --display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 system-ui, sans-serif; }
a { color: var(--stage); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--stage); outline-offset: 4px; }
.wrap { width: min(100% - 3.5rem, 70rem); margin-inline: auto; }
.skip { position: absolute; inset: .5rem auto auto .5rem; padding: .65rem 1rem; background: white; transform: translateY(-200%); z-index: 1; }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--rule); }
.top-inner { min-height: 4.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; gap: .6rem; align-items: center; color: var(--ink); font-weight: 760; letter-spacing: .08em; text-decoration: none; }
.mark { display: block; width: 1.35rem; height: .85rem; border-top: 5px solid var(--stage); border-bottom: 3px solid #ae7746; }
nav { display: flex; gap: clamp(.65rem, 2.5vw, 1.8rem); flex-wrap: wrap; font-size: .9rem; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { padding: 3.3rem 0 2.4rem; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin: 0 0 1rem; color: var(--muted); font-size: .88rem; }
.eyebrow strong { color: var(--base); letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); line-height: 1.11; font-weight: 500; text-wrap: balance; }
h1 { margin: 0 0 1rem; font-size: clamp(2.35rem, 4.85vw, 3.4rem); max-width: 62rem; letter-spacing: -.038em; }
h1 em { font-style: normal; color: var(--stage); }
.deck { max-width: 49rem; margin: 0 0 1.3rem; font-size: clamp(1.0625rem, 2vw, 1.22rem); }
.authors { max-width: 57rem; font-weight: 620; font-size: .925rem; margin: 0 0 .45rem; }
sup { margin-inline: .11em; line-height: 0; }
.affiliations { display: flex; flex-wrap: wrap; gap: .2rem 1rem; max-width: 58rem; margin: 0; color: var(--muted); font-size: .83rem; }
.entry { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.entry a, .citation-actions button, .citation-actions a { padding: .53rem .8rem; border: 1px solid var(--rule); border-radius: .25rem; background: white; color: var(--ink); font: 600 .91rem/1.4 system-ui, sans-serif; text-decoration: none; }
.entry a:hover, .citation-actions a:hover, .citation-actions button:hover { border-color: var(--stage); }
.entry .primary { background: var(--ink); border-color: var(--ink); color: white; }
.numbers { display: grid; grid-template-columns: 1fr 1fr 1.33fr; border-block: 1px solid var(--rule); }
.numbers div { padding: 1rem 1.2rem .4rem; }
.numbers div:first-child { padding-left: 0; }
.numbers div + div { border-left: 1px solid var(--rule); }
.numbers strong { font: 500 clamp(2rem, 4vw, 3.1rem)/1 var(--display); color: var(--stage); font-variant-numeric: lining-nums tabular-nums; }
.numbers div p { margin: .4rem 0 0; font-size: .9rem; font-weight: 630; line-height: 1.35; }
.numbers-context { grid-column: 1/-1; margin: .7rem 0; color: var(--muted); font-size: .875rem; }
.chapter { padding: 3.5rem 0; border-bottom: 1px solid var(--rule); }
.chapter.compact { padding-block: 2.4rem; }
.section-intro { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 5fr); gap: 1.2rem; margin-bottom: 1.35rem; }
.section-intro p { max-width: 48rem; margin: .65rem 0 0; }
.section-intro .label { color: var(--base); font-weight: 730; line-height: 1.6; font-size: .83rem; text-transform: uppercase; letter-spacing: .07em; }
h2 { margin: 0; font-size: clamp(1.92rem, 4.3vw, 2.75rem); letter-spacing: -.035em; }
h3 { margin: 1.8rem 0 .65rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.015em; }
.base { color: var(--base); }
.stage { color: var(--stage); }
.read { max-width: 48rem; }
.plate { margin: 1.05rem 0 0; padding: clamp(.55rem, 1.8vw, 1.2rem); border: 1px solid var(--rule); background: #fff; }
.plate a { display: block; }
.plate img { display: block; width: 100%; height: auto; }
.plate figcaption { margin: .8rem 0 0; padding-top: .75rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
details { margin-top: .8rem; border: 1px solid var(--rule); background: white; }
summary { padding: .7rem 1rem; font-weight: 600; cursor: pointer; }
details .plate { margin: 0; border: 0; border-top: 1px solid var(--rule); }
.plot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.plot-pair > div { display: flex; flex-direction: column; }
.plot-pair p { margin: 0 0 1rem; }
.plot-pair figure { margin-top: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 35rem; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
th, td { padding: .65rem .85rem; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
th:first-child { text-align: left; }
thead { background: var(--ink); color: white; }
caption { text-align: left; padding-bottom: .5rem; font-weight: 620; color: var(--muted); }
.highlight { background: var(--tint); color: #1c4668; }
.footnote { color: var(--muted); font-size: .875rem; max-width: 53rem; }
.resources { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 0; padding: 0; }
.resources a { display: block; height: 100%; padding: .9rem 1rem; border: 1px solid var(--rule); background: white; text-decoration: none; }
.resources a:hover { border-color: var(--stage); }
.resources span { display: block; color: var(--muted); font-size: .9rem; }
.citation-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin: 1rem 0; }
.citation-actions button { cursor: pointer; }
#copy-status { color: var(--muted); font-size: .88rem; }
pre { margin: 0; padding: 1rem; background: var(--tint); font-size: .83rem; overflow: auto; }
.footer { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; padding-block: 1.1rem; color: var(--muted); font-size: .88rem; }
@media (max-width: 47.5rem) {
  .wrap { width: calc(100% - 2rem); }
  .top-inner { flex-wrap: wrap; gap: .4rem .8rem; padding-block: .65rem; }
  nav { gap: .2rem .75rem; }
  .hero { padding: 2rem 0 1.45rem; }
  .numbers div { padding: .8rem .45rem .4rem; }
  .numbers div p { font-size: .84rem; }
  .chapter { padding: 2.1rem 0; }
  .section-intro, .plot-pair, .resources { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .section-intro .label { margin-top: 0; }
  .chapter.compact { padding-block: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
