:root {
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-bg: #fff;
  --color-link: #1a1a1a;
  --color-link-hover: #4a4a4a;
  --max-width: 700px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial,
    sans-serif;
}

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

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  padding: 2rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.nav-links a:hover {
  color: var(--color-text);
}

/* Post list (home page) */
.post-list {
  list-style: none;
}

.post-item {
  margin-bottom: 1.5rem;
}

.post-item a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.post-title {
  font-size: 1rem;
}

.post-item time {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.post-summary {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Single post */
.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.post-header time {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.post-content {
  font-size: 1rem;
  line-height: 1.7;
}

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

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.post-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
}

.post-content h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
}

.post-content blockquote {
  border-left: 2px solid var(--color-text-muted);
  padding-left: 1rem;
  color: var(--color-text-muted);
  margin: 1.25rem 0;
}

/* Pages (about) */
.page h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.page-content {
  line-height: 1.7;
}

.page-content p {
  margin-bottom: 1.25rem;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1.5rem 1rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .post-item a {
    flex-direction: column;
    gap: 0;
  }

  .post-header h1 {
    font-size: 1.3rem;
  }
}
