/* comfy-api-proxy-go: a community tool in the palette of the platform it
   serves. Ink ground, one Yellow signal, Plum and Mauve for surfaces and
   rules; Inter for reading, Archivo Condensed for headings, the system
   monospace for code. The tokens below carry every color and size.
   Layers: content 0, search results 5, skip link 20. */

/* Fonts are served from this binary under SIL OFL 1.1; each license sits
   beside its files in /static/fonts/. */
@font-face {
  font-family: Inter;
  src: url("/static/fonts/inter/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/static/fonts/inter/Inter-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Condensed";
  src: url("/static/fonts/archivo/ArchivoCondensed-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Condensed";
  src: url("/static/fonts/archivo/ArchivoCondensed-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #211927;
  --surface: #2d2236;
  --rule: #4d3762;
  --rule-strong: #7e7c78;
  --ink: #f0efed;
  --ink-2: #c2bfb9;
  --ink-3: #9c9993;
  --accent: #f2ff59;
  --accent-strong: #f7ff9a;
  --accent-ink: #211927;
  /* Yellow behind Ink text: the primary button and search highlights. */
  --fill: #f2ff59;
  --fill-strong: #f7ff9a;
  --fill-ink: #211927;
  --fill-edge: #f2ff59;
  --mark-bg: transparent;
  --mark-ink: #f2ff59;
  --notice: #49378b;
  --notice-ink: #f0efed;
  --shadow: 0 12px 32px rgb(10 6 14 / 0.5);

  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo Condensed", "Arial Narrow", Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  /* Type scale: base 16px, ratio 1.333, rounded. UI 14px, captions 13px. */
  --t-display: 50px;
  --t-h1: 38px;
  --t-h2: 28px;
  --t-h3: 21px;
  --t-body: 16px;
  --t-ui: 14px;
  --t-caption: 13px;
  --t-label: 12px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 40px;
  --s-6: 64px;
  --s-7: 104px;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1360px;
  --measure: 68ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #f0efed;
  --surface: #e4e2de;
  --rule: #c2bfb9;
  --rule-strong: #7e7c78;
  --ink: #211927;
  --ink-2: #3c3c3c;
  --ink-3: #5f5d59;
  --accent: #49378b;
  --accent-strong: #4d3762;
  --accent-ink: #f0efed;
  --fill-edge: #211927;
  --mark-bg: #f2ff59;
  --mark-ink: #211927;
  --shadow: 0 12px 32px rgb(33 25 39 / 0.16);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --ground: #f0efed;
    --surface: #e4e2de;
    --rule: #c2bfb9;
    --rule-strong: #7e7c78;
    --ink: #211927;
    --ink-2: #3c3c3c;
    --ink-3: #5f5d59;
    --accent: #49378b;
    --accent-strong: #4d3762;
    --accent-ink: #f0efed;
    --fill-edge: #211927;
    --mark-bg: #f2ff59;
    --mark-ink: #211927;
    --shadow: 0 12px 32px rgb(33 25 39 / 0.16);
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--s-4);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: var(--t-body) / 1.65 var(--sans);
  caret-color: var(--accent);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}
p,
li,
dd {
  text-wrap: pretty;
}
a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: auto;
}
a:hover {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
code,
kbd,
pre {
  font-family: var(--mono);
}
img,
svg {
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  z-index: 20;
  left: var(--gutter);
  top: -100px;
  padding: var(--s-2) var(--s-3);
  background: var(--fill);
  color: var(--fill-ink);
  font: 600 var(--t-ui) / 1.4 var(--sans);
  border-radius: var(--radius);
}
.skip-link:focus {
  top: var(--s-2);
}

/* The independence notice: every page, above the header, never dismissible. */
.notice-bar {
  background: var(--notice);
  color: var(--notice-ink);
  font: var(--t-caption) / 1.5 var(--sans);
  text-align: center;
  padding: var(--s-2) var(--gutter);
}

/* Buttons: one primary per view, the rest outlined. */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  font: 600 var(--t-ui) / 1.3 var(--sans);
  text-decoration: none;
  transition:
    background-color 150ms var(--ease),
    border-color 150ms var(--ease),
    transform 100ms var(--ease);
}
.button:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--surface);
  text-decoration: none;
}
.button:active {
  transform: scale(0.96);
}
.button-primary,
.button-primary:hover {
  background: var(--fill);
  border-color: var(--fill-edge);
  color: var(--fill-ink);
}
.button-primary:hover {
  background: var(--fill-strong);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-3) var(--gutter);
  border-bottom: 1px solid var(--rule);
  font: 500 15px / 1.4 var(--sans);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink);
  font: 700 21px / 1 var(--display);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover {
  color: var(--ink);
  text-decoration: none;
}
.brand-go {
  color: var(--accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-1) var(--s-4);
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: var(--s-2) 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-2);
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--accent);
}
.theme-toggle[hidden] {
  display: none;
}

