/* Home — meet the team */

.team {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2.5rem);
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.team__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.team__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-ink);
}

.team__intro {
  margin: 0 auto 2rem;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  color: var(--color-ink-muted);
}

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

@media (min-width: 40rem) {
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team__item {
  display: flex;
}

.team__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgb(10 10 10 / 0.04);
}

.team__media {
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #e7e5e4;
}

.team__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.25rem;
  text-align: left;
}

.team__name {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.team__role {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold-deep);
}

.team__summary {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-ink-muted);
}

.team__summary p {
  margin: 0 0 0.5rem;
}

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

.team__channels {
  margin: 0;
  margin-top: auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.team__channel {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.team__channel--wechat {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.team__channel-label {
  flex-shrink: 0;
  min-width: 4.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.team__channel-value {
  color: var(--color-ink-muted);
}

.team__channel-value strong {
  font-weight: 700;
  color: var(--color-ink);
  word-break: break-all;
}

.team__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.team__link:hover {
  color: var(--color-accent-hover);
}

.team__link:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 0.2rem;
}
