:root {
  --primary: #5A67D8;
  --primary-dark: #4C51BF;
  --text: #1A202C;
  --muted: #718096;
  --bg: #F7FAFC;
  --card: #FFFFFF;
  --border: #E2E8F0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, Segoe UI, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5A67D8, #7C3AED);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.nav-menu { display: flex; gap: 22px; align-items: center; }
.nav-link {
  text-decoration: none;
  color: #4A5568;
  font-weight: 600;
  font-size: 15px;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.wrap { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.wrap h1 { font-size: 36px; margin-bottom: 8px; }
.subtitle { color: var(--muted); margin-bottom: 32px; font-size: 17px; }
.posts { display: grid; gap: 16px; }
.post {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.post:hover { border-color: #C3DAFE; box-shadow: 0 8px 24px rgba(90,103,216,.12); }
.post h2 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.post p { color: var(--muted); line-height: 1.5; }
.article h1 { font-size: 32px; margin-bottom: 12px; }
.article .meta { color: var(--muted); margin-bottom: 28px; }
.article p { line-height: 1.7; margin-bottom: 16px; color: #2D3748; }
.article ul { margin: 0 0 20px 22px; color: #2D3748; line-height: 1.7; }
.back { display: inline-block; margin-bottom: 24px; color: var(--primary); text-decoration: none; font-weight: 600; }
.back:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .nav-menu { gap: 14px; }
  .wrap h1 { font-size: 28px; }
}
