:root {
  color-scheme: dark;
  --bg: #09050f;
  --panel: #171021;
  --panel-2: #20142d;
  --text: #f8f4ff;
  --muted: #c6b6da;
  --soft: #8f7aa6;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ec3c9b;
  --gold: #f3c43c;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #160b20 0%, var(--bg) 42%);
}

a {
  color: var(--accent);
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6528d7, var(--accent));
  box-shadow: 0 0 24px rgba(236, 60, 155, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px 9px;
  border-top: 4px solid #fff;
  border-bottom: 4px solid #fff;
  opacity: 0.9;
}

.hero {
  margin: 40px 0 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  color: var(--soft);
  font-size: 14px;
}

.meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.doc {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 16, 33, 0.82);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

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

.content {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 16, 33, 0.76);
}

section + section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  margin: 22px 0 8px;
  color: var(--text);
  font-size: 17px;
}

p,
li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

ul {
  padding-left: 22px;
}

.note {
  padding: 16px;
  border: 1px solid rgba(243, 196, 60, 0.28);
  border-radius: 8px;
  background: rgba(243, 196, 60, 0.08);
}

.footer {
  margin-top: 36px;
  color: var(--soft);
  font-size: 14px;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 920px);
    padding-top: 24px;
  }

  .doc {
    display: block;
  }

  .toc {
    position: static;
    margin-bottom: 16px;
  }

  .content {
    padding: 20px;
  }
}
