:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eef3ec;
  --ink: #14201a;
  --muted: #5b6a61;
  --line: #d8dfd7;
  --line-strong: #a9b7ad;
  --accent: #0f6b4f;
  --accent-ink: #ffffff;
  --accent-soft: #dceee5;
  --blue: #245e8f;
  --blue-soft: #e0edf6;
  --amber: #85620f;
  --amber-soft: #f2e8c9;
  --code-bg: #111a16;
  --code-ink: #edf7f1;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Avenir Next", "Helvetica Neue", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgb(247 248 244 / 90%);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  padding-block: 8px;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

.hero-band,
.content-band {
  padding-inline: clamp(20px, 5vw, 40px);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  max-width: var(--max);
  min-height: min(680px, calc(100vh - 68px));
  margin: 0 auto;
  padding-block: clamp(64px, 9vw, 108px);
}

.hero-copy {
  min-width: 0;
  max-width: 750px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.55rem, 6.5vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.hero-copy p,
.section-heading p,
.response-panel p,
.fixture-panel p,
.endpoint-card p {
  color: var(--muted);
}

.hero-copy p {
  max-width: 690px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.facts-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.facts-panel dl {
  margin: 0;
}

.facts-panel div {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.facts-panel div:last-child {
  border-bottom: 0;
}

.facts-panel dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts-panel dd {
  margin: 0;
}

.content-band {
  padding-block: clamp(64px, 8vw, 104px);
}

.content-band.alternate {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-heading,
.code-grid,
.endpoint-grid,
.use-case-grid,
.example-grid,
.fixture-panel,
.response-panel,
.code-block.narrow {
  max-width: var(--max);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 1.05rem;
}

.code-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.66fr) minmax(0, 1.34fr);
  gap: 16px;
  align-items: start;
}

.code-grid > *,
.endpoint-grid > *,
.use-case-grid > *,
.example-grid > * {
  min-width: 0;
}

.code-block,
.fixture-panel,
.response-panel,
.endpoint-card,
.use-case-card,
.example-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.content-band.alternate .code-block,
.content-band.alternate .endpoint-card,
.content-band.alternate .use-case-card,
.content-band.alternate .example-card {
  background: #fbfcfa;
}

.code-block {
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: #17241d;
  color: var(--code-ink);
  font-weight: 720;
}

button {
  min-height: 34px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
  color: var(--code-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  border-color: var(--code-ink);
}

pre {
  max-height: 620px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  background: var(--code-bg);
  color: var(--code-ink);
  font-size: 0.86rem;
  line-height: 1.55;
}

.response-panel {
  margin-top: 16px;
  padding: 20px;
  background: var(--accent-soft);
}

.response-panel p {
  margin: 8px 0 0;
}

.fixture-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 16px;
  padding: 20px;
  background: #fbfcfa;
}

.fixture-panel p {
  max-width: 880px;
  margin: 8px 0 0;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.download-row a {
  border-bottom: 1px solid currentcolor;
  color: var(--accent);
  font-weight: 760;
}

.use-case-grid,
.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.use-case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.endpoint-card,
.use-case-card,
.example-card {
  padding: 20px;
}

.endpoint-card p,
.use-case-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.example-card dl {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
}

.example-card dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.example-card dd {
  margin: 0;
}

.method {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.method.get {
  background: var(--blue-soft);
  color: var(--blue);
}

.method.post {
  background: var(--amber-soft);
  color: var(--amber);
}

.endpoint-card h3 {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
  font-size: 0.98rem;
}

.code-block.narrow {
  margin-top: 16px;
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-band,
  .code-grid,
  .endpoint-grid,
  .use-case-grid,
  .example-grid,
  .fixture-panel {
    grid-template-columns: 1fr;
  }

  .download-row {
    justify-content: flex-start;
  }

  .hero-band {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero-band,
  .content-band {
    padding-inline: 16px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  pre {
    font-size: 0.78rem;
  }
}
