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

:root {
  --bg: #050a18;
  --surface: #0c1225;
  --surface-2: #111a33;
  --border: rgba(255,255,255,0.06);
  --text: #eaf0ff;
  --text-muted: #7a8bb5;
  --accent: #4f8fff;
  --accent-light: #74a9ff;
  --gradient-1: linear-gradient(135deg, #4f8fff 0%, #a855f7 100%);
}

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

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

nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(5, 10, 24, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 64px;
  display: flex; justify-content: space-between; align-items: center;
}

.logo {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
}
.logo-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--gradient-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff;
}
.logo span { color: var(--accent-light); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }

.page {
  max-width: 760px; margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

.page-wide {
  max-width: 960px; margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

.page-header { margin-bottom: 2.5rem; }
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
  margin-bottom: 0.75rem;
}
.page-header .lead {
  color: var(--text-muted); font-size: 1.05rem; max-width: 640px;
}
.page-header .meta {
  color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem;
}

.breadcrumb {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-light); }

/* Article prose */
.article h2 {
  font-size: 1.35rem; font-weight: 700; margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}
.article h3 {
  font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem;
}
.article p, .article li {
  color: var(--text-muted); font-size: 1rem; margin-bottom: 1rem;
}
.article ul, .article ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article strong { color: var(--text); font-weight: 600; }
.article blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem; margin: 1.5rem 0;
  background: var(--surface); border-radius: 0 8px 8px 0;
  color: var(--text-muted); font-size: 0.95rem;
}
.article .callout {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.article .callout strong { display: block; margin-bottom: 0.35rem; color: var(--text); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tag {
  font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.75rem;
  border-radius: 100px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text-muted);
}

/* Blog index cards */
.post-list { display: flex; flex-direction: column; gap: 1.25rem; }
.post-card {
  display: block; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover {
  border-color: rgba(79, 143, 255, 0.35);
  transform: translateY(-2px); text-decoration: none;
}
.post-card h2 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem;
  color: var(--text);
}
.post-card p { color: var(--text-muted); font-size: 0.925rem; margin-bottom: 0.75rem; }
.post-card .meta { font-size: 0.8rem; color: var(--text-muted); }

.empty-state {
  text-align: center; color: var(--text-muted);
  font-size: 0.95rem; padding: 3rem 1rem;
  border: 1px dashed var(--border); border-radius: 14px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem; text-align: center;
  font-size: 0.8rem; color: var(--text-muted);
}
footer a { color: var(--text-muted); margin: 0 0.75rem; }

@media (max-width: 768px) {
  .nav-links a:not(.logo) { display: none; }
}
