:root {
  --bg: #0b0d12;
  --bg-elev: #11141b;
  --fg: #e7eaf0;
  --muted: #8b93a4;
  --line: #1d212c;
  --accent: #5b8def;
  --accent-soft: rgba(91, 141, 239, 0.14);
  --radius: 14px;
  --maxw: 960px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 650; }
h2 { font-size: 1.4rem; font-weight: 620; margin-bottom: 1.2rem; }
h3 { font-size: 1.05rem; font-weight: 620; margin-bottom: 0.4rem; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  background: rgba(11, 13, 18, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), #8a6cff);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.nav-links a:hover { color: var(--fg); }

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem) 4rem;
}

.hero { padding: 2rem 0 3.5rem; }
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(91, 141, 239, 0.25);
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.lede { color: var(--muted); max-width: 60ch; font-size: 1.08rem; }

.cta { display: flex; gap: 0.6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 80ms ease, background 120ms ease, border-color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #4f7de0; color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--fg); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.grid { padding: 2.6rem 0; border-top: 1px solid var(--line); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  transition: border-color 140ms ease, transform 140ms ease;
}
.card:hover { border-color: rgba(91, 141, 239, 0.45); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0 0 0.7rem; font-size: 0.96rem; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.posts { list-style: none; padding: 0; margin: 0; }
.posts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line);
}
.posts li:last-child { border-bottom: 0; }
.posts a { font-weight: 540; }
.meta { color: var(--muted); font-size: 0.85rem; font-family: var(--font-mono); }

.about p { color: var(--muted); max-width: 65ch; }
.about p + p { margin-top: 0.6rem; }

footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.6rem clamp(1rem, 4vw, 2rem) 2.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .nav-links { gap: 0.85rem; font-size: 0.88rem; }
  .posts li { flex-direction: column; gap: 0.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
