@font-face {
  font-family: Onest;
  src: url('onest-cyrillic.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Onest;
  src: url('onest-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --page: #111317;
  --panel: #1a1d23;
  --raised: #242831;
  --ink: #f2f3f5;
  --muted: #aeb6c1;
  --accent: #b9f1d0;
  --accent-ink: #16271e;
  --rule: #30353d;
  --radius: 12px;
  --small-radius: 8px;
  font: 16px/1.6 Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body, p, h1, h2, h3, figure, ul, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .21em; }
a:hover { text-decoration-thickness: 2px; }
input, button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:target { scroll-margin-block-start: 104px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 64px, 1200px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.skip:focus { position: fixed; top: 10px; left: 16px; z-index: 4; padding: 8px 16px; background: var(--panel); }

.masthead { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--rule); background: var(--page); }
.masthead-inner { min-height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.wordmark {
  justify-self: start;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 780;
  letter-spacing: -.045em;
  text-decoration: none;
  white-space: nowrap;
}
.mark { width: 30px; aspect-ratio: 1; background: url('icon.svg') center / 100% no-repeat; }
.masthead nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.masthead nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
}
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--ink); }
.masthead nav a[aria-current]::after {
  content: '';
  position: absolute;
  inset: auto 0 6px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}
.topic-nav {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--small-radius);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 690;
  text-decoration: none;
  white-space: nowrap;
}
.topic-nav:hover, .topic-nav[aria-current] { background: var(--raised); }
.topic-nav[aria-current] { border-color: var(--accent); }

.landing { padding-block: 24px 56px; }
.feature, .topic-hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  min-height: clamp(328px, 32vw, 388px);
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}
.feature-media, .topic-cover { grid-area: 1 / 2; position: relative; }
.feature-media img, .topic-cover img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.feature-media img { object-position: 54% 46%; }
.topic-cover img { object-position: 50% 62%; }
.feature-media figcaption, .topic-cover figcaption {
  position: absolute;
  inset: auto 8px 8px auto;
  max-width: calc(100% - 16px);
  padding: 2px 6px;
  border-radius: 4px;
  background: #111317ed;
  color: var(--ink);
  font-size: .75rem;
}
.feature-media figcaption a, .topic-cover figcaption a { color: inherit; }
.feature-copy, .topic-copy { grid-area: 1 / 1; align-self: center; padding: clamp(24px, 3.6vw, 48px); }
.feature-copy:first-child { grid-column: 1 / -1; }
.feature-date, .category { color: var(--muted); font-size: .8125rem; font-weight: 620; }
.feature-date time, .category time { font-weight: 450; white-space: nowrap; }
.feature-date time::before, .category time::before { content: '·'; display: inline-block; margin-inline: .5em; }
.feature h1, .topic-copy h1, .section-lead h1, .article-head h1 {
  font-size: clamp(2.1rem, 4.1vw, 3.8rem);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.feature h1 { margin-top: 8px; text-wrap: balance; }
.feature-summary { max-width: 42ch; margin-top: 12px; color: var(--muted); line-height: 1.5; }
.action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--small-radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 710;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.action:hover { background: #d3f9e3; }
.feature-link { margin-top: 24px; }

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(232px, 27%, 312px);
  align-items: start;
  gap: clamp(24px, 3.4vw, 48px);
  margin-top: 32px;
}
.feed { margin-top: 32px; }
.home-layout .feed { margin-top: 0; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.section-heading h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 740;
  line-height: 1.16;
  letter-spacing: -.035em;
}
.feed-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: var(--small-radius);
}
.feed-controls button {
  min-height: 36px;
  padding: 3px 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 620;
  cursor: pointer;
}
.feed-controls button:hover { color: var(--ink); }
.feed-controls button[aria-pressed='true'] { background: var(--raised); color: var(--ink); }

.topics, .related {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}
.topics h2, .related h2 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -.015em; }
.topics ul, .related ul { list-style: none; padding: 0; margin-top: 8px; }
.topics li + li { border-top: 1px solid var(--rule); }
.topics a { display: flex; align-items: center; gap: 12px; padding-block: 10px; color: var(--ink); text-decoration: none; }
.topics li:last-child a { padding-bottom: 0; }
.topics img { width: 48px; height: 48px; flex: none; border-radius: var(--small-radius); object-fit: cover; }
.topics strong, .topics small { display: block; }
.topics strong { font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.topics small { margin-top: 3px; color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.topics a:hover strong { text-decoration: underline; }

.section-lead { margin-block: 8px 24px; }
.section-lead p { margin-top: 8px; max-width: 66ch; color: var(--muted); }
.story-list { display: grid; gap: 0; margin-top: 12px; border-bottom: 1px solid var(--rule); }
.section-index .story-list, .feed:not([data-feed]) .story-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 3.4vw, 48px);
}
.story { min-width: 0; border-top: 1px solid var(--rule); }
.story-link {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 20px);
  height: 100%;
  padding-block: 16px;
  color: var(--ink);
  text-decoration: none;
}
.story-link:hover .story-title { text-decoration: underline; text-decoration-thickness: 1px; }
.story-image {
  overflow: hidden;
  width: clamp(88px, 13vw, 152px);
  flex: none;
  aspect-ratio: 16 / 10;
  border-radius: var(--small-radius);
  background: var(--raised);
}
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { min-width: 0; }
.story-title {
  margin-top: 3px;
  font-size: clamp(1.02rem, 1.7vw, 1.3rem);
  letter-spacing: -.021em;
  line-height: 1.22;
  font-weight: 720;
  overflow-wrap: anywhere;
}
.story-title + p { max-width: 56ch; margin-top: 5px; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  padding-block: 16px 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .875rem;
}
.footer span { font-weight: 730; color: var(--ink); }

