.team-page {
  display: grid;
  min-height: 100svh;
  grid-template-rows: minmax(0, 1fr) auto;
}

.team-page main {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.team-header {
  display: flex;
  align-items: center;
  padding-block: clamp(7.5rem, 9vw, 8.5rem) clamp(3rem, 4vw, 4rem);
  background: var(--paper);
}

.team-header-layout {
  display: grid;
  grid-template-areas:
    "title title"
    "people image";
  grid-template-columns: minmax(0, 1fr) clamp(20rem, 30vw, 25rem);
  align-items: start;
  gap: clamp(1.8rem, 3.5vw, 3rem) clamp(2.5rem, 6vw, 5rem);
}

.team-title {
  grid-area: title;
}

.team-header h1 {
  max-width: none;
  font-size: clamp(3.1rem, 4.7vw, 4.6rem);
  white-space: nowrap;
}

.team-people {
  grid-area: people;
}

.team-people article {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.team-people article:first-child {
  padding-top: 0;
}

.team-people h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.person-role {
  margin-top: 0.35rem;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.team-site-image picture {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.team-site-image {
  grid-area: image;
}

.team-site-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.team-site-image figcaption {
  padding-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 1000px) {
  .team-header-layout {
    grid-template-columns: minmax(0, 1fr) clamp(17rem, 34vw, 21rem);
  }
}

@media (max-width: 760px) {
  .team-header-layout {
    grid-template-areas:
      "title"
      "people"
      "image";
    grid-template-columns: 1fr;
  }

  .team-header-layout {
    align-items: start;
    gap: 2.5rem;
  }

  .team-header h1 {
    white-space: normal;
  }

  .team-site-image {
    max-width: 24rem;
  }

  .team-site-image img {
    aspect-ratio: 16 / 9;
  }
}
