/* Layout: a lab front page. Left-aligned 12-column grid, mono datelines and venue tags,
   and one gold "annotator" highlighter that marks claims the way the lab's tools do. */
:root {
  --paper: #fcfcfd;
  --paper-2: #f2f3f6;
  --ink: #15171c;
  --ink-2: #4b515d;
  --rule: #dde0e7;
  --red: #c8102e;
  --marker: rgba(255, 210, 0, 0.55);
  --hl-cs: rgba(70, 150, 235, 0.32);
  --hl-info: rgba(255, 210, 0, 0.55);
  --hl-jour: rgba(240, 70, 170, 0.26);
  --net-edu: #2f6bd6;
  --net-med: #c8306f;
  --net-ind: #b07d00;
  --net-line: rgba(21, 23, 28, 0.16);
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --logo-light: block;
  --logo-dark: none;
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111318; --paper-2: #191c23; --ink: #eceef3; --ink-2: #a2a9b6; --rule: #2a2e38;
    --red: #ff6b7d; --marker: rgba(255, 210, 0, 0.3); --hl-cs: rgba(90, 165, 255, 0.3); --hl-info: rgba(255, 210, 0, 0.3); --hl-jour: rgba(255, 90, 185, 0.28);
    --net-edu: #6ea0ff; --net-med: #ff6fa6; --net-ind: #e0b23a; --net-line: rgba(236, 238, 243, 0.16);
    --logo-light: none; --logo-dark: block; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111318; --paper-2: #191c23; --ink: #eceef3; --ink-2: #a2a9b6; --rule: #2a2e38;
  --red: #ff6b7d; --marker: rgba(255, 210, 0, 0.3); --hl-cs: rgba(90, 165, 255, 0.3); --hl-info: rgba(255, 210, 0, 0.3); --hl-jour: rgba(255, 90, 185, 0.28);
    --net-edu: #6ea0ff; --net-med: #ff6fa6; --net-ind: #e0b23a; --net-line: rgba(236, 238, 243, 0.16);
  --logo-light: none; --logo-dark: block; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--paper); padding: 6px 10px; }

.label {
  font: 500 0.72rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-block: 14px; }
.brand img { height: 44px; width: auto; }
.brand .logo-light { display: var(--logo-light); }
.brand .logo-dark { display: var(--logo-dark); }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }

main { padding-block: 0 72px; }
.section { padding-block: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.more { font: 500 0.8rem/1.4 var(--mono); letter-spacing: 0.04em; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Page intro (inner pages) */
.intro { padding-block: 56px 8px; display: grid; gap: 14px; max-width: 46rem; }
.intro h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); font-weight: 400; letter-spacing: -0.01em; }
.intro p { color: var(--ink-2); font-size: 1.12rem; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; padding-block: 64px 48px; align-items: end; }
.hero-text { grid-column: span 7; display: grid; gap: 22px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.75rem);
  font-weight: 400; line-height: 1.16; letter-spacing: -0.015em;
}
.hero-lede { max-width: 38rem; color: var(--ink-2); font-size: 1.12rem; }
.ann {
  color: inherit;
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 88% / 100% 62%;
  padding-inline: 0.04em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  animation: sweep 0.8s cubic-bezier(.3, .7, .2, 1) both;
}
.ann.cs { --hl: var(--hl-cs); animation-delay: 0.25s; }
.ann.info { --hl: var(--hl-info); animation-delay: 1.25s; }
.ann.jour { --hl: var(--hl-jour); animation-delay: 0.75s; }
@keyframes sweep { from { background-size: 0% 62%; } to { background-size: 100% 62%; } }
@media (prefers-reduced-motion: reduce) { .ann { animation: none; } }

