:root {
  --bg: #ffffff;
  --text: #222222;
  --accent: #0055d4;
  --muted: #777777;
  --border: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --text: #e0e0e0;
    --accent: #58a6ff;
    --muted: #888888;
    --border: #333333;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--text);
  max-width: 680px;
  margin: 40px auto;
  padding: 0 20px;
  text-rendering: optimizeLegibility;
}

header {
  margin-bottom: 2.5rem;
}

nav a {
  margin-right: 14px;
  text-decoration: none;
  font-weight: 500;
  color: var(--accent);
}

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

h1, h2, h3 {
  line-height: 1.25;
  margin-top: 1.8rem;
}

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

/* Post list archive styling */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.post-item a {
  text-decoration: none;
  font-weight: 500;
}

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

.post-date {
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

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

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