@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --surface: #f9fafb;
  --surface-2: #f3f4f6;
  --accent: #4f46e5;
  --accent-light: #4f46e5;
  --accent-glow: rgba(79, 70, 229, 0.1);
  --text: #1e293b;
  --text-muted: #6b7280;
  --text-secondary: #374151;
  --border: #e5e7eb;
  --success: #10B981;
  --warning: #F59E0B;
  --reading-width: 740px;
  --radius: 10px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Reading Progress Bar ───────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), #A78BFA);
  z-index: 1000;
  transition: width 0.08s linear;
  border-radius: 0 3px 3px 0;
}

/* ── Navigation ─────────────────────────────── */
nav {
  position: sticky;
  top: 3px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.nav-logo .blaze {
  color: var(--accent-light);
}

.nav-logo .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem !important;
}

.nav-cta:hover { background: var(--accent-light) !important; }

/* ── Hero ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  padding: 6rem 2rem 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,70,229,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.025em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-meta .sep {
  width: 3px; height: 3px;
  background: var(--border);
  border-radius: 50%;
}

.hero-meta .read-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
}

.hero-excerpt {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Article ─────────────────────────────────── */
article {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* ── Typography ──────────────────────────────── */
article h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  margin: 3.5rem 0 1rem;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.25;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

article h2:first-of-type { border-top: none; margin-top: 0; }

article h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
  color: var(--accent-light);
  letter-spacing: -0.01em;
}

article p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

article p.lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 2rem;
}

article strong { color: var(--text); font-weight: 600; }
article em { color: var(--accent-light); font-style: italic; }

article a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(96,165,250,0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

article a:hover { text-decoration-color: var(--accent-light); }

/* ── Blockquote ──────────────────────────────── */
article blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-glow);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--text-secondary);
}

article blockquote p { margin: 0; color: inherit; }

/* ── Lists ───────────────────────────────────── */
article ul, article ol {
  margin: 0.5rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

article li { margin-bottom: 0.6rem; line-height: 1.7; }
article li strong { color: var(--text); }

/* ── Image Figures ───────────────────────────── */
figure {
  margin: 3rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.img-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  position: relative;
  overflow: hidden;
  gap: 0.75rem;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 25% 40%, rgba(59,130,246,0.07) 0%, transparent 55%),
    radial-gradient(circle at 75% 60%, rgba(129,140,248,0.05) 0%, transparent 50%);
}

.img-placeholder svg {
  width: 48px; height: 48px;
  opacity: 0.2;
  position: relative;
  z-index: 1;
}

.img-placeholder .placeholder-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
  font-style: italic;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.img-placeholder .placeholder-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  position: relative;
  z-index: 1;
}

figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-align: center;
  line-height: 1.5;
}

/* ── Callout ─────────────────────────────────── */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
}

.callout.warning { border-left-color: var(--warning); }
.callout.success { border-left-color: var(--success); }

.callout-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.callout.warning .callout-title { color: var(--warning); }
.callout.success .callout-title { color: var(--success); }
.callout p { margin: 0; font-size: 0.95rem; }

/* ── Stat Cards ──────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Table of Contents ───────────────────────── */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.toc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.toc ol { margin: 0; padding-left: 1.25rem; color: var(--text-muted); }
.toc li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.toc a { color: var(--text-secondary); text-decoration: none; }
.toc a:hover { color: var(--accent-light); }

/* ── Tag List ────────────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.tag {
  background: var(--surface-2);
  color: var(--text-muted);
  padding: 0.25rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover { border-color: var(--accent); color: var(--accent-light); }

/* ── CTA Section ─────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border: 1px solid rgba(79,70,229,0.3);
  border-radius: 14px;
  padding: 2.5rem;
  margin: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.cta-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(59,130,246,0.3);
  color: white;
  text-decoration: none;
}

/* ── Related Posts ───────────────────────────── */
.related-posts {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.related-posts-inner {
  max-width: var(--reading-width);
  margin: 0 auto;
}

.related-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.related-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.related-card-tag {
  font-size: 0.72rem;
  color: var(--accent-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.related-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.related-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ── Footer ──────────────────────────────────── */
footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.footer-logo span {
  color: #818cf8;
}

.footer-brand > p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 500px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #818cf8;
  color: white;
  transform: translateY(-2px);
}

.footer-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  space-y: 0.5rem;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #818cf8;
}

.footer-section p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.footer-cta {
  color: #818cf8 !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-cta:hover {
  color: #a5b4fc !important;
}

footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.5rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* ── Post Hero ───────────────────────────────── */
.blog-post { position: relative; }

.post-hero {
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 3rem;
  overflow: hidden;
}

.post-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.post-hero-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.post-header {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.post-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-light);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.post-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.post-excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.post-meta .sep {
  width: 3px;
  height: 3px;
  background: var(--border);
  border-radius: 50%;
}

/* ── Blog Index ──────────────────────────────── */
.index-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.index-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,70,229,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.index-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  position: relative;
}

.index-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
}

.blog-index { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.featured-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 360px;
  transition: border-color 0.2s;
}

.featured-post:hover { border-color: rgba(59,130,246,0.4); }

.featured-post .img-placeholder { height: 100%; min-height: 300px; border-radius: 0; }

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 0.2rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  width: fit-content;
}

.post-badge.flagship::before {
  content: '★';
  font-size: 0.65rem;
}

.featured-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.featured-content h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.featured-content h2 a:hover { color: var(--accent-light); }

.featured-content .excerpt {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.post-meta-line {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.post-meta-line .sep { width: 3px; height: 3px; background: var(--border); border-radius: 50%; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-light);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s;
}

.read-more:hover { gap: 0.6rem; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.post-card:hover {
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-3px);
}

.post-card .img-placeholder { height: 190px; border-radius: 0; overflow: hidden; }

.article-image { width: 100%; height: 280px; object-fit: contain; display: block; background-color: #f8fafc; }

.post-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-topic {
  font-size: 0.72rem;
  color: var(--accent-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.post-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
  letter-spacing: -0.01em;
}

.post-card .card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Code ────────────────────────────────────── */
code {
  background: var(--surface-2);
  color: var(--accent-light);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code { background: none; padding: 0; font-size: 0.875rem; }

/* ── Divider ─────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Selection ───────────────────────────────── */
::selection { background: rgba(59,130,246,0.3); color: var(--text); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .img-placeholder { height: 220px; }
  .hero { padding: 4rem 1.5rem 3rem; }
  article { padding: 2.5rem 1.25rem; }
  .blog-index { padding: 2.5rem 1.25rem; }
  .nav-links li:not(:last-child) { display: none; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
}

@media print {
  .progress-bar, nav, .related-posts, footer { display: none; }
  article { padding: 0; }
  body { background: white; color: black; }
}
