:root {
  --bg: #090c10;
  --surface: #10151b;
  --surface-raised: #151b22;
  --line: #29313a;
  --line-soft: #1d242c;
  --text: #f1f4f6;
  --muted: #aab4be;
  --faint: #87939e;
  --accent: #e0ad45;
  --accent-strong: #f2c25f;
  --positive: #34c99a;
  --font-sans: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body::selection { background: var(--accent); color: #111; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header { width: min(1180px, calc(100% - 48px)); min-height: 72px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-bottom: 1px solid var(--line-soft); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 700 12px/1 var(--font-mono); }
.brand img { width: 32px; height: 32px; border-radius: 4px; }
.site-nav { display: flex; gap: 25px; }
.site-nav a, .text-link { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 650; }
.site-nav a:hover, .text-link:hover { color: var(--text); }
.site-nav a.active { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.button { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #17130a; text-decoration: none; font-size: 12px; font-weight: 800; transition: background .18s ease, transform .18s ease; }
.button:hover { background: var(--accent-strong); transform: translateY(-1px); }
a:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; }

.hub-hero, .article-hero, .legal-hero { width: min(1180px, calc(100% - 48px)); margin: 0 auto; border-bottom: 1px solid var(--line); }
.hub-hero { padding: 104px 0 82px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
.hub-hero h1, .article-hero h1, .legal-hero h1 { margin: 0; letter-spacing: -0.04em; line-height: 1.04; }
.hub-hero h1 { max-width: 760px; font-size: clamp(50px, 6.5vw, 86px); }
.hub-hero p, .legal-hero p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hub-hero p { max-width: 540px; }

.topic-index { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 76px 0 112px; }
.topic-lead { display: grid; grid-template-columns: .7fr 1.3fr; gap: 44px; align-items: start; padding: 30px 0; border-top: 1px solid var(--line); text-decoration: none; }
.topic-lead:last-child { border-bottom: 1px solid var(--line); }
.topic-lead:hover h2 { color: var(--accent-strong); }
.topic-lead h2 { margin: 0; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.025em; }
.topic-lead p { max-width: 680px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.topic-meta { display: block; margin-top: 12px; color: var(--faint); font: 600 11px/1.4 var(--font-mono); }

.article-hero { padding: 88px 0 58px; }
.breadcrumb { margin-bottom: 34px; color: var(--faint); font: 600 11px/1.5 var(--font-mono); }
.breadcrumb a { color: var(--accent-strong); text-underline-offset: 4px; }
.article-hero h1 { max-width: 940px; font-size: clamp(42px, 6vw, 74px); }
.article-deck { max-width: 760px; margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.article-byline { margin-top: 28px; color: var(--faint); font: 600 11px/1.5 var(--font-mono); }

.article-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 112px; display: grid; grid-template-columns: minmax(0, 760px) 250px; gap: 86px; align-items: start; }
.article-body { min-width: 0; }
.article-body figure { margin: 0 0 48px; overflow: hidden; border-radius: 8px; background: #05080c; }
.article-body figure img { width: 100%; height: auto; }
.article-body figcaption { padding: 12px 16px; color: var(--faint); font: 500 11px/1.5 var(--font-mono); border-top: 1px solid var(--line); }
.article-body h2 { margin: 54px 0 18px; font-size: 30px; line-height: 1.2; letter-spacing: -0.025em; }
.article-body h3 { margin: 34px 0 12px; font-size: 20px; line-height: 1.35; }
.article-body p, .article-body li { color: #c2cbd3; font-size: 16px; line-height: 1.9; }
.article-body p { margin: 0 0 22px; }
.article-body ul, .article-body ol { margin: 0 0 28px; padding-left: 22px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--accent-strong); text-underline-offset: 4px; }
.note { margin: 34px 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: #cbd3da; font-size: 14px; line-height: 1.75; }
.article-nav { position: sticky; top: 26px; border-top: 1px solid var(--line); }
.article-nav strong { display: block; padding: 18px 0 10px; color: var(--faint); font: 700 11px/1.5 var(--font-mono); }
.article-nav a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); text-decoration: none; font-size: 12px; line-height: 1.5; }
.article-nav a:hover { color: var(--accent-strong); }

.legal-hero { padding: 94px 0 62px; }
.legal-hero h1 { max-width: 860px; font-size: clamp(44px, 6vw, 76px); }
.legal-hero p { max-width: 730px; margin-top: 24px; }
.legal-shell { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 62px 0 112px; }
.legal-shell h2 { margin: 48px 0 14px; font-size: 25px; letter-spacing: -0.02em; }
.legal-shell h2:first-child { margin-top: 0; }
.legal-shell p, .legal-shell li { color: #c2cbd3; font-size: 15px; line-height: 1.85; }
.legal-shell a { color: var(--accent-strong); text-underline-offset: 4px; }
.contact-lines { margin: 30px 0; border-top: 1px solid var(--line); }
.contact-lines a, .contact-lines div { min-height: 72px; display: grid; grid-template-columns: .45fr 1.55fr; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-lines span { color: var(--faint); font: 600 11px/1.4 var(--font-mono); }
.contact-lines strong { color: var(--text); font-size: 14px; overflow-wrap: anywhere; }

.page-cta { width: min(1180px, calc(100% - 48px)); margin: 0 auto 72px; padding: 52px; display: flex; justify-content: space-between; align-items: center; gap: 40px; background: #171b1d; border-radius: 8px; }
.page-cta h2 { max-width: 680px; margin: 0; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.03em; }
.page-cta p { margin: 10px 0 0; color: var(--muted); }
footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 50px; display: grid; grid-template-columns: auto 1fr; gap: 24px 42px; align-items: center; border-top: 1px solid var(--line-soft); }
.footer-links { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 12px; }
footer small { grid-column: 1 / -1; color: var(--faint); font-size: 11px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333c45; border: 3px solid var(--bg); border-radius: 10px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hub-hero { grid-template-columns: 1fr; gap: 28px; }
  .article-shell { grid-template-columns: 1fr; }
  .article-nav { position: static; order: -1; }
}

@media (max-width: 620px) {
  .site-header, .hub-hero, .article-hero, .legal-hero, .topic-index, .article-shell, .legal-shell, .page-cta, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 62px; }
  .brand span, .header-actions .text-link { display: none; }
  .hub-hero { padding: 68px 0 56px; }
  .hub-hero h1 { font-size: 48px; }
  .topic-index { padding: 46px 0 78px; }
  .topic-lead { grid-template-columns: 1fr; gap: 12px; }
  .article-hero { padding: 62px 0 42px; }
  .article-hero h1 { font-size: 44px; }
  .article-deck { font-size: 16px; }
  .article-shell { padding: 38px 0 82px; gap: 42px; }
  .article-body h2 { font-size: 27px; }
  .article-body p, .article-body li { font-size: 15px; }
  .article-body figure { margin-inline: -14px; border-radius: 0; }
  .legal-hero { padding: 64px 0 42px; }
  .legal-hero h1 { font-size: 46px; }
  .legal-shell { padding: 42px 0 82px; }
  .contact-lines a, .contact-lines div { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .page-cta { padding: 36px 24px; flex-direction: column; align-items: stretch; }
  .page-cta .button { width: 100%; }
  footer { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; justify-content: flex-start; }
}

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