/* The same role uses the same type scale on every page and in both languages. */
:root {
  --type-title: clamp(2.5rem, 1.8rem + 3.2vw, 4.35rem);
  --type-section: clamp(1.8rem, 1.35rem + 1.8vw, 2.85rem);
  --type-card: clamp(1.18rem, 1.01rem + .72vw, 1.55rem);
  --type-item: 1.063rem;
  --type-lead: clamp(1.045rem, .985rem + .33vw, 1.22rem);
  --type-body: 1rem;
  --type-label: .79rem;
  --type-meta: .86rem;
  --type-caption: .785rem;
}

/* Stronger than legacy section styles, including their small-screen variants. */
#main h1 {
  font: 600 var(--type-title)/1.13 var(--sans);
  letter-spacing: -.048em;
  margin: 0;
  overflow-wrap: break-word;
}
#main h2 {
  font: 600 var(--type-section)/1.2 var(--sans);
  letter-spacing: -.042em;
}
#main h3,
#main :where(.sci-resource, .sup-card, .sup-course, .credit-list li) h2,
#main :where(.life-news li) strong,
#main :where(.video-modal) h2 {
  font: 620 var(--type-card)/1.36 var(--sans);
  letter-spacing: -.025em;
}
#main h4 {
  font: 630 var(--type-item)/1.4 var(--sans);
  letter-spacing: -.014em;
}
#main :where(.page-intro) {
  padding-block: clamp(2.75rem, 5vw, 4.75rem) clamp(2rem, 3.7vw, 3.5rem);
}
#main :where(.hero-copy, .page-intro .wrap, .sci-project-grid > div) > h1 + p {
  font: 420 var(--type-lead)/1.65 var(--sans);
  letter-spacing: -.015em;
  margin-block: .9rem 0;
}
#main :where(.page-intro) h1 + p { max-width: 69ch; }
#main :where(.research-topic, .methods-body, .story-panel, .sci-detail-copy, .sci-resource, .life-track, .life-contact, .sup-content) > p,
#main :where(.topic-card, .sci-feature, .sup-card, .life-story-copy) p {
  font: 400 var(--type-body)/1.67 var(--sans);
}
#main :where(.eyebrow, .kicker, .sci-kicker, .life-label, .meta, .life-news small, .fp-metadata, .sup-date) {
  font: 620 var(--type-label)/1.5 var(--sans);
  letter-spacing: .035em;
}
#main :where(.sci-paper-row .sci-authors, .sci-paper-row .sci-venue, .sci-original, .sci-facts dt, .life-person p, .life-person small, .fp-author, .sup-code, .sup-key) {
  font: 480 var(--type-meta)/1.52 var(--sans);
}
#main :where(.paper-image-credit, .hero-figcap > span, .sci-optional figcaption) {
  font: 470 var(--type-caption)/1.48 var(--sans);
}
#main :where(.project-sponsor) { margin-top: .9rem; }

/* A persistent lab signature above each page title, independent of section metadata. */
#main .lab-identity {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .8rem;
  color: var(--green);
  font: 680 var(--type-label)/1.5 var(--sans);
  letter-spacing: .07em;
}
#main .lab-identity::before {
  content: "";
  display: block;
  width: 1.65rem;
  height: 2px;
  background: currentColor;
  flex: none;
  opacity: .75;
}
#main .hero .lab-identity { color: #c4dfc2; }
