:root {
  --violet: #7C3AED;
  --violet-dark: #5B21B6;
  --ink: #1a1a1a;
  --muted: #666;
  --bg: #ffffff;
  --bg-soft: #f8f7fc;
  --border: #e8e6f0;
  --max-width: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
.site-nav a {
  margin-left: 18px;
  color: var(--muted);
  font-size: 15px;
}
.site-nav a:hover { color: var(--violet); }

/* Hero (home page) */
.hero {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.hero h1 {
  font-size: 36px;
  margin: 0 0 12px;
}
.hero-lede {
  color: var(--muted);
  font-size: 18px;
}

/* Post list */
.post-list { padding: 8px 0 48px; }
.post-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.post-card:last-child { border-bottom: none; }
.post-card h2 {
  margin: 0 0 6px;
  font-size: 24px;
}
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--violet); text-decoration: none; }
.post-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.post-excerpt {
  margin: 0 0 12px;
  color: #333;
}
.read-more {
  font-weight: 600;
  font-size: 15px;
}

/* Single post */
.post { padding: 40px 0 64px; }
.post-header { margin-bottom: 28px; }
.post-header h1 {
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.post-content h2 { font-size: 26px; margin-top: 36px; }
.post-content h3 { font-size: 20px; margin-top: 28px; }
.post-content p { margin: 16px 0; }
.post-content ul, .post-content ol { margin: 16px 0; padding-left: 28px; }
.post-content li { margin: 6px 0; }
.post-content code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.post-content pre {
  background: var(--bg-soft);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
}
.post-content blockquote {
  border-left: 3px solid var(--violet);
  padding-left: 16px;
  margin: 20px 0;
  color: var(--muted);
}

/* Post footer */
.post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.cta {
  display: inline-block;
  background: var(--violet);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 16px;
}
.cta:hover {
  background: var(--violet-dark);
  text-decoration: none;
}
.back-link a {
  color: var(--muted);
  font-size: 15px;
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 64px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
