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

:root {
  --bg: #0f0f0f;
  --text: #c9c9c9;
  --text-muted: #666;
  --heading: #f0f0f0;
  --accent: #5b8fad;
  --accent-hover: #7aaec8;
  --border: #222;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Header */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 72px;
}

.site-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-name:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--heading);
  text-decoration: none;
}

/* Main */

main {
  min-height: 60vh;
}

/* Typography */

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 36px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: 28px;
  margin-bottom: 8px;
}

p {
  font-size: 1rem;
  margin-bottom: 1.4em;
}

/* Links */

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

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Post list */

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

.post-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

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

.post-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.post-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 0;
}

.post-title a {
  color: var(--heading);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.6;
}

/* Footer */

footer {
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}
