:root {
  --text: #1a1a1a;
  --bg: #fafafa;
  --accent: #2563eb;
  --muted: #6b7280;
  --border: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e5e7eb;
    --bg: #111111;
    --accent: #60a5fa;
    --muted: #9ca3af;
    --border: #2d2d2d;
  }
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  line-height: 1.6;
}

nav {
  margin-bottom: 3rem;
  display: flex;
  gap: 1.5rem;
}

nav a:first-child { font-weight: 700; }

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

a:hover { text-decoration: underline; }

h1 { margin-bottom: 0.5rem; }
h2 { margin-top: 2rem; margin-bottom: 0.5rem; }

ul { list-style: none; }

li {
  padding: 0.3rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

time { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

article { line-height: 1.7; }
article p { margin: 1rem 0; }
article pre { background: var(--border); padding: 1rem; border-radius: 4px; overflow-x: auto; }
article code { font-size: 0.9em; }
article img { max-width: 100%; }

.tags { display: flex; gap: 0.5rem; margin: 0.5rem 0 1.5rem; }
.tags a { font-size: 0.85rem; color: var(--muted); }

.about {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.about p { margin: 0.5rem 0; }
.about .contact { color: var(--muted); font-size: 0.9rem; }
.about .contact a { color: var(--muted); }
.about .contact a:hover { color: var(--accent); }

.about-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  float: right;
  margin: 0 0 1rem 1.5rem;
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
