:root {
  --bg: #f8f9fa;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-light: #555;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e5e7eb;
  --radius: 8px;
}

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

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: 700; color: var(--accent); text-decoration: none; }
nav a { color: var(--text-light); text-decoration: none; font-size: 14px; margin-left: 24px; }
nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, #f0f4ff, #e8eeff);
}
.hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 16px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* Cards Grid */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 50px 0; }
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.post-card-body { padding: 20px; }
.post-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { font-size: 14px; color: var(--text-light); }
.post-card .meta { font-size: 12px; color: #999; margin-top: 12px; }
.post-tag {
  display: inline-block;
  background: #eef2ff;
  color: var(--accent);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* Article */
article { max-width: 780px; margin: 0 auto; padding: 50px 20px; }
article h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
article .article-meta { font-size: 13px; color: #999; margin-bottom: 30px; }
article h2 { font-size: 22px; font-weight: 700; margin: 32px 0 14px; color: var(--text); border-left: 3px solid var(--accent); padding-left: 12px; }
article h3 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; }
article p { font-size: 15px; color: var(--text-light); margin-bottom: 16px; }
article a { color: var(--accent); }
article ul, article ol { margin: 12px 0 20px 24px; }
article li { font-size: 15px; color: var(--text-light); margin-bottom: 6px; }

/* Footer */
footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 40px 0 20px;
  margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a { color: #aaa; font-size: 13px; text-decoration: none; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #333; font-size: 12px; color: #777; }

/* Responsive */
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  nav { display: none; }
}
