:root {
  color-scheme: light;
  --article-bg: #f7fbff;
  --article-panel: #ffffff;
  --article-text: #12314e;
  --article-muted: #557490;
  --article-line: #cde1f5;
  --article-accent: #2f80ed;
  --article-accent-dark: #1f6dd8;
  --article-warm: #ff9f1c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--article-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(47, 128, 237, .15), transparent 28rem),
    var(--article-bg);
  font-family: 'Nunito', system-ui, sans-serif;
  line-height: 1.65;
}

a { color: var(--article-accent-dark); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffb44d;
  outline-offset: 3px;
}

.article-shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
}

.article-header {
  padding: 18px 0;
  border-bottom: 1px solid rgba(205, 225, 245, .78);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(12px);
}

.article-header .article-shell,
.article-nav,
.article-footer-inner,
.article-related {
  display: flex;
  align-items: center;
  gap: 18px;
}

.article-header .article-shell { justify-content: space-between; }

.article-brand {
  color: var(--article-text);
  font-family: 'Comfortaa', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.article-nav { flex-wrap: wrap; justify-content: flex-end; }

.article-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--article-text);
  font-weight: 800;
  text-decoration: none;
}

.article-nav a:hover { color: var(--article-accent-dark); }

.article-main { padding: 48px 0 60px; }

.article-hero,
.article-content,
.article-related,
.article-cta {
  border: 1px solid var(--article-line);
  border-radius: 24px;
  background: var(--article-panel);
  box-shadow: 0 16px 42px rgba(31, 109, 216, .08);
}

.article-hero { padding: clamp(28px, 6vw, 56px); }

.article-kicker {
  margin: 0 0 12px;
  color: var(--article-accent-dark);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: 'Comfortaa', sans-serif;
  line-height: 1.3;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.article-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--article-muted);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.article-meta {
  margin: 22px 0 0;
  color: var(--article-muted);
  font-size: .95rem;
}

.article-content { margin-top: 22px; padding: clamp(24px, 5vw, 48px); }

.article-content h2 { margin: 42px 0 14px; font-size: clamp(1.35rem, 3vw, 2rem); }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin: 26px 0 8px; font-size: 1.15rem; }
.article-content p, .article-content li { font-size: 1.05rem; }
.article-content ul, .article-content ol { padding-left: 1.25em; }
.article-content li + li { margin-top: 8px; }

.article-note {
  margin: 26px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--article-warm);
  border-radius: 0 14px 14px 0;
  background: #fff8ed;
}

.article-cta {
  margin-top: 22px;
  padding: clamp(24px, 5vw, 40px);
  background: linear-gradient(135deg, #eaf5ff, #fff);
}

.article-cta h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.article-cta p { color: var(--article-muted); }

.article-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--article-accent), var(--article-accent-dark));
  box-shadow: 0 9px 22px rgba(47, 128, 237, .26);
  font-weight: 800;
  text-decoration: none;
}

.article-button:hover { filter: brightness(1.06); transform: translateY(-1px); }

.article-related {
  display: block;
  margin-top: 22px;
  padding: clamp(24px, 5vw, 40px);
}

.article-related h2 { margin: 0 0 14px; font-size: 1.35rem; }
.article-related ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 0; padding-left: 1.25em; }
.article-related li { min-width: 0; }
.article-related a,
.article-index-card a,
.article-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.article-footer { padding: 28px 0; color: #d9e5f1; background: #10253c; }
.article-footer-inner { justify-content: space-between; flex-wrap: wrap; }
.article-footer p { margin: 0; }
.article-footer a { color: #fff; }

.article-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.article-index-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--article-line);
  border-radius: 20px;
  color: var(--article-text);
  background: var(--article-panel);
  box-shadow: 0 10px 28px rgba(31, 109, 216, .06);
}

.article-index-card h2 { margin: 0; font-size: 1.25rem; }
.article-index-card p { color: var(--article-muted); }
.article-index-card a { font-weight: 800; }

@media (max-width: 640px) {
  .article-header .article-shell { align-items: flex-start; flex-direction: column; gap: 6px; }
  .article-nav { justify-content: flex-start; gap: 16px; }
  .article-main { padding-top: 28px; }
  .article-hero, .article-content, .article-related, .article-cta { border-radius: 18px; }
  .article-related ul, .article-index-grid { grid-template-columns: 1fr; }
}
