:root {
  --bg: #fafaf9;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #2563eb;
  --border: #e5e5e5;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1a1a1a; --text: #e5e5e5; --muted: #999; --accent: #60a5fa; --border: #333; }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 700px; margin: 0 auto; padding: 0 20px; }

header { padding: 24px 0; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.1em; color: var(--text); }
.nav-links { display: flex; gap: 18px; }
.nav-links a { font-size: 0.9em; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

main { min-height: 60vh; }
footer { padding: 40px 0; text-align: center; font-size: 0.85em; color: var(--muted); border-top: 1px solid var(--border); margin-top: 60px; }

/* Home */
.hero { padding: 40px 0 30px; }
.hero h1 { font-size: 2.2em; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; }
.hero .tagline { font-size: 1.15em; color: var(--muted); max-width: 560px; margin-bottom: 8px; }
.hero .location { font-size: 0.95em; color: var(--muted); }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0; }
.service { padding: 16px; border: 1px solid var(--border); border-radius: 6px; }
.service h3 { font-size: 0.95em; margin-bottom: 4px; }
.service p { font-size: 0.85em; color: var(--muted); }
.links { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0; }
.links a { font-weight: 500; }

/* Blog */
.blog-list { list-style: none; }
.blog-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.blog-list .date { font-size: 0.85em; color: var(--muted); }
.blog-list .title { font-size: 1.1em; font-weight: 600; }

/* Post */
.post { max-width: 640px; }
.post h1 { font-size: 2em; margin-bottom: 8px; }
.post-date { color: var(--muted); font-size: 0.9em; margin-bottom: 24px; }
.post-content h2 { margin: 28px 0 12px; font-size: 1.3em; }
.post-content h3 { margin: 20px 0 8px; }
.post-content p { margin-bottom: 14px; color: var(--text); }
.post-content ul, .post-content ol { margin: 8px 0 16px 24px; }
.post-content li { margin-bottom: 4px; }
.post-content code { background: var(--border); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.post-content pre { background: var(--border); padding: 16px; border-radius: 6px; overflow-x: auto; margin: 16px 0; }
.post-content pre code { background: none; padding: 0; }

@media (max-width: 500px) {
  .services { grid-template-columns: 1fr; }
  .nav-links { gap: 10px; }
  .hero h1 { font-size: 1.6em; }
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 2px solid var(--border);
}

.post-meta { font-size: 0.9em; color: var(--muted); }
.post-excerpt { font-size: 0.9em; color: var(--muted); }
.cv-page h2 { font-size: 1.3em; margin-top: 28px; }
.cv-page h3 { margin-top: 16px; }
.cv-page ul { margin: 8px 0 16px 20px; }
.cv-page li { margin-bottom: 4px; }
.cv-page hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
