:root {
  --primary: #16A34A;
  --primary-dark: #15803D;
  --primary-light: #DCFCE7;
  --text: #111827;
  --text-muted: #6B7280;
  --bg: #FFFFFF;
  --bg-subtle: #F9FAFB;
  --border: #E5E7EB;
  --radius: 12px;
  --font: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.site-header { border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.1rem; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 0.4rem; }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--primary); }
.btn-cta { background: var(--primary); color: white !important; padding: 0.5rem 1.2rem; border-radius: 8px; font-weight: 600 !important; }
.btn-cta:hover { background: var(--primary-dark) !important; }

.hero { background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%); padding: 4rem 0 3rem; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.hero-sub { color: var(--text-muted); font-size: 1.2rem; }

.all-posts, .featured-posts { padding: 3rem 0; }
.section-title { font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 1.5rem; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.posts-grid.featured { grid-template-columns: 1fr; }
@media (min-width: 768px) { .posts-grid.featured { grid-template-columns: repeat(2, 1fr); } }

.post-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); background: var(--bg); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(22,163,74,0.12); }
.post-card img { width: 100%; height: 220px; object-fit: cover; }
.featured-card img { height: 280px; }
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.post-card h2, .post-card h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.post-card p { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.post-date { font-size: 0.8rem; color: var(--text-muted); margin-top: auto; }

.category-badge { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.05em; }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 99px; padding: 0.2rem 0.7rem; font-size: 0.8rem; color: var(--text-muted); }

.post-article { padding: 3rem 0 5rem; }
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; margin: 1rem 0; letter-spacing: -0.02em; }
.post-meta { color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.author { font-weight: 600; color: var(--text); }
.cover-image { margin: 2rem 0; border-radius: var(--radius); overflow: hidden; }
.cover-image img { width: 100%; max-height: 480px; object-fit: cover; }

.post-content { max-width: 720px; font-size: 1.1rem; line-height: 1.8; }
.post-content h2 { font-size: 1.6rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.post-content h3 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content code { background: var(--bg-subtle); border: 1px solid var(--border); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; }
.post-content pre { background: #1E1E2E; color: #CDD6F4; padding: 1.5rem; border-radius: var(--radius); overflow-x: auto; margin: 1.5rem 0; }
.post-content pre code { background: none; border: none; font-size: 0.9rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content blockquote { border-left: 4px solid var(--primary); padding-left: 1.25rem; color: var(--text-muted); font-style: italic; margin: 1.5rem 0; }

.post-cta { margin-top: 3rem; padding: 2.5rem; background: linear-gradient(135deg, #F0FDF4, #DCFCE7); border-radius: var(--radius); text-align: center; max-width: 720px; }
.cta-button { display: inline-block; background: var(--primary); color: white; padding: 0.85rem 2rem; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.cta-button:hover { background: var(--primary-dark); transform: translateY(-2px); }

.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; background: var(--bg-subtle); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; }
.site-footer p { font-size: 0.85rem; color: var(--text-muted); }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer nav a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }

@media (max-width: 640px) {
  .site-header .container, .site-footer .container { flex-direction: column; gap: 1rem; }
  .posts-grid { grid-template-columns: 1fr; }
}
