/* Simple, clean blog layout */

/* Reset and base styles */
* {
  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-color: #fff;
}

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

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

.site-title {
  margin: 0 0 10px 0;
  font-size: 2em;
  font-weight: 600;
}

.site-title a {
  color: #0366d6;
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: underline;
}

.site-description {
  color: #586069;
  margin: 0 0 20px 0;
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #0366d6;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: #0366d6;
}

/* Main content */
.site-content {
  min-height: calc(100vh - 200px);
  margin-bottom: 40px;
}

/* Home page */
.home h1 {
  margin-bottom: 20px;
  color: #24292e;
}

.recent-posts,
.projects {
  margin-bottom: 40px;
}

.recent-posts h2,
.projects h2 {
  margin-bottom: 20px;
  color: #24292e;
  border-bottom: 1px solid #e1e4e8;
  padding-bottom: 10px;
}

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

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

.post-preview h2 {
  margin: 0 0 10px 0;
  border: none;
  padding: 0;
}

.post-preview h2 a {
  color: #0366d6;
  text-decoration: none;
}

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

.post-meta {
  color: #586069;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.post-excerpt {
  margin-bottom: 10px;
  color: #586069;
}

/* Individual post */
.post {
  margin-bottom: 40px;
}

.post-header {
  margin-bottom: 30px;
}

.post-title {
  margin: 0 0 10px 0;
  color: #24292e;
}

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

.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 30px 0 15px 0;
  color: #24292e;
}

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

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

.post-content blockquote {
  border-left: 4px solid #dfe2e5;
  padding-left: 20px;
  margin: 20px 0;
  color: #6a737d;
}

.post-content code {
  background-color: #f6f8fa;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

.post-content pre {
  background-color: #f6f8fa;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 20px 0;
}

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

/* Post footer */
.post-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e1e4e8;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.prev-post,
.next-post {
  color: #0366d6;
  text-decoration: none;
  font-size: 0.9em;
}

.prev-post:hover,
.next-post:hover {
  text-decoration: underline;
}

/* Posts page */
.posts-page h1 {
  margin-bottom: 30px;
  color: #24292e;
}

/* Projects */
.projects ul {
  list-style: none;
}

.projects li {
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f6f8fa;
  border-radius: 6px;
}

.projects a {
  color: #0366d6;
  text-decoration: none;
  font-weight: 600;
}

.projects a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e1e4e8;
  padding: 20px 0;
  color: #586069;
  font-size: 0.9em;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .site-nav {
    gap: 15px;
  }

  .post-navigation {
    flex-direction: column;
    gap: 10px;
  }

  .post-title {
    font-size: 1.5em;
  }
}