/* =========================================================
   ÁUREO · Blog — capa editorial sobre el sistema existente.
   No redefine tokens: los consume desde styles.css.
   ========================================================= */

.blog-hero {
  padding: calc(var(--section-y) * 0.7) 0 calc(var(--section-y) * 0.35);
  border-bottom: 1px solid color-mix(in oklab, var(--gold) 28%, transparent);
}

.blog-hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 5vw, 5rem);
}

.blog-hero p {
  max-width: 40rem;
  color: var(--muted-on-light);
  margin-top: 1rem;
}

/* ---------- Listado: lista editorial, no grilla de cards ---------- */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li + li {
  border-top: 1px solid color-mix(in oklab, var(--gold) 22%, transparent);
}

.post-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  padding: clamp(1.75rem, 3vw, 3rem) 0;
  transition: opacity 0.3s var(--ease);
}

.post-item time {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-light);
}

.post-item h2 {
  font-size: clamp(1.6rem, 0.9rem + 2vw, 2.6rem);
  transition: color 0.3s var(--ease);
}

.post-item:hover h2,
.post-item:focus-visible h2 {
  color: var(--gold);
}

.post-item p {
  color: var(--muted-on-light);
  max-width: 44rem;
  margin: 0;
}

/* ---------- Post ---------- */
.post-header {
  padding: calc(var(--section-y) * 0.6) 0 0;
  max-width: 46rem;
}

.post-header h1 {
  font-size: clamp(2.2rem, 1.1rem + 4vw, 4.2rem);
  margin-bottom: 1rem;
}

.post-meta {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-light);
}

.post-cover {
  width: 100%;
  height: auto;
  margin: clamp(2rem, 4vw, 3.5rem) 0;
  border-radius: var(--radius);
}

.post-body {
  max-width: 42rem;
  padding-bottom: var(--section-y);
  font-size: 1.075rem;
}

.post-body h2 {
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2.1rem);
  margin: 2.75rem 0 0.85rem;
}

.post-body h3 {
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
}

.post-body p,
.post-body ul,
.post-body ol {
  margin: 0 0 1.25rem;
}

.post-body a {
  color: color-mix(in oklab, var(--gold) 78%, var(--text-on-light));
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease);
}

.post-body a:hover,
.post-body a:focus-visible {
  color: var(--gold);
}

.post-body blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-on-light);
}

.post-body code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: color-mix(in oklab, var(--forest) 8%, transparent);
}

/* ---------- Paginación ---------- */
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 var(--section-y);
  border-top: 1px solid color-mix(in oklab, var(--gold) 22%, transparent);
}

.pagination a {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-light);
  transition: color 0.2s var(--ease);
}

.pagination a:hover,
.pagination a:focus-visible {
  color: var(--gold);
}

/* ---------- 404 ---------- */
.blog-empty {
  padding: var(--section-y) 0;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .post-item,
  .post-item h2,
  .post-body a,
  .pagination a {
    transition: none;
  }
}
