mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P5YBdwj33XByFVTvu9bfci
94 lines
7.7 KiB
CSS
94 lines
7.7 KiB
CSS
/* Cloud 3 launch system, on Hanzo's brand deck (docs/build-notes/MASTER.md §3, the only values). Imported by every Cloud 3 kit
|
||
piece; give the page root `lx`.
|
||
Palette: the deck's neutral ramp only (#0a0a0a ink, #525252 body grey, #737373 quiet text on white, #a3a3a3 only on
|
||
black, #d4d4d4 tracks, #e4e4e7, #ededed / #f2f2f2 / #f5f5f5 rooms and tiles). Colour enters only through Hanzo's media.
|
||
Type has rhythm (James, 7 Nov): one big thing per screen. Resting sizes follow live hanzo.ai: h1 52, section heading
|
||
26, figures 64 (Air 220); lede 20, body 16, captions 12–13. Headings are Book 497. A thing grows past its resting
|
||
size only while it is the moment (LaunchClose's "Get X" grows as you reach it).
|
||
Space: container 1152, gutter clamp(16px,4vw,32px), sections clamp(72px,11vw,188px). Radii: tiles 24, art 20, chips 6,
|
||
pills full. Surfaces are flat fills or hairlines, never both; only what floats takes a shadow.
|
||
Motion: press 90ms (scale .97), fast 150, base 300, slow 400, slower 500; ease-out for hover and colour, ease-in-out
|
||
for things that move and stay, ease-emphasis for arrivals; no springs. Hover never lifts or fades: it changes fill or
|
||
ink. Prefix lx- is owned by Cloud 3. */
|
||
.lx {
|
||
--ink: #0a0a0a; --acc: #0a0a0a; --acc-soft: #f2f2f2; --muted: #525252; --soft: #525252; --faint: #737373; --silver: #d4d4d4;
|
||
--card: #f5f5f5; --line: rgba(0, 0, 0, .1); --bg: #fff;
|
||
--e-out: cubic-bezier(0, 0, .2, 1); --e-io: cubic-bezier(.4, 0, .2, 1); --lx-ease: cubic-bezier(.16, 1, .3, 1);
|
||
--gut: clamp(16px, 4vw, 32px); --lx-head: 60px;
|
||
}
|
||
.lx-display { font-weight: 497; font-size: clamp(40px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.035em; margin: 0; text-wrap: balance; color: var(--ink); }
|
||
.lx-display.m, .lx-display.s { font-size: clamp(40px, 3.6vw, 52px); }
|
||
.lx-headline { font-weight: 497; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; margin: 0; max-width: 18ch; text-wrap: balance; color: var(--ink); }
|
||
.lx-title { font-weight: 497; font-size: 21px; line-height: 1.2; letter-spacing: -.015em; margin: 0; text-wrap: balance; color: var(--ink); }
|
||
.lx-lede { font-size: 20px; line-height: 1.45; letter-spacing: -.01em; color: var(--muted); margin: 0; max-width: 44ch; text-wrap: pretty; }
|
||
.lx-body { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 66ch; text-wrap: pretty; }
|
||
.lx-kick { font: 500 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0; }
|
||
.lx-kick b { color: var(--ink); font-weight: 500; }
|
||
.lx-num { font-family: var(--mono); font-feature-settings: 'tnum'; letter-spacing: -.03em; }
|
||
.lx-fig { font: 220 64px/1 var(--sans); letter-spacing: -.04em; font-feature-settings: 'tnum'; color: var(--ink); }
|
||
.lx-sec { padding: clamp(72px, 11vw, 188px) 0; position: relative; }
|
||
.lx-wrap { width: min(100% - 2 * var(--gut), 1152px); margin-inline: auto; }
|
||
.lx-grid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); column-gap: 12px; }
|
||
.lx-dark { background: #000; color: #fafafa; --ink: #fafafa; --acc: #fafafa; --acc-soft: #171717; --muted: rgba(255, 255, 255, .78); --soft: rgba(255, 255, 255, .78); --faint: #a3a3a3; --line: rgba(255, 255, 255, .1); --card: #171717; --silver: #404040; }
|
||
|
||
/* the line-masked cut-in (LineMask): CSS, so it starts at first paint and ends visible without JS */
|
||
.lx-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
|
||
.lx-line > span { display: block; }
|
||
.lx-lm[data-lm='armed'] .lx-line > span { transform: translateY(105%); }
|
||
.lx-lm[data-lm='play'] .lx-line > span { animation: lx-cut .7s cubic-bezier(.16, 1, .3, 1) both; }
|
||
@keyframes lx-cut { from { transform: translateY(105%); } }
|
||
|
||
/* the one solid ask (48px), quiet outlined and text secondaries. Hover changes fill or ink; press is .97 for 90ms */
|
||
.lx-cta { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--x-on-ink); font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .15s var(--e-out), transform .15s var(--e-out); touch-action: manipulation; }
|
||
.lx-dark .lx-cta { background: #fafafa; color: #0a0a0a; }
|
||
.lx-cta:active { transform: scale(.97); transition-duration: .09s; }
|
||
.lx-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .14); color: var(--ink); background: none; font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: border-color .15s var(--e-out), background-color .15s var(--e-out), transform .15s var(--e-out); touch-action: manipulation; }
|
||
.lx-dark .lx-ghost { border-color: rgba(255, 255, 255, .22); }
|
||
.lx-ghost:active { transform: scale(.97); transition-duration: .09s; }
|
||
.lx-text { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font: 500 16px/1 var(--sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(0, 0, 0, .3); transition: text-decoration-color .15s var(--e-out); }
|
||
.lx-dark .lx-text { text-decoration-color: rgba(255, 255, 255, .4); }
|
||
.lx-text:active { transform: scale(.97); transition: transform .09s cubic-bezier(0, 0, .2, 1); }
|
||
@media (hover: hover) {
|
||
.lx-cta:hover { background: #262626; }
|
||
.lx-dark .lx-cta:hover { background: #fff; }
|
||
.lx-ghost:hover { border-color: var(--ink); background: rgba(0, 0, 0, .04); }
|
||
.lx-dark .lx-ghost:hover { background: rgba(255, 255, 255, .06); }
|
||
.lx-text:hover { text-decoration-color: currentColor; }
|
||
}
|
||
:where(.lx) :focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; box-shadow: 0 0 0 4px #fff; }
|
||
:where(.lx-dark) :focus-visible { outline-color: #fff; box-shadow: 0 0 0 4px #000; }
|
||
|
||
/* Frame's shared pieces, inside a Cloud 3 page: deck greys, 13/14px floor, 44px targets */
|
||
.lx .cf-api i { background: #ededed !important; color: #0a0a0a !important; }
|
||
.lx .cf-paste.dark .cf-api i, .lx-dark .cf-api i { background: #262626 !important; color: #fafafa !important; }
|
||
.lx .cf-paste-k, .lx .cf-api { font-size: 13px; color: #a3a3a3; }
|
||
.lx .cf-code .k, .lx .cf-code .s, .lx .cf-mark { color: inherit !important; }
|
||
.lx .cf-code .s { color: #d4d4d4 !important; }
|
||
.lx .cf-code.light .s { color: #404040 !important; }
|
||
.lx .cf-code .c { color: #a3a3a3 !important; }
|
||
.lx .cf-code.light .c { color: #737373 !important; } /* 4.74:1 on white; #a3a3a3 is for black only */
|
||
.lx .x-copy:active { transform: scale(.97) !important; transition-duration: .09s; }
|
||
.lx .cf-dot.b { background: #737373 !important; box-shadow: none !important; }
|
||
.lx .cf-dot.r { background: var(--ink) !important; }
|
||
.lx .cf-paste-box, .lx .cf-code { box-shadow: none !important; }
|
||
.lx .x-copy { min-height: 44px; }
|
||
.lx .x-copy-t, .lx .cf-code-k { font-size: 13px; }
|
||
/* Frame's Paste arrives with Rise (opacity 0 until JS): Hanzo's words must read with JS off, so it simply sits */
|
||
.lx .cf-paste { opacity: 1 !important; transform: none !important; }
|
||
/* Frame's "Paste and ship" stacked for a narrow column: pass className="lx-paste" */
|
||
.lx .cf-paste.lx-paste { grid-template-columns: minmax(0, 1fr); gap: 22px; }
|
||
.lx .lx-paste .cf-paste-t { font-size: 26px; font-weight: 497; letter-spacing: -.02em; }
|
||
.lx .lx-paste .cf-paste-d { font-size: 15px; }
|
||
|
||
@media (max-width: 899px) {
|
||
.lx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||
.lx-lede { font-size: 17px; }
|
||
.lx-body { font-size: 16px; }
|
||
.lx-fig { font-size: 52px; }
|
||
.lx-kick { font-size: 12px; } /* Zen Mono capitals: the only text allowed under 14px on phones */
|
||
.lx .cf-paste-k, .lx .cf-api, .lx .x-copy-t, .lx .cf-code-k { font-size: 14px; }
|
||
}
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.lx-lm .lx-line > span { animation: none !important; transform: none !important; }
|
||
}
|