/* Article pages (apex.rest/uk/blog/…). Loaded after site.css; uses its tokens. */
.article-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.article-hero .eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.article-hero h1 { font-size: clamp(38px, 5vw, 68px); max-width: 17ch; letter-spacing: -.06em; margin-bottom: 24px; }
.article-hero h1 em { font-style: normal; color: inherit; background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.article-lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 62ch; color: var(--ink-soft); margin-bottom: 20px; }
.article-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.article-cover { margin: 40px 0 0; }
.article-cover img, .article figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 18px 50px rgba(30, 30, 30, .08); }

.article { padding: 56px 0 96px; }
.article-body { max-width: 760px; margin-inline: auto; font-size: 18px; line-height: 1.7; }
.article-body > h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; font-weight: 650; margin: 64px 0 20px; }
.article-body > h3 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--signal); text-underline-offset: 3px; }
.article-body code { font-family: var(--font-mono); font-size: .86em; background: var(--paper-deep); padding: 2px 6px; border-radius: 4px; }
.article-body pre { font-family: var(--font-mono); font-size: 14px; line-height: 1.55; background: #1b1c1a; color: #e9e8e1; padding: 20px 24px; border-radius: 10px; overflow-x: auto; margin: 0 0 28px; }
.article-body pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.article figure { margin: 32px 0; }
.article figure.wide { width: min(1120px, calc(100vw - 96px)); margin-left: 50%; transform: translateX(-50%); }
.article figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; text-align: center; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: min(1120px, calc(100vw - 96px)); margin: 32px 0 32px 50%; transform: translateX(-50%); }
.article-grid figure { margin: 0; }
.article-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0; }
.article-stats div { border-top: 3px solid var(--ink); padding-top: 14px; }
.article-stats b { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.article-stats span { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.article-note { border-left: 3px solid var(--yellow); background: var(--paper-bright); padding: 18px 22px; margin: 28px 0; border-radius: 0 8px 8px 0; font-size: 16px; }
.article-note strong { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.article-video { position: relative; aspect-ratio: 16 / 9; background: #1b1c1a; border-radius: 10px; overflow: hidden; margin: 28px 0; }
.article-video iframe, .article-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-steps { list-style: none; padding: 0; counter-reset: step; }
.article-steps li { counter-increment: step; position: relative; padding: 14px 0 14px 56px; border-top: 1px solid var(--line); margin: 0; }
.article-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.article-cta { background: var(--ink); color: #fff; border-radius: 14px; padding: 36px; margin: 56px 0 0; }
.article-cta h2 { color: #fff; font-size: 28px; letter-spacing: -.04em; margin: 0 0 12px; }
.article-cta p { color: #d9d9d0; }
.article-cta pre { background: #2a2b28; margin-bottom: 20px; }
.article-cta a { color: var(--yellow); }

@media (max-width: 760px) {
  .article-hero { padding-top: 40px; }
  .article-body { font-size: 17px; }
  .article figure.wide, .article-grid { width: 100%; margin-left: 0; transform: none; }
  .article-grid { grid-template-columns: 1fr; }
  .article-stats { grid-template-columns: repeat(2, 1fr); }
  .article-cta { padding: 24px; }
}
