@import "@refs/design-system/styles.css"; @source "./"; .landing ::selection { background: var(--accent-tint); } .landing :is(a, button, input):focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; } .landing input { caret-color: var(--accent-hover); } .landing ::-webkit-scrollbar { height: 6px; } .landing ::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; } .landing-globe { mask-image: radial-gradient(ellipse 34% 26% at 50% 30%, rgb(0 0 0 / 0.12), rgb(0 0 0 / 0.55) 65%, #000 100%), linear-gradient(to bottom, transparent, #000 18%, #000 85%, transparent); mask-composite: intersect; } @media (max-width: 767px) { .landing-globe { mask-image: radial-gradient(ellipse 70% 30% at 50% 28%, rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.5) 65%, #000 100%), linear-gradient(to bottom, transparent, #000 15%, #000 88%, transparent); } } @keyframes landing-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; } } @keyframes landing-fade { from { opacity: 0; } } @keyframes landing-ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--needs) 55%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } } .landing .landing-fade { animation: landing-fade 400ms var(--ease-out) both; } @media (prefers-reduced-motion: no-preference) { .landing .landing-pop { animation: landing-pop 360ms var(--ease-out) both; } .landing .landing-ping { animation: landing-ping 1.4s ease-out infinite; } } @keyframes scroll-reveal { from { opacity: 0; transform: translateY(32px) scale(0.98); } to { opacity: 1; transform: none; } } @keyframes scroll-fade { from { opacity: 0; } to { opacity: 1; } } @supports (animation-timeline: view()) { .landing .scroll-reveal { animation: scroll-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; } @media (prefers-reduced-motion: reduce) { .landing .scroll-reveal { animation-name: scroll-fade; } } } @keyframes record-write { from { opacity: 0.001; clip-path: inset(0 100% 0 0); filter: blur(2px); } to { opacity: 1; clip-path: inset(0 0 0 0); filter: blur(0); } } @media (prefers-reduced-motion: no-preference) { .landing .live-decision { animation: record-write 600ms var(--ease-out) both; } } @keyframes fanout-in { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } to { opacity: 1; transform: none; filter: blur(0); } } @media (prefers-reduced-motion: no-preference) { .landing .landing-fanout-in { animation: fanout-in 500ms var(--ease-out) both; } } /* * Code map. One canvas from folders down to code: the level of detail follows the zoom, and labels grow * as the map shrinks (`--inv` is 1 / scale), so they stay readable at every level. */ .code-map { background-image: radial-gradient(var(--hairline) 1px, transparent 1.2px); background-size: 22px 22px; } .code-map-world { --inv: 1; } .code-map-node { border-radius: var(--radius-control); contain: layout style; } /* Blocks off screen skip layout and paint, so a change of level only draws what the reader can see. */ .code-map-node:is([data-role="code"], [data-role="file"]) { content-visibility: auto; contain-intrinsic-size: auto 200px; } .code-map-node[data-role="folder"] { border-radius: var(--radius-sheet); background: color-mix(in oklab, var(--ink) 2%, transparent); box-shadow: inset 0 0 0 1px var(--hairline); } .code-map-node[data-role="file"] { border-radius: var(--radius-panel); background: var(--ground); box-shadow: var(--elevation-card); } .code-map-node[data-role="class"] { background: var(--sunken); box-shadow: inset 0 0 0 1px var(--hairline); } .code-map-node[data-role="code"] { overflow: hidden; cursor: pointer; background: var(--panel); box-shadow: var(--elevation-card); } .code-map-node[data-role="code"]:hover { box-shadow: 0 0 0 1px var(--line); } .code-map-node[data-role="folder"] { cursor: zoom-in; } .code-map-node:is([data-role="file"], [data-role="class"]) { cursor: pointer; } .code-map-node:is([data-role="file"], [data-role="class"]):hover { box-shadow: 0 0 0 1px var(--line), var(--elevation-card); } .code-map-head { position: absolute; inset-inline: 10px; top: 7px; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; pointer-events: none; } .code-map-node[data-role="folder"] > .code-map-head { inset-inline: 16px; top: 13px; } .code-map-name { overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink); letter-spacing: 0; } .code-map-node[data-role="folder"] > .code-map-head .code-map-name { color: var(--muted); } .code-map-kind { flex: none; height: 18px; padding: 0 6px; border-radius: var(--radius-chip); background: var(--hover); color: var(--muted); font-size: var(--text-xs); font-weight: 500; line-height: 18px; letter-spacing: 0; } .code-map-meta { display: none; position: absolute; left: 12px; white-space: nowrap; color: var(--faint); letter-spacing: 0; pointer-events: none; } .code-map-code { position: absolute; inset-inline: 0; margin: 0; padding: 0 10px; overflow: hidden; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); white-space: pre; letter-spacing: 0; } .code-map-code [data-added] { background: var(--success-tint); color: var(--ink); } .code-map-diff { --sc: min(var(--inv), 2.5); position: absolute; top: -10px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: var(--radius-chip); background: var(--raised); box-shadow: var(--elevation-control); font: 500 var(--text-xs) var(--font-mono); white-space: nowrap; transform: scale(var(--sc)); transform-origin: 100% 0; pointer-events: none; } .code-map-node[data-role="file"] > .code-map-diff { --sc: var(--inv); } .code-map-node[data-role="folder"] > .code-map-diff { display: none; } .code-map-station { position: absolute; top: -10px; right: -10px; z-index: 3; width: 22px; height: 22px; border-radius: 9999px; background: var(--panel); box-shadow: inset 0 0 0 2px var(--porcelain); color: var(--ink); font: 600 var(--text-xs) / 22px var(--font-sans); text-align: center; font-variant-numeric: tabular-nums; transform: scale(var(--inv)); transform-origin: 100% 0; pointer-events: none; } .code-map-node[data-active] > .code-map-station { box-shadow: inset 0 0 0 3.5px var(--porcelain); } .code-map-node[data-traced] { box-shadow: 0 0 0 2px var(--porcelain); } .code-map-node[data-active], .code-map-node[data-current] { box-shadow: 0 0 0 2px var(--porcelain), 0 0 0 7px color-mix(in oklab, var(--porcelain) 20%, transparent); } .code-map[data-level="architecture"] .code-map-node:is([data-role="code"], [data-role="class"]), .code-map[data-level="architecture"] .code-map-kind, .code-map[data-level="package"] .code-map-node:not([data-role="code"]) > .code-map-head .code-map-kind, .code-map:is([data-level="architecture"], [data-level="package"]) .code-map-code { display: none; } .code-map:is([data-level="architecture"], [data-level="package"]) .code-map-node:is([data-role="folder"], [data-role="file"]) > :is(.code-map-head, .code-map-diff) { display: none; } .code-map[data-level="architecture"] .code-map-node[data-holds][data-role="file"] { box-shadow: 0 0 0 2px var(--porcelain); } .code-map[data-level="package"] .code-map-node[data-role="code"] > .code-map-head .code-map-kind { display: none; } .code-map[data-level="package"] .code-map-node[data-role="code"] > .code-map-head .code-map-name { font-size: calc(var(--text-xs) * min(var(--inv), 2.2)); } .code-map[data-level="module"] .code-map-code { opacity: 0.3; } .code-map[data-level="module"] .code-map-node[data-role="code"] > .code-map-head .code-map-name { font-size: calc(var(--text-xs) * min(var(--inv), 1.6)); } .code-map-review .code-map-node[data-status="none"] { opacity: 0.35; } .code-map-review .code-map-node:is([data-role="file"], [data-role="code"]):is([data-status="changed"], [data-status="added"]):not([data-traced], [data-current]) { box-shadow: 0 0 0 1.5px var(--ink), var(--elevation-card); } .code-map-review .code-map-node[data-role="folder"]:is([data-status="changed"], [data-status="added"]) > .code-map-head .code-map-name { color: var(--ink); } /* Zoomed out, blocks are too small for their shadow rings, and painting 1,000 rings made a change of level slow. */ .code-map:is([data-level="architecture"], [data-level="package"]) .code-map-node:is([data-role="code"], [data-role="file"]) { box-shadow: inset 0 0 0 1px var(--hairline); } /* While the map moves to another level, a light sweeps it, after a short wait so a fast move shows nothing. */ .code-map-settling { opacity: 0; animation: code-map-settling 1ms 150ms forwards; } @keyframes code-map-settling { to { opacity: 1; } } /* A name in a code card that the reader can follow to its definition. */ .code-map-ref { padding: 0; border: 0; border-radius: 4px; background: none; font: inherit; color: var(--token-dark, inherit); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.22em; cursor: pointer; transition: text-decoration-color 150ms ease, background-color 150ms ease; } :root[data-mode="light"] .code-map-ref { color: var(--token-light, inherit); } .code-map-ref:hover { background: var(--hover); text-decoration-color: currentColor; } .code-map-ref[data-next] { background: var(--hover); text-decoration: none; box-shadow: 0 0 0 1.5px var(--porcelain); } @media (prefers-contrast: more) { .code-map-ref { text-decoration-color: currentColor; } } /* Docs headings link to themselves, so a reader can copy the address of a section. */ .docs-article :is(h2, h3) { scroll-margin-top: 76px; } .docs-article :is(h2, h3) > a { color: inherit; text-decoration: none; } .docs-article :is(h2, h3) > a:hover { text-decoration: underline; text-decoration-color: var(--line); } .docs-article { max-width: 78ch; } .docs-article table { display: block; overflow-x: auto; } /* * Landing stage. A product scene sits on a grainy ink field with a faint grid, so it reads as a * picture of the product, not as one more card. Monochrome on purpose: the line inks stay for lines. */ .landing-stage { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(110% 80% at 50% 0%, color-mix(in oklab, var(--porcelain) 20%, transparent), transparent 62%), radial-gradient(70% 60% at 100% 100%, color-mix(in oklab, var(--porcelain) 10%, transparent), transparent 70%), var(--sunken); box-shadow: inset 0 0 0 1px var(--hairline); } .landing-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; mask-image: radial-gradient(90% 80% at 50% 30%, #000, transparent 85%); } .landing-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.22; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); } .landing-stage > :not(.landing-art) { position: relative; } /* Blueprint rails: two hairlines frame the content column, and a cross marks where each section starts. */ .landing-rails { position: relative; } @media (min-width: 1100px) { .landing-rails::before { content: ""; position: absolute; inset: 0 calc(50% - 540px); pointer-events: none; box-shadow: inset 1px 0 0 var(--hairline), inset -1px 0 0 var(--hairline); z-index: 1; } .landing-band { position: relative; } .landing-band::before, .landing-band::after { content: ""; position: absolute; top: -6px; width: 13px; height: 13px; z-index: 2; pointer-events: none; background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; } .landing-band::before { left: calc(50% - 546px); } .landing-band::after { right: calc(50% - 546px); } } .landing-band { box-shadow: inset 0 1px 0 var(--hairline); } /* A grid of cells that share their hairlines, as one table of the product. */ .landing-cells { display: grid; gap: 1px; background: var(--hairline); border-radius: var(--radius-sheet); overflow: hidden; box-shadow: 0 0 0 1px var(--hairline); } .landing-cells > * { background: var(--ground); } @keyframes landing-caret { 50% { opacity: 0; } } @media (prefers-reduced-motion: no-preference) { .landing .landing-caret { animation: landing-caret 1.1s steps(1) infinite; } } /* Generated line art, used as a mask and painted with a token, so one file serves both themes. */ .landing-art { position: absolute; inset: 0; pointer-events: none; mask-image: var(--art), linear-gradient(to bottom, transparent 30%, #000 85%); mask-size: cover, 100% 100%; mask-position: center bottom, 0 0; mask-repeat: no-repeat; mask-composite: intersect; background: linear-gradient(100deg, transparent 40%, color-mix(in oklab, var(--ink) 45%, transparent) 50%, transparent 60%) 0 0 / 300% 100% no-repeat, color-mix(in oklab, var(--porcelain) 20%, transparent); } .landing-stage:has(> .landing-art)::before { display: none; } @keyframes landing-art-sweep { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } } @media (prefers-reduced-motion: no-preference) { .landing .landing-art { animation: landing-art-sweep 7s linear infinite; } } @media (prefers-reduced-motion: reduce) { .landing-art { background: color-mix(in oklab, var(--porcelain) 20%, transparent); } }