The agent that turns websites into APIs!
@import 'tailwindcss';
/* Dark mode: <html class="dark"> activates these variant utilities. */
@custom-variant dark (&:where(.dark, .dark *));
/* ─── Design tokens (Tailwind v4 @theme) ────────────────────────────────── */
@theme {
--font-sans: var(--font-inter), ui-sans-serif, system-ui, sans-serif;
--font-display: var(--font-fraunces), ui-serif, Georgia, 'Times New Roman', serif;
--font-mono: var(--font-jetbrains-mono), 'JetBrains Mono', 'SF Mono',
Menlo, Monaco, Consolas, monospace;
/* Brand palette */
--color-ink: #1f1f1f;
--color-ink-soft: #1f1f1fcc;
--color-cream: #fff7f0;
--color-cream-soft: #fef8ee;
--color-orange: #ffe7d4;
--color-sky: #d6efff;
--color-mint: #d5f1de;
--color-washed: #f5f2ee;
--color-fd-background: #fff7f0;
--color-fd-foreground: #1f1f1f;
--color-fd-primary: #e50d75;
--color-fd-primary-foreground: #fff7f0;
--color-fd-ring: #e50d75;
--color-fd-accent: #ffe1eb;
--color-fd-accent-foreground: #1f1f1f;
--color-fd-card: #ffffff;
--color-fd-card-foreground: #1f1f1f;
--color-fd-muted: #f5f2ee;
--color-fd-muted-foreground: #1f1f1f99;
--color-fd-border: #1f1f1f1a;
}
/* ─── Dark mode overrides ──────────────────────────────────────────────── */
.dark {
--color-ink: #fff7f0;
--color-ink-soft: #fff7f0bb;
--color-cream: #14110e;
--color-cream-soft: #1c1814;
--color-orange: #3a1d0e;
--color-sky: #0d1b2e;
--color-mint: #0e2419;
--color-washed: #1a1612;
--color-fd-background: #14110e;
--color-fd-foreground: #fff7f0;
--color-fd-primary: #ff3d8b;
--color-fd-primary-foreground: #14110e;
--color-fd-ring: #ff3d8b;
--color-fd-accent: #2a1a22;
--color-fd-accent-foreground: #fff7f0;
--color-fd-card: #1c1814;
--color-fd-card-foreground: #fff7f0;
--color-fd-muted: #1a1612;
--color-fd-muted-foreground: #fff7f0aa;
--color-fd-border: #fff7f014;
}
/* ─── Base ──────────────────────────────────────────────────────────────── */
html {
scrollbar-gutter: stable;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
body {
background-color: var(--color-cream);
color: var(--color-ink);
}
/* ─── Background utilities ──────────────────────────────────────────────── */
@utility bg-grid {
background-image:
linear-gradient(to right, color-mix(in oklch, var(--color-ink) 7%, transparent) 1px, transparent 1px),
linear-gradient(to bottom, color-mix(in oklch, var(--color-ink) 5%, transparent) 1px, transparent 1px);
background-size: 48px 48px;
}
@utility bg-engineering {
background-image:
linear-gradient(to right, color-mix(in oklch, var(--color-ink) 7%, transparent) 1px, transparent 1px),
linear-gradient(to bottom, color-mix(in oklch, var(--color-ink) 5%, transparent) 1px, transparent 1px);
background-size: 80px 80px, 80px 80px;
background-position: -1px -1px;
}
@utility bg-dots {
background-image: radial-gradient(
color-mix(in oklch, var(--color-ink) 80%, transparent) 1px,
transparent 1px
);
background-size: 22px 22px;
}
@utility bg-scanlines {
background-image: repeating-linear-gradient(
to bottom,
transparent 0px,
transparent 2px,
color-mix(in oklch, var(--color-ink) 5%, transparent) 2px,
color-mix(in oklch, var(--color-ink) 5%, transparent) 3px
);
}
@utility mask-fade-y {
mask-image: linear-gradient(to bottom, transparent, black 12%, black 80%, transparent);
-webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 80%, transparent);
}
.bg-color-mesh {
background:
radial-gradient(70% 65% at 0% 0%, #fec5d4 0%, transparent 65%),
radial-gradient(60% 60% at 100% 0%, #fff0e1 0%, transparent 70%),
radial-gradient(60% 60% at 0% 100%, #ffd9c2 0%, transparent 70%),
radial-gradient(70% 70% at 100% 100%, #fde0d3 0%, transparent 65%),
var(--color-cream);
}
.dark .bg-color-mesh {
background:
radial-gradient(70% 65% at 0% 0%, #3a1822 0%, transparent 65%),
radial-gradient(60% 60% at 100% 0%, #2a1f15 0%, transparent 70%),
radial-gradient(60% 60% at 0% 100%, #2d1810 0%, transparent 70%),
radial-gradient(70% 70% at 100% 100%, #281410 0%, transparent 65%),
var(--color-cream);
}
.bg-pastel-radial {
background: radial-gradient(
140% 90% at 30% 20%,
#c3f2d0 0%,
#b7ebff 50%,
#fee3cc 100%
);
}
.dark .bg-pastel-radial {
background: radial-gradient(
140% 90% at 30% 20%,
#1a2a22 0%,
#0d1b2e 50%,
#2a1810 100%
);
}
/* ─── Animations ────────────────────────────────────────────────────────── */
/* Cursor blink — used in terminal previews */
@keyframes blink {
0%, 49% { opacity: 1; }
50%, 100% { opacity: 0; }
}
.cursor-blink {
display: inline-block;
width: 2px;
height: 0.8em;
margin-left: 2px;
background: currentColor;
vertical-align: -0.08em;
border-radius: 1px;
animation: blink 0.9s linear infinite;
}
/* Hero cycling phrase — word cycling + underline draw */
.hero-phrase {
font-style: italic;
font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
font-weight: 400;
display: inline-block;
position: relative;
padding-bottom: 0.06em;
transition: opacity 0.26s ease, transform 0.26s ease;
}
.hero-phrase--in { opacity: 1; transform: translateY(0); }
.hero-phrase--out { opacity: 0; transform: translateY(-10px); }
@keyframes draw-underline {
from { transform: scaleX(0); }
to { transform: scaleX(1); }
}
.hero-phrase-line {
position: absolute;
left: 0; right: 0;
bottom: -0.05em;
height: 3px;
display: block;
background: var(--color-fd-primary);
border-radius: 2px;
transform-origin: left;
animation: draw-underline 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
/* ─── Marquee ────────────────────────────────────────────────────────────────
Seamless loop rules: the track duplicates its content and translates exactly
-50%, so (a) spacing must be baked into each cell (pr-*), NOT a flex `gap` on
the track — a gap between the two halves breaks periodicity and stutters; and
(b) one half must be wider than the viewport or you see an empty gap before
the duplicate catches up. See FeatureMarquee for the cell-repeat that ensures
(b). display:flex is applied via the `flex` utility on the element because
Lightning CSS drops it from this rule when combined with the props below. */
@keyframes marquee-scroll {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
.marquee-track {
align-items: center;
width: max-content;
animation: marquee-scroll linear infinite;
will-change: transform;
}
/* Vertical reel scroll for the /lab slot-machine agent variant. */
@keyframes agent-reel {
from { transform: translateY(0); }
to { transform: translateY(-33.333%); }
}
.marquee-track--rev {
animation-direction: reverse;
}
.marquee-viewport:hover .marquee-track {
animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
.marquee-track { animation: none; }
}
/* Soft fade at both edges so tags don't pop in/out at hard borders. */
.marquee-mask {
-webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}
/* ─── Lab gallery scaffolding ───────────────────────────────────────────────*/
/* Variant frame in the gallery. */
.lab-frame {
border: 1px solid color-mix(in oklch, var(--color-ink) 12%, transparent);
border-radius: 1rem;
overflow: hidden;
background: var(--color-fd-card);
}
.lab-chip {
font-family: var(--font-mono);
font-size: 0.65rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--color-ink-soft);
}
/* ─── Lab sticky-notes animations (N3) ──────────────────────────────────────
Notes drop in (la-note) then idle-sway; the CTA row rises in (la-rise).
Played when <Reveal> flips data-show to "true" on scroll-in. Disabled under
prefers-reduced-motion. --d = per-element delay, --r = resting rotation. */
@keyframes la-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes la-drop {
0% { opacity: 0; transform: translateY(-22px) rotate(var(--r, 0deg)); }
100% { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); }
}
@keyframes la-sway {
0%, 100% { transform: rotate(var(--r, 0deg)); }
50% { transform: rotate(calc(var(--r, 0deg) + 1.3deg)); }
}
.la-note {
width: min(var(--note-width, 22.5rem), calc(100vw - 2rem));
padding: 1.375rem 1.25rem 1.75rem;
}
.hero-art-frame {
width: clamp(16.25rem, 62vw, 32.5rem);
padding: 0.75rem;
border: 3px solid var(--color-ink);
background: #fff;
box-shadow: 10px 10px 0 0 var(--color-fd-primary);
}
.hero-art {
height: auto;
}
.hero-corner-note-left { top: -1.625rem; left: -2.125rem; }
.hero-corner-note-right { right: -2.5rem; bottom: 1.5rem; }
.hero-note-title { font-size: 1.9rem; }
@media (max-width: 39.999rem) {
.la-note { padding: 1rem 0.9rem 1.2rem; }
.hero-art-frame { width: min(82vw, 22rem); padding: 0.5rem; box-shadow: 7px 7px 0 0 var(--color-fd-primary); }
.hero-art { aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.hero-corner-note-card { width: min(var(--note-width), 56vw); }
.hero-corner-note-left { top: -1.125rem; left: -0.75rem; }
.hero-corner-note-right { right: -0.75rem; bottom: 0.75rem; }
.hero-note-title { font-size: clamp(1.15rem, 6vw, 1.55rem); }
.hero-install-note { width: calc(100vw - 2rem); }
}
[data-show="false"] .la-rise { opacity: 0; transform: translateY(18px); }
[data-show="false"] .la-note { opacity: 0; }
[data-show="true"] .la-rise { animation: la-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--d, 0s); }
[data-show="true"] .la-note {
animation:
la-drop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) var(--d, 0s) both,
la-sway 4.6s ease-in-out calc(var(--d, 0s) + 0.55s) infinite;
}
@media (prefers-reduced-motion: reduce) {
[data-show] .la-rise, [data-show] .la-note {
animation: none !important;
opacity: 1 !important;
transform: none !important;
}
}
/* ─── Lab: same-UI animation variants ───────────────────────────────────────
The production "how it works" spine and the split-flap agent board, with
only the animation swapped per variant. Scroll-triggered (via [data-show])
for entrances; continuous/hover otherwise. Disabled under reduced-motion. */
@keyframes lab-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
/* SPINE v1 — draw: line draws down, dots pop, steps rise (scroll) */
@keyframes sp-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
[data-show="false"] .sp-v1-line { transform: scaleY(0); }
[data-show="true"] .sp-v1-line { transform-origin: top; animation: sp-draw 0.9s cubic-bezier(0.16,1,0.3,1) both; }
[data-show="false"] .sp-v1-dot { opacity: 0; transform: scale(0); }
[data-show="true"] .sp-v1-dot { animation: lab-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) both; }
[data-show="false"] .sp-v1-step { opacity: 0; transform: translateY(16px); }
[data-show="true"] .sp-v1-step { animation: la-rise 0.6s cubic-bezier(0.16,1,0.3,1) both; }
/* SPINE v2 — stagger: dots + steps fade/rise in sequence (scroll) */
[data-show="false"] .sp-v2-dot, [data-show="false"] .sp-v2-step { opacity: 0; transform: translateY(14px); }
[data-show="true"] .sp-v2-dot, [data-show="true"] .sp-v2-step { animation: la-rise 0.55s cubic-bezier(0.16,1,0.3,1) both; }
/* SPINE v3 — fill: a pink line grows down forever; dots light as it passes */
@keyframes sp-fill { 0% { transform: scaleY(0); } 80%, 100% { transform: scaleY(1); } }
@keyframes sp-dotlight { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 8%, 20% { opacity: 1; transform: scale(1.25); } }
.sp-v3-fill { transform-origin: top; animation: sp-fill 5s ease-in-out infinite; }
.sp-v3-dot { animation: sp-dotlight 5s ease-in-out infinite; }
/* SPINE v4 — hover: steps dim until you hover their row */
.sp-v4-step { opacity: 0.45; transition: opacity 0.25s ease; }
.sp-v4-dot { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.sp-v4-row:hover .sp-v4-step { opacity: 1; }
.sp-v4-row:hover .sp-v4-dot { transform: scale(1.5); box-shadow: 0 0 0 6px color-mix(in oklch, var(--color-fd-primary) 25%, transparent); }
/* SPINE v5 — ripple: dots pulse down the spine forever */
@keyframes sp-ripple { 0%, 70%, 100% { transform: scale(1); } 12% { transform: scale(1.6); } }
.sp-v5-dot { animation: sp-ripple 3.4s ease-in-out infinite; }
/* BOARD v1 — flip in (scroll) */
@keyframes bd-flip { 0% { transform: rotateX(-90deg); opacity: 0; } 60% { transform: rotateX(12deg); opacity: 1; } 100% { transform: rotateX(0); } }
[data-show="false"] .bd-v1-tile { opacity: 0; transform: rotateX(-90deg); }
[data-show="true"] .bd-v1-tile { animation: bd-flip 0.5s cubic-bezier(0.3,1,0.4,1) both; }
/* BOARD v2 — row cascade (scroll) */
[data-show="false"] .bd-v2-row { opacity: 0; transform: translateY(14px); }
[data-show="true"] .bd-v2-row { animation: la-rise 0.5s cubic-bezier(0.16,1,0.3,1) both; }
/* BOARD v3 — live board: tiles re-flip on a loop */
@keyframes bd-reflip { 0%, 86%, 100% { transform: rotateX(0); } 90% { transform: rotateX(-90deg); } 93% { transform: rotateX(0); } }
.bd-v3-tile { animation: bd-reflip 6s ease-in-out infinite; }
/* BOARD v4 — hover a row to flip its tiles */
.bd-v4-tile { backface-visibility: hidden; }
.bd-v4-row:hover .bd-v4-tile { animation: bd-flip 0.5s cubic-bezier(0.3,1,0.4,1) both; }
/* BOARD v5 — sweep: tiles brighten left-to-right forever */
@keyframes bd-sweep {
0%, 100% { background-color: #1c1c1c; color: rgba(255,247,240,0.55); }
12% { background-color: #3a2030; color: #fff7f0; }
}
.bd-v5-tile { animation: bd-sweep 4s linear infinite; }
@media (prefers-reduced-motion: reduce) {
[data-show] .sp-v1-line, [data-show] .sp-v1-dot, [data-show] .sp-v1-step,
[data-show] .sp-v2-dot, [data-show] .sp-v2-step,
[data-show] .bd-v1-tile, [data-show] .bd-v2-row,
.sp-v3-fill, .sp-v3-dot, .sp-v5-dot, .bd-v3-tile, .bd-v5-tile {
animation: none !important;
opacity: 1 !important;
transform: none !important;
}
.sp-v4-step { opacity: 1 !important; }
.sp-v4-dot, .bd-v4-tile { transition: none !important; }
}
/* ─── HIW card iteration: flip on hover ─────────────────────────────────── */
.hiw-flip { perspective: 1000px; }
.hiw-flip-inner {
position: relative;
width: 100%;
height: 100%;
transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
transform-style: preserve-3d;
}
.hiw-flip:hover .hiw-flip-inner { transform: rotateY(180deg); }
.hiw-flip-face {
position: absolute;
inset: 0;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}
.hiw-flip-back { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) {
.hiw-flip-inner { transition: none; }
}
/* ─── HIW polaroids — subtle motion ─────────────────────────────────────────
Polaroids fade + rise in on scroll (wrapper, so the card keeps its tilt);
the capture rec-dot pulses and the generate sparkle twinkles. */
@keyframes hiw-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
[data-show="false"] .hiw-pol-wrap { opacity: 0; transform: translateY(22px); }
[data-show="true"] .hiw-pol-wrap { animation: hiw-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--d, 0s); }
/* SVG motion — each conveys the step's action (no pulsing dots). */
@keyframes ill-cursor { from { transform: translate(0, 0); } to { transform: translate(7px, 6px); } }
.ill-cursor { animation: ill-cursor 1.8s ease-in-out infinite alternate; }
@keyframes ill-wave { to { stroke-dashoffset: -48; } }
.ill-wave { stroke-dasharray: 4 4; animation: ill-wave 1.1s linear infinite; }
@keyframes ill-spin { to { transform: rotate(360deg); } }
.ill-spin { transform-box: fill-box; transform-origin: center; animation: ill-spin 9s linear infinite; }
/* Generate — code lines write themselves on a loop. */
@keyframes ill-write { 0%, 8% { stroke-dashoffset: 60; } 42%, 100% { stroke-dashoffset: 0; } }
.ill-write { stroke-dasharray: 60; animation: ill-write 3.6s ease-in-out infinite; }
@keyframes ill-mag { 0% { transform: translate(0, 0); } 50% { transform: translate(-24px, -12px); } 100% { transform: translate(0, 0); } }
.ill-mag { animation: ill-mag 4.5s ease-in-out infinite; }
@keyframes ill-draw { 0%, 15% { stroke-dashoffset: 40; } 45%, 100% { stroke-dashoffset: 0; } }
.ill-check { stroke-dasharray: 40; animation: ill-draw 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
[data-show] .hiw-pol-wrap { animation: none !important; opacity: 1 !important; transform: none !important; }
.ill-cursor, .ill-wave, .ill-spin, .ill-mag, .ill-check, .ill-write { animation: none !important; }
.ill-check, .ill-write { stroke-dasharray: none !important; }
}
/* ─── Lab: OSS section — same-UI animation variants ─────────────────────────
The "Open source · runs on your machine" joined card grid, animated.
Scroll entrances via [data-show]; hover otherwise. Reduced-motion safe. */
@keyframes oss-fade { from { opacity: 0; } to { opacity: 1; } }
[data-show="false"] .oss-fade { opacity: 0; }
[data-show="true"] .oss-fade { animation: oss-fade 0.6s ease both; animation-delay: var(--d, 0s); }
@keyframes oss-slide-l { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
@keyframes oss-slide-r { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes oss-slide-u { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
[data-show="false"] .oss-sl { opacity: 0; transform: translateX(-34px); }
[data-show="false"] .oss-su { opacity: 0; transform: translateY(26px); }
[data-show="false"] .oss-sr { opacity: 0; transform: translateX(34px); }
[data-show="true"] .oss-sl { animation: oss-slide-l 0.6s cubic-bezier(0.16,1,0.3,1) both; }
[data-show="true"] .oss-su { animation: oss-slide-u 0.6s cubic-bezier(0.16,1,0.3,1) both; }
[data-show="true"] .oss-sr { animation: oss-slide-r 0.6s cubic-bezier(0.16,1,0.3,1) both; }
.oss-hov { position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.oss-hov:hover { transform: translateY(-6px); box-shadow: 0 18px 36px -20px rgba(30,20,50,0.55); z-index: 10; }
@keyframes oss-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
[data-show="false"] .oss-wipe { clip-path: inset(0 100% 0 0); }
[data-show="true"] .oss-wipe { animation: oss-wipe 0.9s cubic-bezier(0.16,1,0.3,1) both; }
@media (prefers-reduced-motion: reduce) {
[data-show] .oss-fade, [data-show] .oss-sl, [data-show] .oss-su, [data-show] .oss-sr, [data-show] .oss-wipe {
animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important;
}
.oss-hov { transition: none !important; }
}
/* ─── Display typography (Fraunces) ─────────────────────────────────────── */
.font-display {
font-family: var(--font-display);
font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 0;
}
.hero-display {
font-family: var(--font-display);
font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
font-weight: 500;
font-size: clamp(2.8rem, 7.5vw, 6rem);
letter-spacing: -0.045em;
line-height: 0.95;
color: var(--color-ink);
}
.hero-display em {
font-style: italic;
font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
font-weight: 400;
}
.section-display {
font-family: var(--font-display);
font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 0;
font-weight: 500;
font-size: clamp(2rem, 4.5vw, 3.5rem);
letter-spacing: -0.035em;
line-height: 1;
color: var(--color-ink);
}
.section-display em {
font-style: italic;
font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
font-weight: 400;
}
.eyebrow {
font-family: var(--font-mono);
font-size: 0.7rem;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--color-ink);
}
/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn-primary {
display: inline-flex;
align-items: center;
gap: 0.6rem;
height: 2.5rem;
padding: 0 1rem;
border-radius: 0.5rem;
font-size: 14px;
font-weight: 600;
background-color: var(--color-ink);
color: var(--color-cream);
border: 1.5px solid var(--color-ink);
box-shadow: 3px 3px 0 0 var(--color-fd-primary);
transition: transform 180ms cubic-bezier(0, 0, 0.2, 1),
box-shadow 180ms cubic-bezier(0, 0, 0.2, 1);
}
.btn-primary:hover {
transform: translate(2px, 2px);
box-shadow: 1px 1px 0 0 var(--color-fd-primary);
}
.btn-secondary {
display: inline-flex;
align-items: center;
gap: 0.6rem;
height: 2.5rem;
padding: 0 1rem;
border-radius: 0.5rem;
font-size: 14px;
font-weight: 600;
background-color: var(--color-cream);
color: var(--color-ink);
border: 1px solid color-mix(in oklch, var(--color-ink) 15%, transparent);
box-shadow: 0 2px 0 0 color-mix(in oklch, var(--color-ink) 14%, transparent);
transition: transform 180ms cubic-bezier(0, 0, 0.2, 1),
box-shadow 180ms cubic-bezier(0, 0, 0.2, 1);
}
.btn-secondary:hover {
transform: translateY(1px);
box-shadow: 0 0 0 0 color-mix(in oklch, var(--color-ink) 14%, transparent);
}
/* ─── Landing-specific cards ────────────────────────────────────────────── */
.hero-visual {
position: relative;
border-radius: 1.5rem;
border: 1px solid color-mix(in oklch, var(--color-ink) 10%, transparent);
background: var(--color-fd-card);
overflow: hidden;
box-shadow:
0 1px 0 0 color-mix(in oklch, var(--color-cream) 60%, transparent) inset,
0 30px 60px -30px color-mix(in oklch, var(--color-ink) 25%, transparent);
}
.tile {
position: relative;
border-radius: 1.25rem;
border: 1px solid color-mix(in oklch, var(--color-ink) 10%, transparent);
background: var(--color-fd-card);
overflow: hidden;
}
.bg-ink .tile {
background: color-mix(in oklch, var(--color-ink) 88%, var(--color-cream));
border-color: color-mix(in oklch, var(--color-cream) 12%, transparent);
}
.terminal-window {
font-family: var(--font-mono);
font-size: 0.8125rem;
line-height: 1.7;
}
.terminal-window-bar {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1rem;
border-bottom: 1px solid color-mix(in oklch, var(--color-ink) 10%, transparent);
background: color-mix(in oklch, var(--color-ink) 5%, transparent);
}
.terminal-dot {
width: 0.625rem;
height: 0.625rem;
border-radius: 9999px;
background: color-mix(in oklch, var(--color-ink) 14%, transparent);
}
.terminal-window-body {
padding: 1rem 1.25rem;
color: var(--color-ink);
white-space: pre-wrap;
overflow-x: auto;
}
.bg-ink .terminal-window-body,
.bg-ink .terminal-window-bar {
background: transparent;
border-color: color-mix(in oklch, var(--color-cream) 12%, transparent);
color: var(--color-cream);
}
.bg-ink .terminal-dot {
background: color-mix(in oklch, var(--color-cream) 18%, transparent);
}
/* Ambient code stream backdrop used in HowItWorks */
.code-stream-pre {
font-family: var(--font-mono);
font-size: 0.7rem;
line-height: 1.5;
color: color-mix(in oklch, var(--color-ink) 22%, transparent);
white-space: pre;
user-select: none;
pointer-events: none;
}
/* ─── Docs fixed sidebar ────────────────────────────────────────────────
Fixed to viewport, vertically centred, left edge aligned with the docs
container (max-w-7xl + px-6 default, px-10 on lg). Clamped max-height
keeps it inside the viewport without overlapping the SiteNav. */
.docs-sidebar-fixed {
position: fixed;
/* SiteNav is 3.5rem; leave 1.5rem of breathing room above + 1.5rem
below the viewport. */
top: 5rem;
bottom: 1.5rem;
width: 240px;
z-index: 10;
pointer-events: none;
/* Hidden below lg; the mobile <details> menu takes over. */
display: none;
}
@media (min-width: 64rem) {
/* 64rem matches Tailwind v4's lg: breakpoint so this stays in lockstep
with `lg:hidden` / `lg:grid` / `lg:block` regardless of root font size. */
.docs-sidebar-fixed {
display: block;
/* lg: container px-10 = 2.5rem. 40rem = half of max-w-7xl (80rem). */
left: max(2.5rem, calc(50vw - 40rem + 2.5rem));
}
}
.docs-files-list,
.docs-files-list ul {
list-style: none !important;
padding-left: 0 !important;
}
.docs-files-list li {
margin-top: 0 !important;
}
/* Card bg shifts toward foreground in BOTH modes (because --color-ink
flips with theme), giving cards real contrast against the page bg.
Hover is just a tiny nudge further, so it reads as "interactive"
without being flashy. */
/* Light mode: outlined card — page-bg fill, faint border, no bg shift.
Dark mode: filled card with subtle ink mix. */
.docs-card {
background-color: transparent;
border: 1px solid color-mix(in oklch, var(--color-ink) 8%, transparent);
transition: background-color 200ms cubic-bezier(0, 0, 0.2, 1),
border-color 200ms cubic-bezier(0, 0, 0.2, 1);
}
.dark .docs-card {
background-color: color-mix(in oklch, var(--color-ink) 6%, var(--color-cream));
border-color: transparent;
}
.docs-card:hover {
border-color: color-mix(in oklch, var(--color-ink) 18%, transparent);
}
.dark .docs-card:hover {
background-color: color-mix(in oklch, var(--color-ink) 10%, var(--color-cream));
}
.docs-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}
.docs-table thead {
background: color-mix(in oklch, var(--color-ink) 5%, transparent);
}
.docs-table th {
text-align: left;
font-family: var(--font-mono);
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--color-ink-soft);
padding: 0.7rem 1rem;
border-bottom: 1px solid color-mix(in oklch, var(--color-ink) 10%, transparent);
white-space: nowrap;
}
.docs-table td {
padding: 0.75rem 1rem;
border-bottom: 1px solid color-mix(in oklch, var(--color-ink) 5%, transparent);
vertical-align: top;
}
.docs-table tbody tr:last-child td { border-bottom: 0; }
/* Tailwind preflight strips list-style on ul/ol; restore it here. */
.mdx ul {
list-style-type: disc;
list-style-position: outside;
padding-inline-start: 1.5rem;
}
.mdx ol {
list-style-type: decimal;
list-style-position: outside;
padding-inline-start: 1.5rem;
}
.mdx ul ul,
.mdx ol ol,
.mdx ul ol,
.mdx ol ul {
margin-top: 0.35rem;
}
.mdx li {
margin-top: 0.4rem;
padding-left: 0.35rem;
}
/* In a loose list MDX wraps each item in <p> which would inherit our
<p>'s mt-5; reset so the marker aligns with the text. */
.mdx li > :first-child {
margin-top: 0;
}
.mdx li > * + * {
margin-top: 0.5rem;
}
.mdx li::marker {
color: color-mix(in oklch, var(--color-ink) 70%, transparent);
}
.mdx ol li::marker {
font-variant-numeric: tabular-nums;
font-weight: 600;
color: var(--color-fd-primary);
}
/* Code blocks (rehype-pretty-code emits <figure><pre><code>) */
.mdx figure[data-rehype-pretty-code-figure] {
margin-top: 1.25rem;
margin-bottom: 0;
}
.mdx pre code {
font-family: var(--font-mono);
font-size: 0.82rem;
line-height: 1.65;
display: grid;
}
.mdx figure[data-rehype-pretty-code-figure] [style*='--shiki-light'] {
color: var(--shiki-light);
}
.dark .mdx figure[data-rehype-pretty-code-figure] [style*='--shiki-dark'] {
color: var(--shiki-dark);
}
.mdx figcaption[data-rehype-pretty-code-title] {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--color-ink-soft);
padding: 0.5rem 1rem;
border-bottom: 1px solid color-mix(in oklch, var(--color-ink) 10%, transparent);
background: color-mix(in oklch, var(--color-ink) 4%, transparent);
}