:root { color-scheme: light; font-family: Inter, "Segoe UI", sans-serif; color: #222338; background: #f5f5f5; --ink: #262262; --muted: #55596e; --line: #dedde7; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--ink); text-underline-offset: .22em; }
a:hover { color: #5148a3; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #6c65b5; outline-offset: 4px; }
.wrap, .header-inner, .footer-inner { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 35px; }
.wordmark { display: block; width: 145px; max-width: 100%; aspect-ratio: 7.5; object-fit: cover; transform: translateX(-3.9%); }
header nav { display: flex; flex-wrap: wrap; gap: 8px 25px; }
header nav a { color: #414159; text-decoration: none; font-size: .91rem; font-weight: 600; }
header nav a[aria-current], header nav a:hover { color: var(--ink); text-decoration: underline; }
.hero {
  color: #fff; position: relative; isolation: isolate;
  background: radial-gradient(circle at 16% 18%, rgba(251,191,36,.08), rgba(15,23,42,.95) 32%), linear-gradient(135deg,#0b1224 0%,#0f172a 40%,#111827 60%,#1e1b4b 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .75;
  background-image: radial-gradient(circle at 10% 20%,rgba(99,102,241,.18),transparent 40%), radial-gradient(circle at 80% 0%,rgba(56,189,248,.16),transparent 35%), radial-gradient(circle at 60% 80%,rgba(52,211,153,.14),transparent 40%), radial-gradient(circle at 30% 60%,rgba(245,196,94,.18),transparent 38%), radial-gradient(circle at 85% 70%,rgba(234,179,8,.12),transparent 40%);
  background-size: 140% 140%,120% 120%,160% 160%,150% 150%,170% 170%;
  background-position: 0% 0%,80% 10%,40% 90%,30% 60%,85% 70%;
}
.hero-inner { padding-block: clamp(50px, 8vw, 90px); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.15rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -.035em; }
.hero .wordmark { width: clamp(225px, 50vw, 440px); filter: brightness(0) invert(1); }
.hero p { font-size: clamp(1.04rem, 2.5vw, 1.28rem); margin-top: 13px; color: #e0e3f0; }
.search { display: flex; gap: 8px; max-width: 580px; margin-top: 27px; }
.search input, .search button { min-height: 48px; border-radius: 6px; font: inherit; }
.search input { min-width: 0; width: 100%; border: 1px solid #b9b7ca; padding-inline: 14px; }
.search button { background: var(--ink); border: 1px solid #625a9f; color: white; padding-inline: 20px; cursor: pointer; font-weight: 600; }
.search button:hover { background: #37317c; }
.home-content { padding-block: 38px 56px; }
.home-content h2 { font-size: 1.35rem; margin-bottom: 18px; }
.products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.product-card { padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; display: flex; gap: 15px; align-items: center; }
.product-card:hover { border-color: #8279b8; background: #fbfaff; }
.product-symbol { width: 43px; height: 43px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; background: #edecf9; }
.product-copy { display: grid; gap: 5px; }
.product-copy strong { font-size: 1.03rem; }
.product-copy span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.arrow { margin-left: auto; font-size: 1.3rem; }
.content { padding-block: 26px 60px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .875rem; }
.paper { background: white; border: 1px solid var(--line); border-radius: 10px; padding: clamp(22px,5vw,48px); overflow-wrap: anywhere; }
.paper > p { margin-top: 14px; line-height: 1.65; }
.reading-layout { display: grid; grid-template-columns: minmax(0,210px) minmax(0,1fr); gap: 22px; }
.reading-layout aside { border-right: 1px solid var(--line); padding: 12px 16px 12px 0; overflow-wrap: anywhere; }
.reading-layout aside h2 { font-size: 1rem; }
.index { list-style: none; padding: 0; margin: 23px 0 0; }
.index li { padding-block: 12px; border-top: 1px solid var(--line); }
.index p { margin-top: 5px; color: var(--muted); line-height: 1.55; }
.updated, .version { color: var(--muted); font-size: .875rem; font-weight: 500; letter-spacing: normal; }
h1 .version { display: inline-block; font-size: 1rem; }
.summary { font-size: 1.12rem; color: var(--muted); }
.prose { max-width: 72ch; line-height: 1.75; margin-top: 24px; }
.prose :is(h2,h3,h4,h5,h6) { line-height: 1.3; margin: 1.55em 0 .45em; }
.prose :is(p,ul,ol,pre,blockquote,table) { margin-block: 1em; }
.prose img, .prose iframe { display: block; max-width: 100%; border: 0; border-radius: 6px; }
.prose iframe { width: min(100%, 680px); aspect-ratio: 16/9; }
.prose pre { overflow: auto; }
.prose table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
.prose :is(td,th) { border: 1px solid var(--line); padding: .3em .6em; }
footer { border-top: 1px solid var(--line); background: white; font-size: .875rem; }
footer .brand { min-height: 29px; }
footer .wordmark { width: 121px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 3; background: white; padding: .6rem; }
@media (max-width: 700px) {
  .wrap, .header-inner, .footer-inner { width: calc(100% - 36px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .products, .reading-layout { grid-template-columns: 1fr; }
  .reading-layout aside { order: 1; border-right: 0; padding: 8px 0; }
}
