.author-hero {
  --site-gutter: 1rem;

  background: var(--gradient-linear-01);
  color: var(--color-light-base);
}

.author-hero__inner {
  position: relative;
  padding-block: 2.125rem 2.375rem;
}

.author-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 0.75rem;
}

.author-hero__portrait {
  grid-column: 1;
  grid-row: 1;
  width: 8.5rem;
  aspect-ratio: 27 / 23;
  overflow: hidden;
  border-radius: 0.375rem;
}

.author-hero--has-photo .author-hero__layout {
  grid-template-columns: 8.5rem minmax(0, 1fr);
}

.author-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-hero__content {
  display: contents;
}

.author-hero__heading {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
  gap: 0.5rem;
  min-width: 0;
  text-align: left;
}

.author-hero--has-photo .author-hero__heading {
  grid-column: 2;
}

.author-hero__title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.author-hero__labels {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  grid-column: 1 / -1;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.author-hero__labels li:not(:first-child)::before {
  display: none;
  color: color-mix(in srgb, var(--color-light-base) 62%, transparent);
  content: '·';
}

.author-hero__social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.author-hero__social-link,
.author-hero__verification-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.875rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-light-base) 24%, transparent);
  border-radius: 0.3125rem;
  background: color-mix(in srgb, var(--color-light-base) 8%, transparent);
  color: inherit;
  line-height: 1;
}

.author-hero__social-link {
  text-decoration: none;
}

.author-hero__social-link:is(:hover, :focus-visible) {
  border-color: var(--color-primary-border);
  color: var(--color-primary-border);
}

.author-hero__verification-badge {
  gap: 0.375rem;
}

.author-hero__description {
  grid-column: 1 / -1;
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.author-hero__description > :first-child {
  margin-top: 0;
}

.author-hero__description > :last-child {
  margin-bottom: 0;
}

.author-hero__stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  padding: 0;
  margin: 0;
  text-align: left;
}

.author-hero__stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.author-hero__stat-value {
  flex: 0 0 auto;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.author-hero__stat-label {
  min-width: 0;
  line-height: 1.2;
}

@media (min-width: 740px) {
  .author-hero {
    --site-gutter: 2.5rem;
  }

  .author-hero__inner {
    padding-block: 2.75rem 3rem;
  }

  .author-hero__content {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
  }

  .author-hero__layout,
  .author-hero--has-photo .author-hero__layout {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
  }

  .author-hero__portrait {
    width: 11.5rem;
    flex: 0 0 11.5rem;
    border-radius: 0.5rem;
  }

  .author-hero__heading {
    align-items: flex-start;
    grid-column: auto;
    grid-row: auto;
    gap: 0.75rem;
  }

  .author-hero__title {
    font-size: 2.5rem;
    line-height: 1.14;
  }

  .author-hero__labels {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 1rem;
  }

  .author-hero__labels li:not(:first-child) {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .author-hero__labels li:not(:first-child)::before {
    display: inline-block;
  }

  .author-hero__social-list {
    gap: 0.5rem;
  }

  .author-hero__social-link,
  .author-hero__verification-badge {
    min-height: 2.25rem;
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
  }

  .author-hero__description {
    margin-top: 1rem;
  }

  .author-hero__stats {
    gap: 1.5rem 3rem;
    margin-top: 1.25rem;
  }

  .author-hero__stat-value {
    font-size: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .author-hero__inner {
    padding-block: 3.125rem;
  }

  .author-hero__layout {
    gap: 1.75rem;
  }

  .author-hero__portrait {
    width: 13.5rem;
    aspect-ratio: 27 / 23;
    flex: 0 0 13.5rem;
    overflow: hidden;
    border-radius: 0.75rem;
  }

  .author-hero__content {
    width: auto;
    align-self: center;
  }

  .author-hero__heading {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .author-hero__title {
    font-size: 2.5rem;
  }

  .author-hero__labels {
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  .author-hero__social-list {
    justify-content: flex-end;
    gap: 0.75rem;
  }

  .author-hero__description {
    margin-top: 0.5rem;
    text-align: left;
  }

  .author-hero__stats {
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 3rem;
    margin-top: 1rem;
  }

  .author-hero__stat-value {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-hero__social-link {
    transition: none;
  }
}
