:root {
  --bg: #1f2329;
  --text: #e4e7eb;
  --muted: #8d97a3;
  --rule: #2e343c;
  --accent: #9cc4ea;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

img { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* header: site name centred */
.site-header {
  padding: 48px 0 32px;
  text-align: center;
}
.site-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.site-title:hover { text-decoration: none; color: var(--accent); }

main { flex: 1 0 auto; padding-bottom: 48px; }

/* post list */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list li {
  border-top: 1px solid var(--rule);
  padding: 16px 0;
}
.post-list li:last-child { border-bottom: 1px solid var(--rule); }
.post-date {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.post-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text);
}
.post-title:hover { color: var(--accent); text-decoration: none; }

/* single post */
.post h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 8px;
}
.post .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}
.content h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 2em 0 0.5em;
}
.content h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 1.8em 0 0.4em;
}
.content p { margin: 0 0 1.1em; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.content blockquote {
  margin: 1.2em 0;
  padding-left: 16px;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}
.content code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.9em;
  background: #2a3038;
  padding: 1px 5px;
  border-radius: 3px;
}
.content pre {
  background: #2a3038;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 4px;
}
.content pre code { background: none; padding: 0; }

.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

/* footer */
.site-footer {
  padding: 24px 0 32px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .site-title { font-size: 1.6rem; }
  .post h1 { font-size: 1.6rem; }
}
