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

:root {
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --skills-primary: #e11d48;
  --skills-secondary: #9f1239;
  --page-bg: #0a0c10;
  --text: #e8e8ec;
  --text-muted: #8b92a0;
  --surface: #12151c;
  --surface-border: #252a36;
  --surface-divider: #1e232d;

  --vk-color-primary: #e11d48;
  --vk-color-primary-hover: #fb7185;
  --vk-color-primary-active: #9f1239;
  --vk-color-primary-light: color-mix(in srgb, #e11d48 35%, transparent);
  --vk-color-on-primary: #fff7f8;
  --vk-font-display: var(--font-display);
  --vk-navbar-max-width: 72rem;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--vk-font-family, ui-sans-serif, system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--vk-color-text, var(--text));
  background:
    radial-gradient(ellipse 80% 45% at 50% -8%, color-mix(in srgb, var(--skills-primary) 20%, transparent), transparent 60%),
    var(--page-bg);
}

a {
  color: inherit;
}

code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

.page {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}

.brand-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-slot svg {
  width: 2.1rem;
  height: 2.1rem;
  display: block;
  filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--skills-primary) 35%, transparent));
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.55rem;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
}

.nav-link[aria-current="page"] {
  color: var(--skills-primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--skills-primary);
}

.hero h1,
.section h2,
.close h2,
.docs-body h1,
.docs-body h2,
.start-body h1,
.start-body h2 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.2rem, 5vw + 0.5rem, 4.1rem);
  font-weight: 800;
  max-width: 14ch;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.install-cmd {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid var(--surface-border);
  background: color-mix(in srgb, var(--page-bg) 70%, var(--surface));
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #c7d2e0;
  max-width: 42rem;
}

.sheet {
  border: 1px solid color-mix(in srgb, var(--skills-primary) 22%, var(--surface-border));
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--skills-primary) 8%, var(--surface)),
      var(--surface) 32%
    );
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--skills-primary) 8%, transparent) inset,
    0 28px 60px rgb(0 0 0 / 28%);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem 0.85rem;
  border-bottom: 1px solid var(--surface-divider);
}

.sheet-head p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--skills-primary) 70%, var(--text-muted));
}

.sheet ol {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.sheet li a {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--surface-divider) 80%, transparent);
}

.sheet li:last-child a {
  border-bottom: none;
}

.sheet li a:hover {
  background: color-mix(in srgb, var(--skills-primary) 7%, transparent);
}

.sheet-n {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--skills-primary);
}

.sheet-name {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  color: var(--text);
}

.sheet-desc {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.section {
  padding: 2.5rem 0 0.5rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2.1rem);
  font-weight: 750;
}

.section-lede {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.panel {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: var(--surface);
}

.panel h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.panel p {
  margin: 0;
  color: var(--text-muted);
}

.skill-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--surface);
}

.skill-index li + li {
  border-top: 1px solid var(--surface-divider);
}

.skill-index a {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  text-decoration: none;
}

.skill-index a:hover {
  background: color-mix(in srgb, var(--skills-primary) 7%, transparent);
}

.skill-index .sheet-name {
  font-size: 0.95rem;
}

.close {
  margin-top: 3rem;
  padding: 2rem 1.6rem;
  border-radius: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--skills-primary) 35%, var(--surface-border));
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, color-mix(in srgb, var(--skills-primary) 18%, transparent), transparent 55%),
    var(--surface);
}

.close h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.close p {
  margin: 0 0 1.2rem;
  max-width: 36rem;
  color: var(--text-muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--surface-divider);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--skills-primary);
}

.docs-layout,
.start-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2rem;
  padding-top: 2rem;
}

.side-nav {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.side-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 0.25rem 0;
}

.side-nav a:hover,
.side-nav a[aria-current="page"] {
  color: var(--text);
}

.docs-body h1,
.start-body h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
}

.docs-body h2,
.start-body h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 750;
}

.docs-body p,
.start-body p,
.docs-body li,
.start-body li,
.docs-body dd {
  color: var(--text-muted);
}

.docs-body a,
.start-body a {
  color: var(--text);
}

.docs-body a:hover,
.start-body a:hover {
  color: var(--skills-primary);
}

.docs-body p,
.start-body p {
  margin: 0 0 0.9rem;
  max-width: 42rem;
}

.docs-body ul,
.start-body ul,
.docs-body ol,
.start-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  max-width: 42rem;
}

.prose-wide {
  max-width: 46rem;
}

pre, .code-block {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid var(--surface-border);
  background: color-mix(in srgb, var(--page-bg) 70%, var(--surface));
  overflow-x: auto;
}

pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #c7d2e0;
}

.expect {
  max-width: 46rem;
}

.ref-fields {
  margin: 0 0 1.25rem;
  max-width: 46rem;
}

.ref-fields div {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--surface-divider);
}

.ref-fields dt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--text);
}

.ref-fields dd {
  margin: 0;
}

.skill-source {
  max-width: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.related-list a {
  color: var(--text);
}

.related-list a:hover {
  color: var(--skills-primary);
}

@media (max-width: 900px) {
  .hero,
  .split,
  .ref-fields div {
    grid-template-columns: 1fr;
  }

  .docs-layout,
  .start-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--surface-divider);
  }
}
