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

html {
  font-size: 16px;
}

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

.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: #0a5d2a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background-color: #0a0e08;
  color: #fff;
  padding: 40px 0 20px;
  border-bottom: 4px solid #2d5a27;
}

.header-content {
  padding: 20px 0;
}

.site-title {
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.site-title a {
  color: #fff;
}

.site-title a:hover {
  color: #a8d5a8;
  text-decoration: none;
}

.site-subtitle {
  font-size: 0.95rem;
  color: #b8c9b8;
  font-weight: 400;
}

/* Navigation */
.main-nav {
  background-color: #12180e;
  border-bottom: 1px solid #2d5a27;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.nav-list li {
  flex: 0 0 auto;
}

.nav-list a {
  display: block;
  padding: 12px 20px;
  color: #c8d8c8;
  border-right: 1px solid #2d5a27;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
}

.nav-list li:last-child a {
  border-right: none;
}

.nav-list a:hover {
  background-color: #1f2a1c;
  color: #fff;
  text-decoration: none;
}

/* Main content */
.main-content {
  padding: 40px 0;
  min-height: 60vh;
}

.home-container {
  padding: 20px 0;
}

.hero {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 0;
  border-bottom: 1px solid #e0e0e0;
}

.hero h1 {
  font-size: 2.5rem;
  color: #0a0e08;
  margin-bottom: 12px;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  color: #666;
}

/* Articles grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.article-card {
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #fafafa;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: #2d5a27;
  background-color: #f5f9f5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.article-card h3 {
  font-size: 1.3rem;
  color: #0a0e08;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: 600;
}

.article-card a {
  color: #0a0e08;
}

.article-card a:hover {
  color: #0a5d2a;
  text-decoration: none;
}

.article-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #e0e0e0;
  padding-top: 12px;
}

.article-date {
  font-size: 0.85rem;
  color: #888;
}

.article-category {
  display: inline-block;
  background-color: #e8f4e8;
  color: #0a5d2a;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* Post */
.post {
  padding: 40px 0;
}

.post-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #2d5a27;
}

.post-title {
  font-size: 2.2rem;
  color: #0a0e08;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.post-meta {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: #666;
}

.post-date {
  display: flex;
  align-items: center;
}

.post-date::before {
  content: "📅 ";
  margin-right: 5px;
}

.post-category {
  background-color: #e8f4e8;
  color: #0a5d2a;
  padding: 4px 12px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: capitalize;
  display: inline-block;
}

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

.post-content h2 {
  font-size: 1.6rem;
  color: #0a0e08;
  margin: 30px 0 15px;
  font-weight: 600;
  padding-top: 20px;
}

.post-content h3 {
  font-size: 1.2rem;
  color: #0a5d2a;
  margin: 25px 0 12px;
  font-weight: 600;
}

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

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

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

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

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.post-content table th,
.post-content table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.post-content table th {
  background-color: #e8f4e8;
  color: #0a0e08;
  font-weight: 600;
}

.post-content table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.post-content a {
  color: #0a5d2a;
  text-decoration: underline;
}

.post-content a:hover {
  color: #0a0e08;
}

.post-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

/* Footer */
.site-footer {
  background-color: #0a0e08;
  color: #b8c9b8;
  padding: 40px 0;
  text-align: center;
  margin-top: 60px;
  border-top: 4px solid #2d5a27;
}

.site-footer p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
  color: #888;
  font-size: 0.9rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .nav-list a {
    border-right: none;
    border-bottom: 1px solid #2d5a27;
    padding: 10px 20px;
  }

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

  .post-meta {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.2rem;
  }

  .site-subtitle {
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

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

  .wrapper {
    padding: 0 15px;
  }
}
