/* blog.css — minimal shared stylesheet for /blog/*
 * Matches the landing's tokens (Geist + Geist Mono, dark bg, lime accent).
 * Intentionally simple: posts are dense reading surfaces, not marketing pages. */

:root {
  --bg:        #08080a;
  --surface-0: #0c0c0f;
  --surface-1: #111114;
  --surface-2: #16161b;
  --border:    #1f1f25;
  --border-2:  #2a2a32;
  --text:      #ededf0;
  --text-2:    #a4a4ad;
  --text-3:    #6b6b74;
  --text-4:    #4a4a52;
  --accent:    #cff75e;
  --accent-2:  #b8e240;
  --accent-ink:#0a0a0b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: "cv11","ss01","ss03";
  letter-spacing: -0.005em;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.mono {
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-feature-settings: "zero","ss02";
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* --- topbar ---------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,10,0.7);
  -webkit-backdrop-filter: blur(12px) saturate(110%);
          backdrop-filter: blur(12px) saturate(110%);
  box-shadow: inset 0 -1px 0 var(--border);
  height: 56px;
  display: flex; align-items: center;
}
.topbar-inner {
  max-width: 760px; margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 17px;
}
.topbar-brand-mark {
  width: 22px; height: 22px;
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.topbar-links {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
}
.topbar-cta {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 6px;
  font: 600 12.5px/1 'Geist', sans-serif;
  letter-spacing: -0.005em;
  transition: filter .15s ease, transform .15s ease;
}
.topbar-cta:hover { filter: brightness(1.06); transform: translateY(-1px); color: var(--accent-ink); }

@media (max-width: 600px) {
  .topbar-links { display: none; }
}

/* --- post chrome ----------------------------------------------------- */
.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}
.post-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1 'Geist Mono', monospace;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
}
.post-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
}
.post h1 {
  font: 700 clamp(34px, 4.5vw, 52px)/1.1 'Geist', sans-serif;
  letter-spacing: -0.038em;
  margin: 0 0 28px;
  color: var(--text);
}
.post .lead {
  font: 500 19px/1.55 'Geist', sans-serif;
  color: var(--text);
  letter-spacing: -0.008em;
  margin: 0 0 36px;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  background: rgba(207,247,94,0.04);
  padding-top: 14px; padding-bottom: 14px;
  border-radius: 0 8px 8px 0;
}
.post h2 {
  font: 700 22px/1.25 'Geist', sans-serif;
  letter-spacing: -0.022em;
  margin: 48px 0 12px;
  color: var(--text);
}
.post h3 {
  font: 600 17px/1.3 'Geist', sans-serif;
  letter-spacing: -0.015em;
  margin: 28px 0 8px;
  color: var(--text);
}
.post p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
}
.post p strong { color: var(--text); font-weight: 600; }
.post ul, .post ol {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 20px;
  padding-left: 22px;
}
.post li { margin: 4px 0; }
.post li strong { color: var(--text); font-weight: 600; }
.post code {
  font: 500 14px/1.4 'Geist Mono', monospace;
  background: var(--surface-2);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.post .accent { color: var(--accent); }
.post hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* --- CTA block ------------------------------------------------------- */
.cta-block {
  margin: 56px 0 0;
  padding: 28px 28px 26px;
  background: var(--surface-1);
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px var(--border),
    0 20px 48px -22px rgba(0,0,0,0.6),
    0 0 0 0 transparent;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 240px at 50% 0%, rgba(207,247,94,0.06), transparent 60%);
  pointer-events: none;
}
.cta-block h3 {
  font: 700 24px/1.2 'Geist', sans-serif;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  color: var(--text);
  position: relative;
}
.cta-block p {
  color: var(--text-2);
  font-size: 15px;
  margin: 0 0 18px;
  position: relative;
}
.cta-block .actions {
  display: inline-flex; gap: 10px; flex-wrap: wrap;
  position: relative;
}
.cta-block .btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 20px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 8px;
  font: 600 14px/1 'Geist', sans-serif;
  letter-spacing: -0.005em;
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cta-block .btn-primary:hover {
  filter: brightness(1.06); transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(207,247,94,0.45);
  color: var(--accent-ink);
}
.cta-block .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 8px;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-2);
  font: 500 14px/1 'Geist', sans-serif;
  letter-spacing: -0.005em;
  transition: background .15s ease;
}
.cta-block .btn-ghost:hover { background: rgba(255,255,255,0.025); color: var(--text); }

/* --- post navigation (prev/next) ------------------------------------- */
.post-nav {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.post-nav a {
  display: block;
  padding: 14px 16px;
  background: var(--surface-1);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: background .15s ease, box-shadow .15s ease;
}
.post-nav a:hover {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border-2);
  color: var(--text);
}
.post-nav .label {
  display: block;
  font: 500 10.5px/1 'Geist Mono', monospace;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.post-nav .title {
  font: 500 14px/1.35 'Geist', sans-serif;
  color: var(--text);
  letter-spacing: -0.008em;
}
.post-nav a.next { text-align: right; }
@media (max-width: 600px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.next { text-align: left; }
}

/* --- footer ---------------------------------------------------------- */
.blog-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-0);
  padding: 32px 24px;
}
.blog-footer-inner {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  color: var(--text-3);
}
.blog-footer-inner a:hover { color: var(--accent); }

/* --- /blog index page ------------------------------------------------ */
.hub {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}
.hub-eyebrow {
  font: 500 11px/1 'Geist Mono', monospace;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.hub h1 {
  font: 700 clamp(36px, 5vw, 56px)/1.05 'Geist', sans-serif;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  color: var(--text);
}
.hub-sub {
  font: 400 17px/1.55 'Geist', sans-serif;
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 0 56px;
}
.hub-list {
  display: flex; flex-direction: column;
  gap: 14px;
}
.hub-card {
  display: block;
  padding: 22px 24px;
  background: var(--surface-1);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
  position: relative;
}
.hub-card:hover {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border-2);
  transform: translateY(-2px);
  color: var(--text);
}
.hub-card .num {
  display: inline-block;
  font: 500 10.5px/1 'Geist Mono', monospace;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.hub-card .q {
  font: 600 19px/1.35 'Geist', sans-serif;
  letter-spacing: -0.022em;
  color: var(--text);
  margin: 0 0 6px;
}
.hub-card .a {
  font: 400 14.5px/1.55 'Geist', sans-serif;
  color: var(--text-3);
  margin: 0;
}
