*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #666666;
  --color-accent: #2563eb;
  --color-border: #e5e5e5;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 680px;
}

html {
  font-size: 18px;
  line-height: 1.65;
}

body {
  margin: 0;
  padding: 0 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
}

.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
.site-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.site-header h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

.site-header h1 a:hover {
  color: var(--color-accent);
}

.site-header p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Main content */
main {
  min-height: 60vh;
}

/* Post list */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.post-list li:first-child {
  border-top: 1px solid var(--color-border);
}

.post-list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.post-list a:hover {
  color: var(--color-accent);
}

.post-list .post-date {
  font-size: 0.82rem;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Section heading */
h2.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
}

/* Single post */
article h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

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

article .post-content {
  line-height: 1.75;
}

article .post-content p {
  margin: 0 0 1.25rem;
}

article .post-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

article .post-content h2,
article .post-content h3,
article .post-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

article .post-content code {
  font-size: 0.88em;
  background: #f4f4f4;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

article .post-content pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.88em;
  line-height: 1.55;
}

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

article .post-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--color-border);
  color: var(--color-muted);
  font-style: italic;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-muted);
  text-align: center;
}
