:root {
  --bg: #06060e;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f5;
  --text-muted: #b5b5c5;
  --text-faint: #8b8ba0;
  --brand: #7c3aed;
  --brand-accent: #a855f7;
  --code-bg: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  text-decoration: underline;
}

code,
pre {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

code {
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  color: #e8d9ff;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  border-radius: 10px;
  overflow-x: auto;
  line-height: 1.55;
  margin: 1.4rem 0;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.site-nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav a.brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}

.site-nav a.brand:hover {
  text-decoration: none;
  color: var(--brand-accent);
}

.site-nav .right a {
  margin-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

article,
.posts-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.post-meta {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  font-weight: 800;
}

h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.8rem;
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 1.6rem 0 0.6rem;
  font-weight: 600;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0.6rem 0 2rem;
  line-height: 1.6;
}

article p,
article li {
  color: var(--text-muted);
}

article p {
  margin: 1rem 0;
}

article ul,
article ol {
  padding-left: 1.4rem;
}

article li {
  margin: 0.35rem 0;
}

article strong {
  color: var(--text);
  font-weight: 600;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-cta {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  background: var(--bg-card);
  margin-top: 2.4rem;
}

.post-cta h3 {
  margin-top: 0;
  color: var(--text);
}

.post-cta .buttons {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.post-cta a.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.post-cta a.btn.primary {
  background: var(--brand);
  color: #fff;
}

.post-cta a.btn.primary:hover {
  background: var(--brand-accent);
  text-decoration: none;
}

.post-cta a.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.post-cta a.btn.ghost:hover {
  border-color: var(--brand-accent);
  text-decoration: none;
}

.post-list-item {
  display: block;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.post-list-item:hover {
  text-decoration: none;
}

.post-list-item h2 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

.post-list-item:hover h2 {
  color: var(--brand-accent);
}

.post-list-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.post-list-item .post-meta {
  margin: 0 0 0.3rem;
}

footer.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

footer.site-footer a {
  color: var(--text-muted);
}
