@font-face {
  font-family: Inter;
  src: url("/assets/InterVariable-d7247216.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #17171d;
  --panel: #202027;
  --text: #f5f2eb;
  --muted: #bbb8c3;
  --line: #3a3843;
  --accent: #e4fa9b;
  --code: #d7c8ff;
  --button-text: #202025;
  --button-hover: #f1ffbd;
  --hero-glow: #302840;
  --example-line: #554b65;
  --example-shadow: #100d18a0;
  --sans: Inter, system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #faf8f4;
  --panel: #f2edf6;
  --text: #23202a;
  --muted: #57515f;
  --line: #d3cad9;
  --accent: #50376c;
  --code: #5b4088;
  --button-text: #fff;
  --button-hover: #674985;
  --hero-glow: #e8def3;
  --example-line: #c9b8d7;
  --example-shadow: #39254e28;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 1rem/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip-link { position: absolute; top: .5rem; left: .5rem; padding: .5rem; background: var(--canvas); transform: translateY(-160%); z-index: 1; }
.skip-link:focus { transform: none; }
.shell { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 4.65rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header a, .site-footer a { text-decoration: none; }
.site-header nav a, .site-footer { color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current], .site-footer a:hover { color: var(--text); }
.header-inner { flex-wrap: wrap; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.75rem, 3vw, 1.5rem); }
.header-icons { display: flex; align-items: center; gap: .125rem; }
.theme-toggle, .github-link { width: 2.5rem; height: 2.5rem; border: 0; border-radius: .45rem; color: var(--text); background: transparent; }
.theme-toggle { padding: 0; font: 1.25rem/1 system-ui, sans-serif; cursor: pointer; }
.theme-toggle:hover, .github-link:hover { background: var(--panel); }
.theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.wordmark { font-weight: 750; font-size: 1.28rem; letter-spacing: -.055em; display: inline-flex; gap: .6rem; align-items: center; }
.brand-mark { display: grid; gap: 2px; transform: skewY(-10deg); }
.brand-mark i { width: 1rem; height: 3px; border-radius: 2px; background: var(--accent); }
.brand-mark i:last-child { width: .66rem; }
.hero {
  background: radial-gradient(ellipse at 75% 15%, var(--hero-glow) 0, transparent 56%), var(--canvas);
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
}
.hero-copy { max-width: 53rem; }
h1, h2, h3, figure, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.hero h1 { font-size: clamp(2.85rem, 7.8vw, 6rem); font-weight: 700; text-wrap: balance; }
.hero-copy p { margin-top: 1.35rem; max-width: 39rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.26rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; }
.button-primary, .text-link { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 650; }
.button-primary { color: var(--button-text); background: var(--accent); padding: .65rem 1rem; border-radius: .45rem; }
.button-primary:hover { background: var(--button-hover); }
.button-primary:focus-visible { outline-color: var(--accent); }
.text-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.example { margin-top: clamp(3rem, 8vw, 5rem); background: var(--panel); border: 1px solid var(--example-line); border-radius: .85rem; overflow: hidden; box-shadow: 0 1.2rem 5rem var(--example-shadow); }
.example-header { display: flex; align-items: center; gap: .65rem; min-height: 3.15rem; padding: .6rem 1.25rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
.example-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }
.example-protocol, .code-label { font: .75rem/1.5 var(--mono); color: var(--muted); }
.example-protocol { margin-left: auto; }
.example-code { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.example-code:focus-visible { outline-offset: -3px; }
.example-panel { padding: clamp(1rem, 3vw, 1.7rem); min-width: 0; }
.example-panel + .example-panel { border-left: 1px solid var(--line); }
pre, code { font-family: var(--mono); }
.example pre { margin: .75rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .83rem; }
.code-accent { color: var(--code); }
.code-string { color: var(--accent); }
.feature-section { background: var(--canvas); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 8vw, 6rem); }
.feature-section h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 30rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2rem; margin-top: 2.5rem; }
.features section { border-top: 1px solid var(--line); padding-top: 1rem; }
.features h3 { font-size: 1.3rem; }
.features p { color: var(--muted); margin-top: .6rem; max-width: 25rem; }
.site-footer { border-top: 1px solid var(--line); }
.docs-index { padding-block: clamp(3rem, 7vw, 6rem); }
.docs-index h1, .prose h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin-bottom: 1.15rem; }
.article-layout { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2rem, 5vw, 4rem); }
.docs-sidebar { position: sticky; top: 1.5rem; border-right: 1px solid var(--line); padding-right: 1rem; }
.docs-sidebar a { display: block; padding: .4rem .65rem; border-radius: .35rem; color: var(--muted); text-decoration: none; font-size: .9rem; }
.docs-sidebar a:hover, .docs-sidebar a[aria-current] { background: var(--panel); color: var(--accent); }
.docs-sidebar .sidebar-overview { font-weight: 650; }
.docs-group { margin-top: 1.25rem; }
.docs-group h2 { margin: 0 .65rem .35rem; font-size: .78rem; font-weight: 650; letter-spacing: 0; color: var(--text); }
.docs-group ul { list-style: none; padding: 0; margin: 0; }
.docs-trail { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; color: var(--muted); font-size: .84rem; }
.docs-trail a { text-decoration: none; }
.docs-lead { color: var(--muted); font-size: 1.1rem; }
.prose { max-width: 46rem; overflow-wrap: anywhere; }
.prose h2 { margin-top: 2.65rem; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.prose h3 { margin-top: 1.85rem; font-size: 1.15rem; }
.prose p, .prose pre, .prose ul, .prose ol { margin-block: 1rem; }
.prose a { color: var(--accent); text-underline-offset: .18em; }
.prose code { background: var(--panel); }
.prose pre { max-width: 100%; padding: 1rem; border: 1px solid var(--line); background: var(--panel); border-radius: .45rem; white-space: pre-wrap; font-size: .86rem; }
.prose img { max-width: 100%; }
.doc-list { padding: 0; list-style: none; }
.doc-list a { display: flex; gap: 1rem; justify-content: space-between; padding: .9rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }
@media (max-width: 45rem) {
  .shell { width: calc(100% - 2rem); }
  .example-code, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .example-panel + .example-panel { border-left: 0; border-top: 1px solid var(--line); }
  .docs-sidebar { position: static; border-right: 0; padding: 0 0 1rem; border-bottom: 1px solid var(--line); }
}

.theme-moon, [data-theme="light"] .theme-sun { display: none; }
[data-theme="light"] .theme-moon { display: inline; }
.example-caption { border-top: 1px solid var(--line); padding: .8rem 1.25rem; color: var(--muted); font-size: .875rem; }
.workflow-section { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.workflow-section h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.workflow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; margin-block: 2rem; }
.workflow-card { background: var(--panel); border: 1px solid var(--line); border-radius: .65rem; padding: clamp(1rem, 3vw, 1.65rem); }
.workflow-card h3 { display: flex; align-items: center; gap: .65rem; font-size: 1.3rem; }
.workflow-logo { display: block; flex: none; object-fit: contain; }
.workflow-card blockquote { margin: 1rem 0; padding-left: .85rem; border-left: 2px solid var(--accent); }
.workflow-card p { color: var(--muted); font-size: .925rem; }

.site-header nav { display: flex; align-items: center; gap: clamp(.55rem, 2vw, 1.25rem); }
.github-link { display: grid; place-items: center; }
.github-link span { width: 1.2rem; height: 1.2rem; background: currentColor; mask: url("/assets/github-mark-70626169.png") center / contain no-repeat; }
.method-layout { padding-block: clamp(2.5rem, 7vw, 6rem); }
.method-layout .prose { margin-inline: auto; }
.method-layout blockquote { margin-inline: 0; padding: .2rem 1rem; border-left: 2px solid var(--accent); background: var(--panel); }
.method-layout a.button-primary { color: var(--button-text); }
.copy-prompt { color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: .35rem; padding: .35rem .65rem; font: inherit; cursor: pointer; }
.copy-prompt:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.copy-status { margin-inline-start: .6rem; color: var(--muted); font-size: .9rem; }
.highlight :is(.k, .kc, .kd, .kn, .kp, .kr, .kt, .nb, .nt) { color: var(--code); }
.highlight :is(.s, .s1, .s2, .sa, .sb, .sc, .sd, .se, .sh, .si, .sr, .ss, .na, .nl) { color: var(--accent); }
.highlight :is(.c, .c1, .cm, .cp, .cs) { color: var(--muted); font-style: italic; }
.highlight :is(.m, .mi, .mf, .mh, .il, .nv) { color: var(--code); }

@media (max-width: 24rem) {
  .header-inner { gap: .5rem; }
  .header-actions { gap: .35rem; }
}

.docs-markdown-link { font-size: .85rem; }

.site-footer .wordmark { color: var(--text); }
.footer-inner { flex-wrap: wrap; gap: .75rem 1.5rem; padding-block: 1.15rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; }

@media (forced-colors: active) {
  .github-link span, .brand-mark i {
    forced-color-adjust: none;
    background: LinkText;
  }
}
