:root {
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #fafafa;
  --accent: #0b57d0;
  --border: #e5e5e5;
  --maxw: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8e8e8;
    --muted: #9a9a9a;
    --bg: #121212;
    --accent: #6ea8fe;
    --border: #2a2a2a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem;
}

.hero h1 {
  margin: 0;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

.title {
  margin: 0.35rem 0 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.bio {
  margin: 0 0 2rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0 0 3rem;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.links a:hover { text-decoration: underline; }

section h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin: 2.5rem 0 1.25rem;
}

.posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.posts-list li {
  margin: 0 0 1.5rem;
}

.posts-list .post-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.posts-list .post-title a {
  color: var(--fg);
  text-decoration: none;
}

.posts-list .post-title a:hover { color: var(--accent); }

.posts-list .post-date {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.15rem 0;
}

.posts-list .post-excerpt {
  margin: 0.25rem 0 0;
  color: var(--fg);
}

.posts-more {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.posts-more a, .contact a {
  color: var(--accent);
  text-decoration: none;
}

.posts-more a:hover, .contact a:hover { text-decoration: underline; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