.hero-venn { grid-column: span 5; margin: 0; display: grid; gap: 8px; }
.hero-venn figcaption { font-size: 0.82rem; color: var(--ink-2); }
.venn { width: 100%; height: auto; display: block; overflow: visible; }
.venn .v { stroke: none; animation: venn-in 0.7s ease-out both; }
.venn .v.cs { fill: var(--hl-cs); animation-delay: 0.25s; }
.venn .v.info { fill: var(--hl-info); animation-delay: 1.25s; }
.venn .v.jour { fill: var(--hl-jour); animation-delay: 0.75s; }
@keyframes venn-in { from { opacity: 0; } to { opacity: 1; } }
.venn .vname { font: 500 23px var(--display); fill: var(--ink); }
.venn .vlabel { font: 500 19px var(--sans); fill: var(--ink); }
.venn .vcount { font: 400 15px var(--mono); fill: var(--ink-2); }
.venn .vlead { stroke: var(--ink-2); stroke-width: 1; fill: none; }
.venn .vdot { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.venn .vproj:hover .vlabel, .venn .vproj:focus-visible .vlabel { fill: var(--red); text-decoration: underline; }
.venn .vproj:hover .vdot, .venn .vproj:focus-visible .vdot { fill: var(--red); }
.venn .vproj:hover .vlead { stroke: var(--red); }
@media (prefers-reduced-motion: reduce) { .venn .v { animation: none; } }
.section-lede { max-width: 44rem; color: var(--ink-2); margin-top: -12px; margin-bottom: 20px; }

/* Collaboration network */
.net-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px 40px; align-items: start; }
.net-figure { min-width: 0; }
.net { width: 100%; height: auto; display: block; overflow: visible; }
.net text { font-family: var(--sans); font-size: 15px; fill: var(--ink); }
.net .net-country { font: 500 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-2); }
.net-arc { fill: none; stroke: var(--rule); stroke-width: 3; }
.net-spoke { stroke: var(--net-line); }
.net-spoke.grant { stroke-dasharray: 4 5; }
.net-chord { fill: none; stroke: var(--net-line); }
.net-hub { fill: var(--ink); }
.net .net-hub-t { fill: var(--paper); font: 500 20px var(--display); }
.net .net-hub-s { fill: var(--paper); font: 500 12px var(--mono); letter-spacing: 0.1em; opacity: 0.8; }
.net-node { cursor: pointer; outline: none; }
.net-node circle { stroke: var(--paper); stroke-width: 2; }
.net-node.education circle { fill: var(--net-edu); }
.net-node.healthcare circle { fill: var(--net-med); }
.net-node.industry circle { fill: var(--net-ind); }
.net-node.grant circle { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 3 2; }
.net-node:focus-visible circle { stroke: var(--red); stroke-width: 3; }
.net.focus .net-node:not(.on) { opacity: 0.25; }
.net.focus .net-spoke:not(.on), .net.focus .net-chord:not(.on) { opacity: 0.12; }
.net .net-spoke.on, .net .net-chord.on { stroke: var(--red); opacity: 0.8; }
.net-node.on text { font-weight: 600; }
.net * { transition: opacity 0.15s ease; }
.net-panel { display: grid; gap: 24px; position: sticky; top: 100px; }
.net-panel #net-info { display: grid; gap: 8px; border-top: 2px solid var(--ink); padding-top: 14px; min-height: 11rem; }
.net-big { font: 400 1.6rem/1.2 var(--display); text-wrap: balance; }
.net-people { font-size: 0.93rem; }
.net-key { display: grid; gap: 8px; font-size: 0.86rem; color: var(--ink-2); }
.net-key span { display: flex; align-items: center; gap: 10px; }
.k { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.k.education { background: var(--net-edu); } .k.healthcare { background: var(--net-med); } .k.industry { background: var(--net-ind); }
.k.grant { border: 1.5px dashed var(--ink-2); }
.net-list { margin-top: 20px; border-top: 1px solid var(--rule); padding-top: 12px; }
.net-list summary { cursor: pointer; font: 500 0.8rem/1.4 var(--mono); letter-spacing: 0.04em; color: var(--red); }
.net-cols { columns: 3 220px; column-gap: 32px; padding-top: 16px; }
.net-cols > div { break-inside: avoid; padding-bottom: 16px; }
.net-cols ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.92rem; }
.net-cols li { display: flex; justify-content: space-between; gap: 12px; }
.net-cols .n { font: 0.78rem/1.6 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.resources { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; padding-top: 24px; font-size: 0.95rem; }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 28px; }
.card { display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; }
.card .thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-2); }
.thumb-text { display: grid; align-content: center; gap: 10px; padding: 8%; }
.thumb-text .q { font: italic 400 clamp(1.15rem, 2vw, 1.45rem)/1.35 var(--display); color: var(--ink); max-width: 22ch; }
.thumb-text .q span { background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 88% / 100% 45%; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.card h3 { font-size: 1.35rem; }
.card:hover h3 { color: var(--red); }
.card p { color: var(--ink-2); font-size: 0.97rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.chip { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 6px; border: 1px solid currentColor; border-radius: 2px; color: var(--red); }

/* Two-column home section */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 40px; }
.split > :first-child { grid-column: span 5; min-width: 0; }
.split > :last-child { grid-column: span 7; min-width: 0; }

/* News */
.news { list-style: none; margin: 0; padding: 0; display: grid; }
.news li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 20px; padding-block: 14px; border-top: 1px solid var(--rule); }
.news li:last-child { border-bottom: 1px solid var(--rule); }
.news .when { display: grid; gap: 2px; align-content: start; }
.news .when time { font: 500 0.8rem/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.news .type { font: 500 0.68rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.news .what { font-size: 0.98rem; }
.news .what cite { font-style: normal; font-family: var(--display); font-size: 1.05em; }
.news-compact li { grid-template-columns: 1fr; }
.year-head { font: 500 0.8rem/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-2); padding-block: 36px 12px; }

/* Publications */
.pubs { list-style: none; margin: 0; padding: 0; display: grid; }
.pub { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 20px; padding-block: 18px; border-top: 1px solid var(--rule); }
.venue-tag { font: 500 0.78rem/1.5 var(--mono); color: var(--red); font-variant-numeric: tabular-nums; }
.venue-tag.preprint { color: var(--ink-2); }
.pub-body { display: grid; gap: 4px; min-width: 0; }
.pub h3 { font-size: 1.14rem; font-weight: 500; line-height: 1.3; }
.pub h3 a { color: var(--ink); text-decoration: none; }
.pub h3 a:hover { color: var(--red); text-decoration: underline; }
.authors { font-size: 0.93rem; color: var(--ink-2); }
.authors strong { color: var(--ink); font-weight: 600; }
.venue { font-size: 0.9rem; color: var(--ink-2); font-style: italic; }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 0.75rem/1.6 var(--mono); }
.links span { color: var(--ink-2); }
.pubs-compact .pub { grid-template-columns: 1fr; gap: 6px; }

