@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-cyrillic-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root { --knowledge-width: 1240px; --knowledge-gutter: 96px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Hanken Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
::selection { background: var(--v2-accent); color: var(--v2-accent-ink); }
h1, h2, h3 { margin-top: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(38px, 4vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.15; }
h3 { font-size: 24px; line-height: 1.25; }
.site-nav, .hub-hero, .hub-section, .breadcrumbs, .article-hero, .article-shell, .site-footer-inner { width: min(var(--knowledge-width), calc(100% - var(--knowledge-gutter))); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 150; padding: 12px 20px; border-radius: 8px; background: var(--panel); color: var(--ink); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 90; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; gap: 32px; height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.brand img { width: 32px; height: 32px; flex: none; }
.brand-dot { color: var(--lime); }
.site-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-muted); font-size: 14px; font-weight: 600; }
.site-links a:hover { color: var(--ink); }
.site-links a[aria-current] { color: var(--lime); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.site-actions { display: flex; align-items: center; gap: 18px; }
.site-cta, .article-cta > a { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 12px; background: var(--v2-accent); color: var(--v2-accent-ink); font-size: 14px; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.4; transition: background .2s, transform .2s; }
.site-cta svg, .text-link svg { flex: none; }
.site-cta:active, .article-cta > a:active { transform: translateY(1px); }
.site-menu { display: none; margin-left: auto; }
.site-menu > summary { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer; list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.menu-close-icon, .site-menu[open] .menu-open-icon { display: none; }
.site-menu[open] .menu-close-icon { display: block; }
.site-menu-panel { position: absolute; inset: 100% 0 auto; padding: 16px 20px 24px; max-height: calc(100dvh - 72px); overflow-y: auto; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-menu-panel nav { display: grid; }
.site-menu-panel nav a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; color: var(--ink-muted); font-size: 18px; font-weight: 600; }
.site-menu-panel nav a[aria-current] { color: var(--lime); }
.site-menu-theme { display: flex; justify-content: space-between; align-items: center; padding-block: 16px; margin-top: 12px; border-top: 1px solid var(--line); }
.site-menu-panel > .site-cta { width: 100%; }

.eyebrow { margin-bottom: 18px; color: var(--lime); font-size: 11px; font-weight: 750; letter-spacing: .11em; line-height: 1.5; text-transform: uppercase; }
.hub-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .75fr); align-items: center; gap: 64px; padding-block: 72px 64px; border-bottom: 1px solid var(--line); }
.hub-hero-copy { min-width: 0; }
.hub-hero h1 { max-width: 790px; margin-bottom: 24px; }
.hub-hero h1 span { color: var(--lime); }
.hub-hero p { max-width: 660px; margin: 0; color: var(--ink-muted); font-size: 18px; line-height: 1.55; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 24px; font-size: 15px; font-weight: 650; }
.text-link:hover { color: var(--lime); }
.hub-hero-art { position: relative; isolation: isolate; display: grid; place-items: center; }
.hub-hero-art::before { content: ''; position: absolute; inset: -12%; z-index: -1; background: var(--v2-studio-glow); pointer-events: none; }
.hub-hero-art::after { content: ''; position: absolute; inset: auto 22% 1%; z-index: -1; height: 16px; background: var(--v2-studio-ground); pointer-events: none; }
.hub-hero-art img { width: 320px; height: auto; }
.hub-section { padding-block: 64px 88px; }
.hub-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 0 64px; margin-bottom: 32px; }
.hub-heading .eyebrow { grid-column: 1/-1; }
.hub-heading h2 { margin: 0; max-width: 510px; }
.hub-heading > p { margin: 0; color: var(--ink-muted); font-size: 16px; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 296px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); transition: border-color .2s, transform .2s, box-shadow .2s; }
.article-card-tag { display: inline-flex; border-radius: 8px; background: var(--panel-2); color: var(--lime); padding: 6px 10px; font-size: 11px; font-weight: 750; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
.article-card h3 { margin: 24px 0 12px; font-size: 27px; line-height: 1.2; text-wrap: pretty; }
.article-card p { margin: 0 0 28px; color: var(--ink-muted); font-size: 16px; line-height: 1.55; }
.article-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; }
.article-card-meta > span:last-child { color: var(--lime); font-weight: 650; }
.hub-about { margin-top: 32px; border-block: 1px solid var(--line); }
.hub-about > summary { padding: 22px 0; font-size: 18px; font-weight: 650; }
.hub-about > summary, .toc-disclosure > summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px; cursor: pointer; list-style: none; }
.hub-about > summary::-webkit-details-marker, .toc-disclosure > summary::-webkit-details-marker { display: none; }
.hub-about > summary::after, .toc-disclosure > summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 4px; flex: none; }
.hub-about[open] > summary::after, .toc-disclosure[open] > summary::after { transform: rotate(225deg); }
.hub-intro { max-width: 78ch; padding: 0 0 16px; color: var(--ink-muted); }
.hub-intro p { margin: 0 0 18px; }
.hub-principles { padding: 40px; margin-top: 56px; border-radius: 24px; background: var(--panel-2); }
.hub-principles h2 { margin-bottom: 28px; font-size: 34px; }
.hub-principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.hub-principles-grid b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 12px; line-height: 1.4; }
.hub-principles-grid p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.6; }