/* Footer */
.site-footer {
  width: 100%;
  max-width: var(--max);
  margin: auto auto 0;
  padding: var(--s-5) var(--gutter);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--s-3);
  color: var(--ink-3);
  font: var(--t-caption) / 1.6 var(--sans);
}
.footer-name {
  color: var(--ink);
  font: 700 var(--t-h3) / 1.1 var(--display);
}
.footer-disclaimer {
  max-width: 80ch;
  color: var(--ink-2);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
}
.footer-links a {
  color: var(--ink-2);
}

/* Code: shared by the landing page and the docs. */
pre {
  margin: 0;
  padding: var(--s-3);
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: var(--t-ui);
  line-height: 1.55;
  tab-size: 4;
}
pre code {
  font-size: inherit;
  background: none;
  padding: 0;
  border: 0;
}
.code-block {
  position: relative;
}
.code-block pre {
  padding-right: 76px;
}
.copy-code {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  min-width: 56px;
  padding: var(--s-1) var(--s-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink-2);
  font: 600 var(--t-label) / 1.4 var(--sans);
}
.copy-code:hover {
  color: var(--ink);
  border-color: var(--accent);
}
kbd {
  font-size: var(--t-label);
  padding: 0 var(--s-1);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink-2);
}

/* Landing page */
.home {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.home > section {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--rule);
}
.home > .hero {
  border-top: 0;
  padding-top: var(--s-6);
}
.home h2 {
  font-size: var(--t-h2);
  font-weight: 600;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}
.hero h1 {
  font-size: var(--t-display);
  letter-spacing: -0.01em;
  line-height: 1.05;
  max-width: 14em;
}
.hero-lede {
  margin-top: var(--s-4);
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.6;
  max-width: 34em;
}
.hero-independent {
  margin-top: var(--s-3);
  padding-left: var(--s-3);
  border-left: 2px solid var(--notice);
  color: var(--ink-2);
  font-size: var(--t-ui);
  max-width: 40em;
}
.install {
  margin-top: var(--s-5);
}
.install-label,
.hero-terminal figcaption,
.bench-table figcaption {
  font: var(--t-caption) / 1.5 var(--sans);
  color: var(--ink-3);
  margin-bottom: var(--s-2);
}
/* The install command is one long token; it wraps rather than scroll under
   the Copy button. */
