:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --ink: #292820;
  --muted: #615c50;
  --rule: #cdc5b5;
  --clay: #643730;
  --cream: #f8eee0;
  --green: #345248;
  --gutter: clamp(18px, 5vw, 76px);
}
*, *::before, *::after { box-sizing: border-box; }
body { display: block; margin: 0; padding: 0; overflow-x: visible; background: var(--paper); color: var(--ink); font-family: var(--font-main); }
main, .mast, .foot { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
h1, .feature h2 { font-size: clamp(52px, 7.1vw, 104px); line-height: .98; letter-spacing: -.052em; }
h2 { font-size: clamp(31px, 3.6vw, 55px); line-height: 1.03; letter-spacing: -.035em; }
h3 { font-size: clamp(25px, 2.6vw, 36px); line-height: 1.13; letter-spacing: -.025em; }
p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.48; color: inherit; }
a { color: inherit; text-underline-offset: .21em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #b35c32; outline-offset: 4px; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 4; padding: .5rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.mast, .foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mast { min-height: 76px; }
.mast nav { display: flex; gap: clamp(15px, 2.5vw, 34px); }
.mast .brand { font: 500 24px/1.1 var(--font-main); letter-spacing: -.045em; text-decoration: none; }
.mast nav, .foot, .links, .hero-links, .entry-link, .primary, .byline {
  font: 600 14px/1.5 var(--font-ui);
}
.mast nav a, .foot a, .links a { display: inline-flex; align-items: center; min-height: 42px; }
.foot { margin-block: 55px 18px; padding-block: 16px; border-top: 1px solid var(--rule); color: var(--muted); }
.eyebrow { display: block; font: 650 12px/1.55 var(--font-ui); letter-spacing: .095em; text-transform: uppercase; }
.page-heading { border-top: 1px solid var(--rule); padding-block: 24px 26px; }
.page-heading h1 { font-size: clamp(48px, 6.4vw, 88px); }
.feature { background: #452a25; color: var(--cream); display: grid; grid-template-columns: 1.07fr 1fr; }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(30px, 5vw, 70px); }
.feature .eyebrow { color: #e4c5b0; margin-bottom: clamp(20px, 3vw, 42px); }
.feature :is(h1,h2) em, .folio-head h1 em { font-weight: 400; }
.feature-copy p { max-width: 30ch; margin-top: 22px; color: #f1e2d2; }
.feature-copy .entry-link, .hero-links { margin-top: 30px; }
.entry-link { display: inline-flex; align-items: center; gap: .7em; border-bottom: 1px solid currentColor; width: fit-content; padding-bottom: 2px; }
.exhibit-entry { text-decoration: none; }
.exhibit-entry:hover :is(h2, .entry-link) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.feature-photo, .hero-plate { min-width: 0; background: #2e241c; }
.feature-photo img { width: 100%; height: 100%; max-height: 570px; object-fit: cover; object-position: 50% 36%; }
.image-credit, .credit, figcaption, .fine, .plate-note, .source-foot p, .byline { font: 400 14px/1.5 var(--font-ui); }
.image-credit { text-align: right; font-size: 12px; color: var(--muted); margin-block: 7px 0; }
.entry-pair, .run-pair, .reading-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(22px, 4vw, 56px); }
.entry-pair { margin-top: clamp(30px, 4vw, 56px); }
.companion { border-top: 1px solid var(--rule); padding-top: 16px; }
.entry-plate { aspect-ratio: 2.1; background: #efeee8; border: 1px solid var(--rule); overflow: hidden; }
.entry-plate img { width: 100%; height: 100%; object-fit: contain; }
.chart-thumb { background: white; }
.companion .eyebrow, .run-pair .eyebrow { margin-block: 20px 6px; color: var(--muted); }
.companion p, .run-pair p, .folio-head p, .case-text p, .object-label p + p { margin-top: 12px; }
.companion .entry-link { margin-top: 20px; }
.blood-hero { grid-template-columns: 1.18fr .82fr; }
.hero-plate { display: grid; grid-template-rows: 1fr auto; }
.hero-plate img { width: 100%; height: clamp(420px, 43vw, 620px); object-fit: contain; }
.hero-plate figcaption { padding: 8px 14px; color: #e9dfd1; background: #2e241c; font-size: 12px; }
.hero-links, .links { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 22px; }
.primary { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 15px; background: var(--cream); color: #33231d; text-decoration: none; }
.primary:hover { text-decoration: underline; }
.hero-links > a { display: inline-flex; align-items: center; min-height: 44px; }
.byline { margin-top: 26px; color: #e4c5b0; }
.section-block { margin-top: clamp(48px, 7vw, 94px); scroll-margin-top: 20px; }
.object-label, .section-intro, .case-grid, .motion-section { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(20px, 5.5vw, 76px); align-items: start; }
.object-label { margin-top: 28px; }
.object-label h2 { margin-top: 6px; font-size: clamp(30px, 3vw, 44px); }
.credit, figcaption, .fine, .source-foot p { color: var(--muted); }
.section-intro, .reading-pair, .motion-section { border-top: 1px solid var(--rule); padding-top: 22px; }
.lens-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 25px 0 10px; border-top: 1px solid var(--rule); }
.lens-grid > div { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--rule); }
.lens-grid dt { font-size: 26px; letter-spacing: -.035em; }
.lens-grid dd { margin-top: 4px; color: var(--muted); font: 400 15px/1.45 var(--font-ui); }
.case-grid { grid-template-columns: 1.05fr 1fr; }
.archive-photo img { width: 100%; }
figcaption { margin-top: 8px; }
.hero-plate figcaption { margin: 0; }
.case-text .eyebrow, .motion-copy .eyebrow { color: var(--clay); margin-bottom: 10px; }
.case-text .fine { font-size: 14px; }
.reverse .archive-photo { order: 2; }
.forecast-choices { margin-top: 22px; border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font: 600 16px/1.45 var(--font-ui); padding-block: 13px; }
.steps { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 4px; }
.steps li { padding: 7px 10px; font: 500 15px/1.4 var(--font-ui); border-left: 3px solid #b7a28d; background: #eee8db; }
.steps li + li::before { content: '↓'; color: var(--clay); margin-right: .55em; }
.paper-rail { margin-top: 25px; display: grid; }
.paper-rail a { display: grid; grid-template-columns: 96px 1fr; justify-items: start; align-items: baseline; padding-block: 12px; border-top: 1px solid var(--rule); font-size: 21px; }
.paper-rail span { font: 500 13px/1.5 var(--font-ui); color: var(--muted); }
.source-foot { border-top: 1px solid var(--rule); margin-top: 34px; padding-top: 15px; }
.source-foot h2 { font-size: 28px; margin-block: 7px; }
.folio-head { padding-block: clamp(28px, 4vw, 56px); border-top: 1px solid var(--rule); }
.folio-head .eyebrow { margin-bottom: 16px; color: var(--green); }
.folio-head p { max-width: 58ch; }
.folio-head .links { margin-top: 12px; }
.counting-plate { color: #f6f3e6; background: #233d36; padding: clamp(22px, 4.5vw, 58px); }
.plate-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.plate-heading h2 { font-size: clamp(29px, 4vw, 46px); }
.plate-heading > span, .range-ends { color: #cbdacf; font: 500 13px/1.4 var(--font-ui); }
.meters { display: grid; gap: 18px; margin-block: 30px; }
.meter-label, #copy-controls label, .range-ends { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.meter-label, #copy-controls label { font: 500 16px/1.4 var(--font-ui); }
.meter-label strong, #copy-value { font-variant-numeric: tabular-nums; }
.meter-label strong { font: 400 clamp(30px, 4vw, 49px)/1.05 var(--font-main); }
.meters meter { display: block; appearance: none; width: 100%; height: 17px; margin-block: 6px; border: none; background: #40594e; }
.meters meter::-webkit-meter-bar { height: 17px; border: none; border-radius: 0; background: #40594e; }
.meters meter::-webkit-meter-optimum-value { background: #f2c98c; }
.meters .nominal::-webkit-meter-optimum-value { background: #abc1b0; }
.meters meter::-moz-meter-bar { background: #f2c98c; }
.meters .nominal::-moz-meter-bar { background: #abc1b0; }
#copy-controls { padding-top: 14px; border-top: 1px solid #738c7f; }
#copy-setting { display: block; width: 100%; min-height: 44px; margin: 0; accent-color: #e4bd83; cursor: pointer; }
.plate-note { color: #d3ded4; margin-top: 18px; max-width: 72ch; }
.reading-pair p, .motion-copy p { margin-top: 13px; }
.run-table { margin-top: 20px; }
table { border-collapse: collapse; width: 100%; margin-bottom: 20px; font: 450 14px/1.5 var(--font-ui); font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--muted); margin-bottom: 10px; }
th, td { text-align: right; border-bottom: 1px solid var(--rule); padding: 5px; }
tr > :first-child { text-align: left; }
.data-figure img, .motion-figure img, .run-pair img { width: 100%; border: 1px solid var(--rule); background: white; }
.motion-section { background: #e9ede4; border: 0; padding: clamp(18px, 3vw, 42px); align-items: center; }
.motion-copy .primary { margin-top: 20px; color: white; background: var(--green); }
.run-pair { margin-top: 25px; }
.run-pair .links { margin-top: 8px; }
@media (max-width: 710px) {
  .mast { min-height: 62px; }
  .feature, .blood-hero, .case-grid, .object-label, .section-intro, .motion-section, .reading-pair { grid-template-columns: 1fr; gap: 16px; }
  .feature { gap: 0; }
  .feature-copy { padding: 28px 23px; }
  .feature-photo img { height: 270px; width: 100%; object-position: 50% 34%; }
  .hero-plate img { height: min(100vw, 435px); }
  .feature .eyebrow { margin-bottom: 15px; }
  .feature-copy p, .feature-copy .entry-link, .hero-links { margin-top: 16px; }
  .byline { margin-top: 10px; }
  .reverse .archive-photo { order: 0; }
  .lens-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .paper-rail a { grid-template-columns: 75px 1fr; font-size: 19px; }
  .entry-pair, .run-pair { grid-template-columns: 1fr; gap: 28px; }
  .image-credit { text-align: left; }
}
@media (prefers-reduced-motion: no-preference) {
  .entry-link { transition: color .16s ease; }
}

/* Manuscript exhibit */
.manuscript-hero { grid-template-columns: 1.04fr 1fr; }
.manuscript-hero h1, .feature:has(.paper-poster) h2 { font-size: clamp(46px, 5.8vw, 80px); }
.manuscript-hero .feature-copy { padding: clamp(27px, 4.3vw, 62px); }
.manuscript-hero .eyebrow { margin-bottom: 20px; }
.manuscript-hero .feature-copy p { max-width: 36ch; }
.manuscript-plate, .paper-poster { min-width: 0; background: #d9cab4; }
.manuscript-plate { display: flex; flex-direction: column; justify-content: flex-end; }
.manuscript-plate > a { display: flex; flex: 1; align-items: center; justify-content: center; }
.manuscript-plate img, .feature-photo.paper-poster img { width: 100%; height: 100%; max-height: 530px; object-fit: contain; }
.manuscript-plate figcaption { margin: 0; padding: 0 17px 9px; color: #534335; font-size: 12px; }
.manuscript-reader { margin-top: clamp(30px, 5vw, 72px); scroll-margin-top: 16px; }
.reader-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--rule); padding-bottom: 13px; }
.reader-title p { color: var(--muted); font: 500 15px/1.5 var(--font-ui); }
.reading-desk { display: grid; grid-template-columns: minmax(195px, .68fr) minmax(0, 2.1fr); column-gap: clamp(25px, 5vw, 64px); align-items: start; padding-top: 20px; }
.passage-menu { position: sticky; top: 14px; border: 0; }
.passage-menu summary { padding: 4px 0 10px; color: var(--muted); }
.passage-menu ol { list-style: none; margin: 0; padding: 0; }
.passage-menu nav a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-height: 42px; padding: 10px 8px; border-bottom: 1px solid var(--rule); font: 500 15px/1.4 var(--font-ui); text-decoration: none; }
.passage-menu nav small { color: var(--muted); white-space: nowrap; font-size: 12px; }
.passage-menu nav a:hover, .passage-menu nav a:focus-visible { text-decoration: underline; }
.passage-menu nav a[aria-current="location"] { color: var(--clay); background: #eee7d9; box-shadow: inset 3px 0 var(--clay); font-weight: 650; }
.passage { scroll-margin-top: 18px; padding-bottom: 20px; }
.passage[hidden] { display: none; }
.passage-locator { display: block; color: var(--clay); font: 600 13px/1.5 var(--font-ui); }
.passage h3 { margin: 7px 0 16px; font-size: clamp(28px, 3.3vw, 46px); }
.passage blockquote { margin: 0 0 18px; padding: 2px 0 2px 16px; border-left: 3px solid #a65843; }
.passage blockquote p { font-size: clamp(20px, 2.1vw, 29px); line-height: 1.33; }
.passage blockquote p::before { content: "“"; }
.passage blockquote p::after { content: "”"; }
.paper-window { background: #ebe6da; padding: clamp(8px, 1vw, 14px); }
.paper-window > a { display: block; text-decoration: none; cursor: zoom-in; }
.paper-window img { width: 100%; height: auto; background: white; box-shadow: 0 2px 4px #312d241b; }
.scan-bar { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; padding-top: 7px; color: #564d42; font: 500 12px/1.5 var(--font-ui); }
.scan-bar strong { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.printed-text { border: 0; }
.printed-text summary { width: fit-content; padding: 9px 0; color: var(--clay); font-size: 14px; }
.printed-text p { max-width: 66ch; padding: 1px 0 4px 14px; border-left: 2px solid var(--rule); }
.passage-note { max-width: 65ch; margin: 18px 0 8px; }
.passage-note strong { display: block; margin-bottom: 3px; color: var(--muted); font: 600 13px/1.5 var(--font-ui); }
.passage-sources, .turn-page { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 20px; font: 550 14px/1.5 var(--font-ui); }
.passage-sources a, .turn-page a { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; }
.passage-sources { color: var(--muted); }
.turn-page { border-top: 1px solid var(--rule); margin-top: 15px; }
.turn-page [rel="next"] { margin-inline-start: auto; }
.comparison-object { border-top: 1px solid var(--rule); margin-top: 10px; }
.comparison-object figure { display: grid; grid-template-columns: minmax(76px, 120px) 1fr; gap: 14px; padding-bottom: 12px; }
.comparison-object figcaption { margin: 0; }
.comparison-object figcaption span { display: block; margin-top: 7px; font-size: 12px; }
.scan-dialog { width: min(1024px, calc(100% - 24px)); max-width: none; max-height: 94vh; max-height: 94dvh; overflow: auto; margin: auto; padding: clamp(12px, 2vw, 22px); border: 1px solid var(--rule); color: var(--ink); background: var(--paper); }
.scan-dialog::backdrop { background: rgb(26 24 21 / .75); }
html:has(.scan-dialog[open]) { overflow: hidden; }
.scan-dialog > header, .scan-tools, .scan-tools > div { display: flex; align-items: center; gap: 8px; }
.scan-dialog > header, .scan-tools { justify-content: space-between; }
.scan-dialog h2 { font-size: clamp(22px, 3vw, 35px); }
.scan-dialog button { min-height: 40px; padding: 6px 12px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: 550 14px/1.4 var(--font-ui); cursor: pointer; }
.scan-dialog button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.scan-tools { flex-wrap: wrap; padding: 10px 0; }
.scan-viewport { max-height: 62vh; max-height: 62dvh; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--rule); background: #e1dbcc; }
.scan-viewport img { display: block; width: auto; max-width: 100%; max-height: 60vh; max-height: 60dvh; height: auto; margin: auto; background: white; }
.scan-viewport.is-zoomed img { max-width: none; max-height: none; margin: 0; }
.scan-dialog > p { margin-top: 8px; font: 500 14px/1.5 var(--font-ui); }
@media (max-width: 760px) {
  .manuscript-hero, .reading-desk { grid-template-columns: minmax(0, 1fr); }
  .manuscript-hero { gap: 0; }
  .manuscript-hero .feature-copy { padding: 22px 20px; }
  .manuscript-hero h1, .feature:has(.paper-poster) h2 { font-size: clamp(42px, 11.8vw, 64px); }
  .manuscript-plate img, .feature-photo.paper-poster img { height: auto; max-height: 340px; }
  .manuscript-plate figcaption { padding-inline: 12px; }
  .reading-desk { gap: 17px; padding-top: 8px; }
  .passage-menu { position: static; border-bottom: 1px solid var(--rule); }
  .passage-menu summary { min-height: 44px; padding-block: 10px; }
  .passage-menu nav { padding-bottom: 8px; }
  .scan-tools > div { gap: 4px; }
  .scan-dialog button { padding-inline: 9px; }
}
