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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Header */
header {
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

header nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.5rem;
}

header h1 a {
  color: #333;
  text-decoration: none;
}

header h1 a:hover {
  color: #0066cc;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

header nav a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

header nav a:hover {
  color: #0066cc;
}

/* Main content */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* Articles */
article h1 {
  margin-bottom: 0.5rem;
}

article time {
  color: #666;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 1.5rem;
}

article p {
  margin-bottom: 1rem;
}

article h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

article h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

article code {
  background: #f4f4f4;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

article pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1rem 0;
}

article pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

article blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1rem;
  color: #666;
  font-style: italic;
}

article ul, article ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

article li {
  margin-bottom: 0.5rem;
}

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

.post-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

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

.post-item h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.post-item h2 a {
  color: #0066cc;
  text-decoration: none;
}

.post-item h2 a:hover {
  text-decoration: underline;
}

.post-item time {
  color: #999;
  font-size: 0.85rem;
}

.post-item p {
  margin: 0.5rem 0 0;
}
