:root {
  color-scheme: dark;
  --bg: #090e12;
  --panel: #101820;
  --panel-2: #141f28;
  --line: #2a3945;
  --line-soft: #1c2932;
  --text: #f2f4f5;
  --muted: #a6b0b7;
  --quiet: #697780;
  --cue: #5fa2d4;
  --green: #5fbd85;
  --pads: #d59a25;
  --playlist: #8877e8;
  --display: "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Segoe UI Variable", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(95,162,212,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,162,212,.025) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  font-family: var(--body);
  line-height: 1.55;
}

a { color: inherit; }

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 70px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(9,14,18,.94);
  backdrop-filter: blur(18px);
}

.site-header .shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
}

.brand img { width: 28px; height: 28px; object-fit: contain; }

.site-nav { display: flex; align-items: center; gap: 24px; }

.site-nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

.doc-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 62px;
  border-bottom: 1px solid var(--line);
}

.doc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .62;
  background-image:
    linear-gradient(90deg, transparent 0 48%, rgba(182,130,184,.13) 48% 52%, transparent 52%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.035) 46px 47px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.025) 46px 47px);
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.doc-hero .shell { position: relative; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--cue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; font-family: var(--display); line-height: 1.03; }
h1 { max-width: 860px; margin-bottom: 22px; font-size: clamp(56px, 8vw, 108px); }
.doc-hero p:last-child { max-width: 700px; margin: 0; color: var(--muted); font-size: 19px; }

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding: 64px 0 100px;
}

.toc {
  position: sticky;
  top: 98px;
  align-self: start;
  border-top: 2px solid var(--cue);
}

.toc strong {
  display: block;
  padding: 15px 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.toc a:hover { color: var(--text); }

.doc-content { min-width: 0; }
.doc-content section, .release { scroll-margin-top: 94px; }
.doc-content section + section { margin-top: 66px; }

.doc-content h2 {
  margin-bottom: 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 34px;
}

.doc-content h3 { margin: 28px 0 12px; font-size: 22px; }
.doc-content p, .doc-content li { color: var(--muted); }
.doc-content li + li { margin-top: 7px; }

code {
  color: #91d4ff;
  font-family: var(--mono);
  font-size: .9em;
}

pre {
  overflow-x: auto;
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #070b0e;
}

pre code { color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
th { background: var(--panel-2); color: var(--quiet); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
td { color: var(--muted); font-size: 13px; }
tr:last-child td { border-bottom: 0; }

.callout {
  margin: 0 0 34px;
  padding: 20px 22px;
  border-left: 3px solid var(--cue);
  background: var(--panel);
  color: var(--muted);
}

.release {
  margin-bottom: 30px;
  border: 1px solid var(--line);
  background: rgba(16,24,32,.82);
}

.release-header {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.release-version { color: var(--cue); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.release-title { font-family: var(--display); font-size: 23px; font-weight: 700; }
.release-body { padding: 8px 24px 24px 174px; }
.release-body h3 { color: var(--text); font-size: 15px; text-transform: uppercase; }
.release-body p, .release-body li { font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); background: #080c0f; }
.site-footer .shell { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--quiet); font-size: 12px; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .shell { width: min(100% - 30px, 680px); }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 10px; }
  .site-nav a:last-child { display: none; }
  .doc-hero { padding: 60px 0 46px; }
  h1 { font-size: clamp(48px, 15vw, 72px); }
  .doc-layout { grid-template-columns: 1fr; gap: 34px; padding-top: 42px; }
  .toc { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .toc strong { grid-column: 1 / -1; }
  .release-header { grid-template-columns: 1fr; gap: 5px; }
  .release-body { padding: 8px 18px 20px; }
  .site-footer .shell { flex-direction: column; align-items: flex-start; justify-content: center; padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
