*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: #0f1117;
  color: #e2e8f0;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.site { max-width: 860px; margin: 0 auto; padding: 0 24px; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #1e2433;
}
.logo { font-size: 18px; font-weight: 600; color: #e2e8f0; letter-spacing: -0.3px; }
.logo span { color: #5b8dee; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; color: #8892a4; transition: color 0.15s; }
.nav-links a:hover { color: #e2e8f0; }

.hero { padding: 64px 0 48px; border-bottom: 1px solid #1e2433; }
.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #5b8dee;
  background: rgba(91,141,238,0.12);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 36px;
  font-weight: 600;
  color: #f0f4ff;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.hero p { font-size: 16px; color: #8892a4; line-height: 1.7; max-width: 560px; }

.section { padding: 40px 0; border-bottom: 1px solid #1e2433; }
.section-title {
  font-size: 12px;
  font-weight: 500;
  color: #5b8dee;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.article {
  background: #161b27;
  border: 1px solid #1e2433;
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.15s;
  display: block;
}
.article:hover { border-color: #5b8dee; }
.article-tag {
  font-size: 11px;
  color: #5b8dee;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article h3 {
  font-size: 15px;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.4;
  margin-bottom: 8px;
}
.article p { font-size: 13px; color: #6b7280; line-height: 1.6; }

.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic {
  font-size: 13px;
  color: #8892a4;
  background: #161b27;
  border: 1px solid #1e2433;
  border-radius: 4px;
  padding: 6px 12px;
  transition: border-color 0.15s, color 0.15s;
}
.topic:hover { border-color: #5b8dee; color: #e2e8f0; }

.about { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1e2d4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #5b8dee;
  flex-shrink: 0;
}
.about-text h3 { font-size: 15px; font-weight: 500; color: #e2e8f0; margin-bottom: 6px; }
.about-text p { font-size: 14px; color: #8892a4; line-height: 1.6; }

footer { padding: 24px 0; text-align: center; }
footer p { font-size: 13px; color: #4a5568; }

/* ARTICLE PAGE */
.article-header { padding: 48px 0 32px; border-bottom: 1px solid #1e2433; }
.article-header .back { font-size: 13px; color: #5b8dee; margin-bottom: 20px; display: inline-block; }
.article-header .back:hover { color: #85b3f5; }
.article-header .tag {
  font-size: 11px;
  color: #5b8dee;
  background: rgba(91,141,238,0.12);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-block;
}
.article-header h1 {
  font-size: 30px;
  font-weight: 600;
  color: #f0f4ff;
  line-height: 1.25;
  letter-spacing: -0.4px;
  max-width: 680px;
}
.article-body { padding: 40px 0; max-width: 680px; }
.article-body h2 { font-size: 20px; font-weight: 500; color: #f0f4ff; margin: 32px 0 12px; }
.article-body h3 { font-size: 16px; font-weight: 500; color: #cbd5e1; margin: 24px 0 8px; }
.article-body p { font-size: 15px; color: #94a3b8; line-height: 1.8; margin-bottom: 16px; }
.article-body ul { margin: 0 0 16px 20px; }
.article-body li { font-size: 15px; color: #94a3b8; line-height: 1.8; margin-bottom: 6px; }
.article-body strong { color: #cbd5e1; font-weight: 500; }
.article-body .note {
  background: #161b27;
  border-left: 3px solid #5b8dee;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 24px 0;
  font-size: 14px;
  color: #8892a4;
  line-height: 1.7;
}

/* TAG PAGE */
.tag-header { padding: 48px 0 32px; border-bottom: 1px solid #1e2433; }
.tag-header .back { font-size: 13px; color: #5b8dee; margin-bottom: 20px; display: inline-block; }
.tag-header h1 { font-size: 28px; font-weight: 600; color: #f0f4ff; }
.tag-header p { font-size: 15px; color: #8892a4; margin-top: 8px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 26px; }
  .article-header h1 { font-size: 22px; }
  .nav-links { gap: 16px; }
  .articles { grid-template-columns: 1fr; }
}
