/* ============================================================
   Article — Page styles
   ============================================================ */

/* ── Fade-up fallback — guarantee visibility on article pages ── */
/* CSS animation fires unconditionally, so content is always      */
/* shown even if the JS IntersectionObserver doesn't trigger.     */
@keyframes art-fadein {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.art-hero .fade-up,
.art-body .fade-up,
.art-cta  .fade-up,
footer    .fade-up {
  animation: art-fadein 0.65s ease-out both;
}

/* ── Hero ─────────────────────────────────────────────────── */
.art-hero {
  background: var(--bg-inverse);
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
}

.art-hero-bg-mark {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-60%);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(180px, 20vw, 320px);
  color: rgba(245,245,240,0.03);
  letter-spacing: -0.05em;
  user-select: none;
  line-height: 1;
  pointer-events: none;
}

.art-hero-accent {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.10;
  pointer-events: none;
  width: 480px;
  height: 480px;
  top: -120px;
  right: -120px;
}

.art-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-bottom: 72px;
}

.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: var(--fs-xs);
  color: rgba(245,245,240,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
}

.art-breadcrumb a {
  color: rgba(245,245,240,0.35);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.art-breadcrumb a:hover {
  color: var(--accent-on-dark);
}

.art-breadcrumb-sep {
  opacity: 0.4;
}

.art-hero-cat {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(192, 37, 58, 0.35);
  background: rgba(192, 37, 58, 0.12);
  color: var(--accent-on-dark);
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.art-hero-title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg-inverse);
  margin-bottom: 24px;
  max-width: 760px;
}

.art-hero-title em {
  font-style: italic;
  color: var(--accent-on-dark);
}

.art-hero-excerpt {
  font-size: var(--fs-md);
  color: rgba(245,245,240,0.55);
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 40px;
  font-style: italic;
}

.art-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(245,245,240,0.08);
}

.art-hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(245,245,240,0.15);
  flex-shrink: 0;
}

.art-hero-meta-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.art-hero-author {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: rgba(245,245,240,0.85);
  letter-spacing: -0.01em;
}

.art-hero-date-read {
  font-size: 12px;
  color: rgba(245,245,240,0.35);
  letter-spacing: 0.02em;
}

/* ── Article body ──────────────────────────────────────────── */
.art-body {
  background: var(--bg);
  padding: 80px 0 96px;
}

.art-body-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* Prose */
.art-prose p {
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--fg-2);
  margin-bottom: 28px;
  max-width: none;
  letter-spacing: -0.01em;
}

.art-prose p:first-child {
  font-size: 19px;
  color: var(--fg-1);
  line-height: 1.7;
  font-weight: var(--fw-medium);
}

.art-prose h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: var(--tr-heading);
  color: var(--fg-1);
  line-height: 1.2;
  margin-top: 56px;
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.art-prose h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  letter-spacing: var(--tr-heading);
  color: var(--fg-1);
  line-height: 1.25;
  margin-top: 40px;
  margin-bottom: 16px;
}

/* Pull quote */
.art-pullquote {
  margin: 48px 0;
  padding: 36px 40px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
}

.art-pullquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 32px;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 80px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.18;
}

.art-pullquote p {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(18px, 2.2vw, 22px) !important;
  line-height: 1.4 !important;
  color: var(--fg-1) !important;
  font-style: italic;
  letter-spacing: -0.02em;
  margin: 0 !important;
}

/* Lists */
.art-prose ul {
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.art-prose ul li {
  font-size: var(--fs-md);
  color: var(--fg-2);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.art-prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.art-prose ol {
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: ol-counter;
}

.art-prose ol li {
  font-size: var(--fs-md);
  color: var(--fg-2);
  line-height: 1.6;
  padding-left: 40px;
  position: relative;
  counter-increment: ol-counter;
}

.art-prose ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 11px;
  font-weight: var(--fw-bold);
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.art-prose ol li strong {
  color: var(--fg-1);
  font-weight: var(--fw-bold);
}

/* Divider */
.art-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* Highlight box */
.art-highlight {
  margin: 40px 0;
  padding: 28px 32px;
  background: rgba(131, 22, 37, 0.05);
  border: 1px solid rgba(131, 22, 37, 0.15);
  border-radius: var(--r-lg);
}

.art-highlight p {
  color: var(--fg-1) !important;
  font-size: var(--fs-sm) !important;
  margin: 0 !important;
}

/* ── Author bio ─────────────────────────────────────────────── */
.art-author {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.art-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.art-author-text h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  letter-spacing: var(--tr-heading);
  color: var(--fg-1);
  margin-bottom: 4px;
}

.art-author-role {
  font-size: var(--fs-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--fw-medium);
  display: block;
  margin-bottom: 10px;
}

.art-author-text p {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  line-height: 1.65;
  max-width: none;
  margin: 0;
}

/* ── Article CTA ──────────────────────────────────────────── */
.art-cta {
  padding: 64px 0 96px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.art-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 56px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
}

.art-cta-text h3 {
  font-size: var(--fs-xl);
  letter-spacing: var(--tr-heading);
  margin-bottom: 8px;
}

.art-cta-text h3 em {
  font-style: italic;
  color: var(--accent);
}

.art-cta-text p {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  max-width: 36ch;
  line-height: 1.65;
}

.art-cta-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.art-cta-meta {
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Back to blog ─────────────────────────────────────────── */
.art-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--fg-3);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out),
              gap var(--dur-fast) var(--ease-out);
  margin-bottom: 64px;
}

.art-back:hover {
  color: var(--fg-1);
  gap: 12px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .art-hero { padding: 64px 0 0; }
  .art-hero-inner { padding-bottom: 48px; }
  .art-hero-title { font-size: clamp(28px, 7vw, 40px); }
  .art-hero-excerpt { font-size: var(--fs-base); margin-bottom: 32px; }
  .art-body { padding: 56px 0 64px; }
  .art-body-inner { padding: 0; }
  .art-prose p { font-size: var(--fs-base); }
  .art-prose p:first-child { font-size: var(--fs-md); }
  .art-prose h2 { margin-top: 40px; font-size: 20px; }
  .art-prose ol li, .art-prose ul li { font-size: var(--fs-base); }
  .art-pullquote { padding: 28px 24px; }
  .art-pullquote p { font-size: 18px !important; }
  .art-highlight { padding: 20px 20px; }
  .art-author { flex-direction: column; gap: 16px; }
  .art-cta { padding: 48px 0 64px; }
  .art-cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; padding: 32px 24px; }
  .art-cta-actions { align-items: flex-start; }
  .art-back { margin-bottom: 40px; }
}
