:root {
  --bg: #ffffff;
  --fg: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --link: #2563eb;
  --code-bg: #f3f4f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-weight: 700;
  color: var(--fg);
}

.site-header nav a {
  margin-left: 16px;
  color: var(--muted);
}

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

.intro h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.posts h2 {
  margin-top: 40px;
}

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

.post-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.date,
.post-date {
  color: var(--muted);
  font-size: 14px;
}

.post h1 {
  font-size: 34px;
  margin-bottom: 4px;
}

.post-content {
  margin-top: 32px;
}

.post-content pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
}

.post-content code {
  background: var(--code-bg);
  padding: 2px 5px;
  border-radius: 4px;
}

.post-content pre code {
  background: transparent;
  padding: 0;
}

.site-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
