/* Blog styles. Shares the landing page's design tokens (see site/index.html).
   Kept separate from the stale site/style.css on purpose. */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-deep: #010102;
  --bg-page: #08090a;
  --bg-panel: #0f1011;
  --bg-surface: #191a1b;
  --text-primary: #f7f8f8;
  --text-secondary: #d0d6e0;
  --text-tertiary: #8a8f98;
  --text-quaternary: #62666d;
  --accent: #5e6ad2;
  --accent-bright: #7170ff;
  --accent-hover: #828fff;
  --border: rgba(255,255,255,0.08);
  --border-subtle: rgba(255,255,255,0.05);
  --orange: #f59e0b;
  --radius: 8px;
  --radius-lg: 12px;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 5%, rgba(94,106,210,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(113,112,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
nav, main, footer { position: relative; z-index: 1; }
nav {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8,9,10,0.8);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 10;
}
.nav-inner {
  max-width: 760px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-weight: 600; font-size: 16px; color: var(--text-primary); text-decoration: none; }
.logo-icon { margin-right: 6px; }
.nav-links a { font-size: 14px; color: var(--text-tertiary); text-decoration: none; margin-left: 24px; }
.nav-links a:hover { color: var(--text-primary); }
main { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.post-meta { font-size: 14px; color: var(--text-quaternary); margin-bottom: 12px; }
h1 { font-size: 34px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 24px; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 14px; }
p { color: var(--text-secondary); margin-bottom: 16px; }
a { color: var(--accent-hover); }
a:hover { color: var(--accent-bright); }
strong { color: var(--text-primary); }
ul { margin: 0 0 16px 22px; color: var(--text-secondary); }
li { margin-bottom: 10px; }
.lede {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px;
}
.lede p { margin: 0; color: var(--text-secondary); }
pre {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin: 0 0 16px;
  overflow-x: auto;
}
code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px; color: var(--text-secondary);
}
p code, li code {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: 4px; padding: 1px 5px;
}
.post-card {
  display: block; background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 16px;
  text-decoration: none; transition: border-color 0.15s;
}
.post-card:hover { border-color: var(--accent); }
.post-card h2 { margin: 4px 0 8px; font-size: 19px; color: var(--text-primary); }
.post-card p { margin: 0; font-size: 15px; color: var(--text-tertiary); }
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 24px 40px; text-align: center;
}
footer p { font-size: 13px; color: var(--text-quaternary); }
footer a { color: var(--text-tertiary); text-decoration: none; }
footer a:hover { color: var(--text-primary); }
@media (max-width: 600px) { h1 { font-size: 27px; } }
