@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #0b0c0e;
  color: #e7e8eb;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, a { font-family: inherit; }

.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.sky i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 1px;
  background: #e0e0e0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.4px;
}
.brand svg { width: 28px; height: 28px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #8d9199;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.here { color: #e7e8eb; }
.star {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #4a4e57;
  border-radius: 8px;
  color: #e7e8eb;
  font-size: 13px;
  font-weight: 500;
}
.star:hover { border-color: #8d9199; }
.star svg { width: 14px; height: 14px; }

.doc {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 56px;
  padding: 18px 0 88px;
}
.side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
  color: #8d9199;
  font-size: 15px;
  font-weight: 500;
}
.side a:hover, .side a.here { color: #e7e8eb; }

.prose { max-width: 640px; min-width: 0; }
.prose h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.6px;
  font-weight: 700;
}
.prose h2 {
  margin: 36px 0 8px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.prose p, .prose li { color: #e7e8eb; font-size: 16px; overflow-wrap: break-word; }
.prose .lede { margin: 14px 0 0; color: #8d9199; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #D9F078; }
.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #17191d;
  border: 1px solid #4a4e57;
  border-radius: 6px;
  padding: 0 5px;
}
.prose pre {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: #17191d;
  border: 1px solid #4a4e57;
  border-radius: 14px;
  overflow: auto;
}
.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 36px;
  border-top: 1px solid rgba(74, 78, 87, 0.85);
  color: #8d9199;
  font-size: 14px;
}
footer .brand { font-size: 16px; }
footer svg { width: 22px; height: 22px; }
footer a:hover { color: #e7e8eb; }

@media (max-width: 800px) {
  .wrap { width: min(1080px, calc(100% - 32px)); }
  nav { height: 64px; }
  .nav-links { gap: 12px; }
  .doc { grid-template-columns: 1fr; gap: 20px; padding-bottom: 56px; }
  .side {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    padding: 0 0 2px;
    scrollbar-width: none;
  }
  .side::-webkit-scrollbar { display: none; }
  .side a { white-space: nowrap; }
  .prose h1 { font-size: clamp(32px, 9vw, 40px); }
  footer { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .side {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
}
