/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0;
  margin-bottom: 40px;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-title .logo {
  height: 28px;
  width: auto;
}

.site-header nav a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-header nav a:hover {
  color: #1a1a1a;
}

/* Main content */
main {
  min-height: calc(100vh - 200px);
  padding-bottom: 60px;
}

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

.post-list li {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e5e5e5;
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list h2 {
  margin-bottom: 8px;
}

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

.post-list h2 a:hover {
  color: #0066cc;
}

.post-list .post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.post-list .excerpt {
  color: #444;
}

/* Single post */
.post-header {
  margin-bottom: 32px;
}

.post-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
}

.post-meta .author {
  margin-left: 8px;
}

.post-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 24px;
}

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

.post-content h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content a {
  color: #0066cc;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.post-content blockquote {
  border-left: 4px solid #e5e5e5;
  padding-left: 20px;
  margin: 24px 0;
  color: #666;
  font-style: italic;
}

.post-content code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-content pre {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid #e5e5e5;
  padding: 24px 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.site-footer a {
  color: #666;
}

.site-footer a:hover {
  color: #1a1a1a;
}

/* Responsive */
@media (max-width: 600px) {
  .post-title {
    font-size: 1.5rem;
  }

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