:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --text-muted: #5b667a;
  --accent: #3568ff;
  --accent-soft: rgba(53, 104, 255, 0.08);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #f6f7fb 0%, #eef2f7 100%);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  line-height: 1.74;
}
a { color: inherit; text-decoration: none; }
.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}
.blog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(246, 247, 251, 0.84);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.blog-brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}
.blog-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.blog-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
}
.blog-home,
.article-shell {
  padding: 56px 0 96px;
}
.home-hero,
.article-lead,
.language-block,
.article-body {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}
.home-hero,
.article-lead {
  padding: 38px;
}
.language-block,
.article-body {
  margin-top: 22px;
  padding: 30px 32px;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
h1,
.article-lead h1 {
  margin-top: 14px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}
.language-head h2,
.article-body h2 {
  font-size: 2rem;
}
.article-body h3 {
  font-size: 1.4rem;
}
.article-description,
.language-head p,
.post-card p,
.article-body p,
.article-body li {
  color: var(--text-muted);
}
.article-description {
  margin: 18px 0 0;
  font-size: 1.05rem;
}
.article-meta,
.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.article-meta span,
.post-meta span,
.post-meta a {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #1f4fd1;
  font-size: 0.83rem;
  font-weight: 700;
}
.post-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.post-card {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.post-card h2 {
  margin-top: 10px;
  font-size: 1.7rem;
}
.post-card h2 a {
  color: var(--text);
}
.post-card p {
  margin: 14px 0 0;
}
.post-meta {
  justify-content: space-between;
  align-items: center;
}
.article-body > :first-child { margin-top: 0; }
.article-body > * + * { margin-top: 18px; }
.article-body ul,
.article-body ol {
  margin: 0;
  padding-left: 22px;
}
.article-body li + li { margin-top: 8px; }
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.article-body code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.07);
  font-size: 0.92em;
}
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-hero,
  .article-lead,
  .language-block,
  .article-body {
    padding: 24px 20px;
  }
  .post-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}