:root {
  --bg:      #fcfcfb;
  --fg:      #1a1a1a;
  --muted:   #6b6b6b;
  --subtle:  #a8a49e;
  --rule:    #ebe9e5;
  --code-bg: #f1efea;

  --font:      "Geist", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: 1rem;
  --t-h2:   1.125rem;

  --measure: 34rem;
  --gutter:  clamp(1.25rem, 4vw, 2rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:  200ms;
}

[data-theme="dark"] {
  --bg:      #0f0f0e;
  --fg:      #ededea;
  --muted:   #9a9a95;
  --subtle:  #6b6965;
  --rule:    #262623;
  --code-bg: #1a1a18;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  font-feature-settings: "ss01", "ss03";
}

h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4rem var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-feature-settings: "ss02";
}

.api-card {
  padding: 1.5rem 1.75rem 1.75rem;
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.api-card__heading {
  margin: 0 0 0.25rem;
  font-size: var(--t-h2);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.api-card__lede {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: var(--t-sm);
}
.api-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.api-card__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--t-sm);
}
.api-card__method {
  display: inline-block;
  min-width: 2.5rem;
  color: var(--subtle);
}
.api-card__list a {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--fg);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.api-card__list a:hover { border-bottom-color: var(--fg); }
