:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #111111;
  --line: #2e2e2e;
  --text: #ffffff;
  --muted: #b7b7b7;
  --accent: #d4af37;
  --accent-hover: #f1d47c;
  --accent-soft: #1c170b;
  --accent-line: #615021;
  --mono: Consolas, 'SFMono-Regular', monospace;
}
* {
  box-sizing: border-box;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.7 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  background: #000000f5;
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  display: block;
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  overflow: hidden;
  background: #000000;
}
.brand-mark img {
  position: absolute;
  width: 200%;
  height: 200%;
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.brand-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}
.brand-subtitle {
  display: block;
  color: var(--accent);
  font: 10px/1.7 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
  font-weight: 400;
}
.version {
  font: 11px var(--mono);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 5px 9px;
  border-radius: 5px;
  color: var(--accent);
}
.header-link {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}
#menu {
  display: none;
}
aside {
  position: fixed;
  inset: 76px auto 0 0;
  width: 266px;
  border-right: 1px solid var(--line);
  padding: 36px 24px;
  overflow: auto;
  background: var(--bg);
}
.nav-label,
.section-label,
.eyebrow {
  font: 11px var(--mono);
  letter-spacing: 0.13em;
  color: var(--accent);
}
.nav-label {
  color: var(--muted);
  margin: 0 12px 20px;
}
nav {
  display: grid;
  gap: 3px;
}
nav a {
  padding: 7px 12px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
}
nav a:hover,
nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}
nav a.active {
  box-shadow: inset 2px 0 var(--accent);
}
.nav-footer {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin: 32px 12px 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.nav-footer a {
  display: block;
  margin-top: 12px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 5px;
}
main {
  margin: 76px 0 0 266px;
  max-width: 1330px;
  padding: 0 6vw;
}
section {
  padding: 65px 0;
  border-bottom: 1px solid var(--line);
  max-width: 940px;
}
.hero {
  padding-top: 70px;
  position: relative;
}
.hero::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 28px;
  background: var(--accent);
}
.eyebrow {
  margin-bottom: 26px;
}
h1 {
  font-size: clamp(44px, 5.3vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 550;
  margin: 0 0 28px;
}
h1 span {
  color: var(--accent);
}
h2 {
  font-size: clamp(25px, 2.7vw, 37px);
  line-height: 1.23;
  letter-spacing: -0.025em;
  font-weight: 550;
  margin: 14px 0 22px;
}
h3 {
  font-size: 18px;
  margin: 28px 0 14px;
}
p {
  max-width: 820px;
  color: var(--muted);
}
.lead {
  font-size: 17px;
  max-width: 650px;
  line-height: 1.7;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  border: 1px solid #666666;
  padding: 9px 18px;
  background: transparent;
  color: var(--text);
  border-radius: 5px;
  font: 500 13px system-ui;
  cursor: pointer;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.button:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.button.primary:hover {
  color: var(--bg);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.principles b {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}
.principles p {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 8px;
}
.steps {
  padding-left: 22px;
}
.steps li {
  padding: 8px 0 12px 10px;
  color: var(--muted);
}
b {
  color: var(--text);
  font-weight: 600;
}
li {
  color: var(--muted);
  padding: 6px 0;
}
code {
  font: 12px/1.65 var(--mono);
  color: #f0e2b5;
  background: #202020;
  padding: 2px 5px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
pre {
  padding: 22px;
  background: var(--panel);
  border: 1px solid #383838;
  border-radius: 7px;
  font: 12px/1.8 var(--mono);
  color: #eeeeee;
  overflow: auto;
  white-space: pre;
  max-height: 600px;
}
pre code {
  padding: 0;
  background: none;
  overflow-wrap: normal;
  color: inherit;
}
.note {
  font-size: 13px;
  color: #e4d7ae;
  border-left: 2px solid var(--accent);
  padding: 14px 18px;
  background: var(--accent-soft);
  margin: 25px 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.chips code {
  padding: 5px 9px;
  font-size: 11px;
}
.flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.flow span {
  padding: 14px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font: 12px/1.6 var(--mono);
  color: var(--accent);
  border-radius: 5px;
}
.flow small {
  font: 11px system-ui;
  color: var(--muted);
}
.flow i {
  color: var(--accent);
  font-style: normal;
}
details {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 16px 18px;
  margin: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  display: block;
  overflow: auto;
  margin: 25px 0;
}
th {
  text-align: left;
  color: var(--text);
  font-weight: 500;
}
td,
th {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  vertical-align: top;
}
td {
  color: var(--muted);
}
label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0 7px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #666666;
  border-radius: 5px;
  padding: 11px 13px;
  background: var(--panel);
  color: var(--text);
  font: 13px system-ui;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
textarea {
  font: 12px/1.6 var(--mono);
  resize: vertical;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.endpoint {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 12px 0;
  padding: 18px;
  background: var(--panel);
}
.endpoint-top {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.method {
  font: 11px var(--mono);
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
}
.method.post,
.method.put,
.method.patch {
  background: #262626;
  color: var(--text);
  box-shadow: inset 2px 0 var(--accent);
}
.method.delete {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid var(--accent-line);
}
.endpoint code {
  background: transparent;
  font-size: 12px;
}
.endpoint p {
  font-size: 13px;
  margin: 10px 0;
}
.endpoint small {
  color: var(--muted);
  font: 11px var(--mono);
}
.endpoint .button {
  margin-top: 12px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}
footer {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  padding: 35px 0;
  font-size: 11px;
  color: var(--muted);
}
footer b {
  font-size: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
}
footer a {
  margin-left: auto;
}
#load-error {
  position: fixed;
  bottom: 15px;
  right: 15px;
  max-width: 450px;
  padding: 15px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--text);
  z-index: 20;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1700px) {
  main {
    padding: 0 100px;
  }
}
@media (max-width: 1000px) {
  aside {
    width: 225px;
    padding: 28px 14px;
  }
  main {
    margin-left: 225px;
    padding: 0 35px;
  }
  .principles {
    gap: 14px;
  }
  header {
    padding: 0 25px;
  }
}
@media (max-width: 740px) {
  header {
    height: 64px;
    padding: 0 18px;
    gap: 12px;
  }
  .brand {
    gap: 10px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 13px;
  }
  .brand-subtitle {
    font-size: 9px;
  }
  .version {
    font-size: 10px;
    flex-shrink: 0;
  }
  .header-link {
    display: none;
  }
  #menu {
    display: block;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 20px;
    border-radius: 4px;
    width: 36px;
    height: 36px;
  }
  aside {
    display: none;
    inset: 64px 0 0;
    width: 100%;
    z-index: 9;
  }
  aside.open {
    display: block;
  }
  main {
    margin: 64px 0 0;
    padding: 0 22px;
  }
  .hero {
    padding-top: 45px;
  }
  section {
    padding: 45px 0;
  }
  h1 {
    font-size: clamp(36px, 10.5vw, 43px);
  }
  .lead {
    font-size: 15px;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 35px;
  }
  .principles p {
    margin-bottom: 5px;
  }
  .flow {
    gap: 8px;
  }
  .flow span {
    font-size: 10px;
    padding: 10px;
  }
  pre {
    padding: 15px;
    font-size: 11px;
  }
  .endpoint {
    padding: 14px;
  }
  footer a {
    margin-left: 0;
  }
}
@media (max-width: 360px) {
  header {
    padding: 0 12px;
    gap: 10px;
  }
  .version {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
