:root {
  color-scheme: light;
  --ink: #121923;
  --muted: #4c5868;
  --accent: #09588e;
  --line: #dce3ea;
  --paper: #f7f9fc;
  --night: #090e14;
  --measure: 1120px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid #1589dd; outline-offset: 5px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; }
.wrap { width: min(var(--measure), calc(100% - 3rem)); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 10; padding: .7rem 1rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.topbar { background: var(--night); border-bottom: 1px solid #ffffff19; color: #f6f8fb; }
.nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav a { color: inherit; text-decoration: none; }
.nav .brand { font-weight: 700; letter-spacing: -.025em; }
.nav nav { display: flex; gap: clamp(.8rem, 3vw, 1.9rem); font-size: .9rem; color: #c3ccda; }
.nav nav a:hover, .nav nav [aria-current] { color: white; }
.hero { position: relative; overflow: hidden; isolation: isolate; background: #050709; color: #f4f8fc; text-align: center; }
.hero-copy { position: relative; z-index: 1; padding-top: clamp(3.3rem, 7vw, 5.7rem); }
.eyebrow { margin-bottom: .9rem; color: #a7cee8; font-size: .9rem; font-weight: 650; }
.hero h1 { font-size: clamp(2.8rem, 7.8vw, 6.35rem); letter-spacing: -.07em; }
.hero-summary { max-width: 36rem; margin: 1rem auto 0; color: #b9c7d8; font-size: clamp(1rem, 2.4vw, 1.25rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .65rem 1.25rem; margin-top: 1.45rem; }
.hero-actions a { display: inline-flex; gap: .5rem; align-items: center; padding: .72rem 1.05rem; border-radius: 999px; color: #e1f2ff; font-weight: 650; text-decoration: none; }
.hero-actions .primary { background: #e3f2ff; color: #102e48; }
.hero-actions .primary:hover { background: white; }
.hero-actions .secondary:hover { background: #ffffff14; }
.signal { display: block; width: min(100%, 1550px); height: auto; margin: clamp(-6.8rem, -7vw, -2rem) auto 0; }
.demo { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.demo-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .7rem 1.5rem; margin-bottom: 1rem; }
.demo-heading h2 { font-size: clamp(1.65rem, 4vw, 2.65rem); }
.demo-heading a { font-size: .9rem; }
.demo iframe { display: block; width: 100%; min-height: 200px; aspect-ratio: 16 / 9; border: 0; border-radius: .85rem; background: var(--night); }
.topics { padding: clamp(3rem, 7vw, 5.2rem) 0; }
.topics h2 { font-size: clamp(2rem, 4.3vw, 3.45rem); }
.topics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin-top: 2rem; }
.topic { display: block; min-width: 0; border-top: 1px solid var(--line); padding: 1.35rem 0 1.5rem; text-decoration: none; color: var(--ink); }
.topic h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: 1.23rem; }
.topic h3 span { color: var(--accent); }
.topic p { margin-top: .5rem; color: var(--muted); line-height: 1.55; }
.topic:hover h3, .reference a:hover, .footer a:hover { text-decoration: underline; }
.reference { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .65rem 1.75rem; padding-top: 1.2rem; }
.reference a { font-weight: 650; text-decoration: none; }
.footer { padding-block: 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer a { text-decoration: none; }
.guide { background: white; }
.guide-lead { padding: clamp(2.5rem, 6vw, 4.6rem) 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.guide-lead h1 { font-size: clamp(2.4rem, 5.7vw, 4.75rem); }
.guide-lead p { max-width: 43rem; margin-top: .8rem; color: var(--muted); line-height: 1.55; font-size: 1.1rem; }
.guide-grid { display: grid; grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); padding: 2.5rem 0 4rem; }
.toc { position: sticky; top: 2rem; align-self: start; padding-left: 1rem; border-left: 1px solid var(--line); }
.toc h2 { font-size: .92rem; letter-spacing: 0; margin-bottom: .75rem; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: .3rem 0; font-size: .88rem; line-height: 1.3; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.prose { min-width: 0; line-height: 1.65; }
.prose h2 { padding-top: 1.45rem; border-top: 1px solid var(--line); margin: 2.7rem 0 1rem; font-size: clamp(1.45rem, 3.1vw, 2.05rem); scroll-margin-top: 1.25rem; }
.prose h2:first-child { margin-top: 0; border: 0; padding-top: 0; }
.prose h3 { margin: 1.75rem 0 .65rem; font-size: 1.25rem; }
.prose p, .prose ul, .prose ol { margin-block: 0 1rem; }
.prose li + li { margin-top: .45rem; }
.prose code { font: .88em "SFMono-Regular", Consolas, "Liberation Mono", monospace; color: #114e75; background: #eff4fa; padding: .12em .28em; border-radius: .2em; overflow-wrap: anywhere; }
.prose pre { margin: 0 0 1.15rem; padding: 1rem; min-width: 0; overflow: auto; border-radius: .65rem; background: #111b27; color: #e0f0fd; font-size: .93rem; }
.prose pre code { padding: 0; color: inherit; background: transparent; overflow-wrap: normal; }
.table-wrap { overflow: auto; margin: 0 0 1.15rem; border: 1px solid var(--line); border-radius: .65rem; }
.prose table { width: 100%; border-collapse: collapse; text-align: left; font-size: .925rem; }
.prose th, .prose td { padding: .7rem .85rem; vertical-align: top; }
.prose th { background: var(--paper); font-weight: 650; }
.prose td { border-top: 1px solid var(--line); }
.prose td:first-child { width: 32%; }
.source-version { color: var(--muted); font-size: .875rem; }
@media (max-width: 720px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .6rem; }
  .topics-grid { gap: 0 1.25rem; }
  .signal { width: 115%; max-width: none; margin-left: -7.5%; margin-top: -.5rem; }
}
@media (max-width: 460px) {
  .wrap { width: calc(100% - 2rem); }
  .topics-grid { grid-template-columns: 1fr; }
  .prose th, .prose td { padding: .55rem; }
  .hero-actions { column-gap: .25rem; }
}
