:root {
  --bg: #0a0e1a;
  --bg-2: #0d1322;
  --surface: #131a2d;
  --border: #1c2742;
  --border-hi: #2b3b66;
  --text: #e8eef9;
  --text-2: #9fadc6;
  --text-3: #6b7592;
  --cyan: #22d3ee;
  --green: #10b981;
  --orange: #fb923c;
  --red: #ef4444;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1180px;
  --maxw-text: 720px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Top bar (simpler than apex — no live ticker) */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(10,14,26,.85);
  backdrop-filter: saturate(140%) blur(14px);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  display: grid; place-items: center; color: #002635; font-weight: 800;
  font-size: 13px;
}
.brand-name { font-size: 15.5px; }
.brand-dot { color: var(--cyan); }
.topbar-links { display: flex; gap: 24px; }
.topbar-links a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.topbar-links a:hover { color: var(--text); }
.topbar-cta {
  padding: 8px 14px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), #06b6d4);
  color: #002635; font-weight: 600; font-size: 13.5px;
}
.topbar-cta:hover { color: #002635; }
@media (max-width: 720px) { .topbar-links { display: none; } }

/* Article hero */
.article-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.article-meta {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-3); letter-spacing: 1.8px; text-transform: uppercase;
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 18px;
}
.article-meta .cat { color: var(--cyan); font-weight: 600; }
.article-meta .sep { color: var(--text-3); }
.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.1; letter-spacing: -1px;
  margin: 0 0 20px; font-weight: 600;
}
.article-hero .lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--text-2);
  line-height: 1.5;
  max-width: var(--maxw-text);
  margin: 0;
}
.article-byline {
  margin-top: 28px;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--text-3);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.article-byline strong { color: var(--text); font-weight: 500; }

/* Article body */
.article-body {
  max-width: var(--maxw-text);
  margin: 0 auto;
  padding: 56px 28px 80px;
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.75;
  color: #d4dbeb;
}
.article-body p { margin: 0 0 1.4em; }
.article-body h2 {
  font-family: var(--serif);
  font-size: 28px; font-weight: 600;
  margin: 2.2em 0 .8em;
  letter-spacing: -.4px;
  color: var(--text);
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  margin: 1.8em 0 .6em;
  color: var(--text);
}
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { color: var(--cyan); font-style: italic; }
.article-body a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(34,211,238,.35); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--cyan); }
.article-body code {
  font-family: var(--mono); font-size: .85em;
  background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.18);
  color: #c9f5fd; padding: 1px 6px; border-radius: 4px;
}
.article-body pre {
  background: #060914; border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 22px; overflow: auto;
  font-family: var(--mono); font-size: 13.5px;
  line-height: 1.6; color: var(--text-2);
  margin: 1.6em 0;
}
.article-body pre code {
  background: transparent; border: 0; padding: 0; color: inherit;
  font-size: inherit;
}
.article-body blockquote {
  border-left: 3px solid var(--cyan);
  padding: 4px 0 4px 22px;
  margin: 1.6em 0;
  color: var(--text);
  font-style: italic;
}
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.article-body li { margin-bottom: .5em; }
.article-body hr {
  border: 0; border-top: 1px solid var(--border);
  margin: 3em 0;
}
.article-body .callout {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  padding: 18px 22px;
  border-radius: 8px;
  margin: 1.6em 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.article-body .callout strong { color: var(--orange); }
.article-body figure {
  margin: 2em 0;
  font-family: var(--sans);
}
.article-body figcaption {
  font-size: 13.5px;
  color: var(--text-3);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Article footer / related */
.article-foot {
  border-top: 1px solid var(--border);
  padding: 48px 28px 64px;
  max-width: var(--maxw); margin: 0 auto;
  font-family: var(--sans);
}
.article-foot h4 {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  color: var(--cyan); letter-spacing: 2.5px; text-transform: uppercase;
  margin: 0 0 22px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.related-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 22px; transition: border-color .2s, transform .2s;
}
.related-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.related-card .tag {
  font-family: var(--mono); font-size: 10.5px; color: var(--cyan);
  letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600;
}
.related-card h5 {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  margin: 8px 0 6px; line-height: 1.3;
}
.related-card p {
  color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.5;
}
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

/* CTA at bottom of article */
.article-cta {
  background: linear-gradient(135deg, rgba(34,211,238,.10), rgba(16,185,129,.06));
  border: 1px solid rgba(34,211,238,.25);
  border-radius: 14px;
  padding: 36px;
  text-align: center;
  margin-top: 30px;
  font-family: var(--sans);
}
.article-cta h4 {
  font-family: var(--serif); font-size: 24px; margin: 0 0 8px;
  font-weight: 600; color: var(--text); letter-spacing: -.3px;
}
.article-cta p {
  color: var(--text-2); margin: 0 0 18px; font-size: 15px;
}
.article-cta a {
  display: inline-block;
  padding: 11px 20px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), #06b6d4);
  color: #002635; font-weight: 600; font-size: 14.5px;
}
.article-cta a:hover { color: #002635; filter: brightness(1.06); }

/* Footer (simpler) */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 28px;
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--sans);
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--maxw); margin: 0 auto;
  flex-wrap: wrap; gap: 14px;
}
footer.site-footer a { color: var(--text-2); margin-right: 18px; }
footer.site-footer a:hover { color: var(--cyan); }
