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

/* Base */
html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
  margin: 0;
  padding: 0;
}

/* Layout */
.site-header,
.site-main,
.site-footer {
  max-width: 70ch;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 3rem;
}

.site-main {
  padding-bottom: 4rem;
}

.site-footer {
  border-top: 1px solid #e5e5e5;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  color: #666;
  font-size: 0.875rem;
}

/* Navigation */
.site-title {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-title:hover {
  color: #555;
}

/* Post list */
.post-list h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.post-summary {
  margin-bottom: 2.5rem;
}

.post-summary h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  line-height: 1.4;
}

.post-summary h2 a {
  color: #1a1a1a;
  text-decoration: none;
}

.post-summary h2 a:hover {
  color: #555;
}

.post-summary time {
  font-size: 0.85rem;
  color: #888;
}

.post-summary .excerpt {
  margin: 0.5rem 0 0;
  color: #444;
  font-size: 0.95rem;
}

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

.post-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.post-header time {
  font-size: 0.85rem;
  color: #888;
}

/* Cover image */
.cover-image {
  margin: 0 0 2rem;
}

.cover-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Post content */
.post-content {
  font-size: 1rem;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-content h1 { font-size: 1.5rem; }
.post-content h2 { font-size: 1.25rem; }
.post-content h3 { font-size: 1.1rem; }

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

.post-content a {
  color: #1a1a1a;
}

.post-content a:hover {
  color: #555;
}

.post-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background: #f5f5f5;
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

.post-content pre {
  background: #f5f5f5;
  padding: 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

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

.post-content blockquote {
  border-left: 3px solid #ddd;
  margin: 0 0 1.5rem;
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: #555;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.35rem;
}

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

/* Mobile */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

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