/* NatSec Biotech: a reading-first publication. Mobile-first; no third-party requests. */
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-normal.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --paper: #f7f5f0; --paper-2: #efebe2; --ink: #1c1b18; --ink-2: #4a463e; --muted: #6b665b; --rule: #d8d2c4;
  --accent: #8b2e17; --accent-ink: #fff; --focus: #1f5fa8; --mark: #f3e3b5;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 36rem; --wide: 64rem; --gutter: 1rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #141412; --paper-2: #1c1b18; --ink: #ece8de; --ink-2: #cbc5b8; --muted: #a39d90; --rule: #34322c; --accent: #e3926f; --accent-ink: #141412; --focus: #8ab8ff; --mark: #4a3d1c; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #141412; --paper-2: #1c1b18; --ink: #ece8de; --ink-2: #cbc5b8; --muted: #a39d90; --rule: #34322c; --accent: #e3926f; --accent-ink: #141412; --focus: #8ab8ff; --mark: #4a3d1c; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 1.125rem; line-height: 1.62; font-optical-sizing: auto; font-kerning: normal; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: var(--gutter); }

/* Masthead */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead .inner { max-width: var(--wide); margin: 0 auto; padding: .9rem var(--gutter); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: .01em; font-size: 1.25rem; text-decoration: none; }
.brand span { color: var(--accent); }
.nav { font-family: var(--sans); font-size: .82rem; display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); text-decoration: underline; }
.nav .cta { background: var(--accent); color: var(--accent-ink); padding: .35rem .7rem; border-radius: 3px; }
.nav .cta:hover { color: var(--accent-ink); filter: brightness(1.08); text-decoration: none; }

main { display: block; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); margin-left: auto; margin-right: auto; }

/* Type */
h1, h2, h3 { line-height: 1.15; font-weight: 650; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: .3em 0 .25em; font-weight: 700; }
h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
p { margin: 0 0 1.05em; hanging-punctuation: first; }
.kicker { font-family: var(--sans); font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0; }
.dek { font-size: 1.28rem; line-height: 1.45; color: var(--ink-2); margin: .4em 0 1em; font-style: italic; font-weight: 400; }
.meta { font-family: var(--sans); font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 0 0 1.6rem; }
.meta time { font-variant-numeric: tabular-nums; }
.byline { font-weight: 600; color: var(--ink-2); }
blockquote { margin: 1.4em 0; padding: 0 0 0 1.1rem; border-left: 3px solid var(--rule); color: var(--ink-2); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem auto; max-width: 8rem; }

/* Article */
.article-head { padding: 2.2rem 0 0; }
.prose { font-size: 1.15rem; line-height: 1.68; }
.prose:not(.plain) > p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: .9; padding: .06em .08em 0 0; font-weight: 600; color: var(--accent); }
.prose sup.ref { font-family: var(--sans); font-size: .62em; line-height: 0; margin-left: .08em; }
.prose sup.ref a { text-decoration: none; color: var(--accent); padding: 0 .1em; }
.prose sup.sep::before { content: ","; color: var(--muted); }
.prose h2 { font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: .85rem; margin: 1.5rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: .45rem .5rem; text-align: left; vertical-align: top; }
.notes { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.notes h2 { font-size: 1rem; font-family: var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-top: 0; }
.notes ol { padding-left: 1.6rem; }
.notes li { margin-bottom: .55rem; overflow-wrap: anywhere; }
.notes li:target { background: var(--mark); }
.notes .caveat { color: var(--muted); font-style: italic; }
.notes .back { text-decoration: none; color: var(--muted); }
.correction { font-family: var(--sans); font-size: .85rem; background: var(--paper-2); border-left: 3px solid var(--accent); padding: .8rem 1rem; margin: 1.5rem 0; }

/* Lists and cards */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--ink); margin: 3rem 0 1.2rem; padding-bottom: .35rem; }
.section-head h2 { margin: 0; font-size: 1.05rem; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.section-head a { font-family: var(--sans); font-size: .8rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 1.05rem 0; border-bottom: 1px solid var(--rule); }
.list h3 { margin: .15rem 0 .3rem; font-size: 1.22rem; }
.list h3 a { text-decoration: none; }
.list p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.list .meta { margin: .4rem 0 0; }
.part-label { font-family: var(--sans); font-size: .74rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* Home */
.hero { padding: 2.6rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
.hero .promise { font-size: clamp(1.25rem, 3.2vw, 1.6rem); line-height: 1.4; max-width: 44rem; margin: .6rem 0 1.2rem; }
.lead-story { display: grid; gap: 1.2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--rule); }
.lead-story h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin: .2rem 0 .4rem; }
.lead-story h2 a { text-decoration: none; }
.lead-story .dek { margin: 0 0 .6rem; }
.columns { display: grid; gap: 0 2.5rem; }
@media (min-width: 52rem) { .columns { grid-template-columns: 1.4fr 1fr; } }

/* Subscribe */
.subscribe { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; padding: 1.3rem 1.2rem; margin: 2.2rem 0; font-family: var(--sans); }
.subscribe h2, .subscribe h3 { font-family: var(--serif); margin: 0 0 .35rem; font-size: 1.25rem; }
.subscribe p { font-size: .9rem; color: var(--ink-2); margin: 0 0 .8rem; }
.subscribe form { display: flex; flex-wrap: wrap; gap: .5rem; }
.subscribe input[type="email"] { flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 1rem; padding: .62rem .7rem; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink); }
.subscribe button { font: inherit; font-weight: 600; font-size: .95rem; padding: .62rem 1rem; border: 0; border-radius: 3px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.subscribe button[disabled] { opacity: .6; cursor: progress; }
.subscribe .fine { font-size: .76rem; color: var(--muted); margin: .6rem 0 0; flex-basis: 100%; }
.subscribe .consent { font-size: .8rem; color: var(--ink-2); display: flex; gap: .45rem; align-items: flex-start; flex-basis: 100%; }
.subscribe .status { flex-basis: 100%; font-size: .9rem; margin: .4rem 0 0; min-height: 1.2em; }
.subscribe .status.err { color: #b3261e; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Prev/next, timeline, glossary */
.pager { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 3rem 0; font-family: var(--sans); font-size: .9rem; }
@media (min-width: 40rem) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: block; padding: .9rem 1rem; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; }
.pager a span { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pager .next { text-align: right; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1.3rem 1.2rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .55rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline time { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; display: block; }
.timeline .ev { margin: .1rem 0 .2rem; }
.timeline .src { font-family: var(--sans); font-size: .75rem; color: var(--muted); }
.filters { font-family: var(--sans); font-size: .82rem; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.5rem; }
.filters button { font: inherit; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); padding: .25rem .6rem; border-radius: 99px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
dl.glossary dt { font-weight: 700; margin-top: 1.2rem; }
dl.glossary dd { margin: .2rem 0 0; color: var(--ink-2); }
.tags { font-family: var(--sans); font-size: .78rem; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0; }
.tags a { border: 1px solid var(--rule); border-radius: 99px; padding: .15rem .6rem; text-decoration: none; color: var(--ink-2); }

.site-foot { border-top: 1px solid var(--rule); margin-top: 4rem; padding: 2rem 0 3rem; font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.site-foot .inner { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 1rem; }
@media (min-width: 48rem) { .site-foot .inner { grid-template-columns: 2fr 1fr 1fr; } }
.site-foot a { color: var(--ink-2); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }

@media print { .masthead, .subscribe, .pager, .site-foot, .nav { display: none !important; } body { background: #fff; color: #000; } .prose { font-size: 11pt; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
