.archive-page--author .author-profile {
  min-height: 570px;
  background-color: #050505;
  background-image: linear-gradient(rgba(0, 0, 0, .95), rgba(0, 0, 0, .95)), url('../images/author/profile-background.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

@media (min-width: 768px) {
  .main-header--author,
  .archive-page--author .author-profile {
    background-color: #050505;
    background-image: linear-gradient(rgba(0, 0, 0, .95), rgba(0, 0, 0, .95)), url('../images/author/profile-background.webp');
    background-size: 100% 100%, max(100vw, 1200px) auto;
    background-repeat: no-repeat;
  }

  .main-header--author { background-position: center top, center top; }
  .archive-page--author .author-profile {
    display: flex;
    align-items: center;
    background-position: center top, center -92px;
  }
}

.author-profile__inner {
  position: relative;
  width: min(100% - 48px, 1366px);
  margin-inline: auto;
  padding: 68px 10px;
}

.author-profile__top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 50px;
}

.author-profile__identity {
  display: flex;
  align-items: center;
  gap: 26px;
}

.author-profile__portrait,
.author-profile__portrait img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.author-profile__portrait { overflow: hidden; flex: 0 0 auto; background: #035eac; }
.author-profile__portrait img { object-fit: cover; }

.author-profile__identity-copy h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.4;
}

.author-profile__identity-copy p {
  margin: 0;
  color: #c6c6c6;
  font-size: 14px;
  line-height: 1.8;
}

.author-profile__stats {
  display: flex;
  align-items: flex-start;
  gap: 78px;
  margin-top: 15px;
  padding-inline: 22px;
}

.author-profile__stat { display: grid; gap: 8px; text-align: center; }
.author-profile__stat strong { color: #fff; font-size: 18px; font-weight: 700; line-height: 1.2; }
.author-profile__stat span { color: #a6a6a6; font-size: 11px; line-height: 1.5; }

.author-profile__bio {
  max-width: 940px;
  margin: 15px 146px 0 auto;
  color: #d1d1d1;
  font-size: 15px;
  line-height: 1.9;
  text-align: right;
}

.author-profile__bio p { margin: 0 0 16px; }
.author-profile__bio p:last-child { margin-bottom: 0; }

.author-profile__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 25px;
  margin-right: 146px;
}

.author-profile__reactions { position: absolute; top: 202px; right: 34px; display: flex; align-items: center; gap: 14px; color: #d9d9d9; }
.author-profile__reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.author-profile__reaction svg { display: block; }
.author-profile__reaction:hover:not(:disabled),
.author-profile__reaction.is-selected { color: #fff; }
.author-profile__reaction:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.author-profile__reaction:disabled { cursor: default; }
.author-profile__reaction:disabled:not(.is-selected) { opacity: .65; }
.author-profile__feedback { margin: 0; color: #d1d1d1; font-size: 12px; }
.author-profile__feedback:empty { display: none; }
.author-profile__feedback:not(:empty) { margin: 12px 146px 0 auto; }

.author-profile__social { display: flex; align-items: center; gap: 12px; }
.author-profile__social > a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.17);
  color: #d5d5d5;
  text-decoration: none;
}
.author-profile__social > a[href]:hover,
.author-profile__social > a[href]:focus-visible { border-color: rgba(255,255,255,.55); color: #fff; }
.author-profile__social > a[href]:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.author-profile__social svg { width: 20px; height: 20px; }

.archive-page--author .archive-shell__container { padding-top: 55px; }
.archive-page--author .archive-content__heading { min-height: 72px; }
.archive-page--author .archive-content__title { font-size: 29px; }

@media (max-width: 767px) {
  .archive-page--author .author-profile { min-height: 0; background-position: center center; }
  .author-profile__inner { width: 100%; padding: 35px 13px 45px; }
  .author-profile__top { display: block; }
  .author-profile__identity { gap: 14px; }
  .author-profile__portrait,
  .author-profile__portrait img { width: 64px; height: 64px; }
  .author-profile__identity-copy h1 { margin-bottom: 2px; font-size: 19px; }
  .author-profile__identity-copy p { font-size: 12px; }
  .author-profile__stats { justify-content: space-between; gap: 10px; margin-top: 0; padding: 50px 28px 0; }
  .author-profile__stat { display: flex; flex-direction: row-reverse; align-items: baseline; gap: 10px; }
  .author-profile__stat strong { font-size: 16px; }
  .author-profile__stat span { font-size: 10px; }
  .author-profile__bio { max-width: none; margin: 28px 0 0; font-size: 13px; line-height: 1.8; }
  .author-profile__bio p { margin-bottom: 18px; }
  .author-profile__footer { justify-content: space-between; gap: 16px; margin-top: 26px; margin-right: 0; flex-direction: row; }
  .author-profile__reactions { position: static; }
  .author-profile__feedback:not(:empty) { margin: 12px 0 0; }
  .author-profile__social { gap: 7px; }
  .author-profile__social > a { width: 32px; height: 32px; }
  .author-profile__social svg { width: 17px; height: 17px; }
  .author-profile__social-link--instagram { order: 1; }
  .author-profile__social-link--x { order: 2; }
  .author-profile__social-link--linkedin { order: 3; }
  .archive-page--author .archive-shell__container { padding-top: 28px; }
  .archive-page--author .archive-content__heading { min-height: 47px; padding-bottom: 12px; }
  .archive-page--author .archive-content__title { font-size: 18px; }
}
