/* ══════════════════════════════════════════════════════════
   Author archive editorial — paralelo a blog-post-editorial
   Scoped bajo .author-editorial. Hereda tokens globales
   (--bg, --accent, --font-display, --font-mono, --font-korean).
   ══════════════════════════════════════════════════════════ */

.author-editorial {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

/* ─── Hero ─────────────────────────────────────────────── */
.ae-hero {
  position: relative;
  padding: 80px 56px 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.ae-hero-bg {
  position: absolute;
  right: -80px;
  top: -60px;
  font-family: var(--font-korean);
  font-size: clamp(280px, 50vw, 700px);
  color: rgba(232, 67, 45, .06);
  line-height: .85;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.ae-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

.ae-breadcrumb {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.ae-breadcrumb a { color: var(--text-dim); transition: color .15s; }
.ae-breadcrumb a:hover { color: var(--text); }
.ae-breadcrumb .ae-sep { color: var(--text-very-dim); }

.ae-section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
}
.ae-section-tag::before { content: '// '; }
.ae-section-tag--muted { color: var(--text-dim); }

.ae-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: .92;
  letter-spacing: -.04em;
  margin: 16px 0 8px;
  font-weight: 400;
  text-wrap: pretty;
  color: var(--text);
}

.ae-handle {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 28px;
}

.ae-meta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ae-meta strong { color: var(--text); font-weight: 500; }
.ae-meta .ae-sep { color: var(--text-very-dim); }
.ae-meta .ae-page { color: var(--accent); }

/* ─── Body grid ────────────────────────────────────────── */
.ae-body-grid {
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  gap: 72px;
  padding: 56px 56px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ─── Bio (left col, sticky) ───────────────────────────── */
.ae-bio {
  position: sticky;
  top: 110px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ae-bio-text {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}
.ae-bio-text p {
  margin: 0 0 12px;
}
.ae-bio-text p:last-child { margin-bottom: 0; }
.ae-bio-text strong { color: var(--text); font-weight: 500; }
.ae-bio-text em { color: var(--accent); font-style: italic; }
.ae-bio-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-very-dim);
  transition: text-decoration-color .15s;
}
.ae-bio-text a:hover { text-decoration-color: var(--accent); }

.ae-bio-contact {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.ae-bio-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.ae-bio-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .15s;
}
.ae-bio-links a:hover { color: var(--accent); }

/* ─── Listado de posts (center) ────────────────────────── */
.ae-posts-head { margin-bottom: 32px; }
.ae-posts-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 12px 0 0;
  color: var(--text);
}
.ae-posts-title em {
  color: var(--accent);
  font-style: italic;
}

.ae-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.ae-post-item {
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.ae-post-link {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  color: inherit;
  position: relative;
  transition: padding .25s;
}
.ae-post-link:hover { padding-left: 14px; }
.ae-post-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .25s;
}
.ae-post-link:hover::before { width: 8px; }

.ae-post-han {
  font-family: var(--font-korean);
  font-size: 88px;
  font-weight: 700;
  color: var(--text-very-dim);
  line-height: 1;
  letter-spacing: -.02em;
  text-align: center;
  transition: color .25s;
}
.ae-post-link:hover .ae-post-han { color: var(--accent); }

.ae-post-body { min-width: 0; }

.ae-post-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.ae-post-meta .ae-post-n { color: var(--accent); font-weight: 500; }
.ae-post-meta .ae-post-cat { color: var(--text-muted); }
.ae-post-meta .ae-post-sep { color: var(--text-very-dim); }

.ae-post-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--text);
  text-wrap: pretty;
  transition: color .2s;
}
.ae-post-link:hover .ae-post-title { color: var(--accent); }
.ae-post-title em { color: var(--accent); font-style: italic; }

.ae-post-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
  text-wrap: pretty;
  /* Limitar visualmente a 2 líneas en escritorio */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ae-post-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  align-self: center;
  transition: transform .2s;
}
.ae-post-link:hover .ae-post-cta { transform: translateX(4px); }

/* ─── Paginación ───────────────────────────────────────── */
.ae-pagination {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ae-pagination a {
  color: var(--text-muted);
  transition: color .15s;
}
.ae-pagination a:hover { color: var(--accent); }
.ae-pag-prev { text-align: left; }
.ae-pag-page { color: var(--text-dim); text-align: center; }
.ae-pag-next { text-align: right; }

/* ─── Empty state ──────────────────────────────────────── */
.ae-empty {
  padding: 60px 32px;
  text-align: center;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.ae-empty-han {
  font-family: var(--font-korean);
  font-size: 96px;
  color: var(--text-very-dim);
  line-height: 1;
  letter-spacing: -.02em;
}
.ae-empty p {
  margin: 18px 0 14px;
  font-size: 16px;
  color: var(--text-muted);
}
.ae-empty-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Stats (right col, sticky) ────────────────────────── */
.ae-stats {
  position: sticky;
  top: 110px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ae-stats-card {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 22px 20px;
}
.ae-stats-grid {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 12px;
  color: var(--text);
}
.ae-stats-grid > div { display: contents; }
.ae-stats-grid > div > span:first-child { color: var(--text-dim); letter-spacing: .04em; }
.ae-stats-grid > div > span:last-child { font-weight: 500; }

.ae-stats-cta {
  display: block;
  color: inherit;
  transition: border-color .2s, color .2s;
}
.ae-stats-cta:hover { border-color: var(--accent); color: var(--accent); }
.ae-stats-cta-text {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--text);
  transition: color .2s;
}
.ae-stats-cta:hover .ae-stats-cta-text { color: var(--accent); }

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .ae-hero { padding: 56px 32px 48px; }
  .ae-body-grid {
    grid-template-columns: 220px 1fr;
    gap: 48px;
    padding: 40px 32px 64px;
  }
  .ae-stats { display: none; }
}

@media (max-width: 860px) {
  .ae-hero { padding: 40px 22px 36px; }
  .ae-body-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 22px 56px;
  }
  .ae-bio {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
  }
  .ae-post-link {
    grid-template-columns: 64px 1fr;
    gap: 18px;
    padding: 22px 0;
  }
  .ae-post-han { font-size: 52px; }
  .ae-post-cta {
    grid-column: 2;
    align-self: start;
    margin-top: 6px;
  }
  .ae-post-link:hover { padding-left: 0; }
  .ae-post-link:hover::before { width: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ae-post-link,
  .ae-post-han,
  .ae-post-title,
  .ae-post-cta,
  .ae-stats-cta { transition-duration: 100ms !important; }
}

/* Performance */
.ae-pagination,
.ae-empty {
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}
