@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed-cyrillic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed-cyrillic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #090c0d;
  --surface: #101415;
  --surface-strong: #151a1b;
  --text: #eceee8;
  --muted: #9ba19b;
  --faint: #686f6b;
  --border: #29302e;
  --border-strong: #3a423f;
  --olive: #a5ad62;
  --red: #df4a40;
  --max: 1240px;
  --gutter: 24px;
  --font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--olive); }
img, video { display: block; max-width: 100%; }
button, input { font: inherit; letter-spacing: 0; }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 12, 13, .96);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 700;
  line-height: .95;
}
.brand img { width: 42px; height: 42px; border: 1px solid var(--border-strong); }

.main-nav { display: flex; justify-content: center; align-self: stretch; gap: 38px; }
.main-nav .nav { display: contents; margin: 0; padding: 0; list-style: none; }
.main-nav .nav li { display: contents; }
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 16px;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--olive);
}

.header-actions { display: flex; gap: 8px; }
.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.icon-button:hover { background: var(--surface-strong); color: var(--olive); }
.icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
.menu-button { display: none; }

.search-form {
  width: min(760px, calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 16px 0 20px;
}
.search-form[hidden] { display: none; }
.search-form label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.search-form > div { display: grid; grid-template-columns: 1fr auto; }
.search-form input {
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-right: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 17px;
}
.search-form button, .read-link, .empty-state a {
  border: 1px solid var(--olive);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.search-form button { padding: 0 24px; }
.search-form button:hover, .read-link:hover, .empty-state a:hover { background: var(--olive); color: var(--bg); }

.feed-shell, .article-page, .related-section, .site-footer {
  position: relative;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.page-heading { padding: 56px 0 46px; }
.page-heading h1 {
  max-width: 900px;
  margin: 0;
  font-size: 68px;
  font-weight: 700;
  line-height: .98;
}
.page-heading > p { margin: 20px 0 0; color: var(--muted); }

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .95fr);
  min-height: 480px;
  border-bottom: 1px solid var(--border-strong);
}
.lead-media { min-height: 480px; overflow: hidden; background: var(--surface); }
.lead-media img, .lead-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.lead-media:hover img { transform: scale(1.015); }
.lead-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px 0 36px 44px; }
.lead-copy h2 { margin: 24px 0 22px; font-size: 40px; line-height: 1.14; }
.lead-copy h2 a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 7px; }
.lead-copy > p { max-width: 580px; margin: 0; color: var(--muted); font-size: 20px; line-height: 1.5; }
.read-link { width: fit-content; margin-top: 30px; padding: 10px 15px; font-size: 15px; }
.read-link span { margin-left: 8px; }

.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0; color: var(--muted); font-size: 14px; }
.article-meta > * { display: inline-flex; align-items: center; }
.article-meta > * + *::before { content: ""; width: 1px; height: 18px; margin: 0 16px; background: var(--border-strong); }
.article-meta .category-link { color: var(--olive); }
.article-meta .producer-link { color: var(--red); }

.feed-list { width: 100%; }
.feed-list-top { border-top: 1px solid var(--border-strong); }
.feed-row {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 34px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.feed-row-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.feed-row-media img, .feed-row-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.feed-row-media:hover img { transform: scale(1.02); }
.feed-row-copy { align-self: center; min-width: 0; }
.feed-row h2 { margin: 16px 0 8px; font-size: 25px; line-height: 1.2; }
.feed-row h2 a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 5px; }
.feed-row p { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.media-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: var(--surface); }
.media-placeholder img { width: 76px; height: 76px; opacity: .28; object-fit: contain; }

.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 90px; font-size: 15px; }
.pagination > :last-child { justify-self: end; }
.pagination span { color: var(--faint); }
.pagination .older-posts { grid-column: 3; justify-self: end; }
.pagination .newer-posts { grid-column: 1; }
.pagination .page-number { grid-column: 2; grid-row: 1; }

.taxonomy-heading { padding-bottom: 34px; }
.taxonomy-heading > p { margin: 0 0 10px; color: var(--olive); font-size: 15px; text-transform: uppercase; }
.taxonomy-heading h1 { font-size: 56px; }

