:root {
  --bg-color: #fcfcfc;
  --text-color: #222222;
  --accent-color: #0066cc;
  --border-color: #e5e5e5;
  --card-bg: #ffffff;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121214;
    --text-color: #e4e4e7;
    --accent-color: #3b82f6;
    --border-color: #27272a;
    --card-bg: #18181b;
  }
}

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

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

header a {
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color);
}

h1, h2, h3 {
  line-height: 1.25;
  color: var(--text-color);
}

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

a:hover {
  text-decoration: underline;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.post-item h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.post-date {
  font-size: 0.875rem;
  opacity: 0.7;
}

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

/* Make all post & body images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto; /* Centers the image and adds vertical spacing */
  border-radius: 6px;
}