/* Homepage sections */

.header {
  width: min(92%, 960px);
}

.header-avatar img {
  display: block;
  width: clamp(120px, 32vw, 183px);
  height: auto;
  margin: 0 auto;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 1rem auto;
}

.header-links .link {
  margin: 0;
}

.home-section {
  width: 90%;
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
}

.home-section + .home-section {
  margin-top: 4rem;
}

.home-section > .user-details > p {
  max-width: 860px;
  margin: 1rem auto;
  font-size: 1.25rem;
  line-height: 1.65;
}

#team {
  text-align: center;
}

.team-group {
  margin-top: 2.75rem;
}

.team-group h2 {
  margin: 0 0 1.5rem;
  padding: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  align-items: start;
}

.team-member {
  box-sizing: border-box;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  text-align: center;
}

.team-avatar {
  display: flex;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 50%;
}

.team-member h3 {
  margin: 0.9rem 0 0.3rem;
  padding: 0;
  font-size: 1rem;
}

.team-member p {
  margin: 0.25rem 0;
}

.team-role {
  color: #333;
  font-weight: 600;
}

.team-period {
  color: #777;
  font-size: 0.9rem;
}

.team-topic {
  margin-top: 0.65rem !important;
  line-height: 1.45;
}

@media only screen and (max-width: 549px) {
  .header {
    width: 92%;
  }

  .header .site-title {
    font-size: clamp(2.75rem, 13vw, 3.25rem);
    line-height: 1.05;
  }

  .header .site-description {
    margin-top: 0.75rem;
    font-size: clamp(1.125rem, 5vw, 1.35rem);
    line-height: 1.25;
  }

  .header-links {
    gap: 0.4rem 0.8rem;
  }

  .header-links .link {
    font-size: 1rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media only screen and (min-width: 550px) {
  .home-section {
    width: 80%;
  }
}

@media only screen and (min-width: 1200px) {
  .home-section > .user-details > p {
    font-size: 1.5rem;
  }
}
