@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #101014;
  --muted: #6d6d76;
  --paper: #f7f7f5;
  --blue: #2563eb;
  --line: #dededb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}

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


/* ===== PAGE ===== */

.relay-page {
  min-height: 100vh;
}


/* ===== HEADER ===== */

.relay-header {
  padding: 4vh 7vw 3.5vh;
  border-bottom: 1px solid var(--line);
}

.header-title {
  max-width: 1250px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 60px;
}

.relay-header .eyebrow {
  margin: 0 0 12px;

  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;

  color: var(--blue);
}

.relay-header h1 {
  margin: 0;

  font-family: "Space Grotesk", Arial, sans-serif;

  font-size: 51px;
  line-height: 1;
  letter-spacing: -.055em;

  font-weight: 600;
}


/* ===== LOGO ===== */

.team-logo {
  width: 105px;
  height: 105px;

  object-fit: contain;

  flex-shrink: 0;
}


/* ===== PERMANENT STAFF ===== */

.permanent-staff {
  width: min(1100px, 88vw);

  margin: 0 auto;

  /* More space below the header */
  padding: 68px 0 50px;

  text-align: center;
}

.staff-title {
  margin: 0 0 13px;

  font-family: "Space Grotesk", Arial, sans-serif;

  font-size: 11px;
  letter-spacing: .17em;

  text-transform: uppercase;

  font-weight: 600;

  color: var(--muted);
}

.staff-names {
  margin: 0;

  font-family: "Space Grotesk", Arial, sans-serif;

  font-size: 19px;
  line-height: 1.5;

  letter-spacing: -.01em;

  font-weight: 500;
}

.staff-names span {
  color: var(--blue);

  margin: 0 9px;
}


/* ===== SUBTEAMS ===== */

.subteams {
  width: min(1250px, 88vw);

  margin: 0 auto;

  /* More space between researchers and images */
  padding: 45px 0 85px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  /* More separation between the two teams */
  gap: 90px;
}


/* ===== SUBTEAM ===== */

.subteam {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  transition: transform .3s ease;
}


/* ===== IMAGE ===== */

.subteam-image {
  width: 100%;
  height: 315px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  margin-bottom: 27px;
}

.subteam-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;

  transition: transform .45s ease;
}


/* ===== TITLE ===== */

.subteam h2 {
  margin: 0;

  font-family: "Space Grotesk", Arial, sans-serif;

  font-size: 30px;
  line-height: 1.1;

  letter-spacing: -.04em;

  font-weight: 600;

  transition: color .25s ease;
}


/* ===== HOVER ===== */

.subteam:hover {
  transform: translateY(-5px);
}

.subteam:hover .subteam-image img {
  transform: scale(1.025);
}

.subteam:hover h2 {
  color: var(--blue);
}


/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {

  .relay-header {
    padding: 55px 6vw 45px;
  }

  .relay-header h1 {
    font-size: 43px;
  }

  .team-logo {
    width: 90px;
    height: 90px;
  }

  .permanent-staff {
    padding-top: 55px;
    padding-bottom: 40px;
  }

  .subteams {
    gap: 60px;
    padding-top: 40px;
  }

  .subteam-image {
    height: 285px;
  }

  .subteam h2 {
    font-size: 27px;
  }
}


@media (max-width: 680px) {

  .header-title {
    gap: 25px;
  }

  .relay-header {
    padding: 50px 6vw 40px;
  }

  .relay-header h1 {
    font-size: 38px;
  }

  .team-logo {
    width: 75px;
    height: 75px;
  }

  .permanent-staff {
    padding-top: 50px;
    padding-bottom: 35px;
  }

  .staff-names {
    font-size: 17px;
  }

  .subteams {
    grid-template-columns: 1fr;

    width: 88vw;

    gap: 65px;

    padding-top: 35px;
  }

  .subteam-image {
    height: 300px;
  }
}


@media (max-width: 480px) {

  .relay-header {
    padding: 45px 6vw 35px;
  }

  .relay-header h1 {
    font-size: 34px;
  }

  .relay-header .eyebrow {
    font-size: 10px;
  }

  .team-logo {
    width: 65px;
    height: 65px;
  }

  .permanent-staff {
    padding-top: 45px;
    padding-bottom: 30px;
  }

  .staff-names {
    font-size: 16px;
    line-height: 1.8;
  }

  .staff-names span {
    margin: 0 5px;
  }

  .subteams {
    padding-top: 30px;
  }

  .subteam-image {
    height: 250px;
    margin-bottom: 23px;
  }

  .subteam h2 {
    font-size: 24px;
  }
}

