.blog-author-profile {
  display: grid;
  grid-template-columns: minmax(22rem, 30rem) 1fr;
  gap: 4rem;
  align-items: start;
  margin: 0 0 6rem;
  padding: 3rem;
  border: 1px solid #dcefe4;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 1.2rem 3rem rgba(64, 64, 64, .1);
}

.blog-author-profile__photo {
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 3 / 4;
  border: .3rem solid #7fcf9a;
  border-radius: 1.2rem;
  background: #edf8f1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-author-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.blog-author-profile__photo span {
  font-size: 5.2rem;
  font-weight: 900;
  color: #42985f;
}

.blog-author-profile__content {
  min-width: 0;
}

.blog-author-profile__back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.4rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: #42985f !important;
  border-bottom: .2rem solid rgba(66, 152, 95, .35);
}

.blog-author-profile__title {
  margin: 0 0 1.6rem;
  font-size: 3.6rem;
  line-height: 1.08;
  font-weight: 900;
  color: #404040;
  overflow-wrap: anywhere;
}

.blog-author-profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2rem;
}

.blog-author-profile__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 3.4rem;
  padding: .6rem 1.2rem;
  border-radius: .6rem;
  background: #edf8f1;
  border: 1px solid #bde4ca;
  font-size: 1.5rem;
  font-weight: 700;
  color: #404040;
}

.blog-author-profile__meta span:first-child {
  background: #42985f;
  border-color: #42985f;
  color: #fff;
}

.blog-author-profile__summary {
  margin: 0 0 2rem;
  max-width: 78rem;
  font-size: 1.9rem;
  line-height: 1.5;
  font-weight: 500;
  color: #404040;
}

.blog-author-profile__details {
  max-width: 86rem;
  padding-top: 2.4rem;
  border-top: 1px solid #dcefe4;
}

.blog-author-profile__details h2 {
  margin: 2.8rem 0 1.2rem;
  font-size: 2.3rem;
  line-height: 1.2;
  font-weight: 900;
  color: #404040;
}

.blog-author-profile__details h2:first-child {
  margin-top: 0;
}

.blog-author-profile__details p {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  line-height: 1.55;
  color: #404040 !important;
}

.blog-author-profile__details br + h2 {
  margin-top: 3rem;
}

.blog-author-profile + .article__title {
  margin-top: 0;
}

.blog-author-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  margin: 0 0 5rem;
  padding: 2.6rem 3rem;
  border: 1px solid #dcefe4;
  border-radius: 1.2rem;
  background: #edf8f1;
}

.blog-author-invite__title {
  margin: 0 0 1rem;
  font-size: 2.6rem;
  line-height: 1.2;
  font-weight: 900;
  color: #404040;
}

.blog-author-invite__text {
  max-width: 86rem;
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.55;
  color: #404040 !important;
}

.blog-author-invite__text a {
  font-weight: 900;
  color: #42985f !important;
  border-bottom: .2rem solid rgba(66, 152, 95, .35);
}

.blog-author-invite__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.8rem;
  padding: 1.2rem 2rem;
  border-radius: .8rem;
  background: #42985f;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff !important;
  white-space: nowrap;
}

.blog-author-invite__link:hover {
  background: #34794c;
  color: #fff !important;
}

@media only screen and (max-width: 860px) {
  .blog-author-profile {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding: 2.4rem;
  }

  .blog-author-profile__photo {
    max-width: 22rem;
    aspect-ratio: 1 / 1;
  }

  .blog-author-invite {
    align-items: flex-start;
    flex-direction: column;
    padding: 2.4rem;
  }
}

@media only screen and (max-width: 500px) {
  .blog-author-profile {
    margin-bottom: 4rem;
    padding: 1.6rem;
    border-radius: .8rem;
  }

  .blog-author-profile__photo {
    max-width: 16rem;
    border-radius: .8rem;
  }

  .blog-author-profile__title {
    font-size: 2.8rem;
  }

  .blog-author-profile__summary,
  .blog-author-profile__details p {
    font-size: 1.6rem;
  }

  .blog-author-profile__details h2 {
    font-size: 2rem;
  }

  .blog-author-invite {
    margin-bottom: 3.2rem;
    padding: 1.6rem;
    border-radius: .8rem;
  }

  .blog-author-invite__title {
    font-size: 2.2rem;
  }

  .blog-author-invite__text {
    font-size: 1.6rem;
  }

  .blog-author-invite__link {
    width: 100%;
  }
}
