/* Blog styles — extends main site styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: #4f46e5; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.site-nav {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav .logo {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
}
.site-nav .logo span { color: #4f46e5; }
.site-nav .nav-links { display: flex; gap: 24px; align-items: center; }
.site-nav .nav-links a { color: #555; font-size: 14px; font-weight: 500; }
.site-nav .nav-links a:hover { color: #1a1a1a; text-decoration: none; }
.site-nav .nav-cta {
  background: #4f46e5;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}
.site-nav .nav-cta:hover { background: #4338ca; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 740px; margin: 0 auto; padding: 0 24px; }

/* Blog index */
.blog-hero {
  padding: 60px 0 40px;
  text-align: center;
}
.blog-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}
.blog-hero p {
  font-size: 18px;
  color: #666;
  max-width: 560px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  padding: 0 0 80px;
}

.blog-card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.blog-card-body { padding: 24px; }
.blog-card .category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4f46e5;
  background: #eef2ff;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.blog-card h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.blog-card h2 a { color: #1a1a1a; }
.blog-card h2 a:hover { color: #4f46e5; text-decoration: none; }
.blog-card .excerpt {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card .meta {
  font-size: 13px;
  color: #999;
}

/* Article page */
.article-header {
  padding: 60px 0 32px;
  text-align: center;
}
.article-header .category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4f46e5;
  background: #eef2ff;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}
.article-header .meta {
  font-size: 14px;
  color: #888;
}

.article-body {
  padding-bottom: 60px;
}
.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 48px 0 16px;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid #4f46e5;
  padding: 16px 24px;
  margin: 24px 0;
  background: #f8f9ff;
  border-radius: 0 8px 8px 0;
  font-size: 17px;
  color: #444;
}
.article-body strong { color: #1a1a1a; }

/* CTA box in articles */
.article-cta {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin: 48px 0;
}
.article-cta h3 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 12px;
}
.article-cta p {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  margin-bottom: 20px;
}
.article-cta .cta-btn {
  display: inline-block;
  background: #fff;
  color: #4f46e5;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
}
.article-cta .cta-btn:hover { text-decoration: none; opacity: 0.95; }

/* Table of contents */
.toc {
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
  margin: 0 0 32px;
}
.toc h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 12px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.8;
}
.toc a { color: #4f46e5; }

/* Footer */
.site-footer {
  background: #f8f9fa;
  padding: 40px 0;
  border-top: 1px solid #e8e8e8;
  text-align: center;
  color: #888;
  font-size: 14px;
}
.site-footer a { color: #4f46e5; }

/* Key takeaway box */
.key-takeaway {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.key-takeaway strong {
  display: block;
  color: #166534;
  margin-bottom: 4px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-hero h1 { font-size: 28px; }
  .article-header h1 { font-size: 30px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 28px 20px; }
  .site-nav .nav-links { gap: 16px; }
}
