*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body, system-ui, sans-serif);
  color: var(--ink, #111);
  background: var(--bg, #fff);
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }
.wrap { max-width: var(--max, 1200px); margin: 0 auto; padding: 0 16px; }
.img { display: block; overflow: hidden; background: var(--img-bg, #e9e9e9); }
.img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hl a:hover { text-decoration: underline; }
.meta { color: var(--muted, #6b6b6b); font: 12px/1.3 var(--ui, var(--body, sans-serif)); }
.dek { margin: 6px 0 0; color: var(--muted, #555); }
.kicker {
  display: inline-block;
  color: var(--accent, #c00);
  font: 700 11px/1.2 var(--ui, var(--body, sans-serif));
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.ad {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ad-bg, #f2f2f2);
  border: 1px solid var(--ad-line, #e2e2e2);
  color: #9a9a9a;
  font: 10px/1 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 18px auto;
}
.ad-leader { max-width: 728px; height: 90px; }
.ad-mpu { width: 300px; max-width: 100%; height: 250px; }
.ad-sky { width: 160px; height: 600px; }
.ad-banner { max-width: 468px; height: 60px; }

.langs { display: inline-flex; gap: 6px; }
.langs a { padding: 2px 6px; font-size: 12px; opacity: .75; }
.langs a.on { opacity: 1; font-weight: 700; text-decoration: underline; }

/* Article page — every theme styles it through CSS variables */
.article-page { max-width: 780px; margin: 0 auto; padding: 32px 0 64px; }
.article-page h1 {
  font-family: var(--head, inherit);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  margin: 10px 0 14px;
}
.article-page .lead { font-size: 20px; line-height: 1.5; color: var(--muted, #555); margin: 0 0 12px; }
.article-page .byline { color: var(--muted, #666); font: 13px var(--ui, var(--body)); border-top: 1px solid var(--line, #e5e5e5); border-bottom: 1px solid var(--line, #e5e5e5); padding: 10px 0; }
.article-page .article-hero { width: 100%; max-height: 520px; object-fit: cover; margin: 22px 0; }
.article-page .body { font-family: var(--article, var(--body)); font-size: 18px; line-height: 1.7; }
.article-page .body img { height: auto; margin: 18px 0; }
.article-page .body a { color: var(--accent, #c00); text-decoration: underline; }
.article-page .source a { color: var(--accent, #c00); }
.article-more { border-top: 3px solid var(--ink, #111); margin-top: 40px; padding-top: 16px; }
.article-more h2 { font: 700 14px var(--ui, var(--body)); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.article-more ul { list-style: none; margin: 0; padding: 0; }
.article-more li { padding: 10px 0; border-bottom: 1px solid var(--line, #e5e5e5); font-family: var(--head, inherit); font-weight: 700; }

/* Category page */
.cat-page { padding: 28px 0 64px; }
.cat-page > h1 {
  font-family: var(--head, inherit);
  font-size: clamp(26px, 3.4vw, 38px);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent, #111);
  margin-bottom: 8px;
}
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-item { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line, #e5e5e5); }
.cat-item.noimg { grid-template-columns: 1fr; }
.cat-item h2 { font-family: var(--head, inherit); font-size: 22px; line-height: 1.2; margin: 2px 0 4px; }

@media (max-width: 760px) {
  .cat-item { grid-template-columns: 1fr; }
  .ad-sky { display: none; }
  .ad-leader { height: 60px; }
}
