/* Standalone blog styling — shares the Autostats dark palette. */
:root {
  --bg-color: #0f172a;
  --panel-bg: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --accent-grad: linear-gradient(90deg, #3b82f6, #22d3ee);
  --border-color: #334155;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo:hover { text-decoration: none; }
.logo span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo svg { color: var(--accent); }
.header-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Article layout */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-muted); }

article h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.post-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }

article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 14px;
}
article h3 { font-size: 1.15rem; font-weight: 600; margin: 28px 0 10px; }
article p { color: #cbd5e1; margin-bottom: 18px; }
article ul, article ol { color: #cbd5e1; margin: 0 0 18px 22px; }
article li { margin-bottom: 8px; }
article strong { color: var(--text-main); }

article hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 36px 0;
}

.lede { font-size: 1.15rem; color: var(--text-main); }

/* Callout / CTA box */
.cta-box {
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
  border-radius: 12px;
  padding: 28px;
  margin: 36px 0;
}
.cta-box h3 { margin-top: 0; }
.cta-box p { margin-bottom: 18px; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.cta-btn:hover { filter: brightness(1.1); text-decoration: none; }

.post-footnote {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Blog index list */
.index-head { margin-bottom: 36px; }
.index-head h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.index-head p { color: var(--text-muted); }

.post-card {
  display: block;
  border: 1px solid var(--border-color);
  background: var(--panel-bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.post-card .post-card-meta { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.post-card h2 { font-size: 1.3rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.post-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .wrap { padding: 28px 18px 60px; }
  .site-header .inner { padding: 14px 18px; }
  .header-cta { display: none; }
}
