/* Blog articles (moved from site.css so the articles use the universal toolbar and page shell). */
.article-hero,.article,.arch-diagram-container{--fg:#f1f5f9;--accent:#fbbf24;--serif:Georgia,"Times New Roman",serif;--border:#2a2a2a;--fg-muted:#94a3b8}
html:not(.dark) .article-hero,html:not(.dark) .article,html:not(.dark) .arch-diagram-container{--fg:#0f172a;--accent:#b45309;--border:#e2e8f0;--fg-muted:#475569}
.article-hero .wrap{max-width:80rem;margin:0 auto;padding:0 1.5rem}
.article{color:#cbd5e1}
html:not(.dark) .article{color:#334155}
.article a{color:#fbbb19}
html:not(.dark) .article a{color:#b45309}
.article-content ul{list-style:disc}
.article-content ol{list-style:decimal;margin:1rem 0;padding-left:2rem}
.article-content h1,.article-content h2,.article-content h3,.article-meta h1{font-weight:700}
html:not(.dark) .article-meta,html:not(.dark) .article-end,html:not(.dark) .article-authors{border-color:#e2e8f0}
html:not(.dark) .article-content blockquote,html:not(.dark) .callout-box{background:#fff}
html:not(.dark) .article-subtitle,html:not(.dark) .article-byline,html:not(.dark) .article-date,html:not(.dark) .author-title,html:not(.dark) .author-bio,html:not(.dark) .article-content em{color:#64748b}
/* ── article ────────────────────────────────────────────────────────── */

.article-hero { padding: 3rem 0 0; }
.article-hero img { width: 100%; max-width: 64rem; margin: 0 auto; border-radius: 0.5rem; }
.article { max-width: 65ch; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.article-series { font-size: 0.85rem; color: var(--accent); margin-bottom: 1.5rem; line-height: 1.8; }
.article-series a { font-weight: 500; text-decoration: none; }
.article-series a:hover { text-decoration: underline; }
.article-meta {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid #2a2a2a;
}
.article-meta h1, .article-content h1 { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: var(--fg); }
.article-subtitle { font-family: var(--serif); font-size: 1.125rem; color: #a0a0a0; line-height: 1.3; }
.article-byline { font-size: 0.85rem; color: #a0a0a0; }
.article-date { font-size: 0.8rem; color: #a0a0a0; }
.article-content { line-height: 1.7; }
.article-content p { margin-bottom: 1.25rem; }
.article-content h2 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.3; margin: 2.5rem 0 1rem; color: var(--fg); }
.article-content h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 1.75rem 0 1rem; color: var(--fg); }
.article-content strong { color: var(--accent); font-weight: 600; }
.article-content em { color: #a0a0a0; }
.article-content ul { margin: 1rem 0; padding-left: 2rem; }
.article-content li { margin-bottom: 0.75rem; }
.article-content a { font-weight: 500; text-decoration: none; }
.article-content a:hover { text-decoration: underline; }
/* Quotes and callouts are boxed, not marked with a coloured left edge. */
.article-content blockquote, .callout-box {
  margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: 0.5rem;
  background: #1a1a1a; border: 1px solid rgba(245, 158, 11, 0.35); font-size: 0.95rem;
}
.article-content blockquote p { margin: 0.5rem 0; }
.article-content blockquote p:first-child { margin-top: 0; }
.article-content blockquote p:last-child { margin-bottom: 0; }
/* Prominent pull quotes (opt in with class="pullquote" on a blockquote): boxed, larger serif type, a short accent bar on top. */
.article-content blockquote.pullquote {
  position: relative; margin: 2.75rem 0; padding: 2.1rem 2rem 1.75rem; border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(251, 191, 36, 0.04));
  border: 1px solid rgba(251, 191, 36, 0.6); box-shadow: 0 14px 34px -20px rgba(251, 191, 36, 0.55);
}
.article-content blockquote.pullquote::before {
  content: ""; position: absolute; top: 0; left: 2rem; width: 3rem; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent);
}
.article-content blockquote.pullquote p { margin: 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.4; color: var(--fg); }
html:not(.dark) .article-content blockquote.pullquote {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.10), rgba(180, 83, 9, 0.02)); border-color: rgba(180, 83, 9, 0.5);
  box-shadow: 0 14px 34px -22px rgba(180, 83, 9, 0.5);
}
@media (max-width: 600px) { .article-content blockquote.pullquote { padding: 1.75rem 1.25rem 1.4rem; } .article-content blockquote.pullquote p { font-size: 1.2rem; } }
.callout-box { padding: 1.5rem; margin: 2rem 0; font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.6; }
.callout-box p { margin: 0; }
.article-end { border-top: 1px solid #2a2a2a; margin-top: 3rem; padding-top: 2rem; font-size: 0.95rem; }
.article-end p { margin: 0; }
.article-end a { text-decoration: none; }
.article-authors { border-top: 1px solid #2a2a2a; margin-top: 3rem; padding-top: 2rem; }
.author { margin-bottom: 2rem; }
.author-name { font-weight: 600; margin-bottom: 0.25rem; }
.author-title { color: #a0a0a0; font-size: 0.85rem; margin-bottom: 0.75rem; }
.author-bio { color: #a0a0a0; font-size: 0.9rem; line-height: 1.6; }

/* article 3's architecture diagram */
.arch-diagram-container {
  background: #090d16; border: 1px solid #2a2a2a; border-radius: 8px; padding: 2rem 1.5rem; margin: 2.5rem 0;
}
.arch-title { text-align: center; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 1.5rem; }
.arch-flow { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
@media (min-width: 768px) { .arch-flow { flex-direction: row; justify-content: space-between; align-items: stretch; } }
.arch-card {
  background: #111827; border: 1px solid #1f2937; border-radius: 6px; padding: 1.25rem; flex: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%;
}
.arch-card-engine { border-color: #f59e0b; background: rgba(245, 158, 11, 0.05); box-shadow: 0 0 15px rgba(245, 158, 11, 0.1); }
.arch-card-title { font-size: 0.95rem; font-weight: 600; color: #f3f4f6; margin: 0.75rem 0 0.35rem; }
.arch-card-engine .arch-card-title { color: var(--accent); }
.arch-card-sub { font-size: 0.78rem; color: #9ca3af; line-height: 1.4; }
.arch-connector { display: flex; align-items: center; justify-content: center; color: #6b7280; padding: 0.5rem; }
@media (max-width: 767px) { .arch-connector svg { transform: rotate(90deg); } }
.arch-routes {
  width: 100%; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed #374151;
  display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.72rem; text-align: left;
}
.arch-route-item { display: flex; align-items: center; gap: 0.5rem; color: #d1d5db; }
.dot-green, .dot-yellow, .dot-red { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green { background: #10b981; }
.dot-yellow { background: #f59e0b; }
.dot-red { background: #ef4444; }

/* ── footer ─────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; font-size: 0.875rem; color: var(--fg-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--fg-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ── 404 ────────────────────────────────────────────────────────────── */
