/* ==========================================================================
   Article page — loaded in addition to styles.css, only on /articles/*.html
   ========================================================================== */

.article-header {
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem) clamp(1.5rem, 1.2rem + 1vw, 2rem);
  max-width: 46rem;
  margin-inline: auto;
}
.article-header .eyebrow { margin-bottom: 1rem; }
.article-header h1 { margin-bottom: 1.25rem; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.article-meta__author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--heading);
  font-weight: 600;
}
.article-meta__avatar {
  width: 2.25rem; height: 2.25rem;
  border-radius: 999px;
  background: var(--bg-box);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-blue-600);
  font-family: var(--font-display);
  flex-shrink: 0;
}
.article-meta__dot { opacity: 0.5; }

.article-hero {
  max-width: 54rem;
  margin: 0 auto clamp(2rem, 1.6rem + 1.5vw, 3rem);
}
.article-hero img { border-radius: var(--radius-xl); width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-box); }

.article-prose {
  max-width: 42rem;
  margin-inline: auto;
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--text);
}
.article-prose > * + * { margin-top: 1.5rem; }
.article-prose h2 {
  font-size: var(--text-2xl);
  margin-top: 2.75rem;
  margin-bottom: 0.25rem;
}
.article-prose h2:first-child { margin-top: 0; }
.article-prose p { margin-top: 1.25rem; }
.article-prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-prose li::marker { color: var(--color-blue-600); }
.article-prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.article-prose a:hover { color: var(--link-hover); }
.article-prose blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--color-blue-600);
  background: var(--bg-box);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--heading);
}

.article-cta {
  max-width: 42rem;
  margin: 0 auto clamp(2.5rem, 2rem + 2vw, 4rem);
  padding: 1.75rem;
  background: var(--bg-box);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.article-cta p { font-weight: 600; color: var(--heading); }

.article-nav {
  max-width: 42rem;
  margin-inline: auto;
  padding-block: 1.75rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-sm);
}
.article-nav__link { display: flex; flex-direction: column; gap: 0.25rem; max-width: 48%; }
.article-nav__link span:first-child { color: var(--text-muted); }
.article-nav__link span:last-child { font-weight: 600; color: var(--heading); }
.article-nav__link--next { text-align: right; margin-left: auto; }
.article-nav__link.is-disabled { color: var(--text-muted); cursor: default; }
