:root { color-scheme: dark; --background: #050c14; --surface: #0a1723; --surface-raised: #102234; --surface-code: #030b12; --border: #26445b; --border-strong: #3a6886; --text: #eef8ff; --muted: #a9bfd0; --subtle: #7f9aaf; --cyan: #6de4ff; --cyan-soft: #c0f6ff; --coral: #ff8d74; --green: #7cf2a6; --amber: #ffd166; --focus: #ffe36e; --shadow: 0 28px 80px rgb(0 0 0 / 0.32); --radius: 1rem; --content: 74rem; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } *, *::before, *::after { box-sizing: border-box; } html { background: var(--background); scroll-behavior: smooth; } body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 8% -8%, rgb(0 168 255 / 0.18), transparent 28rem), radial-gradient(circle at 94% 14%, rgb(255 111 82 / 0.12), transparent 24rem), linear-gradient(180deg, #07111c 0, var(--background) 30rem); color: var(--text); line-height: 1.65; } img { display: block; max-width: 100%; } a { color: var(--cyan); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; } a:hover { color: var(--cyan-soft); } a:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; } button { font: inherit; } .skip-link { position: fixed; z-index: 100; top: 0.75rem; left: 0.75rem; padding: 0.65rem 0.9rem; border-radius: 0.5rem; background: var(--focus); color: #111827; font-weight: 850; transform: translateY(-180%); } .skip-link:focus { transform: translateY(0); } .site-shell { width: min(100% - 2.5rem, var(--content)); margin-inline: auto; } .site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgb(58 104 134 / 0.55); background: rgb(5 12 20 / 0.9); backdrop-filter: blur(18px); } .site-header__inner { display: flex; min-height: 4.6rem; align-items: center; justify-content: space-between; gap: 1.4rem; padding-block: 0.65rem; } .brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.72rem; color: var(--text); font-weight: 900; letter-spacing: -0.03em; text-decoration: none; } .brand:hover { color: var(--text); } .brand__mark { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border: 1px solid #2683ad; border-radius: 0.68rem; background: linear-gradient(145deg, #0d3851, #0b2233); color: var(--cyan); font: 850 0.78rem ui-monospace, SFMono-Regular, Consolas, monospace; box-shadow: inset 0 1px rgb(255 255 255 / 0.12); } .site-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.18rem; margin: 0; padding: 0; list-style: none; } .site-nav a { display: block; padding: 0.46rem 0.62rem; border-radius: 0.46rem; color: var(--muted); font-size: 0.84rem; font-weight: 750; text-decoration: none; } .site-nav a:hover { background: var(--surface); color: var(--text); } .site-nav a[aria-current="page"] { background: #123246; color: var(--cyan); } main { min-height: 62vh; } .hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr); gap: clamp(2rem, 7vw, 5.5rem); align-items: center; padding-block: clamp(3.8rem, 9vw, 7.2rem); } .eyebrow { margin: 0 0 0.72rem; color: var(--coral); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; } h1, h2, h3 { line-height: 1.12; text-wrap: balance; } h1 { max-width: 14ch; margin: 0; font-size: clamp(2.8rem, 7vw, 5.8rem); letter-spacing: -0.065em; } h2 { margin: 0 0 0.9rem; font-size: clamp(1.7rem, 4vw, 2.7rem); letter-spacing: -0.04em; } h3 { margin: 0 0 0.58rem; font-size: 1.15rem; letter-spacing: -0.018em; } .lede { max-width: 62ch; margin: 1.25rem 0 0; color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.22rem); } .pill-row { display: flex; flex-wrap: wrap; gap: 0.52rem; margin: 1.55rem 0 0; padding: 0; list-style: none; } .pill { padding: 0.36rem 0.64rem; border: 1px solid var(--border); border-radius: 999px; background: rgb(10 23 35 / 0.78); color: #c4d8e6; font: 750 0.74rem ui-monospace, SFMono-Regular, Consolas, monospace; } .actions { display: flex; flex-wrap: wrap; gap: 0.72rem; margin-top: 1.7rem; } .button { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: 0.64rem 0.95rem; border: 1px solid #3f8ba9; border-radius: 0.56rem; background: #12384a; color: #ddf9ff; font-weight: 850; text-decoration: none; } .button:hover { border-color: var(--cyan); background: #174b61; color: #fff; } .button--secondary { border-color: var(--border-strong); background: var(--surface); color: var(--text); } .code-card, .card, .callout, .method, .table-wrap, .result-panel, .side-index { border: 1px solid var(--border); border-radius: var(--radius); background: rgb(10 23 35 / 0.88); box-shadow: var(--shadow); } .code-card { overflow: hidden; } .code-card__bar { display: flex; align-items: center; gap: 0.34rem; padding: 0.75rem 0.95rem; border-bottom: 1px solid var(--border); background: #102638; } .code-card__bar span { width: 0.56rem; height: 0.56rem; border-radius: 50%; background: #58758a; } .code-card pre { min-height: 18rem; margin: 0; padding: 1.25rem; } code, pre, kbd { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; } :not(pre) > code, kbd { padding: 0.12em 0.32em; border: 1px solid #2b4c62; border-radius: 0.3rem; background: #07131d; color: #dcf8ff; font-size: 0.9em; } pre { overflow-x: auto; color: #dcecf7; font-size: 0.87rem; line-height: 1.62; tab-size: 4; } .code-keyword { color: #c4b5fd; } .code-string { color: #9bf1b4; } .code-property { color: #7ddfff; } .hero-art { margin: 0 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; border: 1px solid var(--border-strong); border-radius: 1.1rem; background: #020810; box-shadow: var(--shadow); } .hero-art img { width: 100%; height: auto; } .section { padding-block: clamp(3rem, 7vw, 5.5rem); } .section--bordered { border-top: 1px solid rgb(38 68 91 / 0.72); } .section-heading { max-width: 50rem; margin-bottom: 1.65rem; } .section-heading p, .card p, .method p, .prose p, .prose li, .callout p, .side-index p, .side-index li { color: var(--muted); } .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } .grid > * { min-width: 0; } .grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card { padding: 1.35rem; box-shadow: none; } .card p { margin-bottom: 0; } .card__label { display: block; margin-bottom: 0.72rem; color: var(--coral); font: 850 0.7rem ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase; } .card__link { display: inline-flex; margin-top: 0.9rem; font-weight: 850; } .page-hero { max-width: 58rem; padding-block: clamp(3.4rem, 8vw, 6rem) 3rem; } .page-hero h1 { max-width: 18ch; font-size: clamp(2.5rem, 6vw, 4.8rem); } .page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: clamp(2rem, 7vw, 5rem); align-items: start; padding-bottom: 5rem; } .prose { min-width: 0; } .prose > section + section { margin-top: 3.4rem; padding-top: 3.4rem; border-top: 1px solid var(--border); } .prose section[id] { scroll-margin-top: 6rem; } .prose h2 { font-size: clamp(1.6rem, 4vw, 2.35rem); } .prose h3 { margin-top: 1.8rem; } .prose ul, .prose ol { padding-left: 1.28rem; } .prose li + li { margin-top: 0.42rem; } .side-index { position: sticky; top: 6rem; padding: 1.05rem; box-shadow: none; } .side-index strong { display: block; margin-bottom: 0.5rem; } .side-index ul { display: grid; gap: 0.38rem; margin: 0; padding-left: 1.08rem; font-size: 0.86rem; } .code-block { position: relative; margin: 1.2rem 0; overflow: hidden; border: 1px solid var(--border); border-radius: 0.78rem; background: var(--surface-code); } .code-block pre { margin: 0; padding: 3.35rem 1.2rem 1.12rem; } .copy-button { position: absolute; z-index: 1; top: 0.5rem; right: 0.5rem; min-height: 2rem; padding: 0.28rem 0.58rem; border: 1px solid var(--border-strong); border-radius: 0.4rem; background: #102638; color: var(--text); cursor: pointer; font-size: 0.74rem; font-weight: 800; } .copy-button:hover { border-color: var(--cyan); } .callout { margin-block: 1.4rem; padding: 0.95rem 1.08rem; border-left: 4px solid var(--cyan); border-radius: 0.5rem; box-shadow: none; } .callout--warning { border-left-color: var(--amber); } .callout--coral { border-left-color: var(--coral); } .callout strong { color: var(--text); } .callout p { margin: 0.32rem 0 0; } .method-list { display: grid; gap: 1rem; } .method { padding: 1.2rem; box-shadow: none; } .method h3 { font-family: "SFMono-Regular", Consolas, monospace; font-size: 1rem; } .method dl { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.46rem 0.9rem; margin: 0.9rem 0 0; } .method dt { color: var(--subtle); font-weight: 850; } .method dd { margin: 0; color: var(--muted); } .table-wrap { max-width: 100%; margin: 1.2rem 0; overflow-x: auto; box-shadow: none; } table { width: 100%; border-collapse: collapse; font-size: 0.9rem; } th, td { padding: 0.76rem 0.86rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; } th { background: #102638; color: var(--text); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; } td { color: var(--muted); } tr:last-child td { border-bottom: 0; } .metric { color: var(--green); font-weight: 900; } .benchmark-grid { display: grid; gap: 1.25rem; } .benchmark-figure { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); } .benchmark-figure img { width: 100%; height: auto; } .benchmark-scroll { overflow-x: auto; scrollbar-color: var(--border-strong) var(--surface); } .benchmark-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; } .benchmark-figure figcaption { padding: 1rem 1.2rem 1.15rem; border-top: 1px solid var(--border); color: var(--muted); } .result-panel { padding: 1.35rem; box-shadow: none; } .live-shell { padding-block: clamp(3rem, 8vw, 6rem); } .playground-page { padding-bottom: clamp(4rem, 8vw, 7rem); } .playground-page section[id] { scroll-margin-top: 6rem; } .playground-frame { display: block; width: 100%; min-height: 42rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-code); box-shadow: var(--shadow); } .playground-recipes { margin-top: clamp(4rem, 8vw, 7rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--border); } .recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } .recipe-card { display: flex; min-width: 0; flex-direction: column; } .recipe-card .code-block { flex: 1; } .recipe-card .actions { margin-top: auto; } .playground-next { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr); gap: 2rem; align-items: end; margin-top: clamp(4rem, 8vw, 7rem); padding: clamp(1.4rem, 4vw, 2.3rem); border: 1px solid var(--border); border-radius: var(--radius); background: rgb(10 23 35 / 0.88); } .playground-next p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); } .playground-next .actions { justify-content: flex-end; margin-top: 0; } .site-footer { border-top: 1px solid var(--border); background: rgb(3 9 15 / 0.72); } .site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.7rem; } .site-footer p { margin: 0; color: var(--subtle); font-size: 0.84rem; } .site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem; font-size: 0.84rem; } @media (max-width: 62rem) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 48rem) { .site-header { position: static; } .site-header__inner, .site-footer__inner { align-items: flex-start; flex-direction: column; } .site-nav ul, .site-footer nav { justify-content: flex-start; } .hero, .page-layout, .grid--two, .playground-next { grid-template-columns: minmax(0, 1fr); } .hero { padding-block: 3.4rem; } .side-index { position: static; order: -1; } .recipe-grid { grid-template-columns: minmax(0, 1fr); } .playground-frame { min-height: 57rem; } .playground-next .actions { justify-content: flex-start; } .prose section[id], .playground-page section[id] { scroll-margin-top: 1rem; } .benchmark-scroll img { width: 50rem; max-width: none; } } @media (max-width: 34rem) { .site-shell { width: min(100% - 1.4rem, var(--content)); } .grid { grid-template-columns: minmax(0, 1fr); } .site-nav a { padding-inline: 0.48rem; font-size: 0.8rem; } .method dl { grid-template-columns: 1fr; } } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; } }