:root {
  --ink: #11141b;
  --ink-2: #202532;
  --paper: #f8ffe7;
  --paper-2: #efffd2;
  --white: #ffffff;
  --lime: #d8ff2f;
  --green: #52f1a4;
  --cyan: #11dff2;
  --blue: #33a5ff;
  --pink: #ff3eb5;
  --orange: #ff7a25;
  --yellow: #ffe53d;
  --purple: #8c58ff;
  --muted: #566072;
  --line: #18202c;
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(216,255,47,.58), transparent 25rem),
    radial-gradient(circle at 92% 16%, rgba(17,223,242,.28), transparent 24rem),
    linear-gradient(180deg, #fbfff1 0%, #f1ffd1 52%, #fbfff6 100%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--pink); color: #fff; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 9999;
  padding: .75rem 1rem;
  background: var(--ink);
  color: #fff;
  border: 3px solid var(--lime);
  border-radius: .75rem;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid var(--ink);
  background: rgba(216,255,47,.96);
  backdrop-filter: blur(16px);
}
.nav-shell {
  max-width: var(--max);
  min-height: 76px;
  margin: 0 auto;
  padding: .75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--pink);
  font-size: 1.15rem;
}
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
  padding: .62rem .72rem;
  border: 2px solid transparent;
  border-radius: .7rem;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 800;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--cyan);
}
.nav-cta {
  background: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
  box-shadow: 3px 3px 0 var(--pink) !important;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--cyan);
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }
.mobile-panel { display: none; }

