:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #18212f;
  --muted: #667085;
  --line: #d9e0ea;
  --brand: #1261a6;
  --brand-strong: #0b477c;
  --accent: #0f7b4f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header .wrap {
  padding: 22px 0 24px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.22;
}

h1 {
  max-width: 820px;
  font-size: clamp(30px, 4vw, 52px);
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 19px;
}

.description {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  padding: 30px 0 54px;
}

.layout.no-sidebar {
  grid-template-columns: minmax(0, 820px);
}

.article-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.article-card:first-child {
  padding-top: 4px;
}

.article-meta,
.muted {
  color: var(--muted);
}

.article-body {
  max-width: 760px;
  font-size: 18px;
}

.article-body p {
  margin: 0 0 18px;
}

.side-panel {
  position: sticky;
  top: 18px;
  align-self: start;
}

.ad-box {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #cfe0ee;
  border-radius: 8px;
  background: #f9fcff;
}

.ad-box small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 700;
}

.ad-box p {
  margin: 6px 0 0;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer .wrap {
  padding: 20px 0;
}

.empty {
  padding: 22px 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}
