:root {
  --bg: #09090b;
  --surface-1: #111113;
  --surface-2: #18181b;
  --border: #27272a;
  --ink: #f4f4f5;
  --ink-muted: #a1a1aa;
  --ink-faint: #71717a;
  --brand: #6366f1;
  --brand-hover: #818cf8;
  --accent-pink: #ec4899;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}
.nav-logo img { height: 128px; width: auto; }
.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--brand-hover); text-decoration: none; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-hover);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1.post-title {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 14px;
}

.post-meta {
  color: var(--ink-faint);
  font-size: 14px;
  margin-bottom: 40px;
}

.post-body h2 {
  font-size: 24px;
  margin-top: 2.2em;
}
.post-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin-top: 1.8em;
}
.post-body p {
  color: var(--ink-muted);
  font-size: 17px;
  margin: 0 0 1.3em;
}
.post-body ul, .post-body ol {
  color: var(--ink-muted);
  font-size: 17px;
  padding-left: 1.4em;
  margin: 0 0 1.3em;
}
.post-body li { margin-bottom: 0.5em; }
.post-body strong { color: var(--ink); font-weight: 600; }

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin: 2.5em 0;
}
.callout p { color: var(--ink-muted); margin: 0 0 14px; font-size: 15px; }
.callout-btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
}
.callout-btn:hover { background: var(--brand-hover); text-decoration: none; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  font-size: 14px;
  margin-bottom: 32px;
}
.back-link:hover { color: var(--ink-muted); }

/* Blog index */
.index-header { text-align: center; margin-bottom: 56px; }
.index-header h1 { font-size: clamp(32px, 5vw, 42px); }
.index-header p { color: var(--ink-muted); font-size: 17px; max-width: 480px; margin: 0 auto; }

.post-list { display: flex; flex-direction: column; gap: 4px; }
.post-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
  transition: border-color 0.15s ease;
}
.post-card:hover { border-color: var(--brand); text-decoration: none; }
.post-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}
.post-card-excerpt { color: var(--ink-muted); font-size: 15px; margin-bottom: 10px; }
.post-card-meta { color: var(--ink-faint); font-size: 13px; }

footer.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 32px 24px;
  color: var(--ink-faint);
  font-size: 13px;
}
footer.site-footer a { color: var(--ink-faint); margin: 0 8px; }
