:root {
  --ink: #000;
  --paper: #fff;
  --navy: #171b36;
  --header-bg: var(--navy);
  --link-blue: #2536a2;
  --muted: #4c4c4c;
  --rule: #dedede;
  --max-width: 1180px;
  --wide-width: 1500px;
  --page-pad: clamp(24px, 4vw, 64px);
  --publication-row-padding: 30px; /* Adjust publication item spacing here. */
  --funding-row-padding: 38px; /* Adjust funding item spacing here. */
  --heading-font: "ltc-bodoni-175", "Bodoni 72", Didot, "Bodoni MT", Georgia, "Times New Roman", serif;
  --body-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body-font);
  font-size: 17.6px;
  font-weight: 300;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.08em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  color: #fff;
}

.header-inner {
  width: min(var(--wide-width), 100%);
  margin: 0 auto;
  padding: 28px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  color: #fff;
  font-family: var(--heading-font);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.19em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
}

.site-nav a {
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

main {
  flex: 1 0 auto;
  min-height: 65vh;
}

.page-section {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 90px) var(--page-pad);
}

.page-section.wide {
  width: min(var(--wide-width), 100%);
}

.page-title {
  margin: 0 0 34px;
  font-family: var(--heading-font);
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 500;
  line-height: 1.18;
  text-align: center;
}

.lede {
  margin: 0 auto;
  max-width: 980px;
  font-family: var(--heading-font);
  font-size: clamp(25px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.34;
  text-align: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid currentColor;
  color: #fff;
  background: var(--navy);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.button.secondary {
  color: #000;
  background: #fff;
}

.hero {
  min-height: calc(100vh - 88px);
  padding: clamp(96px, 14vw, 180px) var(--page-pad);
  display: grid;
  align-items: center;
  background-position: center;
  background-size: cover;
  color: #fff;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.hero-content {
  position: relative;
  width: min(820px, 100%);
  margin-left: max(0px, calc((100vw - var(--wide-width)) / 2));
}

.hero h1 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.2;
}

.home-intro {
  display: grid;
  gap: 48px;
}

.home-intro h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(31px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.33;
}

.home-intro p {
  margin: 0;
  max-width: 850px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.42;
}

.split-row {
  display: grid;
  grid-template-columns: minmax(220px, 38%) 1fr;
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.split-row + .split-row {
  margin-top: 72px;
}

.split-row.reverse {
  grid-template-columns: 1fr minmax(220px, 38%);
}

.split-row.reverse .split-image {
  order: 2;
}

.split-text h2 {
  margin: 0 0 18px;
  font-family: var(--heading-font);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.22;
}

.split-text p {
  margin: 0;
  font-size: 18px;
}

.team-list {
  display: grid;
  gap: 48px;
}

.person-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.person-row img,
.alumni-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.person-row h2,
.person-row h3,
.alumni-card h3 {
  margin: 0 0 12px;
  font-family: var(--heading-font);
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.2;
}

.person-row p,
.alumni-card p {
  margin: 0 0 10px;
}

.person-row .bio-notes {
  margin: 14px 0 0 40px;
  line-height: 1.35;
}

.lab-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}

.lab-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 28px;
}

.alumni-card {
  max-width: 220px;
  justify-self: center;
}

.alumni-card img {
  width: min(170px, 100%);
  margin: 0 auto;
}

.alumni-card h3 {
  margin-top: 18px;
  font-size: 22px;
}

.publication-list {
  width: min(var(--wide-width), 100%);
  margin: 0 auto;
  padding: 0 var(--page-pad) 72px;
}

.publication-item {
  display: grid;
  grid-template-columns: 37.5% 1fr;
  gap: clamp(34px, 5vw, 66px);
  align-items: start;
  padding-top: var(--publication-row-padding);
  padding-bottom: var(--publication-row-padding);
}

.publication-item img {
  width: 100%;
  object-fit: contain;
}

.publication-item h2 {
  margin: 0 0 28px;
  font-family: var(--heading-font);
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 500;
  line-height: 1.22;
}

.publication-item h2 a {
  color: var(--link-blue);
}

.publication-item p {
  margin: 0 0 17px;
  font-size: 18px;
}

.publication-item em {
  font-style: italic;
}

.funding-list {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 4.5vw, 58px) var(--page-pad) 20px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "hartwell hartwell hartwell starr starr starr"
    "dp5 dp5 nhlbi nhlbi nhlbi nhlbi"
    "burroughs burroughs burroughs pew pew pew";
  grid-template-rows: 132px 214px 158px;
  gap: clamp(18px, 2vw, 24px);
}

.funding-item {
  --logo-width: 360px;
  --logo-height: 110px;
  min-height: 160px;
  padding: clamp(14px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.funding-item img {
  width: min(100%, var(--logo-width));
  height: var(--logo-height);
  object-fit: contain;
  object-position: center;
}

.funding-item--hartwell {
  --logo-width: 560px;
  --logo-height: 70px;
  grid-area: hartwell;
}

.funding-item--dp5 {
  --logo-width: 180px;
  --logo-height: 224px;
  grid-area: dp5;
}

.funding-item--burroughs {
  --logo-width: 300px;
  --logo-height: 148px;
  grid-area: burroughs;
}

.funding-item--starr {
  --logo-width: 650px;
  --logo-height: 118px;
  grid-area: starr;
  padding-inline: 0;
}

.funding-item--nhlbi {
  --logo-width: 560px;
  --logo-height: 124px;
  grid-area: nhlbi;
}

.funding-item--pew {
  --logo-width: 430px;
  --logo-height: 150px;
  grid-area: pew;
}

.funding-note {
  padding-top: 44px;
  padding-bottom: 88px;
  text-align: center;
}

.news-list {
  display: grid;
  gap: 38px;
}

.news-item {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}

.news-item h2 {
  margin: 0 0 12px;
  font-family: var(--heading-font);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.25;
}

.news-item ul {
  margin: 0;
  padding-left: 22px;
}

.news-item img {
  max-width: 520px;
  margin-bottom: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(380px, 6fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.contact-grid > div:first-child {
  max-width: 600px;
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 2px solid var(--link-blue);
}

.contact-grid h1 {
  margin: 0 0 28px;
  font-family: var(--heading-font);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.05;
}

.contact-grid p {
  margin: 0 0 20px;
  max-width: 580px;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
}

.contact-grid a {
  color: var(--link-blue);
}

.contact-grid img {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid var(--rule);
  background: #fff;
}

.site-footer {
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  margin-top: 40px;
}

.footer-inner {
  width: min(var(--wide-width), 100%);
  margin: 0 auto;
  padding: 52px var(--page-pad);
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.site-footer h2 {
  margin: 0 0 10px;
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: 500;
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-style: normal;
}

@media (max-width: 860px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .split-row,
  .split-row.reverse,
  .person-row,
  .publication-item,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split-row.reverse .split-image {
    order: 0;
  }

  .alumni-grid,
  .lab-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publication-item {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .funding-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: none;
    grid-template-rows: none;
  }

  .funding-item,
  .funding-item--hartwell,
  .funding-item--dp5,
  .funding-item--burroughs,
  .funding-item--starr,
  .funding-item--nhlbi,
  .funding-item--pew {
    grid-column: auto;
    grid-row: auto;
    grid-area: auto;
  }

  .funding-item {
    min-height: 124px;
  }

  .contact-grid > div:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .alumni-grid,
  .lab-photos {
    grid-template-columns: 1fr;
  }

  .funding-list {
    grid-template-columns: 1fr;
  }
}
