/* Blog layout — articles index and /post/ pages. Leans on uplife.css tokens. */

.article-page { background: var(--bg); padding: 56px 0 var(--space-7xl); }

/* ---------- index ---------- */
.articles-index .section-head { margin-bottom: var(--space-4xl); }
.articles-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
}
.article-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.article-card .card-copy { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-lg); }
.article-card .card-cat {
  font-size: var(--fs-body-sm); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--primary);
}
.article-card .card-title { font-size: var(--fs-card-title); line-height: var(--lh-card-title); font-weight: 700; color: var(--text); }
.article-card .card-desc { font-size: var(--fs-body-md); line-height: var(--lh-body-md); color: var(--text-muted); }
.article-card .card-rt { font-size: var(--fs-body-sm); color: var(--text-subtle); }

/* ---------- post ---------- */
.article { max-width: 800px; margin: 0 auto; }
.article-back { margin-bottom: var(--space-2xl); }
.article-back a { font-size: var(--fs-body-sm); font-weight: 600; color: var(--text-subtle); }
.article-back a:hover { color: var(--primary); }
.article .kicker { margin-bottom: var(--space-sm); }
.article h1 { font-size: var(--fs-display); line-height: var(--lh-display); margin-bottom: var(--space-md); }
.article-meta { font-size: var(--fs-body-sm); color: var(--text-subtle); margin-bottom: var(--space-2xl); }
.article-cover {
  width: 100%; border-radius: var(--radius-lg); margin-bottom: var(--space-3xl);
  aspect-ratio: 16 / 9; object-fit: cover;
}
.article-body { display: flex; flex-direction: column; gap: var(--space-lg); }
.article-body h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; margin-top: var(--space-xl); }
.article-body h3 { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 700; margin-top: var(--space-md); }
.article-body p { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); color: var(--text-muted); }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: var(--space-sm); }
.article-body li { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); color: var(--text-muted); }
.article-body blockquote {
  border-left: 3px solid var(--primary); padding-left: var(--space-lg);
  color: var(--text-subtle); font-style: italic;
}
.article-body table { border-collapse: collapse; width: 100%; font-size: var(--fs-body-md); }
.article-body th, .article-body td { border: 1px solid var(--border); padding: var(--space-sm) var(--space-md); text-align: left; vertical-align: top; }
.article-body th { background: var(--bg-sand); font-weight: 600; color: var(--text); }
.article-body tr:nth-child(even) td { background: var(--bg-card); }
.article-cta {
  margin-top: var(--space-3xl); padding: var(--space-2xl);
  background: var(--bg-sand); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap;
}
.article-cta p { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600; }

@media (max-width: 960px) {
  .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .article h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
}
