:root {
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --accent: #a78bfa;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.hero h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Featured Post */
.featured-post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.featured-post h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.excerpt {
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* Post Grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

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

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.card-body {
  padding: 1.25rem;
}

.card-body h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.card-body .meta {
  margin-bottom: 0.6rem;
}

.card-body p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}
