:root {
  color-scheme: light;
  --paper: #f6f2e8;
  --cream: #fffbef;
  --ink: #1e2a24;
  --muted: #526058;
  --pine: #112d25;
  --forest: #204f40;
  --gold: #eecf80;
  --rule: #d4d2c2;
  --serif: Iowan Old Style, Baskerville, Georgia, serif;
  --sans: 'Avenir Next', 'Avenir', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.56 var(--sans); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: #28614d; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ae6b1a; outline-offset: 3px; }
button, select, input { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, select { touch-action: manipulation; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); line-height: .99; font-weight: 500; }
h1 em, h2 em { color: var(--forest); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 4.1vw, 4rem); letter-spacing: -.045em; }
.wrap { width: min(100% - 80px, 1280px); margin-inline: auto; }
.eyebrow { font-size: .69rem; line-height: 1.3; font-weight: 750; letter-spacing: .18em; }
.skip { position: fixed; top: 0; left: 1rem; transform: translateY(-150%); background: var(--cream); padding: .75rem; z-index: 40; }
.skip:focus { transform: none; }
.sr-only { clip-path: inset(50%); overflow: hidden; position: absolute; height: 1px; width: 1px; white-space: nowrap; }
.mast { border-bottom: 1px solid var(--rule); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 67px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font: 600 1.31rem/1 var(--serif); text-decoration: none; white-space: nowrap; }
.seal { display: grid; place-items: center; place-content: center; width: 32px; height: 32px; border: 1px solid #5e7667; border-radius: 50%; color: var(--forest); font: 1.5rem/1 var(--sans); }
.mast nav { display: flex; align-items: center; gap: 1.6rem; font-size: .83rem; font-weight: 650; }
.mast nav a { text-decoration: none; }
.mast nav a:hover, .mast nav a[aria-current] { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr .48fr; align-items: end; gap: 3rem; padding: 45px 0 34px; }
.hero .eyebrow { margin-bottom: 1rem; color: var(--forest); }
.hero h1 { font-size: clamp(5.5rem, 12.4vw, 11.7rem); letter-spacing: -.073em; line-height: .76; padding-bottom: .075em; }
.hero h1 em { letter-spacing: -.07em; }
.hero-note { max-width: 17rem; margin: auto 0 3px; padding: 0 0 .1rem 1.15rem; border-left: 1px solid #8e9b8a; }
.hero-note p { font-size: clamp(1rem, 1.55vw, 1.28rem); line-height: 1.47; }
.hero-note a { display: inline-block; margin-top: 1rem; font-size: .84rem; font-weight: 700; }
.timeline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 27%); border: 1px solid var(--pine); border-radius: 4px; overflow: hidden; }
.chart-panel { min-width: 0; background: var(--pine); color: #fff8e1; padding: 25px 32px 17px; }
.chart-header { display: flex; gap: 1rem; align-items: end; justify-content: space-between; }
.chart-header .eyebrow { color: #bfd2ba; margin-bottom: .45rem; }
.chart-header h2 { font-size: clamp(1.75rem, 3.9vw, 3.1rem); }
.endpoints { display: flex; gap: .55rem; align-items: center; font: 1.8rem/1 var(--serif); color: var(--gold); white-space: nowrap; }
.endpoints strong { font-weight: 400; }
.plot { position: relative; margin: 27px 0 0 35px; }
.plot-scale { display: flex; flex-direction: column; justify-content: space-between; position: absolute; top: -.48em; bottom: 20px; right: calc(100% + 10px); color: #bdd0bf; font-size: .63rem; text-align: right; }
.graph { position: relative; min-height: 130px; height: clamp(127px, 14vw, 186px); margin-inline: 4px; background: repeating-linear-gradient(to bottom,#567264 0,#567264 1px,transparent 1px,transparent 25%); border-bottom: 1px solid #567264; }
.bar { position: absolute; width: clamp(4px, .68vw, 9px); height: var(--count); bottom: 0; left: var(--position); transform: translateX(-50%); padding: 0; border: 0; border-radius: 1px 1px 0 0; background: #80ac89; }
.bar:hover, .bar.selected { background: var(--gold); }
.bar.selected { box-shadow: 0 0 0 1px #fae7ab; }
.axis { position: relative; height: 23px; color: #cbd9c8; font-size: .67rem; }
.axis span { position: absolute; bottom: 0; }
.axis span:nth-child(1) { left: 0; }
.axis span:nth-child(2) { left: 22%; transform: translateX(-50%); }
.axis span:nth-child(3) { left: 53%; transform: translateX(-50%); }
.axis span:nth-child(4) { left: 83%; transform: translateX(-50%); }
.axis span:nth-child(5) { right: 0; }
.chart-footer { display: flex; justify-content: space-between; gap: .5rem; color: #c8d8c5; margin-top: 13px; font-size: .71rem; }
.chart-footer a { color: #fff8e1; white-space: nowrap; }
.era-panel { display: flex; flex-direction: column; align-items: stretch; padding: 26px clamp(17px, 2.4vw, 34px) 18px; min-width: 0; background: #e9e5d4; }
.era-panel > label { color: var(--forest); }
.era-controls { display: grid; grid-template-columns: 39px minmax(0, 1fr) 39px; gap: 5px; margin: .7rem 0 .8rem; }
.era-controls button, .era-controls select { min-height: 42px; border-radius: 3px; background: #fcf8ec; border: 1px solid #a3aa99; }
.era-controls select { text-align: center; width: 100%; font-weight: 680; }
.era-controls button { color: var(--forest); font-size: 1.1rem; }
.era-controls button:hover:enabled { background: #dce7d8; }
.era-controls button:disabled { opacity: .43; }
.era-total { display: flex; align-items: baseline; gap: .45rem; margin-bottom: .45rem; font-size: .76rem; }
.era-total strong { font: clamp(3.6rem, 6vw, 5.7rem)/.8 var(--serif); letter-spacing: -.07em; }
#era-detail p { font-size: .83rem; line-height: 1.45; }
.era-link { font-size: .78rem; color: #183f31; font-weight: 690; margin-top: auto; padding-top: 13px; }
.lookup { margin: 58px 0 0; }
.lookup-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.1rem; }
.lookup-heading .eyebrow, .historical .eyebrow, .article .eyebrow { color: var(--forest); margin-bottom: .45rem; }
.lookup-links { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; font-weight: 690; }
.controls { display: grid; grid-template-columns: minmax(0, 2fr) minmax(110px, 1fr) minmax(145px, 1fr); gap: .75rem; padding: 16px 0; border-top: 1px solid var(--rule); }
.controls label { display: block; font-size: .76rem; font-weight: 720; margin-bottom: 5px; }
.controls input, .controls select { width: 100%; padding: .55rem .65rem; border: 1px solid #98a096; min-height: 43px; background: var(--cream); border-radius: 3px; font-size: .9rem; }
.results { padding: .1rem 0 .55rem; color: var(--muted); font-size: .78rem; min-height: 1.75rem; }
.notice { padding: .7rem; background: #f7e8b5; }
.table-frame { border-block: 1px solid #a1a99a; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .91rem; }
thead { background: #e6e9dc; }
thead th { padding-block: .65rem; font-size: .74rem; letter-spacing: .035em; }
th, td { padding: .6rem .8rem; }
tbody tr + tr { border-top: 1px solid #dcdace; }
tbody tr:hover { background: #edf0e4; }
tbody th { font-weight: 660; }
.action-cell { width: 120px; }
.date-cell { font-variant-numeric: tabular-nums; }
.pick, .secondary { min-height: 35px; padding: .25rem .64rem; border: 1px solid #799689; border-radius: 3px; background: transparent; font-size: .78rem; font-weight: 680; color: #184737; }
.pick[aria-pressed=true], .pick:hover, .secondary:hover { background: #dbe8dc; }
.more { margin: 1rem 0 0; min-height: 43px; }
.historical { max-width: 760px; border-top: 1px solid var(--rule); margin-top: 54px; padding-top: 28px; }
.historical > p:not(.eyebrow) { max-width: 60ch; margin: .7rem 0; }
.historical a { font-size: .9rem; font-weight: 700; }
.foot { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0 6.1rem; margin-top: 3rem; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--muted); }
.compare-tray { position: fixed; z-index: 4; bottom: 0; inset-inline: 0; background: #183d31; color: #fbf6e4; box-shadow: 0 -3px 18px #233e3333; }
.tray-inner { display: flex; gap: .7rem; align-items: center; padding-block: .65rem; }
#chosen { display: flex; flex-wrap: wrap; gap: .45rem; margin-right: auto; }
.chip, .clear { background: transparent; color: inherit; border: 1px solid #a0b8a7; border-radius: 3px; font-size: .78rem; padding: .42rem .56rem; min-height: 35px; }
.clear { border-color: transparent; text-decoration: underline; }
#open-compare, #share { border: 1px solid #e0cb84; background: #f5dfa0; color: #283024; border-radius: 3px; padding: .48rem .65rem; font-size: .83rem; font-weight: 720; min-height: 41px; }
#open-compare:disabled { opacity: .68; }
dialog { width: min(100% - 28px, 620px); border: 1px solid #415e50; border-radius: 6px; padding: clamp(16px, 4vw, 30px); background: var(--cream); color: var(--ink); }
dialog::backdrop { background: #13291fbb; }
.dialog-head { display: flex; gap: .75rem; justify-content: space-between; align-items: start; }
.dialog-head h2 { font-size: clamp(2.15rem, 6vw, 3.4rem); margin-top: .5rem; }
#close-compare { width: 42px; min-height: 42px; border: 1px solid #9aa89b; background: transparent; border-radius: 4px; font-size: 1.4rem; }
#comparison-rows { list-style: none; padding: 0; margin: 1rem 0 .55rem; border-block: 1px solid var(--rule); }
#comparison-rows li { display: grid; grid-template-columns: 1.15fr 1fr auto; gap: .4rem .75rem; align-items: baseline; padding: .65rem 0; }
#comparison-rows li + li { border-top: 1px solid var(--rule); }
.evidence-link { font-size: .75rem; font-weight: 700; color: var(--forest); }
#comparison-gap { font-size: .85rem; }
.dialog-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
#share-status { font-size: .83rem; }
.article-head { padding: 48px 0 31px; max-width: 890px; }
.article-head h1 { margin-bottom: .45em; font-size: clamp(3.6rem, 9vw, 8rem); letter-spacing: -.064em; }
.article-head > p:last-child { max-width: 58ch; font-size: clamp(1rem, 1.6vw, 1.25rem); }
.article-grid { display: grid; grid-template-columns: minmax(178px, 240px) minmax(0, 740px); gap: clamp(1.3rem, 5vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--rule); }
.contents { display: grid; align-self: start; gap: .6rem; position: sticky; top: 1.6rem; font-size: .85rem; }
.readable h2 { margin-bottom: .65rem; font-size: clamp(2rem, 4.1vw, 3.3rem); }
.readable section { padding: 1.45rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.readable section:first-child { padding-top: 0; }
.readable section p + p { margin-top: .7rem; }
.source { display: flex; gap: .25rem 1rem; flex-wrap: wrap; font-size: .83rem; font-weight: 690; color: var(--forest); }
.record-links { margin: 0 0 1rem; }
@media (max-width: 780px) {
  .wrap { width: min(100% - 36px, 1280px); }
  .mast nav { gap: .85rem; font-size: .75rem; }
  .hero { grid-template-columns: 1fr .56fr; gap: 1rem; padding-top: 36px; }
  .hero h1 { font-size: clamp(4.8rem, 14vw, 8rem); }
  .chart-panel { padding: 20px 17px 14px; }
  .plot { margin-left: 28px; }
}
@media (max-width: 590px) {
  .wrap { width: calc(100% - 28px); }
  .mast-inner { align-items: start; flex-direction: column; gap: .55rem; padding-block: .6rem .7rem; }
  .brand { font-size: 1.24rem; }
  .seal { width: 29px; height: 29px; }
  .mast nav { flex-wrap: wrap; gap: .35rem 1rem; }
  .hero { display: block; padding: 26px 0 22px; }
  .hero .eyebrow { margin-bottom: .7rem; }
  .hero h1 { font-size: clamp(4rem, 15.8vw, 6rem); line-height: .81; }
  .hero h1 br { display: none; }
  .hero-note { margin-top: .65rem; max-width: 34ch; padding-left: .75rem; }
  .hero-note p { font-size: .9rem; }
  .hero-note a { margin-top: .45rem; font-size: .79rem; }
  .timeline { display: block; }
  .chart-header .eyebrow { font-size: .57rem; }
  .endpoints { font-size: 1.46rem; gap: .25rem; }
  .plot { margin-top: 20px; }
  .graph { height: 92px; min-height: 92px; }
  .bar { pointer-events: none; width: 3px; }
  .chart-footer { font-size: .65rem; }
  .era-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(128px, .93fr); align-items: start; gap: .5rem .85rem; padding: 14px 13px; }
  .era-panel > label { grid-row: 1; padding-top: .27rem; }
  .era-controls { grid-column: 2; grid-row: 1; margin: 0; grid-template-columns: 35px minmax(0, 1fr) 35px; }
  .era-controls button { font-size: 1rem; }
  .era-controls button, .era-controls select { min-height: 40px; }
  #era-detail { grid-column: 1/-1; }
  .era-total { margin-top: .25rem; }
  .era-total strong { font-size: 3.35rem; }
  .era-link { grid-column: 1/-1; padding-top: .15rem; }
  .lookup { margin-top: 34px; }
  .lookup-heading { flex-wrap: wrap; }
  .controls { grid-template-columns: 1fr 1fr; }
  .controls > div:first-child { grid-column: 1 / -1; }
  .controls input, .controls select { font-size: 16px; }
  table { font-size: .81rem; line-height: 1.35; }
  th, td { padding: .52rem .39rem; }
  .action-cell { width: 65px; }
  .pick { padding-inline: .31rem; min-width: 49px; min-height: 40px; font-size: .72rem; }
  .historical { margin-top: 38px; }
  .foot { align-items: start; flex-wrap: wrap; padding-bottom: 9rem; }
  .tray-inner { display: grid; grid-template-columns: 1fr auto; gap: .36rem; }
  #chosen { grid-column: 1 / -1; }
  #comparison-rows li { grid-template-columns: 1fr auto; }
  #comparison-rows a { grid-column: 1 / -1; }
  .article-grid { display: block; padding-top: 1.15rem; }
  .contents { position: static; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: 1rem; gap: .4rem; }
  .article-head { padding-top: 32px; }
}
