:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg: #F9FAFB;
    --card-bg: #FFFFFF;
    --border: #E5E7EB;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; }
nav a { color: var(--text-light); text-decoration: none; margin-left: 24px; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--primary); }

.hero { text-align: center; padding: 80px 0 60px; }
.hero h2 {
    font-size: 3rem; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.25rem; color: var(--text-light); }

.posts-section { padding: 40px 0 80px; }
.posts-section h3 { font-size: 1.5rem; margin-bottom: 32px; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }

.post-card {
    background: var(--card-bg); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.post-image { width: 100%; height: 200px; object-fit: cover; background: linear-gradient(135deg, #E0E7FF, #C7D2FE); }
.post-content { padding: 24px; }
.post-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.post-excerpt { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 16px; font-size: 0.875rem; color: var(--text-light); }
.post-category { background: var(--primary); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; }

.loading, .error { text-align: center; padding: 60px; color: var(--text-light); grid-column: 1 / -1; }
.error { color: #DC2626; }

.site-footer { background: var(--card-bg); border-top: 1px solid var(--border); padding: 40px 0; text-align: center; color: var(--text-light); }

@media (max-width: 768px) {
    .hero h2 { font-size: 2rem; }
    .posts-grid { grid-template-columns: 1fr; }
}
