:root { color-scheme: light; font-family: Georgia, 'Times New Roman', serif; color: #202b35; background: #faf9f6; }
* { box-sizing: border-box; }
body { margin: 0; border-top: 5px solid #235d69; }
main, footer { width: min(100% - 2.5rem, 800px); margin-inline: auto; }
main { padding: 3rem 0 2rem; }
h1 { font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.12; margin: .5rem 0 1.5rem; }
h1.paper-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 2rem; }
h2 { font-weight: 500; font-size: 1.5rem; margin-top: 2rem; }
h3 { font-weight: 500; font-size: 1.45rem; line-height: 1.35; margin: .6rem 0; }
p { font-size: 1.08rem; line-height: 1.65; }
a { color: #175767; text-underline-offset: .2em; }
a:hover { color: #963d22; }
a:focus-visible { outline: 3px solid #963d22; outline-offset: 4px; }
.eyebrow, .byline, nav, footer { font-family: system-ui, sans-serif; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: #50616a; }
.byline { font-size: .9rem; color: #50616a; }
.intro { font-size: 1.35rem; max-width: 650px; }
.downloads { padding: 1rem 1.2rem; background: #e9efed; border-left: 3px solid #235d69; }
footer { border-top: 1px solid #ccd4d1; padding: 1.5rem 0 2rem; font-size: .8rem; line-height: 1.7; }
.skip { position: absolute; top: -100px; background: white; padding: .7rem; }
.skip:focus { top: .5rem; }
@media (max-width: 540px) { main { padding-top: 1.8rem; } }
@media print { body { background: white; border: 0; } main { width: 100%; padding: 0; } footer, .skip { display: none; } }
.full-text { width: min(100% - 2.5rem, 960px); }
.full-text img { max-width: 100%; height: auto; }
.full-text figure { margin: 2rem 0; }
.full-text figcaption { font-size: .95rem; line-height: 1.6; color: #45545b; }
.full-text math[display="block"] { display: block; overflow-x: auto; padding: .8rem 0; }
.full-text table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
.full-text td, .full-text th { padding: .5rem; }
.full-text h2, .full-text h3, .full-text h4 { scroll-margin-top: 1rem; }

.gallery { width: min(100% - 2.5rem, 1280px); }
.figure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.figure-card { min-width: 0; margin: 0; padding: 1.2rem; background: #fff; border: 1px solid #ccd4d1; }
.figure-image { display: flex; align-items: center; justify-content: center; min-height: 240px; }
.figure-image img { display: block; width: 100%; height: 280px; object-fit: contain; }
.figure-card figcaption { margin-top: 1rem; font-size: .95rem; line-height: 1.65; overflow-wrap: anywhere; }
.figure-card math { max-width: 100%; overflow-x: auto; }
.figure-links { font-family: system-ui, sans-serif; font-size: .85rem; }
.figure-card:target { outline: 3px solid #235d69; outline-offset: 3px; }
@media (max-width: 760px) { .figure-grid { grid-template-columns: 1fr; } .figure-image img { height: auto; max-height: 360px; } }
@media print { .figure-grid { display: block; } .figure-card { break-inside: avoid; margin-bottom: 1rem; } .figure-links { display: none; } }
