@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-cyrillic-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #07100b;
  --panel: #0d1711;
  --panel-2: #111d16;
  --ink: #f3f7f3;
  --muted: #a7b4aa;
  --soft: #829087;
  --lime: #bef264;
  --mint: #34d399;
  --line: rgba(255,255,255,.09);
  --accent-line: rgba(190,242,100,.22);
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --display: "Space Grotesk", "Hanken Grotesk", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(700px 500px at 80% 0, rgba(52,211,153,.09), transparent 65%),
    linear-gradient(180deg, #07100b, #050805);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
::selection { color: white; background: rgba(190,242,100,.28); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7,16,11,.9);
  backdrop-filter: blur(18px);
}
.site-nav {
  width: min(var(--max), calc(100% - 48px));
  min-height: 74px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font: 700 20px/1 var(--display);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border: 3px solid var(--lime);
  border-top-color: transparent;
  border-radius: 50%;
  position: relative;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 7px;
  height: 7px;
  border-top: 3px solid var(--lime);
}
.brand-mark::before { left: -4px; border-left: 3px solid var(--lime); }
.brand-mark::after { right: -4px; border-right: 3px solid var(--lime); }
.brand-dot { color: var(--lime); }
.site-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-weight: 650; font-size: 14px; }
.site-links a:hover, .site-links a[aria-current="page"] { color: var(--ink); }
.site-cta, .article-cta a {
  min-height: 44px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #081006;
  background: linear-gradient(135deg, var(--lime), #8ce85f);
  font-weight: 800;
}

.hub-hero {
  width: min(900px, calc(100% - 48px));
  margin: auto;
  padding: 110px 0 72px;
  text-align: center;
}
.eyebrow {
  margin-bottom: 18px;
  color: var(--lime);
  font: 700 12px/1 var(--display);
  letter-spacing: .11em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin-top: 0;
  font-family: var(--display);
  letter-spacing: -.035em;
}
.hub-hero h1, .article-hero h1 { margin-bottom: 24px; font-size: clamp(42px, 6vw, 68px); line-height: 1.02; }
.hub-hero p, .article-lede { margin: 0 auto; color: var(--muted); font-size: 20px; line-height: 1.55; }

.hub-section {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
  padding: 28px 0 100px;
}
.hub-heading { max-width: 720px; margin-bottom: 34px; }
.hub-heading h2 { margin-bottom: 12px; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; }
.hub-heading p { margin: 0; color: var(--muted); }
.hub-intro { max-width: 860px; margin: -8px 0 38px; color: var(--muted); }
.hub-intro p { margin: 0 0 14px; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.article-card {
  min-height: 290px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(17,29,22,.95), rgba(9,16,11,.98));
  transition: transform .18s, border-color .18s;
}
.article-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.article-card-tag { color: var(--lime); font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.article-card h2 { margin: 24px 0 12px; font-size: 28px; line-height: 1.12; }
.article-card p { margin: 0 0 24px; color: var(--muted); }
.article-card-meta { margin-top: auto; display: flex; justify-content: space-between; color: var(--soft); font-size: 12px; }
.hub-principles {
  margin-top: 64px;
  padding: 36px;
  border: 1px solid var(--accent-line);
  border-radius: 22px;
  background: rgba(190,242,100,.035);
}
.hub-principles h2 { font-size: 34px; }
.hub-principles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.hub-principles-grid div { padding-top: 18px; border-top: 1px solid var(--line); }
.hub-principles-grid b { display: block; margin-bottom: 6px; color: var(--lime); font-family: var(--display); }
.hub-principles-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.breadcrumbs {
  width: min(var(--max), calc(100% - 48px));
  margin: 30px auto 0;
  color: var(--soft);
  font-size: 13px;
}
.breadcrumbs a:hover { color: var(--ink); }
.article-hero {
  width: min(900px, calc(100% - 48px));
  margin: auto;
  padding: 72px 0 54px;
}
.article-hero h1 { max-width: 880px; }
.article-lede { max-width: 780px; margin-left: 0; }
.article-meta { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--soft); font-size: 13px; }
.article-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
  padding: 20px 0 100px;
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: space-between;
  gap: 64px;
}
.toc {
  position: sticky;
  top: 105px;
  height: fit-content;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13,23,17,.7);
}
.toc b { display: block; margin-bottom: 11px; font-family: var(--display); }
.toc a { display: block; padding: 6px 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.toc a:hover { color: var(--lime); }
.article-body { min-width: 0; color: #d7ded8; }
.article-body h2 { margin: 58px 0 18px; font-size: 34px; line-height: 1.13; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 35px 0 12px; font-size: 23px; line-height: 1.2; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 23px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(190,242,100,.35); text-underline-offset: 3px; }
.note {
  margin: 30px 0;
  padding: 22px 24px;
  border-left: 3px solid var(--lime);
  border-radius: 0 14px 14px 0;
  color: var(--muted);
  background: var(--panel-2);
}
.note strong { display: block; margin-bottom: 5px; color: var(--lime); }
.comparison {
  width: 100%;
  margin: 26px 0 32px;
  border-collapse: collapse;
  font-size: 14px;
}
.comparison th, .comparison td { padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { color: var(--ink); background: var(--panel-2); }
.comparison td { color: var(--muted); }
.article-cta {
  margin-top: 58px;
  padding: 34px;
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  background: radial-gradient(circle at 100% 0, rgba(52,211,153,.13), transparent 50%), var(--panel);
}
.article-cta h2 { margin-top: 0; }
.article-cta p { color: var(--muted); }
.related { margin-top: 58px; }
.related h2 { font-size: 28px; }
.related-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.related-links a { padding: 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; background: var(--panel); }
.related-links a:hover { border-color: var(--accent-line); }

.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
  padding: 42px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--soft);
  font-size: 13px;
}
.site-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .site-links { display: none; }
  .article-shell { grid-template-columns: 1fr; gap: 26px; }
  .toc { position: static; }
}
@media (max-width: 680px) {
  .site-nav, .hub-section, .breadcrumbs, .article-shell, .site-footer-inner { width: calc(100% - 36px); }
  .hub-hero, .article-hero { width: calc(100% - 36px); }
  .site-nav { min-height: 66px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 29px; height: 29px; }
  .site-cta { padding: 10px 13px; font-size: 13px; }
  .hub-hero { padding: 82px 0 50px; text-align: left; }
  .hub-hero h1, .article-hero h1 { font-size: 40px; }
  .hub-hero p, .article-lede { font-size: 17px; }
  .hub-section { padding-bottom: 76px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 260px; padding: 24px; }
  .hub-principles { padding: 24px; }
  .hub-principles-grid { grid-template-columns: 1fr; }
  .article-hero { padding: 48px 0 38px; }
  .article-shell { padding-bottom: 76px; }
  .article-body h2 { margin-top: 46px; font-size: 29px; }
  .article-body h3 { font-size: 21px; }
  .comparison { display: block; overflow-x: auto; }
  .article-cta { padding: 25px; }
  .related-links { grid-template-columns: 1fr; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; }
}
