:root {
  --paper: #f8f5ea;
  --ink: #123023;
  --ink-soft: #4a6155;
  --forest: #173f2f;
  --on-forest: #f8f5ea;
  --on-forest-soft: #c3d4c8;
  --apricot: #f2b37a;
  --line: #d9d6c5;
  --monogram: #e5e7d6;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --gutter: 32px;
  --page: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }

a:hover { text-decoration-thickness: 2px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

.site-header, .hero, .trials, .hosts, .site-footer {
  width: min(100% - var(--gutter) * 2, var(--page));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 21px/1 var(--serif);
}

.brand-note {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font: 400 15px/1.3 var(--sans);
}

.site-header { padding-block: 28px; }

.hero { padding-block: 40px 56px; }

h1 {
  font-size: clamp(38px, 6.6vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: 34em;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.45;
}

.button {
  min-height: 44px;
  margin-top: 36px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 15px/1 var(--sans);
  cursor: default;
}

.trials {
  padding: 64px;
  border-radius: 20px;
  background: var(--forest);
  color: var(--on-forest);
}

.eyebrow {
  color: var(--apricot);
  font-size: 15px;
  font-weight: 500;
}

.trials h2 {
  max-width: 20em;
  margin-top: 10px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cohorts {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 40px;
}

/* --w is each cluster's drawn size. All three share one scale, so the dots stay comparable at every width. */
.cohort { --w: 98; margin: 0; }
.cohort-2 { --w: 164; }
.cohort-3 { --w: 496; }

.cohort img {
  display: block;
  width: calc(var(--w) * 0.7px);
  height: auto;
}

figcaption {
  display: flex;
  flex-direction: column;
  width: 190px;
  margin-top: 24px;
  color: var(--on-forest-soft);
  font-size: 15px;
  line-height: 1.4;
}

.cohort-3 figcaption { width: auto; }

figcaption strong {
  margin-bottom: 4px;
  color: var(--on-forest);
  font: 400 22px/1.2 var(--serif);
}

.cohort-3 figcaption strong { color: var(--apricot); }

.source {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgb(248 245 234 / 22%);
  color: var(--on-forest-soft);
  font-size: 14px;
}

.hosts { padding-block: 88px; }

.hosts h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.host-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.host { display: flex; align-items: center; gap: 24px; }

.monogram {
  display: grid;
  flex: none;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--monogram);
  font: 400 34px/1 var(--serif);
}

.host h3 { font-size: 28px; line-height: 1.2; }

.host p { color: var(--ink-soft); }

.host a {
  display: inline-block;
  margin-top: 6px;
  padding-block: 4px;
  font-size: 15px;
  font-weight: 500;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer .brand { color: var(--ink); font-size: 18px; }

@media (max-width: 1100px) {
  .trials { padding: 48px 32px; }
  .cohort img { width: calc(var(--w) * 0.6px); }
  figcaption { width: 150px; }
}

@media (max-width: 840px) {
  :root { --gutter: 16px; }

  .hero { padding-block: 24px 40px; }

  .lede { font-size: 18px; }

  .trials { padding: 36px 20px; }

  /* Phases I and II sit side by side above phase III, so the size comparison fits on one screen. */
  .cohorts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: end;
    gap: 28px 16px;
    margin-top: 32px;
  }

  .cohort-3 { grid-column: 1 / -1; }

  .cohort img { width: min(calc(var(--w) * 0.6px), calc((100vw - 72px) * var(--w) / 496)); }

  figcaption, .cohort-3 figcaption { width: auto; margin-top: 14px; }

  .hosts { padding-block: 56px; }

  .host-list { grid-template-columns: 1fr; gap: 28px; }

  .host a { padding-block: 13px; }

  .monogram { width: 84px; height: 84px; font-size: 30px; }

  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}
