/* aibuildersguide.com blog — matches main site design tokens */
:root {
  --bg-base: #080a0c;
  --bg-card: #0d1117;
  --bg-card-hover: #111820;
  --border-subtle: #1f2937;
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.15);
  --cyan-glow: rgba(0, 212, 255, 0.08);
  --green: #00ff88;
  --text-primary: #eef2f7;
  --text-secondary: #a3b0bf;
  --text-muted: #6b7583;
  --font-sans: "Satoshi", "Cabinet Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --radius: 0.5rem;
  --max-width: 780px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand .accent { color: var(--cyan); }
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 0.95rem;
}
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover { color: var(--cyan); }
.nav a.active { color: var(--cyan); }

/* ---------- Main / Article ---------- */
main {
  flex: 1;
  padding: 48px 24px 72px;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.container-wide {
  max-width: 1000px;
  margin: 0 auto;
}

/* Blog index */
.page-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 44px;
}
.post-list {
  display: grid;
  gap: 20px;
}
.post-card {
  display: block;
  padding: 24px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.post-card:hover {
  border-color: var(--cyan-dim);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.post-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 12px;
}
.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Article page */
.article-header {
  margin-bottom: 32px;
}
.article-header .breadcrumb {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 20px;
}
.article-header .breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.article-header .breadcrumb a:hover { color: var(--cyan); }
.article-header h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.article-header .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

article.post h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  color: var(--text-primary);
}
article.post h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text-primary);
}
article.post p {
  color: var(--text-secondary);
  margin: 0 0 18px;
}
article.post p strong { color: var(--text-primary); }
article.post ul, article.post ol {
  color: var(--text-secondary);
  margin: 0 0 20px;
  padding-left: 24px;
}
article.post li { margin-bottom: 8px; }
article.post a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-dim);
  transition: border-color 0.15s;
}
article.post a:hover { border-color: var(--cyan); }
article.post blockquote {
  border-left: 3px solid var(--cyan);
  padding: 6px 0 6px 18px;
  margin: 22px 0;
  color: var(--text-primary);
  font-style: italic;
}
article.post code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* Callout / CTA */
.callout {
  margin: 32px 0;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--cyan-glow), transparent);
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius);
}
.callout h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.callout p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.callout p:last-child { margin-bottom: 0; }
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--cyan);
  color: #001318;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: none !important;
  transition: opacity 0.15s, transform 0.15s;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
}
.btn-secondary:hover { background: var(--cyan-glow); }

/* Disclosure */
.disclosure {
  margin: 40px 0 0;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.site-footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-right: 18px;
}
.site-footer a:hover { color: var(--cyan); }

@media (max-width: 640px) {
  .site-header .inner { padding: 14px 16px; }
  .nav { gap: 14px; font-size: 0.85rem; }
  main { padding: 32px 18px 56px; }
  .page-title { font-size: 1.85rem; }
  .article-header h1 { font-size: 1.75rem; }
  article.post h2 { font-size: 1.3rem; }
}
