/* Shared styles for /insights/ index + article pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #10b981;
  --green-dark: #059669;
  --green-light: #d1fae5;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --amber: #f59e0b;
  --red: #ef4444;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--white);
  color: var(--slate-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }

nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 36px; height: 36px; background: var(--green);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 20px; height: 20px; fill: white; }
.nav-logo-text { font-size: 17px; font-weight: 700; color: var(--slate-900); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--slate-700); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--slate-900); }
.nav-cta {
  background: var(--green); color: white !important; text-decoration: none;
  padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--green-dark); }

main.wrap { max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; }
main.wrap.wide { max-width: 1100px; }

/* Insights index */
.index-header { text-align: center; margin-bottom: 56px; }
.index-header h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800; letter-spacing: -1px;
  color: var(--slate-900); margin-bottom: 16px;
}
.index-header p { font-size: 18px; color: var(--slate-500); max-width: 600px; margin: 0 auto; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.article-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.article-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15,23,42,0.06);
  color: inherit;
}
.article-card .tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.article-card h2 {
  font-size: 20px; font-weight: 700;
  color: var(--slate-900); margin-bottom: 10px;
  line-height: 1.3;
}
.article-card p {
  font-size: 14.5px; color: var(--slate-600);
  line-height: 1.55;
}
.article-card .read { display: inline-block; margin-top: 14px; color: var(--green-dark); font-weight: 600; font-size: 14px; }

/* Article page */
.article-meta {
  font-size: 14px; color: var(--slate-500);
  margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.article-meta .tag {
  font-size: 12px; font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.3px;
}
article.post h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800; letter-spacing: -0.8px;
  color: var(--slate-900);
  margin-bottom: 18px;
  line-height: 1.15;
}
article.post .lede {
  font-size: 19px; color: var(--slate-600);
  margin-bottom: 36px;
  line-height: 1.55;
}
article.post h2 {
  font-size: 26px; font-weight: 700;
  color: var(--slate-900);
  margin: 44px 0 14px;
  letter-spacing: -0.3px;
}
article.post h3 {
  font-size: 19px; font-weight: 700;
  color: var(--slate-900);
  margin: 28px 0 10px;
}
article.post p { margin-bottom: 18px; color: var(--slate-700); font-size: 17px; }
article.post ul, article.post ol { margin: 0 0 18px 24px; }
article.post li { margin-bottom: 8px; color: var(--slate-700); font-size: 17px; }
article.post strong { color: var(--slate-900); font-weight: 600; }
article.post blockquote {
  border-left: 3px solid var(--green);
  padding: 8px 18px;
  margin: 24px 0;
  background: var(--green-light);
  border-radius: 0 8px 8px 0;
  color: var(--slate-800);
  font-style: italic;
}
article.post code {
  background: var(--slate-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--slate-800);
}

.cta-box {
  margin: 48px 0 0;
  padding: 32px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid var(--green-light);
  border-radius: 14px;
  text-align: center;
}
.cta-box h3 {
  font-size: 22px; font-weight: 700;
  color: var(--slate-900); margin-bottom: 8px;
}
.cta-box p { color: var(--slate-600); margin-bottom: 18px; font-size: 16px; }
.cta-box .btn {
  display: inline-block;
  background: var(--green); color: white !important;
  text-decoration: none;
  padding: 13px 26px; border-radius: 10px;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}
.cta-box .btn:hover { background: var(--green-dark); }

.related {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--slate-200);
}
.related h3 { font-size: 14px; font-weight: 700; color: var(--slate-500); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 18px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.related li { margin: 0; padding: 0; font-size: 16px; }
.related li a { color: var(--slate-800); text-decoration: none; font-weight: 500; }
.related li a:hover { color: var(--green-dark); }
.related li a::before { content: "→"; margin-right: 10px; color: var(--green); }

footer.site-footer {
  border-top: 1px solid var(--slate-200);
  padding: 32px 24px;
  text-align: center;
  color: var(--slate-500); font-size: 14px;
}
footer.site-footer a { color: var(--slate-700); margin: 0 12px; }

@media (max-width: 640px) {
  nav.site-nav { padding: 0 20px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  main.wrap { padding: 96px 20px 60px; }
}