.breadcrumbs { padding-top: 24px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs a:hover { color: var(--lime); }
.article-hero { padding: 40px 0 48px 296px; }
.article-hero h1 { max-width: 800px; font-size: clamp(36px, 3.7vw, 50px); margin-bottom: 24px; text-wrap: pretty; }
.article-lede { max-width: 70ch; margin: 0; color: var(--ink-muted); font-size: 18px; line-height: 1.6; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--ink-soft); font-size: 13px; }
.article-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 64px; padding-bottom: 88px; align-items: start; }
.toc { position: sticky; top: 106px; max-height: calc(100dvh - 130px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 12px 18px; }
.toc-disclosure > summary { font-size: 15px; font-weight: 700; }
.toc-links { padding-block: 8px 4px; }
.toc-links a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; border-radius: 6px; color: var(--ink-muted); font-size: 14px; line-height: 1.4; }
.toc-links a:hover, .toc-links a[aria-current] { color: var(--lime); }
.article-body { min-width: 0; max-width: 70ch; color: var(--ink); font-size: 18px; line-height: 1.7; }
.article-body h2 { margin: 56px 0 20px; font-size: 34px; line-height: 1.2; text-wrap: pretty; }
.article-body > h2:first-child { margin-top: 0; }
.article-body h3 { margin: 32px 0 16px; font-size: 24px; line-height: 1.3; text-wrap: pretty; }
.article-body p { margin: 0 0 22px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 24px; }
.article-body li { padding-left: 4px; margin-bottom: 10px; }
.article-body li::marker { color: var(--lime); }
.article-body a { color: var(--lime); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.article-body strong { font-weight: 700; }
.note { margin: 28px 0; padding: 24px; border-left: 3px solid var(--lime); border-radius: 0 16px 16px 0; background: var(--panel-2); color: var(--ink-muted); font-size: 16px; line-height: 1.65; }
.note strong { display: block; color: var(--lime); margin-bottom: 8px; }
.table-scroll { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 16px; }
.comparison { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.comparison th, .comparison td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison th { background: var(--panel-2); color: var(--ink); font-weight: 650; }
.comparison td { color: var(--ink-muted); }
.comparison tr:last-child td { border-bottom: 0; }
.article-cta { margin-top: 56px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel-2); }
.article-cta h2 { font-size: 30px; margin-top: 0; }
.article-cta p { color: var(--ink-muted); font-size: 16px; }
.article-cta > a { color: var(--v2-accent-ink); text-decoration: none; font-size: 16px; padding: 14px 24px; min-height: 52px; }
.related { margin-top: 56px; }
.related h2 { font-size: 28px; }
.related-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-links a { display: flex; align-items: center; min-height: 64px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.5; }
.related-links a:hover { border-color: var(--line-accent); color: var(--lime); }

.site-footer-inner { border-top: 1px solid var(--line); padding-top: 48px; }
.site-footer-top { display: grid; grid-template-columns: 1fr .8fr .8fr; gap: 48px; padding-bottom: 36px; }
.site-footer-top p { color: var(--ink-muted); font-size: 14px; line-height: 1.55; margin: 18px 0 0; }
.site-footer-links { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 0 24px; }
.site-footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-muted); font-size: 14px; }
.site-footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.site-footer-contact > span { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.site-footer-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; font-size: 16px; font-weight: 600; }
.site-footer-contact svg { flex: none; }
.site-footer-contact a span { min-width: 0; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--lime); }
.site-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 28px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; line-height: 1.6; }

