:root {
  color-scheme: dark;
  --bg: #11151d;
  --panel: #1b2331;
  --text: #edf2ff;
  --muted: #b3bed2;
  --line: #354158;
  --accent: #a9bfff;
  --button: #25334e;
  font:
    16px/1.65 system-ui,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}
:root[data-page-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #fff;
  --text: #182332;
  --muted: #536177;
  --line: #ccd4e1;
  --accent: #244ac3;
  --button: #e9efff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button {
  font: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
img {
  max-width: 100%;
  height: auto;
}
.site-header,
.site-footer,
main {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.05em;
  text-decoration: none;
}
.brand svg {
  color: #87a5f8;
  flex-shrink: 0;
}
nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
}
nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
}
#site-theme {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 20px;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  margin: 16px 0 24px;
  max-width: 750px;
}
h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  max-width: 800px;
  margin: 14px 0 24px;
}
h3 {
  font-size: 23px;
  margin: 16px 0;
}
p {
  color: var(--muted);
}
.eyebrow,
.step {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 72px 0 60px;
}
.lead {
  font-size: 23px;
  color: var(--text);
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.button {
  display: inline-block;
  background: var(--button);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.button.primary {
  background: #245cf3;
  border-color: #245cf3;
  color: #fff;
}
.button.small {
  padding: 9px 14px;
}
.hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
  min-height: 410px;
  padding: 40px 26px;
}
.hero-art span {
  font-size: 14px;
  color: var(--muted);
}
section {
  padding: 44px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.cards article,
.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.cards h3 a {
  text-decoration: none;
}
.muted {
  font-size: 14px;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding: 56px 0;
}
.split p {
  max-width: 580px;
}
pre {
  max-width: 100%;
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font:
    13px/1.7 ui-monospace,
    monospace;
}
code {
  font-family: ui-monospace, monospace;
}
.support {
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.support h2 {
  font-size: 30px;
}
.legacy-entry {
  padding: 16px 0 32px;
}
.legacy-entry h2 {
  font-size: 20px;
  margin: 0;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.site-footer nav {
  gap: 18px;
}
.docs-intro {
  padding: 64px 0 80px;
}
.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  padding: 50px 0 80px;
}
.docs-layout aside {
  align-self: start;
  position: sticky;
  top: 24px;
}
.docs-layout aside nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 25px 0;
}
.prose {
  min-width: 0;
  max-width: 820px;
  overflow-wrap: anywhere;
}
.prose h1 {
  font-size: clamp(32px, 4.5vw, 48px);
}
.prose h2 {
  font-size: 28px;
  margin-top: 40px;
}
.prose h3 {
  font-size: 22px;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
  max-width: 100%;
}
.prose th,
.prose td {
  min-width: 140px;
  overflow-wrap: normal;
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.prose blockquote {
  margin: 20px 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.markdown-link {
  font-size: 14px;
}
.editor-fallback {
  padding: 50px 0;
}
.editor-fallback h1 {
  font-size: 44px;
}
@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 28px);
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .site-header nav {
    gap: 14px;
    font-size: 14px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px 0 24px;
  }
  .hero-art {
    min-height: 290px;
    padding: 24px;
  }
  .hero-art img {
    width: 220px;
  }
  .cards,
  .split,
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cards article,
  .panel {
    padding: 22px;
  }
  .split {
    padding: 34px 0;
    margin-top: 12px;
  }
  .docs-layout {
    padding-top: 24px;
  }
  .docs-layout aside {
    position: static;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }
  .docs-layout aside nav {
    flex-direction: row;
    gap: 14px;
    font-size: 14px;
  }
  .docs-layout aside .button {
    display: none;
  }
  .docs-intro {
    padding: 30px 0 50px;
  }
  section {
    padding: 30px 0;
  }
  .actions .button {
    flex: 1 1 230px;
    text-align: center;
  }
  .site-footer {
    font-size: 13px;
  }
}

.hero > *,
.split > * {
  min-width: 0;
}