.filters { display: grid; gap: 16px; padding-block: 28px 8px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 73px); background: var(--paper); z-index: 2; border-bottom: 1px solid var(--rule); }
.filters .row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: 500 0.78rem/1 var(--mono); padding: 8px 10px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
}
.filter:hover { border-color: var(--ink-2); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search input {
  flex: 1 1 260px; min-width: 0; font: 400 1rem/1.4 var(--sans); padding: 10px 12px;
  border: 1px solid var(--rule); border-radius: 2px; background: var(--paper); color: var(--ink);
}
.search output { font: 0.78rem/1 var(--mono); color: var(--ink-2); }
.empty { padding-block: 32px; color: var(--ink-2); }

/* Research page rows */
.projects { display: grid; gap: 56px; padding-top: 40px; }
.project-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px 36px; align-items: start; }
.project-row .thumb-link { grid-column: span 5; }
.project-row .thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-2); }
.project-row .text { grid-column: span 7; display: grid; gap: 12px; min-width: 0; }
.project-row h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.project-row h2 a { color: var(--ink); text-decoration: none; }
.project-row h2 a:hover { color: var(--red); }
.project-row p { color: var(--ink-2); }

.prose { display: grid; gap: 18px; max-width: 42rem; font-size: 1.1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; padding-top: 40px; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--rule); border-radius: 2px; }
.crumb { font: 500 0.78rem/1.4 var(--mono); }

