:root {
  color-scheme: dark;
  --bg: #071017;
  --panel: #0f1b26;
  --text: #ebf2f8;
  --muted: #9eb5ca;
  --line: #274158;
  --line-strong: #3b5f7a;
  --accent: #5fd2ff;
  --accent-2: #98f5ca;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #122536 0%, var(--bg) 58%);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  z-index: 999;
  background: #000;
  color: #fff;
  padding: 0.4rem 0.7rem;
}

.shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 25, 0.8);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.site-header h1 {
  font-size: 1.05rem;
  margin: 0;
}

.site-header h1 a {
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  font-size: 0.92rem;
}

.site-header nav a.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(95, 210, 255, 0.45);
}

.prose {
  padding: 1.25rem 0 3rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  line-height: 1.25;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.08rem 0.32rem;
  border-radius: 0.28rem;
}

.prose pre {
  background: #07111a;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  overflow-x: auto;
  padding: 0.8rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.prose img,
.prose svg {
  max-width: 100%;
  height: auto;
}

.docs-hub {
  border: 1px solid var(--line-strong);
  background: linear-gradient(140deg, rgba(22, 42, 58, 0.75), rgba(8, 17, 25, 0.75));
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
}

.docs-hub h2,
.docs-hub h3 {
  margin-top: 0.4rem;
}

.docs-hub ul {
  margin-top: 0.5rem;
  margin-bottom: 0.9rem;
}

.docs-hub details {
  margin-bottom: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.45rem 0.6rem;
  background: rgba(6, 12, 18, 0.35);
}

.docs-hub summary {
  cursor: pointer;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  color: var(--muted);
}

.site-footer .shell {
  padding: 1rem 0 1.75rem;
}

@media (max-width: 768px) {
  .site-header .shell {
    align-items: flex-start;
    flex-direction: column;
  }
}
