:root {
  --bg: #f5f5f0;
  --bg-secondary: #eaeae5;
  --text: #1a1a1a;
  --text-muted: #666;
  --accent: #000;
  --link: #c44;
  --link-hover: #a22;
  --code-bg: #eaeae5;
  --border: #ddd;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

header { margin-bottom: 4rem; }

.site-title {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-title:hover { color: var(--link); }

main { margin-bottom: 4rem; }

article h1 {
  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

article time {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 2.5rem;
}

.tags { margin-bottom: 2rem; }

.tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.2em 0.6em;
  border-radius: 3px;
  margin-right: 0.4em;
}

h2 {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

p { margin-bottom: 1.4rem; }

a { color: var(--link); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--link-hover); }

strong { color: var(--accent); font-weight: 700; }
em { font-style: italic; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

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

pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

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

li { margin-bottom: 0.4rem; }

blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-preview { margin-bottom: 2.5rem; }
.post-preview h2 { margin-top: 0; margin-bottom: 0.3rem; }
.post-preview h2 a { text-decoration: none; color: var(--accent); }
.post-preview h2 a:hover { color: var(--link); }
.post-preview time { font-size: 0.85rem; color: var(--text-muted); }
.post-preview p { color: var(--text-muted); margin-top: 0.5rem; }

footer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 2rem 1rem; }
  article h1 { font-size: 1.7rem; }
}
