:root {
  --bg: #fff;
  --text: #333;
  --text-secondary: #666;
  --link: #0066cc;
  --border: #eee;
  --code-bg: #f4f4f4;
  --article-title: #333;
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --text: #e0e0e0;
  --text-secondary: #999;
  --link: #66b3ff;
  --border: #333;
  --code-bg: #2a2a2a;
  --article-title: #e0e0e0;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: "Andada Pro", serif;
  margin-bottom: 0.75rem;
  letter-spacing: 1rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

nav {
  display: flex;
  align-items: center;
}

nav a:last-child {
  margin-right: 1rem;
}

nav a {
  margin-right: 1rem;
  text-decoration: none;
  color: var(--link);
}

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

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.theme-toggle:hover {
  border-color: var(--link);
}

article {
  margin-bottom: 2rem;
}

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

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

time {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

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

.post-content code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 3px;
}

.post-content pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}

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