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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

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

/* Header */
header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
}

header h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

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

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

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

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

/* Main content */
main {
  background-color: #fff;
  min-height: calc(100vh - 200px);
  padding: 40px 0;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 20px;
  color: #2c3e50;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.3em; }

p {
  margin-bottom: 16px;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

.post-list h3 {
  margin-bottom: 5px;
}

.post-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.excerpt {
  color: #555;
}

/* Post */
.post-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.post-title {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.post-content {
  margin-bottom: 40px;
}

.post-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.post-content h3 {
  margin-top: 25px;
  margin-bottom: 10px;
}

.post-content pre {
  background-color: #f4f4f4;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.post-content code {
  background-color: #f4f4f4;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: Consolas, Monaco, 'Courier New', monospace;
}

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

/* Tags and categories */
.category, .tag {
  display: inline-block;
  background-color: #e0e0e0;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 14px;
  margin-right: 5px;
}

.tag {
  background-color: #f0f0f0;
}

/* Post navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 20px 0;
}

footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 {
    font-size: 20px;
  }
  
  .post-title {
    font-size: 2em;
  }
  
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}