:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f8f8fa;
  --archive-card: #fff;
  --text: #111114;
  --archive-muted: #72727d;
  --archive-border: #e3e3e8;
  --accent: #16803d;
  --soft: #edf8f0;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d0d0f; --archive-card: #151517; --text: #f7f7f8; --archive-muted: #a1a1ad; --archive-border: #303035; --accent: #4ade80; --soft: #14241a; }
}
:root.light { color-scheme: light; --bg:#f8f8fa; --archive-card:#fff; --text:#111114; --archive-muted:#72727d; --archive-border:#e3e3e8; --accent:#16803d; --soft:#edf8f0; }
:root.dark { color-scheme: dark; --bg:#0d0d0f; --archive-card:#151517; --text:#f7f7f8; --archive-muted:#a1a1ad; --archive-border:#303035; --accent:#4ade80; --soft:#14241a; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.archive-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--archive-border); background: var(--archive-card); }
.archive-header nav { max-width: 76rem; min-height: 3.5rem; margin: auto; display: flex; align-items: center; gap: 1.25rem; padding: .5rem 1rem; overflow-x: auto; white-space: nowrap; font-size: .9rem; }
.archive-header .logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent); font-weight: 750; font-size: 1rem; margin-right: auto; }
.archive-header .logo::before { content: "Б"; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--text); color: var(--archive-card); font-size: .9rem; }
.archive-header nav button { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border: 1px solid var(--archive-border); border-radius: .5rem; background: var(--archive-card); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.archive-main { max-width: 50rem; margin: auto; padding: 1.5rem 1rem 4rem; }
.archive-main h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em; }
.archive-main h2 { font-size: 1.1rem; line-height: 1.4; margin: 0; }
.notice { border: 1px solid var(--archive-border); border-radius: .6rem; background: var(--archive-card); padding: .8rem 1rem; color: var(--archive-muted); font-size: .9rem; line-height: 1.5; }
.snapshot-note { margin: 1rem 0; color: var(--archive-muted); font-size: .875rem; line-height: 1.5; }
.hero { text-align: center; padding: 1rem 0 1.5rem; }
.hero h1 { margin: .5rem 0; color: var(--accent); }
.hero p { max-width: 38rem; margin: 1rem auto 0; color: var(--archive-muted); line-height: 1.7; }
.feed { display: grid; gap: .75rem; margin-top: 1rem; }
.archive-main article { border: 1px solid var(--archive-border); border-radius: .65rem; background: var(--archive-card); padding: 1rem; overflow-wrap: anywhere; }
.archive-main article h1 { margin-top: 0; }
.archive-main article h2 a { transition: color .15s ease; }
.archive-main article h2 a:hover { color: var(--accent); }
.meta { color: var(--archive-muted); font-size: .875rem; line-height: 1.5; }
.summary { white-space: pre-wrap; line-height: 1.75; overflow-wrap: anywhere; }
.tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.tags a { border: 1px solid var(--archive-border); border-radius: .4rem; padding: .2rem .5rem; color: var(--accent); background: var(--soft); font-size: .8rem; }
.tags a[href="/category/viyna"] { color: #d92d20; background: #d92d2012; border-color: #d92d2055; }
.tags a[href="/category/polityka"], .tags a[href="/category/suspilstvo"] { color: #7c3aed; background: #7c3aed12; border-color: #7c3aed55; }
.tags a[href="/category/ekonomika"] { color: #a16207; background: #ca8a0412; border-color: #ca8a0455; }
.tags a[href="/category/svit"] { color: #0e7490; background: #0891b212; border-color: #0891b255; }
.tags a[href="/category/tekhnolohii"], .tags a[href="/category/law"] { color: #2563eb; background: #2563eb12; border-color: #2563eb55; }
:root.dark .tags a[href="/category/viyna"] { color: #fb7185; }
:root.dark .tags a[href="/category/polityka"], :root.dark .tags a[href="/category/suspilstvo"] { color: #c084fc; }
:root.dark .tags a[href="/category/ekonomika"] { color: #fbbf24; }
:root.dark .tags a[href="/category/svit"] { color: #22d3ee; }
:root.dark .tags a[href="/category/tekhnolohii"], :root.dark .tags a[href="/category/law"] { color: #60a5fa; }
.button { display: inline-block; background: var(--text); color: var(--archive-card); padding: .65rem 1rem; border-radius: .4rem; font-weight: 600; }
.back { display: inline-block; margin: 0 0 1rem; color: var(--archive-muted); }
.archive-main label { display: block; margin: 1rem 0; font-size: .9rem; }
.archive-main input[type=search] { display: block; width: 100%; margin-top: .5rem; padding: .7rem; border: 1px solid var(--archive-border); border-radius: .45rem; background: var(--archive-card); color: var(--text); }
.catalog { display: grid; gap: .5rem; }
.catalog a { border: 1px solid var(--archive-border); border-radius: .5rem; background: var(--archive-card); padding: .9rem; }
.pagination { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: 1.5rem 0; color: var(--archive-muted); font-size: .9rem; }
.pagination a { display: inline-flex; min-height: 2.5rem; align-items: center; padding: .45rem .8rem; border: 1px solid var(--archive-border); border-radius: .5rem; background: var(--archive-card); color: var(--text); font-weight: 600; }
footer { border-top: 1px solid var(--archive-border); padding: 1.5rem; text-align: center; color: var(--archive-muted); font-size: .8rem; line-height: 2; }
@media (min-width: 640px) { .archive-main article { padding: 1.25rem 1.5rem; } .feed { gap: 1rem; } }

.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero-actions .secondary { background: var(--archive-card); color: var(--text); border: 1px solid var(--archive-border); }

.browse-eyebrow { margin: 0 0 .4rem; color: var(--archive-muted); font-size: .875rem; }
.browse-eyebrow + h1 { margin-top: 0; }
.browse-description { color: var(--archive-muted); line-height: 1.6; }
