.community-hero {
  position: relative;
  min-height: min(700px, calc(100svh - var(--header-h)));
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  background: #201c19;
}

.community-hero picture,
.community-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.community-hero img {
  object-fit: cover;
  object-position: center 46%;
}

.community-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15, 13, 12, 0.58);
}

.community-hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 92px 22px;
  color: #fff;
}

.community-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: 3.9rem;
  line-height: 1.1;
  font-weight: 880;
}

.community-hero-content > p:last-child {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.community-intro,
.community-types {
  padding: 96px 22px;
}

.community-intro {
  background: var(--paper);
}

.community-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(44px, 8vw, 112px);
  align-items: start;
}

.community-intro h2,
.community-types h2,
.community-entry h2 {
  margin: 0;
  font-size: 2.7rem;
  line-height: 1.16;
  font-weight: 880;
}

.community-intro-copy {
  display: grid;
  gap: 18px;
}

.community-intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.community-types {
  background: var(--bg);
}

.community-types-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.community-type-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.community-type-list li {
  min-height: 128px;
  display: grid;
  grid-template-columns: 70px minmax(180px, 0.58fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.community-type-list .type-number {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.community-type-list h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.3;
}

.community-type-list p {
  margin: 0;
  color: var(--muted);
}

.community-entry {
  padding: 92px 22px;
  background: var(--black);
  color: #fff;
}

.community-entry-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}

.community-entry h2 {
  max-width: 760px;
}

.community-entry-copy > p:last-child {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.community-entry .button {
  min-width: 188px;
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.community-entry .button:hover,
.community-entry .button:focus-visible {
  background: transparent;
  color: #fff;
}

@media (max-width: 920px) {
  .community-hero {
    min-height: 660px;
  }

  .community-hero-content {
    padding: 76px 22px;
  }

  .community-hero h1 {
    font-size: 3.1rem;
  }

  .community-intro-grid,
  .community-entry-inner {
    grid-template-columns: 1fr;
  }

  .community-type-list li {
    grid-template-columns: 52px minmax(170px, 0.62fr) minmax(0, 1fr);
    gap: 20px;
  }

  .community-entry .button {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .community-hero {
    min-height: 590px;
  }

  .community-hero img {
    object-position: 56% center;
  }

  .community-hero-content {
    padding: 58px 20px;
  }

  .community-hero h1 {
    font-size: 2.58rem;
    line-height: 1.08;
  }

  .community-hero-content > p:last-child {
    font-size: 1rem;
  }

  .community-intro,
  .community-types,
  .community-entry {
    padding: 72px 18px;
  }

  .community-intro h2,
  .community-types h2,
  .community-entry h2 {
    font-size: 2rem;
  }

  .community-type-list li {
    min-height: auto;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 22px 0;
  }

  .community-type-list p {
    grid-column: 2;
  }

  .community-entry .button {
    width: 100%;
  }
}
