:root {
  color-scheme: light;
  --ink: #151512;
  --muted: #5e645f;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --line: #dad4c7;
  --teal: #0b6f72;
  --teal-dark: #064a4e;
  --coral: #d85d4d;
  --gold: #d2a331;
  --sage: #788b6b;
  --shadow: 0 18px 55px rgba(21, 21, 18, 0.12);
  --max: 1180px;
  --radius: 8px;
  --font-sans: "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-main: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(11, 111, 114, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal);
  text-decoration-color: currentColor;
}

.skip-link {
  background: var(--ink);
  color: var(--surface);
  left: 1rem;
  padding: 0.65rem 0.9rem;
  position: fixed;
  top: -5rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  background: rgba(251, 250, 245, 0.92);
  border-bottom: 1px solid rgba(218, 212, 199, 0.84);
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  min-height: 76px;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.site-mark {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  min-width: max-content;
  text-decoration: none;
}

.site-mark__symbol {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 850;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.site-mark strong,
.site-mark small {
  display: block;
}

.site-mark strong {
  font-size: 1.02rem;
  line-height: 1.1;
}

.site-mark small {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.12rem;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
}

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

.hero {
  background-image:
    linear-gradient(90deg, rgba(10, 10, 8, 0.78) 0%, rgba(10, 10, 8, 0.5) 42%, rgba(10, 10, 8, 0.12) 76%, rgba(10, 10, 8, 0.22) 100%),
    url("assets/lab-hero.jpeg");
  background-position: center;
  background-size: cover;
  color: var(--surface);
  isolation: isolate;
  min-height: 70svh;
  position: relative;
}

@supports (background-image: image-set(url("assets/lab-hero.webp") type("image/webp"))) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(10, 10, 8, 0.78) 0%, rgba(10, 10, 8, 0.5) 42%, rgba(10, 10, 8, 0.12) 76%, rgba(10, 10, 8, 0.22) 100%),
      image-set(
        url("assets/lab-hero.webp") type("image/webp"),
        url("assets/lab-hero.jpeg") type("image/jpeg")
      );
  }
}

.hero__overlay {
  background: rgba(12, 74, 78, 0.1);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hero__content {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(4rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem) clamp(2.4rem, 5vw, 3.25rem);
}

.eyebrow,
.section-kicker,
.person-card__role,
.publication-year,
.news-list time {
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f3c55c;
  margin: 0 0 0.8rem;
}

.hero .eyebrow,
.hero h1,
.hero__lede,
.fact-strip {
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.26);
}

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

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(4.3rem, 9.2vw, 7.6rem);
  line-height: 0.92;
  margin-bottom: 1rem;
  max-width: none;
  white-space: nowrap;
}

h2 {
  font-size: clamp(2.15rem, 3.8vw, 3.55rem);
  line-height: 1.02;
}

h3 {
  font-size: clamp(1.16rem, 1.55vw, 1.34rem);
  line-height: 1.16;
}

.hero__lede {
  font-size: clamp(1.14rem, 1.8vw, 1.48rem);
  line-height: 1.42;
  max-width: 740px;
}

.hero__actions,
.contact-actions,
.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  font-size: 0.96rem;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.button--primary {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff8f2;
}

.button--primary:hover {
  background: #bf4438;
  color: #fff8f2;
}

.button--secondary {
  background: transparent;
  color: currentColor;
}

.hero .button--secondary {
  color: #fff8f2;
}

.fact-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: clamp(1.8rem, 3.8vw, 2.8rem) 0 0;
  max-width: 900px;
  padding-left: 0;
  padding-top: 1.15rem;
}

.fact-strip li,
.fact-strip span {
  margin: 0;
}

.fact-strip li {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
}

.fact-strip span {
  color: #f3c55c;
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.22rem;
  text-transform: uppercase;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
}

.section__inner {
  margin: 0 auto;
  max-width: var(--max);
}

.section--intro {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  padding-top: clamp(2.75rem, 5vw, 4rem);
}

.intro-grid {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
}

.intro-copy {
  color: #373a36;
  font-size: clamp(1.08rem, 1.45vw, 1.24rem);
}

.intro-copy p:last-child,
.section-summary:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  gap: 0.65rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 760px;
}

.section-kicker {
  margin-bottom: 0;
}

.section-summary {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 660px;
}

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

.research-card,
.person-card,
.publication-list li,
.news-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.research-card {
  min-height: 280px;
  padding: 1.15rem;
}

.research-card__index {
  color: var(--teal);
  display: block;
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
  margin-bottom: 2.2rem;
}

.research-card h3 {
  margin-bottom: 0.8rem;
}

.research-card p,
.person-card p,
.news-list p {
  color: var(--muted);
  font-size: 1rem;
}

.section--people {
  background:
    linear-gradient(180deg, rgba(120, 139, 107, 0.14), rgba(251, 250, 245, 0) 58%),
    var(--paper);
  border-top: 1px solid var(--line);
}

.people-layout {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
}

.person-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.person-card picture,
.person-card img {
  height: 100%;
  min-height: 440px;
}

.person-card img {
  object-fit: cover;
  object-position: center 18%;
  width: 100%;
}

.person-card__body {
  padding: clamp(1.35rem, 4vw, 2.6rem);
}

.person-card__role {
  margin-bottom: 0.7rem;
}

.person-links {
  margin-top: 1.5rem;
}

.person-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.94rem;
  font-weight: 800;
  padding: 0.48rem 0.72rem;
  text-decoration: none;
}

.publication-layout {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 1fr);
}

.section-heading--sticky {
  position: sticky;
  top: 108px;
}

.publication-list {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.publication-list li {
  padding: 1.05rem 1.15rem;
}

.publication-list p {
  margin: 0.3rem 0 0.35rem;
}

.publication-list a {
  color: var(--teal-dark);
  font-size: 0.96rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.section--news {
  background: #f1f5f0;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.news-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-list article {
  padding: 1.05rem;
}

.news-list time {
  color: var(--teal);
}

.news-list h3 {
  margin: 0.85rem 0 0.55rem;
}

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

.section--contact {
  background: var(--ink);
  color: var(--surface);
}

.contact-panel {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.section--contact .section-kicker {
  color: #f3c55c;
}

.section--contact p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.1rem;
  max-width: 700px;
}

.site-footer {
  align-items: center;
  background: #0f110e;
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff8f2;
}

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

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

  .intro-grid,
  .people-layout,
  .publication-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section-heading--sticky {
    position: static;
  }

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

@media (max-width: 680px) {
  .site-header {
    gap: 0.8rem;
    min-height: auto;
    padding: 0.8rem 1rem;
  }

  .site-nav {
    display: grid;
    gap: 0.35rem 0.75rem;
    grid-template-columns: repeat(5, max-content);
  }

  .site-nav a {
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-bottom: 2rem;
    padding-top: 3rem;
  }

  h1 {
    font-size: 3.8rem;
  }

  .hero__lede {
    font-size: 1.04rem;
  }

  .hero__actions {
    gap: 0.55rem;
  }

  .button {
    font-size: 0.92rem;
    min-height: 42px;
    padding: 0.65rem 0.78rem;
  }

  .fact-strip {
    gap: 0.65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.5rem;
    padding-top: 0.9rem;
  }

  .fact-strip li {
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .fact-strip span {
    font-size: 0.7rem;
  }

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

  .person-card picture,
  .person-card img {
    max-height: 480px;
    min-height: 0;
  }

  .section {
    padding-bottom: 3.5rem;
    padding-top: 3.5rem;
  }
}
