.community-discovery,
.community-team {
  width: min(1044px, calc(100% - 56px));
}

.discovery-route .community-discovery {
  align-content: start;
  gap: 38px;
  padding-block: clamp(82px, 14vh, 144px) clamp(56px, 10vh, 104px);
}

.discovery-intro,
.team-intro {
  position: relative;
  text-align: center;
}

.discovery-intro {
  isolation: isolate;
  display: grid;
  justify-items: center;
  padding-block: 22px;
}

.discovery-mark {
  position: absolute;
  z-index: -1;
  inset: 50% auto auto 50%;
  width: min(440px, 80vw);
  height: auto;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  filter: hue-rotate(-48deg);
  mask-image: radial-gradient(ellipse, black 20%, transparent 71%);
  opacity: .25;
  pointer-events: none;
}

.discovery-intro h1,
.team-intro h1 {
  margin: 0;
  color: #f4eeff;
  font-family: Inter, system-ui, sans-serif;
  background-image: linear-gradient(180deg, #fff 30%, #c9beff);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.discovery-intro h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 740;
  letter-spacing: -.075em;
  line-height: .99;
}

.discovery-intro p,
.team-intro > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .97rem;
}

.community-server {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(620px, 100%);
  justify-self: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgb(221 199 255 / .17);
  border-radius: 20px;
  background: linear-gradient(165deg, rgb(30 22 51 / .88), rgb(15 11 25 / .87));
  box-shadow: 0 20px 48px rgb(0 0 0 / .28);
}

.community-server-icon {
  border-radius: 15px;
  filter: hue-rotate(-48deg);
}

.community-server h2 {
  margin: 0 0 3px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.13rem;
  font-weight: 720;
  letter-spacing: -.03em;
}

.community-server-info > p:not(.sr-only) {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: .88rem;
}

.community-population {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--muted);
  font-size: .82rem;
}

.community-population strong {
  color: var(--ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.community-server > .pill {
  justify-self: end;
  align-self: center;
  white-space: nowrap;
}

.team-route .community-team {
  padding-block: 116px 92px;
}

.team-intro {
  margin-bottom: 56px;
}

.team-intro .eyebrow {
  justify-content: center;
  margin: 0 0 14px;
}

.team-intro h1 {
  font-size: clamp(2.125rem, 5vw, 3.625rem);
  font-weight: 620;
  letter-spacing: -.043em;
  line-height: 1.08;
}

.community-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.community-team-card {
  --team-glow: #9f83ff;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(222 201 255 / .14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgb(23 17 44 / .93), rgb(12 9 22 / .96));
  box-shadow: 0 1px 0 rgb(255 255 255 / .07) inset, 0 24px 60px rgb(0 0 0 / .36);
  transition: transform .3s ease, border-color .3s ease;
}

.community-team-card:nth-child(2) { --team-glow: #cb92ff; }
.community-team-card:nth-child(3) { --team-glow: #8389ff; }

.community-team-card:focus-within,
.community-team-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--team-glow) 45%, transparent);
}

.community-team-banner {
  position: relative;
  height: 122px;
  border-bottom: 1px solid rgb(191 164 236 / .08);
  background:
    linear-gradient(180deg, transparent 12%, #171127 100%),
    radial-gradient(ellipse at 25% 18%, color-mix(in srgb, var(--team-glow) 42%, #151024), transparent 64%),
    #201634;
}

.community-team-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 24px 23px;
}

.community-team-mark {
  width: 86px;
  height: 86px;
  margin-top: -48px;
  margin-bottom: 13px;
  border: 4px solid #151023;
  border-radius: 50%;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--team-glow) 42%, transparent), 0 10px 22px #070611b8;
  object-fit: cover;
  filter: hue-rotate(-48deg);
}

.community-team-body h2 {
  margin: 0 0 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.community-team-body p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: .92rem;
}

.community-team-body a {
  margin-top: auto;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 650;
  text-decoration-line: underline;
  text-decoration-color: var(--team-glow);
  text-underline-offset: .26em;
}

@media (max-width: 900px) {
  .community-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .community-discovery,
  .community-team {
    width: calc(100% - 40px);
  }

  .discovery-route .community-discovery {
    gap: 24px;
    padding-block: 60px;
  }

  .team-route .community-team {
    padding-block: 72px 60px;
  }

  .team-intro { margin-bottom: 35px; }

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

  .community-server {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
  }

  .community-server > .pill {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-team-card {
    transition: none;
  }

  .community-team-card:focus-within,
  .community-team-card:hover {
    transform: none;
  }
}
