
:root {
  color-scheme: dark;
  --bg: #0b1117;
  --bg-soft: #111a24;
  --panel: rgba(17, 26, 36, 0.78);
  --panel-strong: #131f2b;
  --text: #edf4fb;
  --muted: #97a9ba;
  --accent: #48b8c7;
  --accent-soft: rgba(72, 184, 199, 0.12);
  --line: rgba(151, 169, 186, 0.18);
  --line-strong: rgba(151, 169, 186, 0.32);
  --code: #0d151e;
  --shadow: 0 28px 80px -42px rgba(6, 16, 24, 0.92);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: Geist, Satoshi, "Cabinet Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(140deg, rgba(72, 184, 199, 0.12), transparent 28rem),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg), #0e151d 58%, #0a1016);
  background-size: auto, 56px 56px, auto;
  color: var(--text);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.2;
  mask-image: linear-gradient(to bottom, #0b1117, transparent 68%);
}
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
.skip-link { position: absolute; left: -999px; top: 12px; padding: 10px 14px; border-radius: 999px; background: var(--accent); color: #082027; }
.skip-link:focus { left: 16px; z-index: 5; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 23, 0.84);
  backdrop-filter: blur(18px);
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.brand { display: flex; flex-direction: column; gap: 3px; }
.brand-kicker { color: var(--accent); font-family: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.site-header h1 { margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.8rem); line-height: 1.1; letter-spacing: -0.04em; }
.site-header h1 a { color: var(--text); }
.site-header p { margin: 0; color: var(--muted); max-width: 72ch; font-size: 0.94rem; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,0.035); font-size: 0.78rem; font-family: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.pill.primary { color: #dff9fb; border-color: rgba(72,184,199,0.38); background: var(--accent-soft); }
.layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 48px) 72px;
  display: grid;
  grid-template-columns: minmax(245px, 0.72fr) minmax(0, 1.85fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
}
.sidebar, main {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
}
.sidebar { padding: 18px; position: sticky; top: 110px; max-height: calc(100dvh - 138px); overflow: auto; border-radius: 28px; }
.sidebar h2 { font-size: 0.72rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.16em; margin: 0 0 12px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.sidebar a { display: block; padding: 9px 10px; border-radius: 14px; color: #d8e4ef; font-size: 0.9rem; transition: transform .24s cubic-bezier(.16,1,.3,1), background .24s cubic-bezier(.16,1,.3,1), color .24s cubic-bezier(.16,1,.3,1); }
.sidebar a:hover, .sidebar a:focus { background: rgba(72,184,199,0.12); color: #ffffff; text-decoration: none; transform: translateX(3px); }
.sidebar a:active, .doc-card:active { transform: translateY(1px) scale(0.99); }
.search-box { width: 100%; margin: 0 0 16px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(13, 21, 30, 0.92); color: var(--text); outline: none; }
.search-box:focus { border-color: rgba(72,184,199,0.55); box-shadow: 0 0 0 3px rgba(72,184,199,0.12); }
main { border-radius: 34px; padding: clamp(24px, 5vw, 58px); overflow-wrap: anywhere; }
article { max-width: 82ch; }
article > :first-child { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.035em; }
article h1 { font-size: clamp(2rem, 5vw, 4.8rem); max-width: 12ch; margin: 0 0 22px; }
article h2 { margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); font-size: clamp(1.35rem, 2.4vw, 2rem); }
article h3 { margin-top: 30px; color: #dfeaf4; }
p, li { color: #c9d6e2; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.28rem; }
strong { color: #ffffff; }
pre { position: relative; overflow: auto; padding: 18px 20px; background: linear-gradient(180deg, #0e1721, var(--code)); border: 1px solid var(--line); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
code { font-family: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(13, 21, 30, 0.88); border: 1px solid rgba(255,255,255,.08); padding: .12em .35em; border-radius: 7px; color: #eaf7f9; font-size: 0.92em; }
pre code { border: 0; padding: 0; background: transparent; color: #e4edf6; }
blockquote { border-left: 3px solid var(--accent); margin-left: 0; padding: 12px 18px; color: var(--muted); background: rgba(72,184,199,.075); border-radius: 0 16px 16px 0; }
table { border-collapse: collapse; width: 100%; overflow: auto; display: block; margin: 24px 0; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
th { color: #ffffff; background: rgba(255,255,255,0.035); }
.doc-library { margin: 48px 0 0; padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(72,184,199,.12), rgba(255,255,255,.035)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07); }
.doc-library h2 { margin: 0; padding: 0; border: 0; }
.doc-library p { margin-bottom: 0; color: var(--muted); }
.doc-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px; margin-top: 20px; }
.doc-card { display: block; min-height: 112px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(13, 21, 30, 0.66); color: var(--text); transition: transform .24s cubic-bezier(.16,1,.3,1), border-color .24s cubic-bezier(.16,1,.3,1), background .24s cubic-bezier(.16,1,.3,1); }
.doc-card:nth-child(3n) { grid-column: span 2; }
.doc-card:hover { transform: translateY(-2px); border-color: rgba(72,184,199,0.48); background: rgba(72,184,199,0.10); text-decoration: none; }
.doc-card strong { display: block; color: #fff; line-height: 1.28; }
.doc-card small { display: block; margin-top: 10px; color: var(--muted); font-family: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; }
.back-home { display: inline-flex; margin-bottom: 26px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: #dff9fb; background: rgba(72,184,199,0.09); }
.back-home:hover { text-decoration: none; border-color: rgba(72,184,199,0.52); }
footer { color: var(--muted); margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; font-family: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 920px) {
  .header-inner { grid-template-columns: 1fr; }
  .header-actions { justify-content: flex-start; }
  .layout { grid-template-columns: 1fr; padding: 22px 16px 52px; }
  .sidebar { position: static; max-height: none; border-radius: 24px; }
  main { border-radius: 26px; padding: 24px 18px; }
  article h1 { max-width: 100%; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-card:nth-child(3n) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
