@font-face { font-family:Inter; src:url('/assets/inter-latin-wght-normal.woff2') format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:Inter; src:url('/assets/inter-cyrillic-wght-normal.woff2') format('woff2'); font-weight:100 900; font-display:swap; unicode-range:U+0400-052F,U+2116; }
* { box-sizing:border-box; }
html { color-scheme:dark; }
body {
  --bg:#000; --paper:#090909; --text:#fff; --copy:#d7d7d7; --muted:#a9a9a9; --line:#393939;
  margin:0; background:var(--bg); color:var(--text); font:400 16px/1.65 Inter,system-ui,sans-serif;
}
a { color:inherit; text-underline-offset:.24em; }
a:focus-visible { outline:2px solid currentColor; outline-offset:4px; border-radius:3px; }
.doc-wrap { inline-size:min(100% - 64px,1120px); margin-inline:auto; }
.doc-top { border-bottom:1px solid var(--line); }
.doc-top .doc-wrap {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; min-height:68px; padding-block:12px;
}
.doc-brand { display:inline-flex; align-items:center; gap:10px; font-size:17px; font-weight:740; text-decoration:none; }
.doc-brand img { inline-size:30px; block-size:28px; object-fit:contain; filter:grayscale(1); }
.doc-top nav { display:flex; align-items:center; gap:12px 24px; flex-wrap:wrap; font-size:14px; }
.doc-top nav a { text-decoration:none; }
.doc-top nav a:hover { text-decoration:underline; }
.doc-hero {
  isolation:isolate; overflow:hidden; position:relative; border-bottom:1px solid var(--line);
  padding-block:clamp(38px,6.6vw,92px) clamp(28px,5vw,68px);
}
.doc-hero::before {
  content:""; position:absolute; z-index:-1; inset:0 0 0 52%;
  background:linear-gradient(to right,#000,transparent 58%), repeating-linear-gradient(128deg,#ffffff18 0 1px,transparent 1px 21px);
  opacity:.75; pointer-events:none;
}
.doc-hero h1 {
  margin:0; max-width:790px; font-size:clamp(36px,6vw,72px); font-weight:750;
  line-height:1.04; letter-spacing:-.048em; text-wrap:balance; overflow-wrap:anywhere;
}
.doc-date { display:block; margin-top:22px; color:var(--muted); font-size:14px; }
.doc-draft {
  max-width:72ch; margin:18px 0 0; padding:10px 14px; border-inline-start:2px solid #fff;
  background:var(--paper); color:var(--copy); font-size:14px;
}
.doc-draft strong { font-weight:600; }
.doc-layout { display:grid; grid-template-columns:230px minmax(0,1fr); align-items:start; gap:clamp(24px,5vw,68px); padding-block:38px 56px; }
.doc-side { position:sticky; top:24px; max-height:calc(100vh - 48px); overflow:auto; padding:16px; border:1px solid var(--line); border-radius:12px; }
.doc-toc-label { display:block; margin:0 0 9px; font-size:14px; color:var(--text); }
.doc-toc { display:grid; gap:2px; margin:0; padding:0; list-style:none; color:var(--copy); font-size:14px; line-height:1.4; }
.doc-toc a { display:block; padding:7px 8px; border-radius:6px; text-decoration:none; }
.doc-toc a:is(:hover,:focus-visible) { background:#202020; color:#fff; text-decoration:underline; }
.doc-mobile-toc { display:none; }
.doc-content { min-width:0; max-width:75ch; }
.doc-section { padding:0 0 24px; scroll-margin-block-start:18px; }
.doc-section + .doc-section { border-top:1px solid var(--line); padding-top:24px; }
.doc-section:target > h2 { text-decoration:underline; text-underline-offset:.24em; }
@media screen and (prefers-reduced-motion:no-preference) {
  html { scroll-behavior:smooth; }
  .doc-section:target > h2 { animation:doc-section-highlight 1.15s ease-out; }
  @keyframes doc-section-highlight {
    from { background-color:#ffffff20; }
    to { background-color:transparent; }
  }
}
.doc-section h2 { margin:0 0 12px; font-size:clamp(20px,2.4vw,25px); line-height:1.25; letter-spacing:-.02em; }
.doc-section :is(p,ul,ol) { margin:0; color:var(--copy); overflow-wrap:anywhere; }
.doc-section :is(p,ul,ol) + :is(p,ul,ol) { margin-top:.8em; }
.doc-section :is(ul,ol) { padding-inline-start:1.4em; }
.doc-section li + li { margin-top:.45em; }
.doc-section a { color:#fff; }
.doc-section a:hover { text-decoration-thickness:2px; }
.doc-footer { border-top:1px solid var(--line); padding-block:26px 40px; }
.doc-footer h2 { margin:0 0 14px; font-size:18px; }
.doc-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.doc-links a { min-width:0; padding:10px 12px; border:1px solid var(--line); border-radius:8px; color:var(--copy); font-size:14px; text-decoration:none; overflow-wrap:anywhere; }
.doc-links a:is(:hover,:focus-visible) { background:#141414; color:#fff; border-color:#777; }
.doc-links a[aria-current="page"] { color:#fff; border-color:#888; font-weight:600; }
@media (max-width:760px) {
  .doc-wrap { inline-size:min(100% - 36px,1120px); }
  .doc-top .doc-wrap { min-height:60px; }
  .doc-hero h1 { font-size:clamp(24px,7.65vw,46px); }
  .doc-top nav { gap:8px 14px; font-size:13px; }
  .doc-layout { display:block; padding-block:24px 36px; }
  .doc-side { display:none; }
  .doc-mobile-toc { display:block; margin-bottom:22px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; }
  .doc-mobile-toc summary { cursor:pointer; padding:3px; font-weight:600; }
  .doc-mobile-toc[open] summary { margin-bottom:6px; }
  .doc-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:380px) {
  .doc-wrap { inline-size:min(100% - 28px,1120px); }
  .doc-links { grid-template-columns:1fr; }
}
@media print {
  html { color-scheme:light; }
  body { --bg:#fff; --paper:#fff; --text:#000; --copy:#000; --muted:#222; --line:#999; }
  .doc-top, .doc-side, .doc-mobile-toc, .doc-footer, .doc-hero::before { display:none; }
  .doc-hero { padding:0 0 16px; }
  .doc-hero h1 { font-size:30pt; }
  .doc-layout { display:block; padding:20px 0 0; }
  .doc-wrap { inline-size:100%; }
  h2 { break-after:avoid; }
}
