:root {
  --text: #222;
  --bg: #fff;
  --accent: #0066cc;
  --muted: #666;
  --border: #ddd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e0e0e0;
    --bg: #1a1a1a;
    --accent: #6db3f2;
    --muted: #999;
    --border: #333;
  }
}

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

html {
  font-size: 18px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

header nav {
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
}

header nav a {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

header nav a:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

main {
  min-height: 60vh;
}

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

h1, h2, h3 {
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration: none;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.25rem;
}

code {
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--border);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

pre {
  background: var(--border);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  border-radius: 4px;
}

pre code {
  background: none;
  padding: 0;
}

blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

article header {
  margin-bottom: 2rem;
}

article header h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

article header time {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 1.5rem;
}

.post-list time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.post-list a {
  font-size: 1.1rem;
  text-decoration: none;
}

.post-list a:hover {
  text-decoration: underline;
}