@media (hover: hover) {
  .article-card:hover { border-color: var(--line-accent); transform: translateY(-2px); box-shadow: var(--shadow); }
  .site-cta:hover, .article-cta > a:hover { background: #d2fa8f; }
}
@media (max-width: 1100px) {
  :root { --knowledge-gutter: 64px; }
  .site-nav { gap: 20px; }
  .site-actions > .site-cta { display: none; }
  .hub-hero { gap: 32px; grid-template-columns: minmax(0, 1.7fr) minmax(0, .7fr); }
  .hub-heading { gap: 0 32px; }
  .article-hero { padding-left: 260px; }
  .article-shell { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .site-footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer-contact { grid-column: 2; }
  .site-footer-top > div:first-child { grid-row: span 2; }
}
@media (max-width: 980px) {
  .article-hero { padding-left: 0; }
  .article-shell { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .article-body { max-width: none; }
  .toc { position: static; max-height: none; }
  .hub-principles-grid { gap: 24px; }
}
@media (max-width: 780px) {
  :root { --knowledge-gutter: 40px; }
  html { scroll-padding-top: 92px; }
  .site-nav { height: 72px; }
  .site-links, .site-actions { display: none; }
  .site-menu { display: block; }
  .hub-hero { grid-template-columns: minmax(0, 1fr) 160px; align-items: end; gap: 16px; padding-block: 44px 36px; }
  .hub-hero-copy { grid-column: 1/-1; }
  .hub-hero h1 { font-size: clamp(34px, 7vw, 48px); max-width: 620px; margin-bottom: 20px; }
  .hub-hero p { font-size: 17px; }
  .hub-hero-art { grid-column: 2; margin-top: -16px; }
  .hub-hero-art img { width: 160px; }
  .text-link { margin-top: 20px; }
  .eyebrow { margin-bottom: 16px; }
  .hub-section { padding-block: 40px 64px; }
  .hub-heading { display: block; margin-bottom: 24px; }
  .hub-heading h2 { font-size: 32px; max-width: 540px; margin-bottom: 16px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .article-card { min-height: 0; padding: 24px; border-radius: 20px; }
  .article-card h3 { font-size: 25px; margin-top: 20px; }
  .article-card p { margin-bottom: 24px; }
  .article-card-meta { padding-top: 16px; }
  .hub-about { margin-top: 24px; }
  .hub-principles { margin-top: 40px; padding: 28px 24px; border-radius: 20px; }
  .hub-principles h2 { font-size: 28px; }
  .hub-principles-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hub-principles-grid b { margin-bottom: 8px; }
  .breadcrumbs { padding-top: 16px; font-size: 12px; }
  .article-hero { padding-block: 28px 32px; }
  .article-hero h1 { font-size: clamp(33px, 7vw, 44px); line-height: 1.12; margin-bottom: 20px; }
  .article-lede { font-size: 17px; }
  .article-meta { gap: 6px 16px; margin-top: 20px; font-size: 12px; }
  .article-shell { gap: 28px; padding-bottom: 64px; }
  .article-body { font-size: 17px; line-height: 1.65; }
  .article-body h2 { font-size: 28px; margin-top: 40px; margin-bottom: 18px; }
  .article-body h3 { font-size: 22px; margin-top: 28px; }
  .article-body p { margin-bottom: 20px; }
  .note { padding: 20px; font-size: 16px; }
  .article-cta { padding: 24px; margin-top: 40px; border-radius: 20px; }
  .article-cta h2 { margin-top: 0; font-size: 27px; }
  .article-cta > a { width: 100%; font-size: 15px; padding-inline: 16px; }
  .related { margin-top: 40px; }
  .related-links { grid-template-columns: minmax(0, 1fr); }
  .site-footer-inner { padding-top: 32px; }
  .site-footer-top { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-bottom: 28px; }
  .site-footer-top > div:first-child { grid-row: auto; }
  .site-footer-contact { grid-column: auto; }
  .site-footer-bottom { flex-direction: column; gap: 8px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
  .hub-hero h1 { font-size: 32px; }
  .article-card { padding: 20px; }
  .article-card h3 { font-size: 23px; }
  .article-card-meta { flex-wrap: wrap; }
  .article-hero h1 { font-size: 31px; }
  .article-cta { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
