@font-face { font-family: "ET Book"; font-style: normal; src: url("../fonts/et-book-roman-line-figures.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ET Book"; font-style: normal; src: url("../fonts/et-book-bold-line-figures.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/Inter.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
:root { --font: "Inter",system-ui,sans-serif; --editorial: "ET Book",Palatino,"Book Antiqua",Georgia,serif; }
:root[data-theme="dark"] { --text: #f3f6fa; --muted: #bac4d0; }
body { font-optical-sizing: auto; -webkit-font-smoothing: auto; font-weight: 460; }
.hero .hero-intro, .hero .experiment-bridge { font-family: var(--editorial); max-width: none; font-size: clamp(19px, 1.45vw, 21px); line-height: 1.65; letter-spacing: normal; font-weight: 400; }
.hero .experiment-bridge { margin: 1.35em auto 0px; text-align: left; text-wrap: pretty; color: var(--text); }
.experiment-bridge p, .hero-intro p { margin: 0px; }
.experiment-bridge p + p, .hero-intro p + p { margin-top: 1.35em; }
.hero-intro strong { font-weight: 700; }
.subpage p, .resource-card p { font-family: var(--editorial); }
.finding-explanation p, .taxonomy-evidence p { font: 400 16px/1.55 var(--editorial); }
.findings-primary .life-phase, #trajectory-title, .detection-section h2, .project-section-heading h2, #taxonomy-title, .subpage h1, .subpage h2 { font-family: var(--editorial); font-weight: 700; letter-spacing: -0.015em; line-height: 1.18; }
.findings-primary .life-phase { font-size: clamp(28px, 2.4vw, 34px); }
.finding-heading h4 { font-family: var(--editorial); font-weight: 700; font-size: clamp(17px, 1.3vw, 18.5px); letter-spacing: -0.01em; line-height: 1.28; color: var(--text); }
.subpage .sub-intro { font-family: var(--editorial); font-size: clamp(21px, 2vw, 25px); line-height: 1.45; }
.directory a { font-weight: 500; }
.experiment-bridge a { color: inherit; text-underline-offset: 0.16em; }
@media screen and (min-width: 901px) {
:root { --page-width: min(1140px, calc(100% - 2 * clamp(24px, 3vw, 48px))); }
#main-content > section > .container, .subpage, .site-header .nav-inner, .site-footer .container, .institution-belt-inner { width: var(--page-width) !important; max-width: none !important; margin-inline: auto; }
}
#main-content > section > .container, body:has(#main-content) :is(.site-header .nav-inner, .site-footer .container) { width: var(--page-width); max-width: none; }
/* --page-width is desktop-only; keep the essay off the screen edge on phones and tablets. */
@media screen and (max-width: 900px) {
#main-content > section > .container { padding-inline: clamp(18px, 5vw, 32px); }
}
/* Essay measure: one shared column, roughly 70 characters per line of body text. */
.hero .hero-intro, .hero .experiment-bridge { max-width: min(100%, 700px); }
.hero .hero-intro { font-size: clamp(21px, 1.7vw, 24px); line-height: 1.55; }
.experiment-heading .study-prose { max-width: none; width: 100%; }
.experiment-heading .study-prose p { max-width: none; margin: 0; color: var(--text); font: 480 clamp(15.5px, 1.12vw, 16.5px)/1.65 var(--font); }
.experiment-heading .study-prose p + p { margin-top: 0.9em; }
.experiment-heading p strong { font-weight: 700; color: var(--text); margin-right: 0; }
.experiment-heading h3 { margin: 12px 0 0; font: 700 clamp(20px, 1.65vw, 23px)/1.25 var(--editorial); letter-spacing: -0.012em; color: var(--text); }
.experiment-heading #swarmharm-findings { margin-top: 34px; }
.experiment-heading .detection-subheading { margin: 0 0 14px; }
.experiment-heading h3 small { font-size: 13px; }

/* Full-width layout on normal desktops; clean capped measure on ultrawide monitors. */
@media(min-width:1900px){
 body:has(#main-content){--page-width:1240px;}
 .record-map-section{margin-inline:0;}
}

.finding .finding-story p, .finding > p { font: 460 15px/1.58 var(--font); color: color-mix(in srgb, var(--text) 92%, var(--bg)); }
.traces-page-title, .subpage h1 { font: 400 clamp(38px, 4.4vw, 52px)/1.12 var(--editorial) !important; letter-spacing: -0.025em !important; margin: 0; color: var(--text); }
.traces-hero .sub-intro, .subpage .sub-intro { font: 400 clamp(19px, 1.55vw, 22px)/1.55 var(--editorial); color: var(--muted); max-width: 72ch; margin: 12px 0 0; }

.findings-primary .finding { scroll-margin-top: 96px; }
.findings-primary .finding:target .finding-heading h4 { text-decoration: underline 2px var(--finding-ink); text-underline-offset: 5px; }
.finding-story a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--finding-ink) 55%, transparent); text-underline-offset: 3px; }
.finding-story a:hover { color: var(--finding-ink); text-decoration-color: currentColor; }
/* SwarmHarm cards name their failure mode(s) above the finding, in the homepage index's vocabulary. */
.finding-heading .finding-mode { grid-column: 1 / -1; margin: 0 0 6px; color: var(--finding-ink); font: 600 11.5px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.finding-heading .finding-mode a { color: inherit; text-decoration: none; }
.finding-heading .finding-mode a:hover { text-decoration: underline; text-underline-offset: 3px; }