.topic-back { color: var(--muted); font-size: .875rem; }
.topic-copy h1 { margin-block: 8px; font-size: clamp(2.9rem, 6vw, 5rem); }
.topic-copy p { color: var(--muted); }
.topic-facts { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 24px; }
.topic-facts dt { color: var(--muted); font-size: .8125rem; }
.topic-facts dd { font-weight: 630; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) clamp(208px, 27%, 312px);
  align-items: start;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  padding-block: 32px 56px;
}
.reference { min-width: 0; }
.article-path { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: .875rem; }
.article-path span { border-left: 1px solid var(--rule); padding-left: 10px; }
.article-head h1 { margin-top: 12px; }
.intro { margin-top: 16px; max-width: 61ch; font-size: 1.125rem; }
.checked { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.article-cover { margin-top: 24px; }
.article-cover img { width: 100%; max-height: 360px; object-fit: cover; border: 1px solid var(--rule); border-radius: var(--radius); }
.article-cover figcaption { margin-top: 4px; text-align: right; font-size: .8125rem; color: var(--muted); }
.article-section { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
.article-section h2 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); line-height: 1.2; letter-spacing: -.024em; }
.article-section p, .article-section ul { margin-top: 10px; max-width: 68ch; }
.article-section ul { padding-left: 1.15em; }
.article-section li + li { margin-top: 6px; }
.related { position: sticky; top: 88px; }
.related li { padding-block: 8px; border-top: 1px solid var(--rule); }
.related li:last-child { padding-bottom: 0; }
.related a { font-size: .9375rem; color: var(--ink); }

.storage-form {
  display: grid;
  grid-template-columns: 1fr minmax(80px, 140px);
  align-items: center;
  gap: 8px 12px;
  max-width: 480px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}
.storage-form label { font-size: .9375rem; font-weight: 630; }
.storage-form input {
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #6b737f;
  border-radius: var(--small-radius);
  background: var(--page);
  color: var(--ink);
}
.storage-form button { justify-self: start; }
.storage-form output { grid-column: 1 / -1; color: var(--ink); }
.storage-form output:empty { display: none; }

@media (max-width: 920px) {
  .shell { width: calc(100% - 48px); }
  .masthead nav { column-gap: 18px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .landing { padding-block: 16px 40px; }
  .feature, .topic-hero { display: flex; flex-direction: column; min-height: auto; }
  .feature-media, .topic-cover { min-height: clamp(180px, 44vw, 320px); }
  .feature-copy, .topic-copy { align-self: stretch; padding: 20px; }
  .feature h1 { font-size: clamp(2.04rem, 7vw, 3.25rem); text-wrap: pretty; }
  .feature-link { margin-top: 16px; }
  .home-layout { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .feed { margin-top: 24px; }
  .section-index .story-list, .feed:not([data-feed]) .story-list { grid-template-columns: minmax(0, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); padding-block: 24px 40px; }
  .related { position: static; }
  .footer { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .masthead-inner { grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 4px; }
  .masthead nav { grid-row: 2; grid-column: 1 / -1; gap: 0 16px; }
  .masthead nav a { min-height: 44px; font-size: .875rem; }
  .wordmark { font-size: 1.2rem; }
  .mark { width: 26px; }
  .home-layout .section-heading { align-items: flex-start; flex-direction: column; }
  .feed-controls button { min-height: 38px; padding-inline: 8px; }
  .story-link { align-items: flex-start; padding-block: 12px; }
  .story-image { margin-top: 3px; }
}
@media (forced-colors: active) {
  .masthead nav a[aria-current] { text-decoration: underline; }
  .feed-controls button[aria-pressed='true'] { outline: 1px solid ButtonText; outline-offset: -2px; }
}


.section-heading > h1 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); line-height: 1.16; letter-spacing: -.035em; }
.article-content > p, .article-content > ul, .article-content > ol { margin-block: 16px; max-width: 68ch; }
.article-content h2 { margin-top: 24px; }
.article-section > h2:first-child { margin-top: 0; }
.article-content li + li { margin-top: 6px; }
.page-numbers { display: inline-block; margin: 12px 8px 0 0; }
.nav-links .current { font-weight: 730; }