.article-page { padding-top: 56px; }
.article-header { max-width: 960px; margin: 0 auto 42px; }
.article-breadcrumbs { display: flex; gap: 12px; margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.article-breadcrumbs span { color: var(--faint); }
.article-header h1 { margin: 0; font-size: 58px; line-height: 1.06; }
.article-lead { max-width: 850px; margin: 26px 0 0; color: var(--muted); font-size: 23px; line-height: 1.45; }
.article-byline { display: flex; gap: 24px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.article-byline a { color: var(--red); }
.article-media { display: grid; gap: 12px; margin-bottom: 46px; }
.article-media figure { margin: 0; background: var(--surface); }
.article-media img, .article-media video { width: 100%; max-height: 760px; object-fit: contain; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; justify-content: center; gap: 78px; }
.article-body { font-size: 21px; line-height: 1.7; }
.article-body p { margin: 0 0 26px; }
.gh-content > * { max-width: 100%; }
.gh-content a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }
.gh-content figure, .gh-content .kg-card { margin: 32px 0; }
.gh-content img, .gh-content video { width: 100%; height: auto; }
.gh-content blockquote { margin: 30px 0; padding-left: 24px; border-left: 3px solid var(--olive); color: var(--muted); }
.kg-width-wide, .kg-width-full { width: 100%; }
.article-facts { align-self: start; border-top: 2px solid var(--olive); }
.article-facts > div { padding: 18px 0; border-bottom: 1px solid var(--border); }
.article-facts span { display: block; margin-bottom: 4px; color: var(--faint); font-size: 13px; text-transform: uppercase; }
.article-facts a { font-size: 17px; }
.article-facts .source-link { display: block; margin-top: 22px; color: var(--muted); font-size: 14px; }
.related-section { margin-top: 90px; border-top: 1px solid var(--border-strong); }
.related-section > h2 { margin: 0; padding: 34px 0 18px; font-size: 32px; }

.empty-state, .not-found { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.empty-state h2, .not-found h1 { margin: 0; font-size: 42px; }
.empty-state p { color: var(--muted); }
.empty-state a { margin-top: 16px; padding: 10px 15px; }
.not-found > p { margin: 0; color: var(--red); font-size: 18px; }
.not-found a { margin-top: 24px; color: var(--olive); }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 84px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 14px;
}
.footer-brand { color: var(--text); font-size: 20px; font-weight: 700; }
.site-footer p { margin: 7px 0 0; }
.site-footer nav { display: flex; gap: 24px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 150px 1fr auto; gap: 16px; }
  .main-nav { gap: 22px; }
  .main-nav a { font-size: 14px; }
  .page-heading h1 { font-size: 56px; }
  .lead-story { grid-template-columns: 1.1fr .9fr; min-height: 420px; }
  .lead-media { min-height: 420px; }
  .lead-copy { padding-left: 30px; }
  .lead-copy h2 { font-size: 33px; }
  .feed-row { grid-template-columns: 290px minmax(0, 1fr); gap: 26px; }
  .article-layout { grid-template-columns: minmax(0, 680px) 220px; gap: 44px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .header-inner { min-height: 64px; grid-template-columns: 1fr auto; }
  .brand img { width: 38px; height: 38px; }
  .main-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    padding: 12px var(--gutter) 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }
  .main-nav.is-open { display: grid; }
  .main-nav a { min-height: 44px; border-bottom: 1px solid var(--border); font-size: 16px; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .menu-button { display: grid; }
  .page-heading { padding: 38px 0 30px; }
  .page-heading h1, .taxonomy-heading h1 { font-size: 44px; line-height: 1; }
  .lead-story { display: block; min-height: 0; }
  .lead-media { min-height: 0; aspect-ratio: 4 / 3; }
  .lead-copy { padding: 25px 0 34px; }
  .lead-copy h2 { margin: 20px 0 15px; font-size: 32px; }
  .lead-copy > p { font-size: 18px; }
  .feed-row { grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
  .feed-row-media { aspect-ratio: 4 / 3; }
  .feed-row h2 { margin: 10px 0 0; font-size: 20px; }
  .feed-row p { display: none; }
  .article-meta { font-size: 12px; }
  .article-meta time { display: none; }
  .article-meta > * + *::before { height: 14px; margin: 0 10px; }
  .article-meta .category-link::before { display: none; }
  .article-header { margin-bottom: 30px; }
  .article-header h1 { font-size: 42px; }
  .article-lead { font-size: 20px; }
  .article-layout { display: block; }
  .article-body { font-size: 19px; }
  .article-facts { margin-top: 42px; }
  .related-section { margin-top: 64px; }
}

@media (max-width: 460px) {
  .feed-row { grid-template-columns: 112px minmax(0, 1fr); gap: 13px; }
  .feed-row h2 { font-size: 18px; line-height: 1.18; }
  .article-meta .producer-link::before { display: none; }
  .article-meta .category-link { display: none; }
  .article-header h1 { font-size: 36px; }
  .article-byline { display: grid; gap: 7px; }
  .site-footer { display: grid; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
