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

:root {
  --bg: #f7f6f3;
  --text: #23282d;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e5e3de;
  --card: #ffffff;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }

header.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--text); }
.logo span { color: var(--accent); }
nav a {
  margin-left: 22px; text-decoration: none; color: var(--muted);
  font-size: 0.95rem;
}
nav a:hover, nav a.active { color: var(--accent); }

main { padding: 48px 0 64px; }

.hero h1 { font-size: 2.1rem; line-height: 1.25; margin-bottom: 16px; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }

h2.section { margin: 40px 0 16px; font-size: 1.4rem; }

.posts { display: grid; gap: 16px; }
.post-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 24px;
}
.post-card h3 { margin-bottom: 6px; font-size: 1.15rem; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.post-card p { color: #40474f; }

article.post h1 { font-size: 1.8rem; margin-bottom: 8px; }
article.post .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; }
article.post p { margin-bottom: 16px; }
article.post h2 { margin: 28px 0 12px; font-size: 1.3rem; }
article.post pre {
  background: #1e2430; color: #d8e0ea; padding: 16px;
  border-radius: 8px; overflow-x: auto; margin-bottom: 16px; font-size: 0.88rem;
}
article.post code { font-family: "Cascadia Code", Consolas, monospace; }
article.post ul { margin: 0 0 16px 24px; }

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0; color: var(--muted); font-size: 0.85rem;
  background: var(--card);
}
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer a { color: var(--muted); }

@media (max-width: 600px) {
  nav a { margin-left: 14px; font-size: 0.88rem; }
  .hero h1 { font-size: 1.6rem; }
}
