.hf-friends-hero {
  background: linear-gradient(135deg, #123b33 0%, #214f54 100%);
  color: #fffaf0;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}

.hf-friends-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.hf-friends-title {
  max-width: 11ch;
  margin: 0 0 1.5rem;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.hf-friends-deck {
  max-width: 46rem;
  margin: 0 0 2rem;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.6;
}

.hf-friends-reassurance {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hf-friends-cover {
  margin: 0;
  justify-self: end;
  width: min(100%, 330px);
}

.hf-friends-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.28);
}

.hf-friends-heading {
  max-width: 54rem;
  margin-bottom: 2.5rem;
}

.hf-friends-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.hf-friends-card {
  position: relative;
  min-height: 17rem;
  padding: 2rem;
  border: 1px solid rgba(17, 58, 49, 0.15);
  border-radius: 1rem;
  background: #fffaf0;
}

.hf-friends-card h3 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.05;
}

.hf-friends-card p {
  margin-bottom: 0;
}

.hf-friends-number {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(17, 58, 49, 0.10);
}

.hf-friends-invite {
  background: #153f37;
  color: #fffaf0;
}

.hf-friends-invite__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.hf-friends-invite .hf-title,
.hf-friends-invite .hf-lede,
.hf-friends-invite__inner > div > p:not(.hf-kicker) {
  color: #fffaf0;
}

.hf-friends-invite .hf-title {
  max-width: 11ch;
}

.hf-friends-invite__action {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.hf-friends-fineprint {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
  opacity: 0.82;
}

.hf-friends-close {
  text-align: center;
}

.hf-friends-close .hf-title {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hf-friends-close .hf-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .hf-friends-hero__inner,
  .hf-friends-invite__inner {
    grid-template-columns: 1fr;
  }

  .hf-friends-cover {
    justify-self: center;
    width: min(100%, 300px);
  }

  .hf-friends-grid {
    grid-template-columns: 1fr;
  }

  .hf-friends-card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .hf-friends-hero {
    padding: 3.75rem 0;
  }

  .hf-friends-title {
    font-size: clamp(2.6rem, 13.8vw, 3.7rem);
  }

  .hf-friends-hero .hf-actions,
  .hf-friends-close .hf-actions {
    align-items: stretch;
  }

  .hf-friends-hero .hf-button,
  .hf-friends-close .hf-button {
    width: 100%;
    text-align: center;
  }
}
