/* Basic 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;
}

/* Site header */
.site-header {
  background-color: #f8f8f8;
  border-bottom: 1px solid #e8e8e8;
  padding: 1rem 0;
}

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

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

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

.site-nav {
  display: flex;
  gap: 1.5rem;
}

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

.site-nav a:hover {
  color: #333;
}

/* Page content */
.page-content {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Home page */
.home {
  padding: 2rem 0;
}

.page-heading {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8e8e8;
}

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

.post-link {
  font-size: 1.5rem;
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.post-link:hover {
  color: #0066cc;
}

.post-meta {
  display: block;
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.post-excerpt {
  margin-top: 0.5rem;
  color: #555;
}

.rss-subscribe {
  margin-top: 2rem;
  color: #666;
  font-size: 0.9rem;
}

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

.rss-subscribe a:hover {
  text-decoration: underline;
}

/* Post page */
.post {
  padding: 2rem 0;
}

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

.post-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

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

.post-categories {
  margin-left: 1rem;
}

.post-categories a {
  color: #0066cc;
  text-decoration: none;
  margin-right: 0.5rem;
}

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

.post-tags {
  margin-left: 1rem;
}

.post-tags .tag {
  display: inline-block;
  background-color: #f0f0f0;
  color: #555;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.post-list .post-tags {
  margin-left: 0;
  margin-top: 0.5rem;
  display: block;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.post-content h1 {
  font-size: 2rem;
}

.post-content h2 {
  font-size: 1.75rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.post-content code {
  background-color: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

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

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

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

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

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

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

/* Post navigation */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.post-nav a {
  text-decoration: none;
  color: #0066cc;
  font-size: 0.9rem;
}

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

.post-nav-prev {
  text-align: left;
}

.post-nav-next {
  text-align: right;
  margin-left: auto;
}

/* Site footer */
.site-footer {
  background-color: #f8f8f8;
  border-top: 1px solid #e8e8e8;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 600px) {
  .site-header .wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-nav {
    flex-direction: column;
  }

  .post-nav-next {
    margin-left: 0;
    text-align: left;
  }
}

