/* ============================================
   Jenva Core — author.css
   Author archive: hero with avatar/stats/bio + posts grid
   ============================================ */

.author-section {
  padding-block: var(--space-12) var(--space-16);
}

/* ============================================
   AUTHOR HERO (Avatar + Bio + Stats + Social)
   ============================================ */
.author-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  text-align: center;
  margin-bottom: var(--space-12);
  align-items: start;
}
@media (min-width: 760px) {
  .author-hero {
    grid-template-columns: 120px 1fr;
    gap: var(--space-6);
    text-align: left;
  }
}

.author-hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, #F0E4D7 100%);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  flex-shrink: 0;
  margin: 0 auto;
  border: 4px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-border);
  overflow: hidden;
}
.author-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) {
  .author-hero-avatar { margin: 0; }
}

.author-hero-info { min-width: 0; }

.author-hero-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.author-hero-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
}
.author-hero-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 760px) {
  .author-hero-role { justify-content: flex-start; }
}
.author-hero-role-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.5;
}

.author-hero-bio {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 var(--space-5);
  max-width: 64ch;
}

.author-hero-meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
  justify-content: center;
}
@media (min-width: 760px) {
  .author-hero-meta { justify-content: flex-start; }
}
.author-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  color: var(--color-text);
}
.author-hero-stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-text-muted);
}

.author-hero-social {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 760px) {
  .author-hero-social { justify-content: flex-start; }
}
.author-hero-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.author-hero-social-link:hover {
  background: var(--color-accent);
  color: #fff;
}
.author-hero-social-link svg { width: 16px; height: 16px; }

/* ============================================
   POSTS HEADER
   ============================================ */
.author-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.author-posts-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.author-posts-count {
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ============================================
   FEATURED POST (first one — large 2-col)
   ============================================ */
.author-featured-post {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 760px) {
  .author-featured-post {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-8);
    align-items: center;
  }
}

.author-featured-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg, 16px);
  position: relative;
  overflow: hidden;
}
.author-featured-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-featured-thumb-empty::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, var(--color-bg-alt) 100%);
}

.author-featured-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.author-featured-eyebrow svg { width: 14px; height: 14px; }
.author-featured-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
}
.author-featured-title a {
  color: var(--color-text);
  text-decoration: none;
}
.author-featured-title a:hover { color: var(--color-accent); }
.author-featured-excerpt {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
}
.author-featured-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}
.author-featured-meta-tag {
  padding: 4px var(--space-3);
  background: var(--color-bg-alt);
  border-radius: 999px;
  font-size: var(--text-xs);
  color: var(--color-text);
  font-weight: 500;
}