.install-command pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.install-alt {
  margin-top: var(--s-2);
  font-size: var(--t-ui);
  color: var(--ink-3);
}
.hero-actions,
.error-routes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  margin: var(--s-5) 0 0;
  padding: 0;
  list-style: none;
}
.hero-terminal pre {
  font-size: var(--t-caption);
  line-height: 1.7;
  padding-top: var(--s-4);
  padding-bottom: var(--s-4);
}
.terminal-note {
  margin-top: var(--s-3);
  font-size: var(--t-ui);
  color: var(--ink-2);
}
.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--s-6);
}
.why-body {
  max-width: var(--measure);
}
.why-body p + p {
  margin-top: var(--s-3);
}
.feature-list {
  margin-top: var(--s-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.feature-list > div {
  border-top: 2px solid var(--rule);
  padding-top: var(--s-3);
}
.feature-list dt {
  font: 600 var(--t-h3) / 1.15 var(--display);
  margin-bottom: var(--s-2);
}
.feature-list dt a {
  color: var(--ink);
  text-decoration: none;
}
.feature-list dt a:hover {
  color: var(--accent);
}
.feature-list dd {
  color: var(--ink-2);
  font-size: 15px;
}
.feature-list code,
.why code {
  font-size: 0.9em;
}
.bench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--s-6);
  align-items: start;
}
.bench-copy p {
  margin-top: var(--s-3);
  color: var(--ink-2);
  max-width: 36em;
}
.bench-copy p:first-of-type {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.5;
}
.table-scroll {
  overflow-x: auto;
}
.bench-table table,
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--t-ui);
  line-height: 1.45;
}
.bench-table th,
.bench-table td,
.prose th,
.prose td {
  padding: var(--s-2) var(--s-3) var(--s-2) 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.bench-table th,
.prose th {
  font: 600 var(--t-label) / 1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  border-bottom-color: var(--rule-strong);
}
.bench-table td,
.prose td {
  font-variant-numeric: tabular-nums;
}
.align-right {
  text-align: right !important;
}
.align-center {
  text-align: center !important;
}
.bench-table td:not(:first-child),
.bench-table th:not(:first-child) {
  white-space: nowrap;
}
.map-grid {
  margin-top: var(--s-5);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
}
.map-group h3 {
  font: 600 var(--t-label) / 1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
}
.map-group ul {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
}
.map-group li + li {
  margin-top: var(--s-2);
}
/* A page of links in the accent would drown the one signal; the map reads in
   ink and lights up on hover, like the feature headings. */
.map-group a {
  color: var(--ink);
  text-decoration-color: var(--rule-strong);
}
.map-group a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

/* Docs layout: sidebar, article, on-this-page. */
.docs-layout {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 208px;
  gap: var(--s-6);
  align-items: start;
}
.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  padding: var(--s-5) 0;
  font: var(--t-ui) / 1.45 var(--sans);
}
.docs-group {
  padding-left: calc(var(--s-2) + 2px);
  font-size: var(--t-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: var(--s-4) 0 var(--s-2);
}
.docs-group:first-child {
  margin-top: 0;
}
.docs-sidebar ul,
.docs-menu ul,
.docs-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Links carry their own inset rather than a negative margin, which the
   sticky sidebar's scroll box would clip along with the accent marker. */
.docs-sidebar a,
.docs-menu a {
  display: block;
  padding: var(--s-1) var(--s-2);
  border-left: 2px solid transparent;
  color: var(--ink-2);
  text-decoration: none;
}
.docs-sidebar a:hover,
.docs-menu a:hover {
  color: var(--ink);
}
.docs-sidebar a[aria-current="page"],
.docs-menu a[aria-current="page"] {
  color: var(--ink);
  border-left-color: var(--accent);
  background: var(--surface);
}
.docs-toc .toc-label {
  font-size: var(--t-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: var(--s-2);
}
.docs-toc li + li {
  margin-top: var(--s-1);
}
.docs-toc a {
  display: block;
  padding: 2px 0;
  color: var(--ink-3);
  font-size: var(--t-caption);
  text-decoration: none;
}
.docs-toc a:hover {
  color: var(--accent);
}
.docs-main {
  padding: var(--s-5) 0 var(--s-6);
  min-width: 0;
}
.docs-menu {
  display: none;
}
.docs-searchbar {
  position: relative;
  max-width: 520px;
  margin-bottom: var(--s-5);
}
.docs-searchbar input {
  width: 100%;
  min-height: 44px;
  padding: var(--s-2) 44px var(--s-2) var(--s-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: var(--t-ui) / 1.4 var(--sans);
}
.docs-searchbar input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}
.docs-searchbar input:focus-visible {
  outline-offset: 0;
  border-color: var(--accent);
}
.docs-search-key {
  position: absolute;
  right: 12px;
  top: 22px;
  transform: translateY(-50%);
  pointer-events: none;
}
.docs-searchbar input:focus ~ .docs-search-key,
.docs-searchbar input:not(:placeholder-shown) ~ .docs-search-key {
  display: none;
}
.docs-search-results {
  position: absolute;
  z-index: 5;
  top: calc(100% + var(--s-1));
  left: 0;
  right: 0;
  max-height: min(60vh, 520px);
  overflow-y: auto;
  padding: var(--s-1) var(--s-3);
  background: var(--ground);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.docs-search-results:empty {
  display: none;
}
.search-count,
.search-hint,
.search-empty {
  overflow-wrap: anywhere;
  font: var(--t-caption) / 1.6 var(--sans);
  color: var(--ink-3);
  margin: var(--s-2) 0;
}
.search-empty p + p {
  margin-top: var(--s-2);
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-results li {
  border-top: 1px solid var(--rule);
  padding: var(--s-3) 0;
}
.search-results a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}
.search-results a:hover .search-heading {
  color: var(--accent);
}
.search-page {
  font: 600 var(--t-label) / 1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.search-heading {
  font-weight: 600;
}
.search-results p {
  margin-top: var(--s-1);
  font-size: var(--t-ui);
  line-height: 1.55;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
mark {
  background: var(--mark-bg);
  color: var(--mark-ink);
  font-weight: 700;
}

/* Article */
.docs-article {
  max-width: var(--measure);
}
.docs-crumb {
  font: 600 var(--t-label) / 1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.docs-article h1 {
  font-size: var(--t-h1);
  letter-spacing: -0.005em;
}
.docs-article .lede {
  margin-top: var(--s-3);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}
.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin: var(--s-4) 0 var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
  font: 500 var(--t-caption) / 1.4 var(--sans);
}
.docs-actions a,
.docs-actions button {
  padding: var(--s-1) 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.docs-actions button[hidden] {
  display: none;
}
.prose > * + * {
  margin-top: var(--s-3);
}
.prose h2 {
  font-size: var(--t-h2);
  font-weight: 600;
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.prose h3 {
  font-size: var(--t-h3);
  font-weight: 600;
  margin-top: var(--s-5);
}
.prose h4 {
  font-size: 18px;
  font-weight: 600;
  margin-top: var(--s-4);
}
.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
  margin-top: var(--s-3);
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: var(--s-2);
}
.prose li > ul,
.prose li > ol {
  margin-top: var(--s-2);
}
.prose li::marker {
  color: var(--ink-3);
}
.prose :not(pre) > code {
  font-size: 0.86em;
  padding: 0.1em 0.3em;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.prose table {
  display: block;
  overflow-x: auto;
  margin-top: var(--s-4);
  margin-bottom: var(--s-4);
}
.prose td code {
  overflow-wrap: normal;
  white-space: nowrap;
}
.prose blockquote {
  margin: var(--s-4) 0;
  padding: var(--s-2) var(--s-3);
  border-left: 2px solid var(--notice);
  background: var(--surface);
  color: var(--ink-2);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
}
.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}
.docs-pager a {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}
.docs-pager a:hover {
  border-color: var(--accent);
}
.pager-next {
  grid-column: 2;
  text-align: right;
}
.pager-dir {
  font: 600 var(--t-label) / 1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.pager-prev .pager-dir::before {
  content: "\2190\00a0";
}
.pager-next .pager-dir::after {
  content: "\00a0\2192";
}
.pager-title {
  font: 600 var(--t-h3) / 1.15 var(--display);
}

/* Error page */
.error-page {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-7) var(--gutter);
}
.error-code {
  font: 600 var(--t-ui) / 1.4 var(--sans);
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.error-page h1 {
  font-size: var(--t-display);
  max-width: 18em;
}
.error-message {
  margin-top: var(--s-3);
  max-width: 36em;
  color: var(--ink-2);
}

/* Narrower screens */
@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--s-5);
  }
  .docs-toc {
    display: none;
  }
  .map-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .hero,
  .why,
  .bench {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-5);
  }
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .docs-sidebar {
    display: none;
  }
  .docs-main {
    padding-top: var(--s-4);
  }
  .docs-menu {
    display: block;
    margin-bottom: var(--s-3);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    font: var(--t-ui) / 1.45 var(--sans);
  }
  .docs-menu summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 var(--s-3);
    cursor: pointer;
    color: var(--ink-2);
    font-weight: 500;
  }
  .docs-menu nav {
    padding: 0 var(--s-3) var(--s-3);
  }
  .docs-searchbar {
    max-width: none;
    margin-bottom: var(--s-4);
  }
  .docs-search-key {
    display: none;
  }
}
@media (max-width: 640px) {
  :root {
    --t-display: 38px;
    --t-h1: 30px;
    --t-h2: 24px;
    --t-h3: 19px;
  }
  .site-header {
    flex-wrap: wrap;
    row-gap: var(--s-2);
  }
  .site-nav {
    gap: var(--s-1) var(--s-3);
  }
  .home > section {
    padding: var(--s-6) 0;
  }
  .feature-list,
  .map-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-pager {
    grid-template-columns: minmax(0, 1fr);
  }
  .pager-next {
    grid-column: 1;
  }
  .copy-code {
    top: var(--s-1);
    right: var(--s-1);
  }
}
/* Set for the one frame the theme flips, so colors switch without smearing. */
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
  }
}
