@font-face { font-family: Roboto; src: url('../tests/fonts/roboto/roboto-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; } @font-face { font-family: Roboto; src: url('../tests/fonts/roboto/roboto-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; } @font-face { font-family: 'Playfair Display'; src: url('../tests/fonts/playfair-display/playfair-display-latin-wght-normal.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; } @font-face { font-family: 'Playfair Display'; src: url('../tests/fonts/playfair-display/playfair-display-latin-wght-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; } @font-face { font-family: Merriweather; src: url('../tests/fonts/merriweather/merriweather-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; } @font-face { font-family: Merriweather; src: url('../tests/fonts/merriweather/merriweather-latin-wght-italic.woff2') format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; } @font-face { font-family: Lobster; src: url('../tests/fonts/lobster/lobster-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; } :root { --ink: #101113; --muted: #737987; --line: #dcdfe5; --blue: #0057ff; --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-family: Roboto, Arial, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; } *, *::before, *::after { box-sizing: border-box; } html { scroll-behavior: smooth; scroll-padding-top: 24px; } body { margin: 0; font-size: 16px; line-height: 1.5; } button, input, select { font: inherit; } button { cursor: pointer; } button:disabled { cursor: wait; opacity: .6; } a { color: inherit; text-underline-offset: 4px; } a:hover { color: var(--blue); } [hidden] { display: none !important; } :focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; } ::selection { background: #d9e6ff; } h1, h2, h3, p, figure { margin: 0; } h1, h2 { font-weight: 800; letter-spacing: -.055em; line-height: 1.04; } h2 { font-size: clamp(34px, 4.3vw, 54px); } code, pre { font-family: var(--mono); } pre { margin: 0; overflow-x: auto; font-size: 13px; line-height: 1.8; tab-size: 2; } pre code { font-size: inherit; } .shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; } .eyebrow, .panel-label { font-family: var(--mono); font-size: 11px; letter-spacing: .085em; color: var(--muted); } .eyebrow { margin-bottom: 20px; } .button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 22px; border: 1px solid transparent; border-radius: 2px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; } .button-blue { background: var(--blue); color: #fff; } .button-blue:hover { background: #0049d9; color: #fff; } .button-outline { border-color: #a8aeb9; color: #414957; background: #fff; } .button-outline:hover { border-color: var(--blue); } .text-link { color: var(--blue); text-decoration: none; } .text-link:hover { text-decoration: underline; } .site-nav { display: flex; align-items: center; gap: 26px; min-height: 88px; } .brand { font-size: 30px; font-weight: 800; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; } .brand-caption { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; color: var(--muted); } .site-nav nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; } .site-nav nav a:not(.button) { text-decoration: none; } .hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 42px; padding-block: 46px 40px; } h1 { font-size: clamp(44px, 5.6vw, 72px); } .hero-description { max-width: 450px; margin-block: 24px 28px; color: var(--muted); font-size: 18px; line-height: 1.5; } .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; } .install-command { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 9px 12px; background: #f3f4f6; border-radius: 2px; color: #3c4351; font: 14px var(--mono); } .install-command button { border: 0; background: transparent; color: var(--muted); font: 11px var(--mono); margin-left: 12px; padding: 3px; } .hero-specimen { border: 1px solid var(--line); min-width: 0; } .panel-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 8px 14px; border-bottom: 1px solid var(--line); } .panel-label button { border: 0; background: transparent; color: inherit; padding: 0; font: 12px Roboto, sans-serif; } #specimen-stage { padding: 16px 12px 20px; } #specimen-stage canvas { display: block; width: 100% !important; height: auto !important; } .canvas-fallback { font: 400 42px/1.2 'Playfair Display', Georgia, serif; padding: 12px; } .benefits { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 26px; border-top: 1px solid var(--line); } .benefits div { padding-inline: 36px; border-right: 1px solid var(--line); } .benefits div:first-child { padding-left: 0; } .benefits div:last-child { padding-right: 0; border: 0; } .benefits h2 { margin-bottom: 5px; font: 500 12px/1.5 var(--mono); letter-spacing: .1em; } .benefits p { color: var(--muted); font-size: 14px; } .section { position: relative; padding-block: 58px; } .section::before, .layout-section::before { content: ''; position: absolute; height: 1px; top: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--line); } .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 30px; } .section-description { max-width: 450px; color: var(--muted); line-height: 1.5; } .section-description .button { margin-top: 18px; } .code-to-canvas { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; } .example-tabs { display: flex; gap: 4px; margin-bottom: 16px; } .example-tabs button { border: 0; background: transparent; padding: 6px 12px; color: var(--muted); font-size: 13px; } .example-tabs button[aria-pressed='true'] { background: #edf3ff; color: var(--blue); } .code-panel { min-width: 0; background: #22272b; color: #f1f2f3; border: 1px solid #22272b; border-radius: 2px; } .code-panel .panel-label { border-color: #3b4045; color: #b9bdc4; } .code-panel pre { padding: 22px 24px; } .t-kw { color: #7ec6ff; } .t-str { color: #ffac75; } .t-num { color: #becbfa; } .t-cm { color: #929ba5; } .example-output { min-width: 0; border: 1px solid var(--line); } #showcase-render { min-height: 185px; display: flex; justify-content: center; align-items: center; padding: 24px 14px; } #showcase-render canvas { display: block; max-width: 100%; height: auto !important; } .example-note { margin-top: 12px; color: var(--muted); font-size: 12px; } .layout-section { position: relative; display: grid; grid-template-columns: 1fr 1.05fr .75fr; gap: 32px; padding-block: 52px; align-items: center; } .layout-copy p:not(.eyebrow) { color: var(--muted); margin-block: 22px 16px; font-size: 15px; } .layout-copy .text-link { font-size: 14px; } .layout-copy h2 { font-size: clamp(32px, 3.7vw, 44px); } .layout-inspector { min-width: 0; border: 1px solid var(--line); } .layout-inspector .panel-label { font-size: 9px; padding-inline: 12px; } #layout-preview { min-height: 170px; padding: 18px 10px 8px; display: flex; justify-content: center; align-items: center; } #layout-preview canvas { display: block; max-width: 100%; height: auto !important; } .geometry-controls { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; } .geometry-controls input { width: 100%; min-width: 40px; accent-color: var(--blue); } .geometry-controls span { white-space: nowrap; } .geometry-controls output { font-family: var(--mono); } .geometry-note { color: var(--muted); font-size: 10px; padding: 0 12px 12px; } .docs-links { align-self: stretch; border-left: 1px solid var(--line); padding-left: 30px; } .docs-links .eyebrow { margin: 0 0 16px; } .docs-links a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; text-decoration: none; color: var(--muted); font-size: 14px; } .docs-links a:first-of-type { color: var(--blue); } .docs-links a:hover { color: var(--blue); } .playground-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 12px 22px; } .width-ctrl { display: flex; align-items: center; gap: 12px; color: #4c5360; font-size: 13px; } .width-ctrl input { width: clamp(120px, 20vw, 260px); accent-color: var(--blue); } .width-ctrl output { width: 28px; font-family: var(--mono); } .render-time { color: var(--muted); font: 12px var(--mono); } .render-time strong { color: var(--ink); font-weight: 400; } .demo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } .demo-panel { min-width: 0; border: 1px solid var(--line); } .demo-bar { display: flex; flex-wrap: wrap; align-items: center; padding: 7px 14px; min-height: 46px; gap: 4px; border-bottom: 1px solid var(--line); background: #fafbfc; } .demo-bar button { min-width: 27px; height: 28px; border: 0; color: #454b57; border-radius: 2px; background: transparent; font-size: 13px; } .demo-bar button:hover, .demo-bar button.active { background: #dfeaff; color: var(--blue); } .demo-bar .sep { height: 20px; border-left: 1px solid var(--line); margin-inline: 4px; } .color-control { display: inline-flex; margin-left: 6px; } .color-control input { border: 0; padding: 0; width: 24px; height: 24px; background: transparent; cursor: pointer; } .demo-body { padding: 24px; overflow: auto; min-height: 340px; } #canvas-frame { padding-top: 70px; } #canvas-frame canvas { display: block; max-width: none; } #editor { outline: 0; max-width: none; font: 16px/1.6 Roboto, sans-serif; color: #101113; min-height: 260px; } #editor:focus-visible { box-shadow: 0 0 0 2px #d9e6ff; } #editor p { margin: 0 0 12px; } #editor h2 { font: 400 32px/1.2 'Playfair Display', Georgia, serif; letter-spacing: 0; margin: 0 0 14px; } #editor h1 { font: 700 40px/1.2 'Playfair Display', Georgia, serif; letter-spacing: 0; margin: 0 0 14px; } #editor ul, #editor ol { margin: 1em 0; padding-left: 24px; } .section-footnote { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: 12px; } .section-footnote a { color: var(--blue); text-decoration: none; } .section-footnote a:hover { text-decoration: underline; } .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; } .feature-card { border: 1px solid var(--line); min-width: 0; } .feature-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); } .feature-top h3 { font-size: 14px; font-weight: 500; } .feature-top span { color: #9298a3; font: 10px var(--mono); } .feature-canvas { display: flex; align-items: center; padding: 22px 18px; min-height: 245px; overflow: hidden; } .feature-canvas canvas { display: block; max-width: 100%; } .feature-toggle { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); padding: 10px 18px; background: #fff; text-align: left; color: var(--muted); font-size: 12px; } .feature-toggle:hover { color: var(--blue); } .feature-source { background: #fafbfc; padding: 18px; border-top: 1px solid var(--line); max-height: 260px; font-size: 11px; } .motion-band { --band-line: #262b33; --band-muted: #8d95a3; background: #0d0f12; color: #f1f2f3; } .motion-band .section::before, .motion-band + .section::before { display: none; } .motion-band .eyebrow, .motion-band .section-description { color: var(--band-muted); } .motion-band .text-link { color: #7aa7ff; } .motion-band ::selection { background: #2b4a8a; } .motion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; } .motion-card { min-width: 0; border: 1px solid var(--band-line); background: #121519; } .motion-wide { grid-column: span 2; } .motion-top { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--band-line); } .motion-top h3 { font-size: 14px; font-weight: 500; } .motion-hint { color: var(--band-muted); font-size: 12px; } .motion-meta { margin-left: auto; color: var(--band-muted); font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; } .motion-replay { border: 0; border-radius: 2px; background: transparent; color: var(--band-muted); padding: 4px 8px; font-size: 15px; line-height: 1; } .motion-replay:hover { background: var(--band-line); color: #fff; } .motion-stage { position: relative; min-height: 250px; overflow: hidden; } .motion-wide .motion-stage, .motion-stage-video { min-height: 340px; } .motion-wide .motion-stage { background: radial-gradient(60% 70% at 50% 45%, #1a2133, transparent); } .motion-stage-video { background: radial-gradient(90% 80% at 15% 0%, #3d2a70, transparent 65%), radial-gradient(80% 70% at 95% 100%, #0d4d6b, transparent 65%), #15131c; } .motion-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; } .motion-card .feature-toggle { background: transparent; border-top-color: var(--band-line); color: var(--band-muted); } .motion-card .feature-toggle:hover { color: #fff; } .motion-card .feature-source { background: #0b0d10; border-top-color: var(--band-line); color: #e6e8eb; max-height: 380px; } .motion-loop { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; margin-top: 48px; } .motion-loop h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; } .motion-loop p:not(.eyebrow) { color: var(--band-muted); margin-block: 16px; font-size: 15px; } .motion-loop p code { color: #f1f2f3; } .motion-loop .text-link { font-size: 14px; } .motion-loop .code-panel { border-color: var(--band-line); } .benchmark-table-wrap { overflow-x: auto; border-block: 1px solid var(--line); } .benchmark-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; } .benchmark-table th { font-weight: 500; } .benchmark-table td, .benchmark-table th { padding: 16px 10px; border-bottom: 1px solid var(--line); } .benchmark-table tr:last-child > * { border-bottom: 0; } .benchmark-table thead th { font: 11px var(--mono); color: var(--muted); } .benchmark-table tbody th { width: 220px; } .benchmark-table small { display: block; color: var(--muted); font: 10px var(--mono); margin-top: 3px; } .bench-bar-cell { width: 42%; } .bench-bar { height: 8px; width: 0; background: #d1d5dc; transition: width .3s; } [data-bench='render-tag'] .bench-bar { background: var(--blue); } [data-bench='render-tag'] th, [data-bench='render-tag'] .bench-time { color: var(--blue); } .bench-time, .bench-ratio { font: 14px var(--mono); white-space: nowrap; } .bench-ratio { color: var(--muted); } .bench-status { color: var(--muted); font-size: 12px; } .benchmark-cache-note { color: #4c5360; font-size: 13px; margin-bottom: 20px; } .benchmark-note { font-size: 13px; color: var(--muted); margin-top: 16px; } .benchmark-details { margin-top: 20px; font-size: 13px; color: var(--muted); } .benchmark-details summary { cursor: pointer; color: var(--ink); } .benchmark-details > p { margin-top: 12px; max-width: 850px; } .perf-outputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; } .perf-output { min-width: 0; border: 1px solid var(--line); padding: 16px; background: #fff; } .perf-output figcaption { color: var(--ink); font-size: 12px; margin-bottom: 12px; } .perf-output canvas { display: block; width: 100%; height: auto; } .bench-fixture { position: fixed; left: -10000px; top: 0; width: 400px; background: #fff; color: #101113; font: 16px/normal Roboto, sans-serif; } .api-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border: 1px solid #3b4045; background: #22272b; padding: 8px 14px; } .api-tabs button { border: 0; background: transparent; color: #b9bdc4; font-size: 13px; padding: 8px 12px; } .api-tabs button[aria-selected='true'] { color: #fff; background: #3b424a; border-radius: 2px; } .api-tabs .code-copy { margin-left: auto; } .api-code-panels { background: #22272b; color: #f1f2f3; border-radius: 0 0 2px 2px; } .api-code-panels pre { padding: 26px; } .api-note { color: var(--muted); font-size: 13px; margin-top: 16px; } .api-summary { display: flex; justify-content: space-between; gap: 24px; margin-top: 26px; font-size: 13px; color: var(--muted); } .api-summary code { color: var(--ink); } .site-footer { display: flex; align-items: center; gap: 28px; border-top: 1px solid var(--line); padding-block: 24px; font-size: 12px; color: var(--muted); } .site-footer .brand { font-size: 23px; color: var(--ink); } .site-footer nav { margin-left: auto; display: flex; gap: 24px; } .site-footer nav a { text-decoration: none; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .skip-link { position: fixed; top: -60px; left: 20px; z-index: 10; background: #fff; padding: 10px 18px; border: 1px solid var(--blue); } .skip-link:focus { top: 12px; } .demo-error { color: #b42318; font-size: 13px; } @media (min-width: 1350px) { h1 { font-size: 76px; } } @media (max-width: 1100px) { .brand-caption { display: none; } .hero { gap: 28px; } .hero-actions { gap: 10px; } .hero-actions .button { padding-inline: 16px; font-size: 14px; } .layout-section { grid-template-columns: 1fr 1fr; } .docs-links { grid-column: 1 / -1; border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; display: flex; align-items: center; flex-wrap: wrap; column-gap: 24px; } .docs-links .eyebrow { margin: 0; } .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .motion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .motion-stage-video { min-height: 250px; } .section-description { max-width: 360px; } } @media (max-width: 760px) { .shell { width: calc(100% - 40px); } .site-nav { min-height: 76px; gap: 16px; flex-wrap: wrap; padding-block: 16px; } .site-nav .brand { font-size: 26px; } .site-nav nav { gap: 16px; font-size: 12px; } .site-nav nav .button { display: none; } .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 32px; } h1 { font-size: clamp(46px, 8.5vw, 66px); } .hero-description { font-size: 17px; } .hero-specimen { max-width: 540px; width: 100%; } .benefits { grid-template-columns: 1fr; gap: 18px; } .benefits div { padding: 0; border: 0; } .section { padding-block: 40px; } .section-head { display: block; } .section-description { margin-top: 20px; max-width: none; font-size: 15px; } .code-to-canvas, .demo-stack { grid-template-columns: 1fr; } .layout-section { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; } .layout-inspector { width: min(420px, 100%); } .docs-links { display: block; border-top: 1px solid var(--line); padding-top: 24px; } .docs-links .eyebrow { margin-bottom: 8px; } #canvas-frame { padding-top: 24px; } .demo-body { min-height: 280px; } .feature-grid { gap: 16px; } .feature-canvas { min-height: 235px; } .motion-grid { gap: 16px; } .motion-hint { display: none; } .motion-loop { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; } .perf-outputs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bench-bar-cell { display: none; } .benchmark-table tbody th { width: auto; } .api-tabs { padding: 6px; } .api-tabs button { font-size: 12px; padding: 8px; } .api-summary { flex-direction: column; gap: 10px; } .site-footer { flex-wrap: wrap; gap: 14px; } .site-footer nav { margin-left: 0; width: 100%; gap: 20px; } } @media (max-width: 480px) { .feature-grid, .perf-outputs, .motion-grid { grid-template-columns: 1fr; } .motion-wide { grid-column: auto; } .motion-wide .motion-stage { min-height: 280px; } .width-ctrl { gap: 8px; } .width-ctrl input { width: 120px; } .hero-actions .button { padding-inline: 14px; } .site-nav nav { gap: 12px; } .code-panel pre, .api-code-panels pre { padding: 18px; font-size: 12px; } } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bench-bar { transition: none; } }