/* People */
.director { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px 40px; align-items: start; padding-top: 40px; }
.director img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.director .text { display: grid; gap: 14px; max-width: 40rem; }
.director h2 { font-size: 2rem; }
.person-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 0.8rem/1.6 var(--mono); }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 32px 28px; }
.person { display: grid; gap: 10px; align-content: start; }
.person img, .monogram { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.monogram { display: grid; place-items: center; background: var(--paper-2); border: 1px solid var(--rule); font: 400 3.4rem/1 var(--display); color: var(--ink-2); }
.person h3 { font-size: 1.25rem; }
.person p { font-size: 0.93rem; color: var(--ink-2); }

.alumni { list-style: none; margin: 0; padding: 0; display: grid; }
.alum { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px 28px; padding-block: 24px; border-top: 1px solid var(--rule); }
.alum:last-child { border-bottom: 1px solid var(--rule); }
.alum img, .alum .monogram { width: 112px; aspect-ratio: 1; object-fit: cover; border-radius: 2px; font-size: 2.2rem; }
.alum .text { display: grid; gap: 6px; min-width: 0; }
.alum h3 { font-size: 1.3rem; }
.landing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.landing .label { color: var(--red); }
.landing strong { font-weight: 500; }
.diss { font-family: var(--display); font-style: italic; color: var(--ink-2); }
.small { font-size: 0.9rem; color: var(--ink-2); }

.placements { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; font-size: 0.95rem; color: var(--ink-2); }
.placements strong { color: var(--ink); font-weight: 500; }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); font-size: 0.92rem; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; padding-block: 48px 40px; }
.site-footer .col-a { grid-column: span 5; display: grid; gap: 12px; align-content: start; }
.site-footer .col-b { grid-column: span 4; display: grid; gap: 8px; align-content: start; }
.site-footer .col-c { grid-column: span 3; display: grid; gap: 12px; align-content: start; }
.site-footer address { font-style: normal; color: var(--ink-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.seal-line { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 1.15rem; }
.seal-line img { width: 40px; height: 40px; }
.sponsors { display: flex; gap: 16px; align-items: center; }
.sponsors img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.fineprint { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--rule); font: 0.74rem/1.6 var(--mono); color: var(--ink-2); }

@media (max-width: 900px) {
  .hero, .split, .project-row, .site-footer .wrap, .net-layout { grid-template-columns: minmax(0, 1fr); }
  .net-panel { position: static; }
  .hero-venn { max-width: 560px; }
  .hero-text, .hero-venn, .split > :first-child, .split > :last-child,
  .project-row .thumb-link, .project-row .text,
  .site-footer .col-a, .site-footer .col-b, .site-footer .col-c { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding-inline: 16px; }
  .brand img { height: 36px; }
  .nav { gap: 4px 16px; font-size: 0.9rem; }
  .hero { padding-block: 40px 32px; }
  .news li, .pub { grid-template-columns: 1fr; }
  .news .when { display: flex; gap: 12px; }
  .director { grid-template-columns: 1fr; }
  .director img { max-width: 240px; }
  .alum { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .alum img, .alum .monogram { width: 72px; font-size: 1.6rem; }
  .filters { position: static; }
  .net-figure { overflow-x: auto; margin-inline: -16px; padding-inline: 16px; }
  .net { min-width: 680px; }
}
.intro h1.label { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; }

/* Join page and calls to action */
.join { display: grid; gap: 40px; max-width: 44rem; padding-top: 24px; }
.join section { display: grid; gap: 12px; }
.join h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
.notice { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px; padding: 16px 20px; }
.topics { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.cta { display: grid; gap: 6px; max-width: 44rem; margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--ink); }
.cta-h { font: 500 1.35rem/1.25 var(--display); }

