:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --fg: #e5e5e5;
  --fg-dim: #9a9a9a;
  --accent: #af9b70;
  --border: rgba(255, 255, 255, 0.08);
  --green: #4ade80;
  --yellow: #facc15;
  --red: #f87171;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
}
.container { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 600; color: var(--fg); text-decoration: none; }
.site-header nav a, .site-footer nav a {
  color: var(--fg-dim); text-decoration: none; margin-left: 1.5rem; font-size: 0.875rem;
}
.site-header nav a:hover, .site-footer nav a:hover, .site-header nav a.active { color: var(--accent); }
.hero { padding: 3rem 0 2rem; }
.eyebrow { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 0.75rem; }
h1 { font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 1rem; font-weight: 700; }
h2 { font-size: 1.5rem; margin: 2rem 0 1rem; font-weight: 600; }
h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--fg-dim); margin: 2rem 0 0.75rem; }
h4 { font-size: 1rem; margin: 0 0 0.5rem; }
.lede { font-size: 1.125rem; color: var(--fg-dim); max-width: 48rem; }
a { color: var(--accent); }
a:hover { color: var(--fg); }
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 0.85em;
}
pre {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 0.5rem;
  padding: 1rem; overflow-x: auto; margin: 0.75rem 0;
}
code { background: rgba(255,255,255,0.04); padding: 0.1em 0.4em; border-radius: 0.25rem; }
pre code { background: transparent; padding: 0; }
.quickstart pre { margin-bottom: 0.5rem; }
.status-banner {
  margin-top: 1.5rem; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: 0.5rem; background: var(--bg-elev);
  font-size: 0.875rem;
}
.cards {
  list-style: none; padding: 0; display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
}
.cards li a {
  display: block; padding: 1rem; border: 1px solid var(--border); border-radius: 0.75rem;
  background: var(--bg-elev); color: var(--fg); text-decoration: none; transition: border-color 0.15s;
}
.cards li a:hover { border-color: var(--accent); }
.cards li p { color: var(--fg-dim); font-size: 0.875rem; margin: 0.5rem 0; }
.cards li code { font-size: 0.75rem; color: var(--fg-dim); }
.pattern { padding-left: 1rem; }
.pattern li { margin: 0.5rem 0; }
table.schema { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9em; }
table.schema th, table.schema td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
table.schema th { color: var(--fg-dim); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.hint { color: var(--fg-dim); font-size: 0.875rem; }
.code-samples details {
  border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem 1rem; margin-bottom: 0.5rem;
  background: var(--bg-elev);
}
.code-samples summary { cursor: pointer; font-weight: 500; padding: 0.25rem 0; }
.code-samples pre { margin: 0.5rem 0 0; }
.breadcrumb { color: var(--fg-dim); font-size: 0.875rem; margin-bottom: 0.5rem; }
.freshness-badge { font-size: 0.875rem; color: var(--fg-dim); margin-bottom: 1.5rem; min-height: 1em; }
.status-icon { vertical-align: -2px; margin-right: 0.35em; }
.status-icon.ok { color: var(--green); }
.status-icon.warn { color: var(--yellow); }
.status-icon.bad { color: var(--red); }
dl dt { font-weight: 600; margin-top: 1rem; }
dl dd { margin: 0.25rem 0 0; color: var(--fg-dim); }
.site-footer {
  border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 4rem; color: var(--fg-dim); font-size: 0.875rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; }
.openapi-page #scalar { margin-top: 2rem; }
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  .site-header nav a { margin-left: 0.75rem; }
}
