@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --paper: #ffffff; --rail: #f3f2f8; --ink: #191a23; --ink-2: #3d3e4c; --muted: #6e6f80;
  --line: #e7e6ef; --nile: #3a4be0; --nile-wash: #eef0ff; --code-bg: #16172a; --code-ink: #e4e6ff;
  --credit: #12784f; --amber: #9a5a00; --amber-wash: #fff4e0;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Geist', ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--nile); }
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--rail); border-right: 1px solid var(--line); padding: 26px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 0 8px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--nile); color: #fff; display: grid; place-items: center; font-weight: 700; }
.brand b { font-weight: 650; letter-spacing: -0.02em; }
.brand span { color: var(--muted); font-weight: 400; }
.side h4 { margin: 18px 8px 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.side a.l { display: block; padding: 5px 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.side a.l:hover { background: rgba(58,75,224,.07); }
.verb { display: inline-block; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10.5px; font-weight: 600; width: 36px; color: var(--muted); }
.verb.post { color: var(--nile); }
.verb.get { color: var(--credit); }
main { padding: 48px clamp(24px, 5vw, 72px) 120px; max-width: 900px; }
section { padding-top: 22px; margin-bottom: 40px; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; padding-top: 0; }
h1 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 10px; }
h2 { font-size: 23px; letter-spacing: -0.01em; margin: 10px 0 12px; }
h3 { font-size: 16px; margin: 26px 0 8px; }
p, li { color: var(--ink-2); max-width: 72ch; }
.lede { font-size: 17px; color: var(--muted); max-width: 64ch; }
.endpoint { display: flex; gap: 10px; align-items: center; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; background: var(--rail); border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px; margin: 8px 0 16px; overflow-x: auto; }
.endpoint .m { font-weight: 600; color: var(--nile); }
.endpoint .m.get { color: var(--credit); }
code { font-family: 'Geist Mono', ui-monospace, monospace; font-size: .88em; background: var(--nile-wash); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
pre { background: var(--code-bg); color: var(--code-ink); padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 10px 0 18px; }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.label { font-size: 12.5px; color: var(--muted); margin-bottom: -4px; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 14px; display: block; overflow-x: auto; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
td:first-child { white-space: nowrap; }
.req { color: var(--amber); font-size: 12px; font-weight: 500; }
.note { background: var(--amber-wash); color: #6b3f00; padding: 12px 16px; border-radius: 10px; font-size: 14px; margin: 12px 0 18px; max-width: 72ch; }
.note p { color: inherit; margin: 0; }
.flow { display: flex; gap: 0; flex-wrap: wrap; margin: 12px 0 18px; }
.flow span { background: var(--rail); border: 1px solid var(--line); padding: 6px 12px; font-size: 13px; font-family: 'Geist Mono', ui-monospace, monospace; }
.flow span + span { border-left: 0; }
.flow span:first-child { border-radius: 8px 0 0 8px; }
.flow span:last-child { border-radius: 0 8px 8px 0; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
}
