:root {
  --bg: #f7f8f3;
  --surface: #ffffff;
  --ink: #1e2526;
  --muted: #60706b;
  --line: #d9ded6;
  --primary: #0f766e;
  --primary-dark: #0b4f4b;
  --accent: #d97706;
  --blue: #286f9d;
  --shadow: 0 24px 70px rgba(28, 45, 45, 0.12);
  --content-max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(247, 248, 243, 0.88);
  border-bottom: 1px solid rgba(217, 222, 214, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.3;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  color: #354240;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a[aria-current="page"] {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(72px, 11vw, 124px) clamp(20px, 5vw, 72px) clamp(48px, 8vw, 88px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--content-max), 100%);
  margin-right: auto;
  margin-left: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.3vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.lead {
  max-width: 670px;
  margin-bottom: 30px;
  color: #31413f;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button.primary {
  background: var(--primary-dark);
  color: #fff;
}

.button.secondary {
  border-color: rgba(30, 37, 38, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.section {
  padding: clamp(56px, 8vw, 88px) clamp(20px, 5vw, 72px);
}

.section:not(.split-section):not(.access-section) > * {
  max-width: var(--content-max);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1fr);
  column-gap: clamp(24px, 6vw, 80px);
  row-gap: 10px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.15;
}

.section-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

.section-heading.compact .eyebrow {
  margin-bottom: 10px;
}

.section-heading.compact h2 {
  margin-bottom: 0;
}

#program .section-heading h2,
#resources .section-heading h2 {
  white-space: nowrap;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.research-item {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(30, 37, 38, 0.06);
}

.research-item h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.3;
}

.research-item p,
.member-card p,
.publication-list p,
.contact-box p {
  color: var(--muted);
}

.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.program-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  background: #edf4f2;
  border: 1px solid rgba(15, 118, 110, 0.2);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.program-section,
.publications-section {
  background: #eef3f0;
}

.publications-section {
  box-shadow: 0 0 0 100vmax #eef3f0;
  clip-path: inset(0 -100vmax);
}

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

.subsection-title {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.25;
}

.member-card {
  display: block;
  min-height: 220px;
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(30, 37, 38, 0.06);
}

.member-link {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.member-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(28, 45, 45, 0.12);
}

.avatar {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 32px;
  place-items: center;
  background: #f2c46d;
  color: #1e2526;
  font-size: 24px;
  font-weight: 800;
}

.member-photo {
  display: block;
  object-fit: cover;
}

.member-card:nth-child(2) .avatar {
  background: #7bb4c7;
}

.member-card:nth-child(3) .avatar {
  background: #98c982;
}

.member-card:nth-child(4) .avatar {
  background: #e8a58d;
}

.member-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.member-card p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.member-card p:last-child {
  margin-bottom: 0;
}

.member-date {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.alumni-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.split-section {
  display: grid;
  max-width: var(--content-max);
  margin-right: auto;
  margin-left: auto;
  grid-template-columns: minmax(260px, 0.8fr) minmax(340px, 1.2fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: stretch;
}

.pi-hero ~ .split-section .section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

.pi-hero ~ .split-section {
  padding-top: clamp(44px, 6vw, 68px);
  padding-bottom: clamp(44px, 6vw, 68px);
  gap: clamp(24px, 5vw, 64px);
}

.pi-hero ~ .split-section .section-heading {
  margin-bottom: 0;
}

.pi-hero ~ .split-section .publication-list article {
  padding: 17px 0;
}

.publication-list,
.news-list {
  border-top: 1px solid var(--line);
}

.publication-list article,
.news-list article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.publication-list time,
.news-list time {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 800;
}

.publication-list h3 {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.4;
}

.publication-list h3 a {
  color: inherit;
}

.publication-list h3 a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.publication-more {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.publication-more:hover {
  background: var(--primary-dark);
  color: #fff;
}

.publication-list p {
  margin-bottom: 6px;
}

.publication-list p:last-child {
  margin-bottom: 0;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.resource-label {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.resource-card h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.3;
}

.resource-card p:not(.resource-label) {
  color: var(--muted);
}

.resource-card .resource-description {
  color: var(--ink);
}

.resource-subitems {
  display: grid;
  gap: 6px;
}

.resource-subitems p {
  margin-bottom: 0;
  color: var(--ink);
}

.related-publication {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.related-publication span {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.related-publication p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.resource-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  background: #edf4f2;
  border: 1px solid rgba(15, 118, 110, 0.24);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.resource-actions a:hover {
  background: var(--primary-dark);
  color: #fff;
}

.news-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
}

.news-list p {
  margin-bottom: 0;
}

.news-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 0;
}

.archive-card-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 6px;
}

.news-card-list .news-card {
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.news-card-list a.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(28, 45, 45, 0.12);
}

.news-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #dfe8e5;
}

.news-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-image.contain-image img {
  object-fit: contain;
  background: #fff;
}

.placeholder-image {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(217, 119, 6, 0.14)),
    linear-gradient(90deg, rgba(15, 118, 110, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(15, 118, 110, 0.12) 1px, transparent 1px),
    #edf3ef;
  background-size: auto, 18px 18px, 18px 18px, auto;
}

.news-copy {
  padding: 16px;
}

.news-copy time {
  margin-bottom: 10px;
}

.news-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.accordion {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-size: 20px;
  line-height: 1;
}

.accordion[open] summary::after {
  content: "-";
}

.accordion .archive-list,
.accordion .alumni-list {
  padding-bottom: 6px;
}

.grant-accordion {
  margin-top: 0;
  border-top: 0;
}

.grant-accordion summary {
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.grant-accordion .publication-list {
  border-top: 0;
}

.grant-accordion .publication-list article:first-child {
  padding-top: 12px;
}

.alumni-accordion {
  margin-top: 24px;
}

.archive-hero {
  padding-bottom: clamp(44px, 7vw, 72px);
}

.archive-list {
  max-width: 960px;
}

.access-section {
  background: #193d3a;
  color: #fff;
}

.access-inner {
  display: grid;
  max-width: var(--content-max);
  margin-right: auto;
  margin-left: auto;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 72px);
}

.access-section .eyebrow {
  color: #f2c46d;
}

.access-section p {
  color: rgba(255, 255, 255, 0.78);
}

.access-list {
  display: grid;
  gap: 30px;
}

.access-list h2 {
  margin-bottom: 10px;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.22;
}

.access-list p {
  margin-bottom: 0;
}

.contact-box {
  align-self: start;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-kicker {
  margin-bottom: 10px;
  color: #f2c46d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.email-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.email-list span {
  color: #f2c46d;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  background: #102523;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 700;
}

.pi-hero {
  position: relative;
  display: grid;
  max-width: calc(var(--content-max) + 144px);
  margin-right: auto;
  margin-left: auto;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 620px);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 72px) clamp(64px, 9vw, 104px);
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--ink);
  overflow: hidden;
}

.pi-hero-content {
  position: relative;
  z-index: 2;
  display: contents;
}

.pi-intro {
  max-width: 780px;
  grid-column: 1;
  grid-row: 1;
}

.pi-hero .eyebrow {
  color: var(--primary);
}

.pi-hero h1 {
  max-width: 100%;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
}

.pi-hero .lead {
  max-width: 720px;
  color: #31413f;
  font-size: clamp(16px, 1.55vw, 19px);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
}

.profile-links a {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, 0.32);
  text-underline-offset: 5px;
}

.profile-links a:hover {
  color: var(--primary);
  text-decoration-color: currentColor;
}

.pi-portrait {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  margin: 0;
  align-self: stretch;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(28, 45, 45, 0.12);
}

.pi-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  display: block;
  object-fit: cover;
  object-position: 45% top;
}

.pi-section {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .pi-hero {
    grid-template-columns: 1fr;
  }

  .pi-intro,
  .pi-portrait {
    grid-column: 1;
    grid-row: auto;
  }

  .pi-portrait {
    align-self: start;
    max-width: 760px;
  }

  .pi-photo {
    position: static;
    aspect-ratio: 3 / 2;
    height: auto;
  }

  .pi-hero h1 {
    white-space: normal;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding-top: 86px;
  }

  .hero,
  .pi-hero,
  .section-heading,
  .research-grid,
  .member-list,
  .alumni-list,
  .resource-list,
  .split-section,
  .news-list article,
  .news-card-list,
  .access-inner {
    grid-template-columns: 1fr;
  }

  .pi-hero h1 {
    white-space: normal;
  }

  .pi-portrait {
    max-width: 520px;
  }

  .research-item {
    min-height: auto;
  }

  .member-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand strong {
    max-width: 210px;
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .hero h1 span {
    white-space: normal;
  }

  #program .section-heading h2,
  #resources .section-heading h2 {
    white-space: normal;
  }

  .hero-actions,
  .pi-actions,
  .button {
    width: 100%;
  }

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

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

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 10px;
  }
}
