/* Mobile-first, no cookies, minimal CSS */
:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #0066cc;
  --border: #e0e0e0;
  --card: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --text: #e8e8e8;
    --muted: #999;
    --accent: #4da6ff;
    --border: #333;
    --card: #1a1a1a;
  }
}

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

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

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

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

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

header p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 1rem;
  font-size: 0.9rem;
}

nav a:hover {
  text-decoration: underline;
}

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

article:last-child {
  border-bottom: none;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

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

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

time {
  color: var(--muted);
  font-size: 0.85rem;
}

.post-content {
  margin-top: 1rem;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.post-content code {
  background: var(--border);
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.post-content pre {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
}

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

/* Post list */
.post-list {
  list-style: none;
}

.post-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:last-child {
  border-bottom: none;
}

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

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

.post-list time {
  display: block;
  font-size: 0.8rem;
}

/* Responsive */
@media (min-width: 600px) {
  body {
    padding: 2rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}