main { min-height: 60vh; }
.shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 820px); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: 3rem 0; }
.section-ink { background: var(--ink); color: #fff; border-block: 4px solid var(--ink); }
.section-white { background: rgba(255,255,255,.8); border-block: 3px solid var(--ink); }
.section-lime { background: var(--lime); border-block: 4px solid var(--ink); }
.section-cyan { background: #bffaff; border-block: 4px solid var(--ink); }

.breadcrumbs { padding: 1.1rem 0 0; font-size: .82rem; color: #394252; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .45rem; color: var(--pink); font-weight: 900; }
.breadcrumbs a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

.hero { padding: clamp(3.5rem, 7vw, 7rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.15rem;
  padding: .48rem .8rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--pink);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.eyebrow::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: var(--cyan); border: 2px solid var(--ink); }
h1, h2, h3, h4 {
  margin-top: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.08;
  letter-spacing: -.045em;
}
h1 { font-size: clamp(2.8rem, 6.8vw, 5.9rem); margin-bottom: 1.2rem; font-weight: 950; }
h2 { font-size: clamp(2rem, 4.5vw, 3.65rem); margin-bottom: 1rem; font-weight: 950; }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.65rem); margin-bottom: .65rem; font-weight: 900; }
h4 { font-size: 1.05rem; margin-bottom: .5rem; font-weight: 900; }
.gradient-word { background: linear-gradient(90deg, #00a8c9 0%, #8b45ff 42%, #ff2f9c 75%, #ff6e23 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.08rem, 1.9vw, 1.32rem); color: #323b49; max-width: 65ch; }
.hero-copy .lede { max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .82rem 1.15rem;
  border: 3px solid var(--ink);
  border-radius: .85rem;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.button-primary { background: var(--ink); color: #fff; }
.button-lime { background: var(--lime); }
.button-cyan { background: var(--cyan); }
.button-pink { background: var(--pink); color: #fff; }
.button-white { background: #fff; }
.hero-art {
  position: relative;
  border: 5px solid var(--ink);
  border-radius: 30px;
  overflow: hidden;
  background: var(--cyan);
  box-shadow: 14px 14px 0 var(--ink);
}
.hero-art::after {
  content: "REFERENCE • NOT A LIVE ENDPOINT";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: .42rem .65rem;
  border: 2px solid var(--ink);
  border-radius: .55rem;
  background: var(--yellow);
  font-size: .68rem;
  font-weight: 900;
}
.hero-art img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.8rem; }
.stat { padding: .85rem; border: 3px solid var(--ink); border-radius: 14px; background: #fff; }
.stat strong { display: block; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.05rem; }
.stat span { font-size: .72rem; color: var(--muted); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-head p { max-width: 58ch; margin: 0; color: #4c5667; }
.section-ink .section-head p { color: #cbd5e1; }
.kicker { margin: 0 0 .6rem; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: #8b2b6e; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.35rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.35rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.15rem; }
.card {
  position: relative;
  padding: 1.35rem;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.card p:last-child { margin-bottom: 0; }
.card-accent-cyan { border-color: #0796a6; box-shadow: 6px 6px 0 var(--cyan); }
.card-accent-pink { border-color: #a31d6f; box-shadow: 6px 6px 0 var(--pink); }
.card-accent-lime { border-color: #799a00; box-shadow: 6px 6px 0 var(--lime); }
.card-accent-orange { border-color: #a54312; box-shadow: 6px 6px 0 var(--orange); }
.card-number { font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 950; font-size: 2.25rem; color: var(--pink); }
.card-link { display: inline-flex; margin-top: .7rem; font-weight: 900; text-underline-offset: 4px; text-decoration-thickness: 3px; }
.icon-chip { width: 3.25rem; height: 3.25rem; display: grid; place-items: center; margin-bottom: 1rem; border: 3px solid var(--ink); border-radius: 15px; background: var(--lime); font-size: 1.2rem; font-weight: 950; }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.tag, .pill {
  display: inline-flex;
  align-items: center;
  padding: .36rem .58rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: .7rem;
  font-weight: 850;
  text-decoration: none;
}
.tag:hover { background: var(--lime); }

.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .9rem; counter-reset: step; }
.pipeline-card { padding: 1.15rem; border: 3px solid #fff; border-radius: 18px; background: #262c39; }
.pipeline-card::before { counter-increment: step; content: "0" counter(step); display: block; color: var(--lime); font-weight: 900; margin-bottom: .75rem; }
.pipeline-card h3 { font-size: 1rem; letter-spacing: -.02em; }
.pipeline-card p { margin: 0; font-size: .82rem; color: #cbd5e1; }

.code-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: center; }
.code-window {
  border: 4px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: #10141c;
  color: #edf7ff;
  box-shadow: 8px 8px 0 var(--pink);
}
.code-titlebar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border-bottom: 3px solid var(--ink); background: #242b38; }
.code-dots { display: flex; gap: .4rem; }
.code-dots span { width: .72rem; height: .72rem; border: 2px solid #0c0e12; border-radius: 50%; }
.code-dots span:nth-child(1) { background: var(--pink); }
.code-dots span:nth-child(2) { background: var(--yellow); }
.code-dots span:nth-child(3) { background: var(--green); }
.copy-button { border: 2px solid #fff; border-radius: .55rem; padding: .35rem .55rem; background: transparent; color: #fff; font-size: .7rem; font-weight: 800; }
.copy-button:hover { background: var(--lime); color: var(--ink); }
pre { margin: 0; padding: 1.25rem; overflow-x: auto; white-space: pre; font-size: .82rem; line-height: 1.65; tab-size: 2; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
p code, li code { padding: .12rem .3rem; border: 1px solid #a9b3c3; border-radius: .35rem; background: #edf2f6; font-size: .88em; }
.code-note { padding: .75rem 1rem; border-top: 2px solid #343c4d; color: #aeeffc; font-size: .72rem; }

.check-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); font-weight: 950; line-height: 1; }

.blog-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.blog-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-bottom: 4px solid var(--ink); }
.blog-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: .45rem .9rem; margin-bottom: .75rem; color: #596375; font-size: .72rem; }
.blog-card h3 { font-size: 1.32rem; }
.blog-card p { color: #4b5563; }
.blog-card .card-link { margin-top: auto; }

.faq { display: grid; gap: .85rem; }
details { border: 3px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: 4px 4px 0 var(--cyan); }
summary { cursor: pointer; padding: 1rem 3.2rem 1rem 1rem; font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 900; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1rem; top: .75rem; font-size: 1.55rem; color: var(--pink); }
details[open] summary::after { content: "−"; }
details .answer { padding: 0 1rem 1rem; color: #414b5b; }
details .answer p:last-child { margin-bottom: 0; }

.page-hero { padding: 4.2rem 0 3.2rem; }
.page-hero .lede { max-width: 72ch; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); max-width: 18ch; }
.page-banner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: end; }
.page-banner-aside { padding: 1.1rem; border: 4px solid var(--ink); border-radius: 20px; background: #fff; box-shadow: 7px 7px 0 var(--pink); }
.page-banner-aside strong { display: block; margin-bottom: .35rem; }

.prose { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.04rem; color: #29313d; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: .45rem; }
.prose h2 { margin-top: 3.4rem; font-size: clamp(1.8rem, 3.7vw, 2.8rem); }
.prose h3 { margin-top: 2.2rem; }
.prose a { color: #6a1a86; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: #c21c7c; }
.callout { margin: 1.6rem 0; padding: 1.2rem; border: 4px solid var(--ink); border-radius: 18px; background: var(--lime); box-shadow: 5px 5px 0 var(--pink); }
.callout p:last-child { margin-bottom: 0; }
.source-note { background: #e4fbff; }
.warning-note { background: #fff0c7; box-shadow: 5px 5px 0 var(--orange); }

.article-hero { padding: 3.2rem 0 2.5rem; }
.article-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.2rem; align-items: center; }
.article-hero h1 { font-size: clamp(2.5rem, 5.3vw, 4.7rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin: 1.1rem 0; color: #4d5767; font-size: .82rem; }
.article-meta a { font-weight: 800; }
.article-image { border: 5px solid var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 10px 10px 0 var(--ink); }
.article-body-shell { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3.2rem; align-items: start; }
.article-copy { min-width: 0; }
.article-copy > p:first-of-type { font-size: 1.22rem; color: #303a48; }
.article-toc { position: sticky; top: 102px; padding: 1rem; border: 3px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: 5px 5px 0 var(--cyan); }
.article-toc strong { display: block; margin-bottom: .65rem; font-family: ui-sans-serif, system-ui, sans-serif; }
.article-toc ol { margin: 0; padding-left: 1.15rem; font-size: .78rem; }
.article-toc li { margin-bottom: .45rem; }
.article-toc a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article-links { margin: 2.4rem 0; padding: 1.2rem; border: 4px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 6px 6px 0 var(--lime); }
.article-links h2 { margin: 0 0 .8rem; font-size: 1.45rem; }
.article-links ul { margin: 0; padding-left: 1.2rem; }
.share-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem; border: 4px solid var(--ink); border-radius: 20px; background: var(--ink); color: #fff; }
.share-card p { margin: 0; color: #cbd5e1; }

.archive-head { padding: 4.5rem 0 2.5rem; }
.archive-head h1 { max-width: 18ch; }
.pagination-note { margin-top: 2rem; padding: 1rem; border: 3px solid var(--ink); border-radius: 14px; background: #fff; }

.table-wrap { overflow-x: auto; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--pink); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 700px; }
th, td { padding: .9rem 1rem; border-bottom: 2px solid #ccd3dc; text-align: left; vertical-align: top; }
th { background: var(--ink); color: #fff; font-family: ui-sans-serif, system-ui, sans-serif; }
tr:last-child td { border-bottom: 0; }

.cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.6rem, 4vw, 3rem); border: 5px solid var(--ink); border-radius: 28px; background: linear-gradient(120deg, var(--lime), var(--cyan)); box-shadow: 10px 10px 0 var(--ink); }
.cta-panel h2 { margin-bottom: .55rem; }
.cta-panel p { max-width: 60ch; margin: 0; }

.site-footer { border-top: 5px solid var(--ink); background: #11151d; color: #fff; }
.footer-main { padding: 4rem 0 2.5rem; display: grid; grid-template-columns: 1.4fr repeat(3, .8fr); gap: 2rem; }
.footer-brand p { color: #bac4d4; max-width: 38ch; }
.footer-col h2 { font-size: .95rem; letter-spacing: .02em; margin-bottom: .8rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: #dce5f0; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer-col a:hover { color: var(--lime); }
.footer-email { display: inline-flex; margin-top: 1rem; padding: .55rem .75rem; border: 2px solid var(--lime); border-radius: .65rem; color: var(--lime); font-weight: 900; text-decoration: none; }
.footer-bottom { padding: 1.2rem 0 1.6rem; border-top: 1px solid #394252; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; color: #9ba8ba; font-size: .78rem; }
.footer-bottom a { color: #d8e1ec; }

.notice-bar { padding: .75rem 1rem; border-bottom: 3px solid var(--ink); background: #fff2bb; text-align: center; font-size: .78rem; font-weight: 800; }

:focus-visible { outline: 4px solid var(--pink); outline-offset: 3px; }

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel {
    position: fixed;
    inset: 76px 0 auto 0;
    z-index: 999;
    padding: 1rem;
    border-bottom: 4px solid var(--ink);
    background: var(--lime);
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
  }
  .mobile-panel.is-open { display: block; }
  .mobile-panel a { display: block; margin-bottom: .55rem; padding: .8rem 1rem; border: 3px solid var(--ink); border-radius: .8rem; background: #fff; text-decoration: none; font-weight: 900; }
  .hero-grid, .article-hero-grid, .code-grid, .page-banner { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pipeline { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .article-body-shell { grid-template-columns: 1fr; }
  .article-toc { position: static; order: -1; }
  .footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 82px; }
  .shell, .narrow { width: min(calc(100% - 1.25rem), var(--max)); }
  .nav-shell { min-height: 68px; padding-inline: .7rem; }
  .mobile-panel { inset: 68px 0 auto 0; }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { padding-top: 2.5rem; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.65rem); }
  .article-hero h1, .page-hero h1 { font-size: clamp(2.25rem, 11vw, 3.45rem); }
  .stat-row, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .hero-art { box-shadow: 8px 8px 0 var(--ink); }
  .hero-art::after { font-size: .58rem; }
  .article-image { box-shadow: 7px 7px 0 var(--ink); }
  .cta-panel { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  pre { font-size: .72rem; }
  .share-card { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .article-toc, .actions, .copy-button, .notice-bar { display: none !important; }
  body { background: #fff; }
  .section { padding: 1.5rem 0; }
  .article-body-shell { display: block; }
  a { color: #000; text-decoration: none; }
}
