:root {
  --bg: #10110E;
  --surface: #1C1F18;
  --text: #F4F1E8;
  --muted: #B7B3A8;
  --accent: #F25C2A;
  --accent-ink: #1A0E09;
  --accent-hover: #FF7344;
  --accent-active: #E15A28;
  --border: #5F6458;
  --code: #0C0D0B;
  --success: #9BC47A;
  --focus: #F25C2A;
  --font-display: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --font-ui: "Public Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --text-h1: 3.25rem;
  --text-h2: 2.25rem;
  --text-h3: 1.5rem;
  --text-body: 1.0625rem;
  --text-small: 0.875rem;
  --text-button: 0.875rem;
  --text-eyebrow: 0.75rem;
  --text-code: 0.8125rem;
}

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

html {
  color-scheme: dark;
  font-size: 16px;
  scroll-behavior: auto;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  color: var(--text);
}

h1 {
  margin: var(--space-3) 0 0;
  max-width: 16em;
  font-size: var(--text-h1);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 em {
  font-style: italic;
  font-weight: 500;
  color: inherit;
}

h2 {
  margin: var(--space-3) 0 0;
  max-width: 16em;
  font-size: var(--text-h2);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0;
  font-size: var(--text-h3);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

:not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--text);
  background: none;
}

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

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border-radius: var(--space-1);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-ui);
  font-size: var(--text-button);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 100%;
}

.wordmark {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

a.wordmark,
a.wordmark:visited,
a.wordmark:hover {
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--space-1);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-ui);
  font-size: var(--text-button);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.button:hover {
  background: var(--accent-hover);
}

.button:active {
  background: var(--accent-active);
}

.button:visited,
.button:visited:hover,
.button:visited:active {
  color: var(--accent-ink);
}

.link {
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.link:hover {
  color: var(--accent);
}

.link:visited {
  color: var(--text);
}

.link:visited:hover {
  color: var(--accent);
}

.secondary {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

.pair {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
}

.dot {
  color: var(--muted);
}

.block {
  padding-block: var(--space-9);
}

.hero {
  padding-top: 72px;
  padding-bottom: var(--space-9);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  margin: var(--space-4) 0 0;
  max-width: 38rem;
  color: var(--text);
  font-size: var(--text-body);
  line-height: 1.6;
}

.lede.muted {
  color: var(--muted);
}

.section-body {
  margin-top: var(--space-6);
}

.trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-6) 0 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  list-style: none;
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid > * {
  min-width: 0;
}

.grid.two,
.grid.three {
  grid-template-columns: minmax(0, 1fr);
}

.card {
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--space-2);
  background: transparent;
}

.card h3 {
  margin: 0;
}

.card .index + h3 {
  margin-top: var(--space-3);
}

.card p:not(.index) {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.5;
}

.index {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

.frame {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--space-2);
  background: var(--code);
}

.chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 40px;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

pre {
  max-width: 100%;
  margin: 0;
  padding: var(--space-4);
  overflow-x: auto;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-code);
  font-weight: 400;
  line-height: 1.6;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
  tab-size: 2;
}

pre code {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  white-space: pre;
}

.pun {
  color: var(--muted);
}

.lit {
  color: var(--accent);
}

.est {
  color: var(--accent);
  font-weight: 500;
}

.ok {
  color: var(--success);
}

.caption {
  max-width: 38rem;
  margin: var(--space-4) 0 0;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.5;
}

.frame figcaption {
  margin: 0;
  padding: 0 var(--space-4) var(--space-4);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.5;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::marker {
  content: "";
}

.faq summary h3 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-optical-sizing: auto;
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}

.mark {
  flex: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
}

.mark::before {
  content: "+";
}

details[open] > summary .mark::before {
  content: "\2212";
}

.answer {
  max-width: 38rem;
  margin: 0;
  padding: 0 32px var(--space-5) 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.6;
}

.cta {
  padding-block: var(--space-8);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.cta h2 {
  margin-top: 0;
}

footer {
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
}

.footer-brand {
  min-width: 0;
}

.footer-lede {
  max-width: 36ch;
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.5;
}

.footer-brand .secondary {
  margin-top: var(--space-3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lede,
.caption,
.answer,
.card p,
.footer-lede {
  overflow-wrap: break-word;
}

@media (min-width: 640px) {
  .trust {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
  }
}

@media (min-width: 800px) {
  .grid.two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 900px) {
  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

@media (max-width: 640px) {
  :root {
    --text-h1: 2.25rem;
    --text-h2: 1.75rem;
    --text-h3: 1.375rem;
    --text-body: 1rem;
    --text-button: 0.9375rem;
    --text-code: 0.78125rem;
  }

  .wrap {
    width: min(1120px, calc(100% - 40px));
  }

  header {
    height: 56px;
  }

  .block {
    padding-block: var(--space-8);
  }

  .hero {
    padding-top: 40px;
    padding-bottom: var(--space-8);
  }

  .section-body {
    margin-top: var(--space-5);
  }

  .hero .button,
  .cta .button {
    width: 100%;
  }

  .card {
    padding: 20px;
  }

  pre {
    padding: var(--space-3);
  }

  .faq summary {
    align-items: flex-start;
    padding-block: var(--space-4);
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-5);
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
  }
}

@media (max-width: 420px) {
  .header-openapi {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
