* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #222;
  --text: #ededec;
  --text-muted: #888;
  --accent: #6ee7b7;
  --accent-hover: #a7f3d0;
  --code-bg: #111;
  --max-width: 860px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  padding: 24px 0;
  margin-bottom: 48px;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.site-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.site-name:hover { color: var(--accent-hover); }
nav a {
  color: var(--text-muted);
  margin-left: 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
nav a:hover { color: var(--text); }

/* Homepage */
.intro { margin-bottom: 56px; }
.intro h1 {
  font-size: 32px;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.intro p { color: var(--text-muted); font-size: 15px; }

.post-list { list-style: none; }
.post-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.15s;
}
.post-item:first-child { border-top: 1px solid var(--border); }
.post-item:hover { padding-left: 8px; }
.post-item a {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.post-item a:hover { color: var(--accent); }
.post-meta {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-excerpt { color: var(--text-muted); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.tag {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Blog post */
.post-header { margin-bottom: 40px; }
.post-header h1 {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.post-header .post-meta { font-size: 13px; }

.post-content h2 {
  font-size: 22px;
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}
.post-content h3 {
  font-size: 17px;
  margin: 28px 0 10px;
  font-weight: 600;
  color: var(--text);
}
.post-content p { margin-bottom: 16px; color: #ccc; }
.post-content ul, .post-content ol { margin-bottom: 16px; padding-left: 24px; color: #ccc; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 12px 20px;
  margin: 20px 0;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.post-content code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13.5px;
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  color: var(--accent);
}
.post-content pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}
.post-content strong { color: #fff; font-weight: 600; }
.post-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #333; }
.post-content a:hover { text-decoration-color: var(--accent); }

/* Back link */
.back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.back:hover { color: var(--accent); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 28px 0;
  color: #555;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Hero */
.hero {
  padding: 60px 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-title {
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero-title a { color: var(--text); }
.hero-title a:hover { color: var(--accent); }
.hero-excerpt {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 12px;
}
.hero-meta {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 20px;
}
.hero-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 20px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.hero-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Featured Row */
.featured-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.featured-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.featured-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.featured-card .featured-date {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.featured-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.3;
}
.featured-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Section Heading */
.section-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.grid-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.15s;
}
.grid-card:hover { border-color: var(--accent); }
.grid-card .grid-date {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.grid-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.3;
}
.grid-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Archive List */
.archive-list {
  list-style: none;
  margin-bottom: 24px;
}
.archive-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.archive-item:first-child { border-top: 1px solid var(--border); }
.archive-item a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.archive-item a:hover { color: var(--accent); }
.archive-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .intro h1 { font-size: 24px; }
  .post-header h1 { font-size: 26px; }
  header .container { flex-direction: column; gap: 10px; }
  nav a { margin-left: 16px; }
  nav a:first-child { margin-left: 0; }
  .hero { padding: 40px 0 32px; }
  .hero-title { font-size: 28px; }
  .featured-row { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
}
