:root {
  --bg: #fafaf8;
  --fg: #2b2b28;
  --muted: #6f6e66;
  --accent: #3a6ea5;
  --line: #e4e2dc;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
}

header nav a { margin-left: 1.25rem; color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--accent); }

main {
  max-width: 740px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

footer {
  max-width: 740px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}

h1 { font-size: 1.7rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.2rem; margin: 0 0 0.35rem; }
a { color: var(--accent); }

.meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.muted { color: var(--muted); }

.cats {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.cats a { margin-right: 1rem; text-decoration: none; }
.cats small { color: var(--muted); }

.post-list { display: flex; flex-direction: column; gap: 1.25rem; }

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card .card-img { width: 100%; max-height: 280px; object-fit: cover; display: block; }
.post-card .card-body { padding: 1rem 1.25rem; }
.post-card h2 a { text-decoration: none; }
.post-card p { margin: 0.35rem 0 0; color: var(--muted); }

.post h1 { margin-bottom: 0.25rem; }
.post img { max-width: 100%; border-radius: 6px; }
.post pre {
  background: #f4f3ef;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem;
  overflow-x: auto;
  font-size: 0.85rem;
}
.post code { background: #f4f3ef; padding: 0.1rem 0.3rem; border-radius: 3px; font-size: 0.9em; }
.post pre code { padding: 0; background: none; }