/* ── Design tokens ── */
:root {
  --bg: #f4efe7;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --surface: #fffaf4;
  --line: rgba(31, 41, 55, 0.12);
  --ink: #16202a;
  --muted: #4c5a66;
  --accent: #285f87;
  --accent-soft: #d9e8f1;
  --warm: #c46c38;
  --shadow: 0 18px 50px rgba(25, 35, 45, 0.09);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 999px;
}

/* ── Reset ── */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(40, 95, 135, 0.13), transparent 32%),
    radial-gradient(circle at top right, rgba(196, 108, 56, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f2ea 0%, #efe7dc 100%);
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

code {
  font-family: "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.92em;
}

/* ── Typography ── */
h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  max-width: 28ch;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.eyebrow,
.card-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 12px;
}

/* ── Shared text styles ── */
.lede,
.hero-caption,
.author-affiliations,
.info-card p,
.paper-card p,
.task-copy p,
.stack-card p,
.protocol-card p,
.pipeline-step p,
.support-panel p,
.resource-card p {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 62ch;
  font-size: 1.02rem;
  margin: 22px 0 24px;
}

.footnote {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  white-space: nowrap;
}

.footnote-marker {
  font-size: 0.9rem;
  color: var(--warm);
  font-weight: 700;
}
