:root {
  --primary: #2f8f4e;
  --dark: #1c2b24;
  --bg: #fafaf7;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --card-bg: #ffffff;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.main-nav a {
  color: #e7efe9;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

@media (max-width: 640px) {
  .header-inner {
    padding: 12px 16px;
    position: relative;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    padding: 8px 16px 16px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }
}

.content { padding: 28px 20px; min-height: 60vh; }

.hero {
  text-align: center;
  padding: 48px 20px;
  background-color: #1c2b24;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-size: 2.1rem;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero p {
  color: #f0f5f1;
  font-size: 1rem;
  margin-bottom: 18px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-btn:hover {
  background: #267a42;
  transform: translateY(-2px);
}

.post-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.15s ease;
}

.post-card:hover { transform: translateY(-4px); }

.post-card a { text-decoration: none; color: inherit; }

.post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.post-card h3 {
  font-size: 1.05rem;
  margin: 12px 14px 6px;
  color: var(--dark);
}

.post-card p {
  margin: 0 14px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

article h1 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 20px;
}

.featured-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.post-content h2, .post-content h3 {
  color: var(--dark);
  margin-top: 28px;
}

.post-content a { color: var(--primary); }

.related-articles {
  margin-top: 40px;
  padding: 24px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid #e7e7e2;
}

.related-articles h3 {
  margin-top: 0;
  color: var(--dark);
  font-size: 1.1rem;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.related-articles li a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
}

.related-articles li a:hover { text-decoration: underline; }

.site-footer {
  background: var(--dark);
  color: #cfd8d3;
  text-align: center;
  padding: 24px 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}
