:root {
  --bg: #ffffff;
  --text: #1f2328;
  --muted: #656d76;
  --accent: #0969da;
  --border: #d0d7de;
  --code-bg: #f6f8fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --text: #e6edf3;
    --muted: #8b949e;
    --accent: #58a6ff;
    --border: #30363d;
    --code-bg: #161b22;
  }
}

* {
  box-sizing: border-box;
}

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

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

a:hover {
  text-decoration: underline;
}

/* Header & Navigation */
.site-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

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

/* Main Content */
.site-main {
  min-height: 65vh;
}

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

h1 {
  font-size: 1.75rem;
  margin-top: 0;
}

h2 {
  font-size: 1.35rem;
}

/* Blog Post List */
.post-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.post-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.post-list time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* Single Post */
.post-header {
  margin-bottom: 1.75rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Code & Images */
pre {
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  background-color: var(--code-bg);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

:not(pre) > code {
  background-color: var(--code-bg);
  padding: 0.15em 0.35em;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

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

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