:root {
  --ink: #101410;
  --ink-soft: #1a211a;
  --paper: #f5f1e8;
  --paper-bright: #fffdf7;
  --acid: #d8ff45;
  --sage: #71806b;
  --line: #d9d4c9;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--acid);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.docs-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 68px;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper);
  background: var(--ink);
  border-bottom: 1px solid rgba(216, 255, 69, 0.26);
}

.docs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  text-decoration: none;
}

.docs-brand > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--acid);
  border-radius: 3px;
  font-weight: 900;
}

.docs-brand b {
  font-size: 14px;
}

.docs-brand i {
  padding: 2px 7px;
  color: var(--acid);
  border: 1px solid rgba(216, 255, 69, 0.36);
  border-radius: 99px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.docs-header nav a {
  color: #d4dacd;
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
}

.docs-header nav a:hover {
  color: var(--acid);
}

.docs-header .install-link {
  padding: 7px 12px;
  color: var(--ink);
  background: var(--acid);
  border-radius: 2px;
  font-weight: 900;
}

.sidebar {
  top: 68px;
  width: 280px;
  padding: 30px 22px 50px;
  color: #d4dacd;
  background: var(--ink-soft);
  border-right: 0;
}

.sidebar::before {
  content: "DOCUMENTATION";
  display: block;
  margin: 4px 12px 24px;
  color: #879281;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.sidebar-nav > ul > li > p,
.sidebar-nav > ul > li > strong {
  margin: 22px 12px 8px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar ul li a {
  padding: 7px 12px;
  color: #aeb8a9;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
}

.sidebar ul li a:hover {
  color: var(--paper);
  background: rgba(245, 241, 232, 0.06);
}

.sidebar ul li.active > a {
  color: var(--ink);
  background: var(--acid);
  border-right: 0;
  font-weight: 800;
}

.sidebar .search {
  margin-bottom: 20px;
  padding: 0 10px 20px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.12);
}

.sidebar .search input {
  padding: 10px 11px;
  color: var(--paper);
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.18);
  font-family: var(--mono);
  font-size: 11px;
}

.sidebar .search input::placeholder {
  color: #7e8979;
}

.content {
  left: 280px;
  padding-top: 68px;
}

.markdown-section {
  max-width: 900px;
  padding: 70px 60px 110px;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3 {
  color: var(--ink);
  font-weight: 820;
  letter-spacing: -0.045em;
}

.markdown-section h1 {
  margin: 0 0 28px;
  font-size: clamp(48px, 7vw, 76px);
  line-height: 0.98;
}

.markdown-section h1::after {
  content: "";
  width: 76px;
  height: 7px;
  display: block;
  margin-top: 26px;
  background: var(--acid);
}

.markdown-section h2 {
  margin-top: 70px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 34px;
}

.markdown-section h3 {
  margin-top: 40px;
  font-size: 22px;
}

.markdown-section > p:first-of-type {
  color: var(--sage);
  font-size: 20px;
  line-height: 1.55;
}

.markdown-section p,
.markdown-section li {
  color: #394238;
}

.markdown-section a {
  color: #314400;
  font-weight: 700;
  text-decoration-color: #9ebd28;
  text-underline-offset: 3px;
}

.markdown-section code {
  padding: 2px 5px;
  color: #314400;
  border-radius: 2px;
  background: #e8edcf;
  font-family: var(--mono);
  font-size: 0.88em;
}

.markdown-section pre {
  margin: 26px 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #293128;
  border-radius: 5px;
  background: var(--ink) !important;
  box-shadow: 10px 10px 0 #e1ddcf;
}

.markdown-section pre::before {
  content: "terminal";
  padding: 9px 14px;
  display: block;
  color: #8c9987;
  border-bottom: 1px solid rgba(245, 241, 232, 0.12);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.markdown-section pre code {
  padding: 20px !important;
  display: block;
  color: #e8ecdf;
  background: transparent;
  font-size: 13px;
  line-height: 1.7;
}

.docsify-copy-code-button {
  top: 46px !important;
  right: 8px !important;
  padding: 5px 9px !important;
  color: var(--ink) !important;
  border-radius: 2px !important;
  background: var(--acid) !important;
  font-family: var(--mono) !important;
  font-size: 9px !important;
}

.markdown-section blockquote {
  margin: 30px 0;
  padding: 18px 22px;
  color: var(--ink);
  border-left: 5px solid var(--acid);
  background: var(--paper-bright);
}

.markdown-section blockquote p {
  margin: 0;
  color: inherit;
}

.markdown-section table {
  width: 100%;
  display: table;
  margin: 28px 0;
  border-collapse: collapse;
  background: var(--paper-bright);
}

.markdown-section th {
  color: var(--paper);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.markdown-section th,
.markdown-section td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.markdown-section hr {
  margin: 70px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.app-sub-sidebar li::before {
  display: none;
}

@media (max-width: 768px) {
  .docs-header {
    height: 60px;
    padding-inline: 14px;
  }

  .docs-header nav {
    gap: 12px;
  }

  .docs-header nav a:first-child {
    display: none;
  }

  .docs-brand i {
    display: none;
  }

  .sidebar-toggle {
    top: 68px;
    bottom: auto;
    background: var(--acid);
  }

  .sidebar {
    top: 60px;
  }

  .content {
    left: 0;
    padding-top: 60px;
  }

  .markdown-section {
    padding: 64px 24px 90px;
  }

  .markdown-section h1 {
    font-size: 48px;
  }

  body.close .sidebar {
    transform: translateX(-280px);
  }
}

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