/* Author profile pages */

.author-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.author-page__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.5rem;
}

.author-page__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.author-profile__hero {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 520px) {
  .author-profile__hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.author-profile__avatar {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: hsl(var(--author-hue, 350) 58% 42%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.author-profile__name {
  margin: 0 0 0.25rem;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  line-height: 1.15;
  color: var(--text);
}

.author-profile__role {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand);
}

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

@media (max-width: 520px) {
  .author-profile__tags {
    justify-content: center;
  }
}

.author-profile__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand);
}

.author-profile__bio {
  margin: 0 0 2.5rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #334155;
}

.author-profile__bio p {
  margin: 0 0 1rem;
}

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

.author-profile__articles h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.author-profile__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media (min-width: 640px) {
  .author-profile__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.author-profile__footer {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.author-profile__footer a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.author-profile__footer a:hover {
  text-decoration: underline;
}

/* Authors directory hub */
.authors-directory {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .authors-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.authors-directory__card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.authors-directory__card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(139, 0, 0, 0.08);
}

.authors-directory__avatar {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: hsl(var(--author-hue, 350) 58% 42%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.authors-directory__name {
  margin: 0 0 0.15rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.authors-directory__role {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
}

.authors-directory__bio {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.article-author__profile-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.article-author__profile-link:hover {
  text-decoration: underline;
}

.article-author__name a {
  color: inherit;
  text-decoration: none;
}

.article-author__name a:hover {
  color: var(--brand);
}
