@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-var.woff2") format("woff2-variations");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #F4F7F4;
  --surface: #FFFFFF;
  --ink: #16241F;
  --muted: #66736D;
  --line: #E4EAE6;
  --brand: #17362B;
  --brand-soft: #E6F0EA;
  --accent: #8A4C12;
  --accent-soft: #FBEEDF;
  --ok: #16734D;
  --shadow: 0 10px 30px rgba(22, 36, 31, .06);
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 11px;
  --r-xs: 8px;
  --sans: "Public Sans", system-ui, sans-serif;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
main { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 80px; }
header, section {
  margin-bottom: 16px; padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.docs-brand-mark { width: 48px; height: 48px; border-radius: var(--r-md); box-shadow: var(--shadow); }
h1 {
  margin: 8px 0 14px; font-family: var(--display); font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 600; letter-spacing: -.04em; line-height: 1.02;
}
h2 {
  margin: 0 0 10px; font-family: var(--display); font-size: 19px;
  font-weight: 600; letter-spacing: -.03em;
}
h3 { margin: 12px 0 4px; font-size: 13.5px; font-weight: 600; }
h4 { margin: 16px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

header > p, section > p, ol { max-width: 68ch; }
.eyebrow {
  color: var(--accent); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.muted { color: var(--muted); font-size: 13.5px; }
nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
nav a {
  padding: 7px 13px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; font-size: 13.5px; font-weight: 600;
}
nav a:hover { border-color: var(--accent); }
a { color: var(--accent); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid article, .endpoint { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.grid article p, .endpoint p { font-size: 13.5px; color: var(--muted); }
.endpoint { margin-top: 14px; }
.endpoint > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.endpoint-example { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.endpoint-example summary { color: var(--accent); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.endpoint-example pre {
  margin: 8px 0; padding: 14px; overflow-x: auto; border-radius: var(--r-sm);
  background: var(--ink); color: #E7EFEA; font-size: 12px; line-height: 1.55;
  white-space: pre-wrap;
}
.method {
  display: inline-block; min-width: 58px; padding: 3px 9px; border-radius: var(--r-xs);
  color: #fff; font-size: 11px; font-weight: 700; text-align: center;
}
.method.get { background: var(--ok); }
.method.post { background: var(--brand); }
code { overflow-wrap: anywhere; font-size: 12px; }
dl { display: grid; grid-template-columns: 104px 1fr; gap: 4px 12px; margin: 10px 0; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 0; font-size: 13.5px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
td { font-size: 13.5px; }
ol { margin: 0; padding-left: 22px; }
li { margin-bottom: 4px; font-size: 13.5px; }

@media (max-width: 600px) {
  main { width: min(100% - 20px, 1100px); padding-top: 18px; }
  header, section { padding: 18px; border-radius: var(--r-md); }
  dl { grid-template-columns: 1fr; }
}
