mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:14:28 +00:00
1101 lines
52 KiB
CSS
1101 lines
52 KiB
CSS
/* Hanzo's shared system: tokens, component states, the ask bar, accessibility. Loaded once by app/layout.jsx, after
|
|
globals.css and before any page CSS, so a page rule always wins over these defaults.
|
|
HOW TO USE (full list in docs/build-notes/review/SYSTEM.md):
|
|
- Colour: the grey and silver deck only (0 UI hues). Use var(--hz-50 … --hz-950), the silvers, or the room tokens
|
|
var(--room-bg / -surface / -ink / -soft / -faint / -line / -fill). Put data-room="dark" on a dark section and every
|
|
room token (and the focus ring, and solid buttons) flips for it. Colour comes only from Hanzo's own media.
|
|
- Motion: var(--ease-out-expo / --ease-calm / --ease-soft / --ease-in) and var(--dur-press … --dur-reveal); the same
|
|
values live in lib/motion.js for Motion. Animate transform, opacity, clip-path and filter only.
|
|
- States: .x-btn, .x-arrow, .x-link, .x-card, .x-tablist, .x-table, .x-skel answer hover, press, focus, loading
|
|
(aria-busy="true"), disabled (disabled or aria-disabled="true") and selected (aria-pressed / aria-selected /
|
|
aria-current / data-selected). Nothing fades on hover, nothing jumps.
|
|
- Utilities: .x-tnum (tabular figures), .x-cv (skip off-screen rendering), .x-vh (visually hidden), .x-ratio. */
|
|
|
|
/* ---------- fonts: no visible swap ----------
|
|
Zen and Zen Mono load with font-display: block and are preloaded (app/layout.jsx), so text paints once, in Zen. If a
|
|
very slow network ever outlasts the block period, these metric-matched stand-ins (measured in Chromium against Zen:
|
|
width 104.5%, ascent 101%, descent 30%) take the same box, so the swap moves nothing. */
|
|
@font-face { font-family: 'Zen Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'); size-adjust: 104.51%; ascent-override: 96.64%; descent-override: 28.71%; line-gap-override: 0%; }
|
|
@font-face { font-family: 'Zen Mono Fallback'; src: local('Courier New'), local('CourierNewPSMT'), local('Liberation Mono'); size-adjust: 99.98%; ascent-override: 101.02%; descent-override: 30.01%; line-gap-override: 0%; }
|
|
|
|
/* ---------- the brand deck: greys and silvers ---------- */
|
|
:root {
|
|
--hz-black: #000; --hz-950: #0a0a0b; --hz-900: #141416; --hz-850: #1c1c1e; --hz-800: #2c2c2e; --hz-700: #3a3a3c;
|
|
--hz-600: #48484a; --hz-500: #6e6e73; --hz-400: #86868b; --hz-300: #a1a1a6; --hz-200: #c7c7cc; --hz-150: #d2d2d7;
|
|
--hz-100: #e8e8ed; --hz-50: #f5f5f7; --hz-white: #fff;
|
|
--silver-hi: #f4f4f6; --silver: #d4d5d9; --silver-lo: #9b9ca2; --silver-deep: #5d5e63;
|
|
/* a brushed-metal surface for an object (a chip, a medal, a hairline), never for text */
|
|
--silver-sheen: linear-gradient(135deg, #f4f4f6 0%, #c9cacf 38%, #eeeef0 55%, #a7a8ae 100%);
|
|
--silver-edge: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .08));
|
|
|
|
/* the room you are in (light by default; [data-room=dark] flips it) */
|
|
--room-bg: #fff; --room-surface: #f5f5f7; --room-raised: #fff;
|
|
--room-ink: #0a0a0b; --room-soft: #6e6e73; --room-faint: #86868b;
|
|
--room-line: rgba(0, 0, 0, .08); --room-line-strong: rgba(0, 0, 0, .16);
|
|
--room-fill: rgba(0, 0, 0, .04); --room-fill-strong: rgba(0, 0, 0, .08);
|
|
--focus: #0a0a0b;
|
|
--btn-solid-bg: var(--ink, #0a0a0a); --btn-solid-ink: #fff; --btn-solid-hover: #2c2c2e;
|
|
|
|
/* motion (lib/motion.js holds the same numbers for Motion) */
|
|
--ease-out-expo: cubic-bezier(.16, 1, .3, 1); --ease-calm: cubic-bezier(.33, 1, .68, 1);
|
|
--ease-soft: cubic-bezier(.22, 1, .36, 1); --ease-in: cubic-bezier(.7, 0, .84, 0);
|
|
--dur-press: .1s; --dur-hover: .2s; --dur-exit: .25s; --dur-fade: .4s; --dur-enter: .6s; --dur-reveal: 1.1s;
|
|
|
|
/* type (BRIEF-v3 §6) */
|
|
--fs-display: clamp(48px, 8.7vw, 128px); --fs-h2: clamp(32px, 4.5vw, 56px); --fs-lede: clamp(19px, 1.8vw, 24px);
|
|
--fs-body: 17px; --fs-chrome: 13px; --fs-figure: clamp(56px, 6.5vw, 96px);
|
|
--lh-display: 1.02; --lh-h2: 1.07; --lh-lede: 1.33; --lh-body: 1.47;
|
|
|
|
/* space and shape */
|
|
--side: clamp(24px, 3.45vw, 72px); --air: clamp(120px, 15vw, 240px); --hit: 44px; --row: 56px;
|
|
--x-radius-card: 28px; --x-radius-pill: 999px; --x-radius-sm: var(--radius-lg);
|
|
--shadow-1: 0 1px 2px rgba(0, 0, 0, .05), 0 0 0 1px rgba(0, 0, 0, .04);
|
|
--shadow-2: 0 24px 48px -28px rgba(0, 0, 0, .28);
|
|
--shadow-pop: 0 40px 100px -30px rgba(0, 0, 0, .35);
|
|
|
|
/* the sticky header's height: use top: var(--x-top) for your own sticky parts */
|
|
--x-top: 60px;
|
|
/* layers */
|
|
--x-z-ask: 70; --x-z-sheet: 985; --x-z-skip: 2147483001;
|
|
}
|
|
/* dark mode: the page's room is Hanzo's dark, from @hanzo/tokens (Hanzo's own :not(.light) selector); a
|
|
[data-room=light] section follows the page into the dark, and [data-room=dark] stays as it is */
|
|
html:not(.light), html:not(.light) [data-room=light] {
|
|
--room-bg: var(--background); --room-surface: var(--muted); --room-raised: var(--card);
|
|
--room-ink: var(--foreground); --room-soft: var(--muted-foreground); --room-faint: var(--text-tertiary);
|
|
--room-line: var(--border); --room-line-strong: var(--border-strong);
|
|
--room-fill: var(--glass); --room-fill-strong: var(--glass-strong);
|
|
--focus: var(--ring);
|
|
--btn-solid-bg: var(--primary); --btn-solid-ink: var(--primary-foreground); --btn-solid-hover: var(--primary-hover);
|
|
}
|
|
[data-room=dark] {
|
|
--room-bg: #0a0a0b; --room-surface: #141416; --room-raised: #1c1c1e;
|
|
--room-ink: #f5f5f7; --room-soft: #a1a1a6; --room-faint: #86868b;
|
|
--room-line: rgba(255, 255, 255, .14); --room-line-strong: rgba(255, 255, 255, .26);
|
|
--room-fill: rgba(255, 255, 255, .06); --room-fill-strong: rgba(255, 255, 255, .12);
|
|
--focus: #f5f5f7;
|
|
--btn-solid-bg: #f5f5f7; --btn-solid-ink: #0a0a0b; --btn-solid-hover: #fff;
|
|
}
|
|
[data-room=light] {
|
|
--room-bg: #fff; --room-surface: #f5f5f7; --room-raised: #fff;
|
|
--room-ink: #0a0a0b; --room-soft: #6e6e73; --room-faint: #86868b;
|
|
--room-line: rgba(0, 0, 0, .08); --room-line-strong: rgba(0, 0, 0, .16);
|
|
--room-fill: rgba(0, 0, 0, .04); --room-fill-strong: rgba(0, 0, 0, .08);
|
|
--focus: #0a0a0b;
|
|
--btn-solid-bg: #0a0a0b; --btn-solid-ink: #fff; --btn-solid-hover: #2c2c2e;
|
|
}
|
|
|
|
/* ---------- scrolling: anchors and focused elements never land under the header ---------- */
|
|
html { scroll-padding-top: calc(var(--x-top) + 16px); }
|
|
html.lenis, html.lenis body { scroll-snap-type: none !important; } /* hanzo.css proximity snap fights Lenis */
|
|
|
|
/* ---------- focus: one ring, in the room's ink ---------- */
|
|
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
|
|
:focus:not(:focus-visible) { outline: none; }
|
|
header[data-x-dark='true'] { --focus: #f5f5f7; }
|
|
/* Hanzo's atomic classes (_outlineWidth-0px …) would hide the ring in its header and on ported pages */
|
|
header[data-slot=masthead] :focus-visible, main.x-ported :focus-visible, footer :focus-visible { outline: 2px solid var(--focus) !important; outline-offset: 2px !important; }
|
|
/* after a page change focus lands on the h1 (components/Chrome.jsx): no ring for that programmatic landing */
|
|
main h1[tabindex='-1']:focus { outline: none; }
|
|
|
|
/* ---------- skip link: the first tab stop ---------- */
|
|
.x-skip { position: fixed; left: 12px; top: 10px; z-index: var(--x-z-skip); padding: 12px 18px; border-radius: var(--x-radius-pill); background: var(--hz-950); color: #fff; font: 500 14px/1 var(--sans); text-decoration: none; transform: translateY(-160%); transition: transform var(--dur-hover) var(--ease-calm); }
|
|
.x-skip:focus, .x-skip:focus-visible { transform: none; outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--hz-950); }
|
|
main:focus, .x-main-mark:focus { outline: none; }
|
|
.x-main-mark { height: 0; scroll-margin-top: 72px; }
|
|
|
|
/* ---------- buttons (.x-btn, Btn, Go) ---------- */
|
|
.x-btn { position: relative; transition: background-color var(--dur-hover) var(--ease-soft), border-color var(--dur-hover) var(--ease-soft), color var(--dur-hover) var(--ease-soft), transform var(--dur-press) var(--ease-out-expo), box-shadow var(--dur-hover) var(--ease-soft); -webkit-tap-highlight-color: transparent; }
|
|
/* hover on an outline button: a grey veil darkens light buttons and lifts dark ones, whatever colours a page gave them */
|
|
@media (hover: hover) { .x-btn:not(.solid):hover { box-shadow: inset 0 0 0 100vmax rgba(128, 128, 128, .1); } }
|
|
.x-btn.solid { background-color: var(--btn-solid-bg); border-color: var(--btn-solid-bg); color: var(--btn-solid-ink); }
|
|
@media (hover: hover) { .x-btn.solid:hover { background-color: var(--btn-solid-hover); border-color: var(--btn-solid-hover); } }
|
|
.x-btn:active { transform: scale(.98); transition-duration: 0s; }
|
|
/* selected: the choice you made reads inverted, not tinted */
|
|
.x-btn[aria-pressed='true'], .x-btn[aria-current='page'], .x-btn[data-selected] { background-color: var(--room-ink); border-color: var(--room-ink); color: var(--room-bg); }
|
|
/* loading: the label keeps its width and a ring turns in its place */
|
|
.x-btn[aria-busy='true'] { color: transparent !important; pointer-events: none; }
|
|
.x-btn[aria-busy='true']::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 1.6px solid currentColor; border-color: var(--room-ink) transparent var(--room-ink) var(--room-ink); animation: x-turn .7s linear infinite; }
|
|
.x-btn.solid[aria-busy='true']::after { border-color: var(--btn-solid-ink) transparent var(--btn-solid-ink) var(--btn-solid-ink); }
|
|
/* disabled: quiet, still legible, no hover or press */
|
|
.x-btn:disabled, .x-btn[aria-disabled='true'] { cursor: not-allowed; background-color: var(--room-fill); border-color: transparent; color: var(--room-faint); transform: none; box-shadow: none; }
|
|
.x-btn.solid:disabled, .x-btn.solid[aria-disabled='true'] { background-color: var(--room-fill-strong); color: var(--room-soft); }
|
|
@keyframes x-turn { to { transform: rotate(1turn); } }
|
|
|
|
/* round icon buttons, copy chips, the arrow link */
|
|
.x-round, .x-copy, .x-replay { transition: background-color var(--dur-hover) var(--ease-soft), border-color var(--dur-hover) var(--ease-soft), color var(--dur-hover) var(--ease-soft), transform var(--dur-press) var(--ease-out-expo); }
|
|
@media (hover: hover) { .x-round:hover, .x-copy:hover { box-shadow: inset 0 0 0 100vmax rgba(128, 128, 128, .1); } }
|
|
.x-round:active, .x-copy:active, .x-replay:active { transform: scale(.94); transition-duration: 0s; }
|
|
.x-round:disabled, .x-round[aria-disabled='true'] { opacity: .4; cursor: not-allowed; transform: none; }
|
|
.x-arrow { transition: transform var(--dur-press) var(--ease-out-expo); }
|
|
.x-arrow:active { transform: translateY(1px); }
|
|
.x-arrow[aria-disabled='true'] { color: var(--room-faint); pointer-events: none; }
|
|
|
|
/* ---------- text links ---------- */
|
|
/* .x-link: an underline that draws in from the left on hover, and stays for the page you are on */
|
|
.x-link { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out-expo), color var(--dur-hover); padding-bottom: 1px; }
|
|
@media (hover: hover) { .x-link:hover { background-size: 100% 1px; } }
|
|
.x-link:focus-visible, .x-link[aria-current='page'] { background-size: 100% 1px; }
|
|
.x-link:active { transform: translateY(1px); display: inline-block; }
|
|
.x-link[aria-disabled='true'] { color: var(--room-faint); pointer-events: none; }
|
|
|
|
/* ---------- cards ---------- */
|
|
/* .x-card on any <a>, <button> or <article>: hairline, lift on hover, give on press, ring when chosen */
|
|
.x-card { position: relative; display: block; border-radius: var(--x-radius-card); background: var(--room-surface); border: 1px solid var(--room-line); color: var(--room-ink); text-decoration: none; transition: transform .25s var(--ease-out-expo), border-color var(--dur-hover) var(--ease-soft), box-shadow .25s var(--ease-out-expo), background-color var(--dur-hover) var(--ease-soft); -webkit-tap-highlight-color: transparent; }
|
|
.x-card:is(a, button) { cursor: pointer; }
|
|
.x-card:is(button) { font: inherit; text-align: inherit; width: 100%; }
|
|
@media (hover: hover) and (pointer: fine) {
|
|
.x-card:is(a, button, [tabindex]):hover { transform: translateY(-5px); border-color: var(--room-line-strong); }
|
|
:not([data-room=dark]) > .x-card:is(a, button, [tabindex]):hover { box-shadow: var(--shadow-2); }
|
|
}
|
|
.x-card:is(a, button, [tabindex]):active { transform: translateY(-2px) scale(.98); transition-duration: var(--dur-press); }
|
|
.x-card:focus-visible { outline-offset: 4px; }
|
|
.x-card[aria-selected='true'], .x-card[aria-current='page'], .x-card[data-selected] { border-color: var(--room-ink); box-shadow: 0 0 0 1px var(--room-ink); }
|
|
.x-card[aria-busy='true'] { pointer-events: none; }
|
|
.x-card[aria-disabled='true'] { opacity: .5; pointer-events: none; }
|
|
.x-card.inv { background: var(--room-ink); color: var(--room-bg); border-color: var(--room-ink); } /* the one odd tile (Von Restorff): inverted, never coloured */
|
|
|
|
/* ---------- tabs (kit <Tabs>) ---------- */
|
|
.x-tablist { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--x-radius-pill); background: var(--room-fill); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
|
|
.x-tablist::-webkit-scrollbar { display: none; }
|
|
.x-tab { position: relative; flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: var(--x-radius-pill); background: none; color: var(--room-soft); font: 500 14px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: color var(--dur-hover) var(--ease-soft), transform var(--dur-press) var(--ease-out-expo); -webkit-tap-highlight-color: transparent; }
|
|
@media (hover: hover) { .x-tab:hover { color: var(--room-ink); } }
|
|
.x-tab:active { transform: scale(.97); transition-duration: 0s; }
|
|
.x-tab[aria-selected='true'] { color: var(--room-ink); }
|
|
.x-tab:disabled, .x-tab[aria-disabled='true'] { color: var(--room-faint); opacity: .5; cursor: not-allowed; }
|
|
.x-tab:focus-visible { outline-offset: -2px; }
|
|
.x-tab-t { position: relative; z-index: 1; }
|
|
.x-tab-pill { position: absolute; inset: 0; border-radius: inherit; background: var(--room-raised); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04); }
|
|
[data-room=dark] .x-tab-pill { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
|
|
.x-tablist.lg .x-tab { height: 44px; padding: 0 20px; font-size: 15px; }
|
|
@media (pointer: coarse) { .x-tab { min-height: 44px; } }
|
|
|
|
/* ---------- touch: 44 px targets for small controls, without moving a pixel ---------- */
|
|
@media (pointer: coarse) {
|
|
.x-btn.sm, .x-copy, .x-round, .x-replay, .x-arrow, .x-link { position: relative; touch-action: manipulation; }
|
|
.x-btn.sm::before, .x-copy::before, .x-replay::before { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
|
|
}
|
|
[role=tabpanel]:focus-visible { outline-offset: 8px; border-radius: 16px; }
|
|
|
|
/* ---------- sheets (kit <Sheet>) ---------- */
|
|
.x-sheet2-wrap { position: fixed; inset: 0; z-index: var(--x-z-sheet); display: flex; justify-content: flex-end; }
|
|
.x-sheet2-scrim { position: absolute; inset: 0; background: rgba(10, 10, 11, .42); }
|
|
.x-sheet2 { position: relative; width: min(560px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--room-bg); color: var(--room-ink); box-shadow: -40px 0 100px -40px rgba(0, 0, 0, .4); overscroll-behavior: contain; }
|
|
.x-sheet2.wide { width: min(880px, 100%); }
|
|
.x-sheet2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 16px; }
|
|
.x-sheet2-head h2 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 560; letter-spacing: -.025em; line-height: 1.1; }
|
|
.x-sheet2-kick { display: block; margin: 0 0 10px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--room-faint); }
|
|
.x-sheet2-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--room-line); background: var(--room-raised); color: var(--room-ink); display: grid; place-items: center; cursor: pointer; transition: background-color var(--dur-hover), transform var(--dur-press) var(--ease-out-expo); }
|
|
@media (hover: hover) { .x-sheet2-x:hover { background: var(--room-fill-strong); } }
|
|
.x-sheet2-x:active { transform: scale(.94); }
|
|
.x-sheet2-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 28px 40px; overscroll-behavior: contain; }
|
|
@media (max-width: 700px) {
|
|
.x-sheet2-wrap { align-items: flex-end; }
|
|
.x-sheet2, .x-sheet2.wide { width: 100%; height: auto; max-height: 88svh; border-radius: 22px 22px 0 0; box-shadow: 0 -30px 80px -30px rgba(0, 0, 0, .4); padding-bottom: env(safe-area-inset-bottom); }
|
|
.x-sheet2-head { padding: 8px 20px 12px; }
|
|
.x-sheet2-body { padding: 0 20px 28px; }
|
|
}
|
|
|
|
/* ---------- tables ---------- */
|
|
/* <div class="x-table-wrap"><table class="x-table">… mark the subject column's cells with data-subject */
|
|
.x-table-wrap { position: relative; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
|
|
.x-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.4; color: var(--room-ink); font-feature-settings: 'tnum'; }
|
|
.x-table caption { caption-side: bottom; padding-top: 14px; text-align: left; font-size: 12.5px; color: var(--room-faint); }
|
|
.x-table th, .x-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--room-line); white-space: nowrap; }
|
|
.x-table thead th { position: sticky; top: 0; z-index: 2; background: var(--room-bg); font: 500 12.5px/1.2 var(--sans); color: var(--room-soft); }
|
|
.x-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--room-bg); font-weight: 500; }
|
|
.x-table thead th:first-child { left: 0; z-index: 3; }
|
|
.x-table td.num, .x-table th.num { text-align: right; }
|
|
.x-table [data-subject] { background-color: var(--room-fill); font-weight: 600; }
|
|
.x-table thead [data-subject] { color: var(--room-ink); }
|
|
.x-table tbody tr { transition: background-color var(--dur-hover) var(--ease-soft); }
|
|
@media (hover: hover) and (pointer: fine) { .x-table tbody tr:hover > * { background-color: var(--room-fill); } .x-table tbody tr:hover > [data-subject] { background-color: var(--room-fill-strong); } }
|
|
.x-table tr[aria-selected='true'] > *, .x-table tr[data-selected] > * { background-color: var(--room-fill-strong); }
|
|
.x-table .x-gap { color: var(--room-faint); } /* an honest gap: "—" where a model has no score */
|
|
|
|
/* ---------- loading, empty, error ---------- */
|
|
/* .x-skel: a fixed-height placeholder that holds the exact box the content will take (no shift when it arrives) */
|
|
.x-skel { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--room-fill-strong); }
|
|
.x-skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--room-fill-strong), transparent); transform: translateX(-100%); animation: x-shimmer 1.4s var(--ease-soft) infinite; }
|
|
.x-skel-line { height: 1em; margin: .35em 0; border-radius: 6px; }
|
|
@keyframes x-shimmer { to { transform: translateX(100%); } }
|
|
.x-state { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(28px, 4vw, 48px); border-radius: var(--x-radius-card); border: 1px dashed var(--room-line-strong); color: var(--room-ink); }
|
|
.x-state.center { align-items: center; text-align: center; }
|
|
.x-state-t { margin: 0; font-size: 19px; font-weight: 560; letter-spacing: -.015em; }
|
|
.x-state-d { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.5; color: var(--room-soft); }
|
|
.x-state.error { border-style: solid; }
|
|
.x-state .x-state-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--room-fill-strong); color: var(--room-soft); }
|
|
|
|
/* ---------- Cta sizes ---------- */
|
|
.x-btn.lg { height: 52px; padding: 0 28px; font-size: 16px; }
|
|
|
|
/* ---------- CodeBlock ---------- */
|
|
.x-codeblock { margin: 0; border-radius: 16px; background: #0a0a0b; color: #e8e8ed; border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
|
|
.x-codeblock-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 8px 6px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 12px/1 var(--mono); color: #a1a1a6; }
|
|
.x-codeblock .x-copy { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #d2d2d7; height: 32px; }
|
|
.x-codeblock pre { margin: 0; padding: 16px; overflow: auto; overscroll-behavior: contain; font: 400 13.5px/1.65 var(--mono); tab-size: 2; white-space: pre; }
|
|
.x-codeblock pre:focus-visible { outline-offset: -3px; }
|
|
.x-codeblock-l.c { color: #86868b; }
|
|
.x-codeblock-p { color: #6e6e73; user-select: none; -webkit-user-select: none; }
|
|
|
|
/* ---------- Stat ---------- */
|
|
.x-stat { display: flex; flex-direction: column; gap: 8px; }
|
|
.x-stat-v { display: inline-block; font-size: var(--fs-figure); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; color: var(--room-ink); }
|
|
.x-stat-l { font-size: 15px; color: var(--room-soft); }
|
|
.x-stat-n { font-size: 12.5px; color: var(--room-faint); }
|
|
|
|
/* ---------- forms (Hanzo's own fields, not browser defaults) ---------- */
|
|
.x-field { display: flex; flex-direction: column; gap: 8px; }
|
|
.x-field > label, .x-field-l { font-size: 13px; font-weight: 500; color: var(--room-soft); }
|
|
.x-input2 { height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--room-line-strong); background: var(--room-raised); color: var(--room-ink); font: 400 16px/1.2 var(--sans); transition: border-color var(--dur-hover), box-shadow var(--dur-hover); -webkit-appearance: none; appearance: none; }
|
|
textarea.x-input2 { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
|
|
.x-input2::placeholder { color: var(--room-faint); }
|
|
@media (hover: hover) { .x-input2:hover { border-color: var(--room-soft); } }
|
|
.x-input2:focus-visible { outline: none; border-color: var(--room-ink); box-shadow: 0 0 0 1px var(--room-ink); }
|
|
.x-input2[aria-invalid='true'] { border-color: var(--room-ink); border-style: dashed; }
|
|
.x-input2:disabled { background: var(--room-fill); color: var(--room-faint); cursor: not-allowed; }
|
|
.x-field-msg { font-size: 13px; color: var(--room-soft); min-height: 1.3em; }
|
|
|
|
/* ---------- cookie notice: Reject all and Accept all at equal weight ---------- */
|
|
.x-cookie .x-cookie-more { border-color: transparent; background: none; color: var(--soft); }
|
|
@media (max-width: 640px) { .x-cookie div { flex-wrap: wrap; } .x-cookie .x-btn { flex: 1; } .x-cookie .x-cookie-more { flex-basis: 100%; } }
|
|
|
|
/* ---------- Hanzo's footer: the "Privacy choices" toggle icon in ink, not blue (0 UI hues, MASTER 3.1) ---------- */
|
|
footer a[href='#choices'] svg path[fill='#0072CE'] { fill: currentColor; }
|
|
footer a[href='#choices'] svg path:not([fill='#0072CE']) { fill: var(--background, #fff); }
|
|
|
|
/* ---------- utilities ---------- */
|
|
.x-tnum { font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }
|
|
.x-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
|
|
/* long sections far below the fold skip layout and paint until they near the screen; give the expected height */
|
|
.x-cv { content-visibility: auto; contain-intrinsic-size: auto 900px; }
|
|
.x-ratio { position: relative; aspect-ratio: var(--ratio, 16 / 9); overflow: hidden; }
|
|
.x-ratio > img, .x-ratio > video, .x-ratio > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
|
.x-media { display: block; max-width: 100%; height: auto; background: var(--room-fill); }
|
|
|
|
/* ---------- Hanzo's header: its ask is the one solid ask at every width (MASTER 3.2 rule 6); it never fades.
|
|
On desktop it carries the page's own ask after the hero (components/Ask.jsx), and is an outline only while the
|
|
hero's own solid ask is on screen. ---------- */
|
|
header[data-slot=masthead] a[data-x-ask], header[data-slot=masthead] a[href='https://hanzo.ai/signup'] { transition: background-color var(--dur-hover) var(--ease-soft), color var(--dur-hover) var(--ease-soft), box-shadow var(--dur-hover) var(--ease-soft), transform var(--dur-press) var(--ease-out-expo); }
|
|
html[data-ask=quiet] header[data-slot=masthead] a[data-x-ask] { background-color: transparent; color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border, rgba(0, 0, 0, .14)); }
|
|
header[data-slot=masthead] a[data-x-ask] { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
|
|
@media (hover: hover) { header[data-slot=masthead] a[data-x-ask]:hover, header[data-slot=masthead] a[href='https://hanzo.ai/signup']:hover { opacity: 1 !important; background-color: color-mix(in srgb, var(--foreground) 84%, var(--background)); } }
|
|
header[data-slot=masthead] a[data-x-ask]:active, header[data-slot=masthead] :is(button, a):active { transform: scale(.97); }
|
|
|
|
/* ---------- high-res dark-cinema visual plates (components/Sigil.tsx & lib/visuals.ts) ---------- */
|
|
.x-vplate { position: relative; display: block; overflow: hidden; background: #050507; isolation: isolate; }
|
|
.x-vplate > img {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
object-position: var(--vp-pos, 50% 50%);
|
|
transform: translate3d(var(--vp-x, 0px), var(--vp-y, 0px), 0) scaleX(calc(var(--vp-scale, 1.04) * var(--vp-flip, 1))) scaleY(var(--vp-scale, 1.04));
|
|
transition: transform .45s cubic-bezier(.16, 1, .3, 1);
|
|
will-change: transform;
|
|
user-select: none;
|
|
pointer-events: none;
|
|
}
|
|
.x-vplate::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: radial-gradient(circle at 50% 42%, transparent 35%, rgba(0, 0, 0, .42) 100%);
|
|
pointer-events: none;
|
|
}
|
|
/* ensure dedicated art card plates render at full cinema contrast rather than legacy contour alpha */
|
|
.xpl-dir-art, .xmo-thumb, .xmf-obj, .ze-fam-a, .ka-card, .xbl-plate, .xab-rt.plain .xab-rt-media, .rk-next-art { background: #050507; }
|
|
.xpl-dir-sig, .xmo-thumb-s, .xmf-obj-sigil, .xbl-plate-art, .xab-rt-sigil, .xs2-shot-sig { opacity: 1 !important; }
|
|
.ze-fam-a .ze-sig, .ka-card .ka-sig { opacity: .68 !important; }
|
|
|
|
/* ---------- header menus: the stage (on the far left in front of the menu columns) and the phone sheet ---------- */
|
|
.x-nav-panel { display: flex; align-items: stretch; background: var(--x-raised); } /* opaque: nothing of the page shows through */
|
|
.x-nav-grid { flex: 1; min-width: 0; flex-wrap: wrap; }
|
|
.x-nav-stage { display: none; }
|
|
@media (min-width: 1024px) {
|
|
.x-nav-stage {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
flex: none;
|
|
width: clamp(276px, 22vw, 328px);
|
|
min-height: 276px;
|
|
margin: 22px 12px 28px 24px;
|
|
padding: 18px 20px 20px;
|
|
border-radius: 22px;
|
|
border: 1px solid rgba(255, 255, 255, .12);
|
|
background: #050507;
|
|
color: #f5f5f7;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
box-shadow: 0 24px 52px -24px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .08);
|
|
transform: perspective(760px) rotateX(calc(var(--ny, 0) * -2.2deg)) rotateY(calc(var(--nx, 0) * 2.2deg));
|
|
transition: border-color .25s var(--ease), transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s var(--ease);
|
|
isolation: isolate;
|
|
}
|
|
.x-nav-stage:hover {
|
|
border-color: rgba(255, 255, 255, .26);
|
|
box-shadow: 0 28px 60px -22px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .12);
|
|
}
|
|
.x-nav-stage-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #050507; }
|
|
.x-nav-stage-bg, .x-nav-stage-vid, .x-nav-stage-gl {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
object-position: var(--st-pos, 50% 50%);
|
|
transform: translate3d(calc(var(--nx, 0) * -6px), calc(var(--ny, 0) * -6px), 0) scaleX(calc(var(--st-scale, 1.04) * var(--st-flip, 1))) scaleY(var(--st-scale, 1.04));
|
|
transition: transform .36s cubic-bezier(.2, .8, .2, 1), opacity .5s var(--ease);
|
|
}
|
|
.x-nav-stage-gl { display: block; }
|
|
.x-nav-stage-vid { opacity: 0; }
|
|
.x-nav-stage-vid.on { opacity: 1; }
|
|
.x-nav-stage-product .x-nav-stage-bg { opacity: .48; filter: blur(3px); }
|
|
.x-nav-stage-product .x-nav-stage-vid.on { opacity: .55; filter: blur(2.5px); }
|
|
.x-nav-stage-media::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(180deg, rgba(5, 5, 7, .68) 0%, rgba(5, 5, 7, .10) 36%, rgba(5, 5, 7, .24) 56%, rgba(5, 5, 7, .92) 100%);
|
|
pointer-events: none;
|
|
}
|
|
.x-nav-stage-product .x-nav-stage-media::after {
|
|
background: linear-gradient(180deg, rgba(5, 5, 7, .58) 0%, rgba(5, 5, 7, .22) 52%, rgba(5, 5, 7, .95) 100%);
|
|
}
|
|
|
|
/* Product window mockup frame inside stage */
|
|
.x-nav-win {
|
|
position: absolute;
|
|
left: 16px;
|
|
right: 16px;
|
|
top: 40px;
|
|
height: 112px;
|
|
z-index: 1;
|
|
border-radius: 11px;
|
|
border: 1px solid rgba(255, 255, 255, .15);
|
|
background: #0b0b0e;
|
|
box-shadow: 0 18px 38px -12px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .08);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: translate3d(calc(var(--nx, 0) * 4px), calc(var(--ny, 0) * 4px), 0);
|
|
transition: transform .32s cubic-bezier(.2, .8, .2, 1), border-color .25s;
|
|
}
|
|
.x-nav-stage:hover .x-nav-win { border-color: rgba(255, 255, 255, .26); }
|
|
.x-nav-win-bar {
|
|
height: 20px;
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 0 9px;
|
|
background: rgba(255, 255, 255, .04);
|
|
border-bottom: 1px solid rgba(255, 255, 255, .08);
|
|
}
|
|
.x-nav-win-dots { display: inline-flex; gap: 4px; }
|
|
.x-nav-win-dots i { width: 5.5px; height: 5.5px; border-radius: 50%; background: rgba(255, 255, 255, .24); }
|
|
.x-nav-win-title { font: 500 9.5px/1 var(--mono); color: rgba(245, 245, 247, .62); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.x-nav-win-body { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #09090b; }
|
|
.x-nav-win-body img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
|
|
|
|
/* Live miniature Hanzo Desktop & Machines workspaces inside header menu stage */
|
|
.x-nav-win.x-nav-win-dk {
|
|
left: 14px;
|
|
right: 14px;
|
|
top: 38px;
|
|
height: 110px;
|
|
border-color: rgba(255, 255, 255, .2);
|
|
background: linear-gradient(180deg, #131317 0%, #09090c 100%);
|
|
box-shadow: 0 20px 44px -12px rgba(0, 0, 0, .92), inset 0 1px 0 rgba(255, 255, 255, .12);
|
|
}
|
|
.x-nav-stage-product { min-height: 298px; }
|
|
.x-nav-stage-product .x-nav-stage-t b { font-size: 18.5px; }
|
|
.x-nav-stage-product .x-nav-stage-t b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.x-nav-win-dk .x-nav-win-dots i { background: rgba(255, 255, 255, .34); }
|
|
.x-nav-win-dk .x-nav-win-title { color: rgba(245, 245, 247, .82); }
|
|
.x-ndk-chip {
|
|
margin-left: auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 6px;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(255, 255, 255, .12);
|
|
background: rgba(255, 255, 255, .06);
|
|
font: 500 8px/1 var(--mono);
|
|
color: rgba(245, 245, 247, .82);
|
|
white-space: nowrap;
|
|
}
|
|
.x-ndk-dot {
|
|
width: 4.5px;
|
|
height: 4.5px;
|
|
border-radius: 50%;
|
|
background: #f5f5f7;
|
|
box-shadow: 0 0 6px rgba(255, 255, 255, .85);
|
|
animation: x-ndk-pulse 2s ease-in-out infinite;
|
|
}
|
|
@keyframes x-ndk-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
|
|
.x-ndk {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-columns: 76px minmax(0, 1fr);
|
|
overflow: hidden;
|
|
}
|
|
.x-ndk-side {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5px;
|
|
padding: 5px 6px 4px;
|
|
background: rgba(255, 255, 255, .025);
|
|
border-right: 1px solid rgba(255, 255, 255, .07);
|
|
min-width: 0;
|
|
}
|
|
.x-ndk-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
height: 15px;
|
|
padding: 0 3px;
|
|
margin-bottom: 1px;
|
|
font: 600 8.5px/1 var(--sans);
|
|
color: #f5f5f7;
|
|
}
|
|
.x-ndk-mark {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 13px;
|
|
height: 13px;
|
|
border-radius: 3.5px;
|
|
background: #f5f5f7;
|
|
color: #09090b;
|
|
flex: none;
|
|
}
|
|
.x-ndk-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 3px;
|
|
height: 14px;
|
|
padding: 0 4px;
|
|
border-radius: 4px;
|
|
font: 400 8px/1 var(--mono);
|
|
color: rgba(245, 245, 247, .46);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
transition: background-color .22s var(--ease), color .22s var(--ease);
|
|
}
|
|
.x-ndk-item.ind { padding-left: 9px; }
|
|
.x-ndk-item.on {
|
|
background: rgba(255, 255, 255, .11);
|
|
color: #f5f5f7;
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
|
|
}
|
|
.x-ndk-item b { font: 600 7.2px/1 var(--mono); color: rgba(245, 245, 247, .76); }
|
|
.x-ndk-gpu {
|
|
margin-top: auto;
|
|
padding: 3px 3px 0;
|
|
border-top: 1px solid rgba(255, 255, 255, .06);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 3px;
|
|
font: 500 7.2px/1 var(--mono);
|
|
color: rgba(245, 245, 247, .52);
|
|
white-space: nowrap;
|
|
}
|
|
.x-ndk-bars { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 7px; }
|
|
.x-ndk-bars i { width: 1.8px; height: 3px; border-radius: 1px; background: rgba(245, 245, 247, .45); transition: height .2s; }
|
|
.x-ndk-bars i:nth-child(2) { height: 6px; }
|
|
.x-ndk-bars i:nth-child(3) { height: 4px; }
|
|
.x-ndk-bars.run i { background: #f5f5f7; animation: x-ndk-eq .75s ease-in-out infinite alternate; }
|
|
.x-ndk-bars.run i:nth-child(2) { animation-delay: .18s; }
|
|
.x-ndk-bars.run i:nth-child(3) { animation-delay: .36s; }
|
|
@keyframes x-ndk-eq { from { height: 2px; opacity: .55; } to { height: 7px; opacity: 1; } }
|
|
|
|
.x-ndk-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
gap: 3px;
|
|
padding: 5px 7px;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
.x-ndk-prompt {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
height: 17px;
|
|
padding: 0 6px;
|
|
border-radius: 5px;
|
|
border: 1px solid rgba(255, 255, 255, .1);
|
|
background: rgba(255, 255, 255, .065);
|
|
font: 500 8.2px/1 var(--sans);
|
|
color: #f5f5f7;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
.x-ndk-prompt > span:last-child { overflow: hidden; text-overflow: ellipsis; }
|
|
.x-ndk-you { font-size: 7px; color: rgba(245, 245, 247, .55); flex: none; }
|
|
.x-ndk-code {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 1px;
|
|
height: 42px;
|
|
padding: 2px 7px;
|
|
border-radius: 5.5px;
|
|
border: 1px solid rgba(255, 255, 255, .08);
|
|
background: rgba(0, 0, 0, .5);
|
|
font: 400 8px/1.28 var(--mono);
|
|
color: rgba(245, 245, 247, .64);
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
}
|
|
.x-ndk-sheen {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .14) 50%, transparent 80%);
|
|
animation: x-ndk-sweep .95s cubic-bezier(.16, 1, .3, 1) forwards;
|
|
pointer-events: none;
|
|
}
|
|
@keyframes x-ndk-sweep { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
|
|
.x-ndk-ln { display: flex; align-items: center; gap: 5px; }
|
|
.x-ndk-ln em { width: 8px; font-style: normal; color: rgba(245, 245, 247, .34); text-align: right; flex: none; }
|
|
.x-ndk-ln.add {
|
|
margin: 0 -7px;
|
|
padding: 1px 7px;
|
|
background: rgba(255, 255, 255, .1);
|
|
color: #fff;
|
|
}
|
|
.x-ndk-ln.add em { color: #fff; font-weight: 600; }
|
|
.x-ndk-cur {
|
|
display: inline-block;
|
|
width: 4px;
|
|
height: 9px;
|
|
margin-left: 2px;
|
|
border-radius: 1px;
|
|
background: #f5f5f7;
|
|
animation: x-ndk-blink .65s steps(1) infinite;
|
|
}
|
|
@keyframes x-ndk-blink { 50% { opacity: 0; } }
|
|
|
|
.x-ndk-lanes {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
height: 42px;
|
|
padding: 2px 7px;
|
|
border-radius: 5.5px;
|
|
border: 1px solid rgba(255, 255, 255, .08);
|
|
background: rgba(0, 0, 0, .5);
|
|
}
|
|
.x-ndk-lane {
|
|
display: grid;
|
|
grid-template-columns: 28px minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font: 500 7.8px/1 var(--mono);
|
|
}
|
|
.x-ndk-lane b { color: #f5f5f7; font-weight: 600; }
|
|
.x-ndk-lane em { font-style: normal; color: rgba(245, 245, 247, .62); white-space: nowrap; }
|
|
.x-ndk-bar { position: relative; height: 3.5px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
|
|
.x-ndk-bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(245, 245, 247, .55), #fff); transform-origin: 0 50%; }
|
|
|
|
.x-ndk-foot {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 6px;
|
|
height: 17px;
|
|
min-width: 0;
|
|
}
|
|
.x-ndk-stat {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font: 500 8px/1 var(--mono);
|
|
color: rgba(245, 245, 247, .74);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.x-ndk-stat.ok {
|
|
padding: 2.5px 7px;
|
|
border-radius: 999px;
|
|
background: #f5f5f7;
|
|
color: #09090b;
|
|
font-weight: 600;
|
|
}
|
|
.x-ndk-spin {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
border: 1.3px solid rgba(255, 255, 255, .24);
|
|
border-top-color: #f5f5f7;
|
|
animation: x-ndk-turn .7s linear infinite;
|
|
flex: none;
|
|
}
|
|
@keyframes x-ndk-turn { to { transform: rotate(360deg); } }
|
|
.x-ndk-meta { font: 500 7.8px/1 var(--mono); color: rgba(245, 245, 247, .46); white-space: nowrap; flex: none; }
|
|
|
|
/* Live miniature Hanzo Machines H100 rack & API quote preview */
|
|
.x-nmc {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-columns: 82px minmax(0, 1fr);
|
|
overflow: hidden;
|
|
}
|
|
.x-nmc-rack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
gap: 3px;
|
|
padding: 6px;
|
|
background: rgba(255, 255, 255, .022);
|
|
border-right: 1px solid rgba(255, 255, 255, .07);
|
|
}
|
|
.x-nmc-blade {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
height: 17px;
|
|
padding: 0 5px;
|
|
border-radius: 4px;
|
|
border: 1px solid rgba(255, 255, 255, .08);
|
|
background: rgba(0, 0, 0, .45);
|
|
color: rgba(245, 245, 247, .34);
|
|
transition: border-color .26s var(--ease), background-color .26s var(--ease), color .26s var(--ease), box-shadow .26s var(--ease);
|
|
}
|
|
.x-nmc-blade.on {
|
|
border-color: rgba(255, 255, 255, .28);
|
|
background: rgba(255, 255, 255, .1);
|
|
color: #f5f5f7;
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
|
|
}
|
|
.x-nmc-blade b { font: 600 7.2px/1 var(--mono); letter-spacing: .02em; }
|
|
.x-nmc-fins { flex: 1; display: flex; align-items: center; justify-content: center; gap: 1.8px; height: 8px; }
|
|
.x-nmc-fins i { width: 1px; height: 100%; background: rgba(255, 255, 255, .14); transition: background-color .26s var(--ease); }
|
|
.x-nmc-blade.on .x-nmc-fins i { background: rgba(255, 255, 255, .38); }
|
|
.x-nmc-led {
|
|
width: 4.5px;
|
|
height: 4.5px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, .16);
|
|
flex: none;
|
|
transition: background-color .26s var(--ease), box-shadow .26s var(--ease);
|
|
}
|
|
.x-nmc-blade.on .x-nmc-led {
|
|
background: #fff;
|
|
box-shadow: 0 0 6px rgba(255, 255, 255, .92);
|
|
}
|
|
.x-nmc-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
gap: 3px;
|
|
padding: 5px 8px;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
.x-nmc-tabs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
height: 17px;
|
|
}
|
|
.x-nmc-tab {
|
|
padding: 2.5px 5.5px;
|
|
border-radius: 4px;
|
|
border: 1px solid rgba(255, 255, 255, .1);
|
|
background: rgba(255, 255, 255, .04);
|
|
font: 600 7.5px/1 var(--mono);
|
|
color: rgba(245, 245, 247, .52);
|
|
transition: background-color .2s, color .2s, border-color .2s;
|
|
}
|
|
.x-nmc-tab.on {
|
|
background: #f5f5f7;
|
|
border-color: #f5f5f7;
|
|
color: #09090b;
|
|
}
|
|
.x-nmc-verb {
|
|
margin-left: auto;
|
|
font: 500 7.4px/1 var(--mono);
|
|
color: rgba(245, 245, 247, .48);
|
|
white-space: nowrap;
|
|
}
|
|
.x-nmc-quote {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 5px;
|
|
height: 40px;
|
|
padding: 3px 7px;
|
|
border-radius: 5.5px;
|
|
border: 1px solid rgba(255, 255, 255, .09);
|
|
background: rgba(0, 0, 0, .52);
|
|
}
|
|
.x-nmc-price {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 3px;
|
|
white-space: nowrap;
|
|
}
|
|
.x-nmc-price strong {
|
|
font: 600 13px/1 var(--sans);
|
|
letter-spacing: -.02em;
|
|
color: #fff;
|
|
}
|
|
.x-nmc-price span { font: 500 8.5px/1 var(--mono); color: rgba(245, 245, 247, .54); }
|
|
.x-nmc-price em {
|
|
margin-left: auto;
|
|
font: 500 8px/1 var(--mono);
|
|
color: rgba(245, 245, 247, .82);
|
|
}
|
|
.x-nmc-meter {
|
|
position: relative;
|
|
height: 3.5px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, .1);
|
|
overflow: hidden;
|
|
}
|
|
.x-nmc-meter i {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background: linear-gradient(90deg, rgba(245, 245, 247, .58), #fff);
|
|
transform-origin: 0 50%;
|
|
}
|
|
|
|
/* Bespoke live miniature product & developer workspaces (.x-nlw*) */
|
|
.x-nlw {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
gap: 3px;
|
|
padding: 5px 8px;
|
|
overflow: hidden;
|
|
}
|
|
.x-nlw-tabs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
height: 16px;
|
|
flex: none;
|
|
}
|
|
.x-nlw-rows {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 2px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
padding: 2px 6px;
|
|
border-radius: 5.5px;
|
|
border: 1px solid rgba(255, 255, 255, .08);
|
|
background: rgba(0, 0, 0, .5);
|
|
overflow: hidden;
|
|
}
|
|
.x-nlw-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
height: 13.5px;
|
|
padding: 0 4px;
|
|
border-radius: 3.5px;
|
|
font: 400 7.6px/1 var(--mono);
|
|
color: rgba(245, 245, 247, .58);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
transition: background-color .2s, color .2s;
|
|
}
|
|
.x-nlw-row.hi {
|
|
background: rgba(255, 255, 255, .11);
|
|
color: #fff;
|
|
}
|
|
.x-nlw-row b { font-weight: 600; color: #f5f5f7; flex: none; }
|
|
.x-nlw-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
|
|
.x-nlw-row em { font-style: normal; color: rgba(245, 245, 247, .82); flex: none; }
|
|
.x-nlw-mini {
|
|
width: 28px;
|
|
height: 3px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, .1);
|
|
overflow: hidden;
|
|
flex: none;
|
|
}
|
|
.x-nlw-mini u {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #f5f5f7;
|
|
transform-origin: 0 50%;
|
|
text-decoration: none;
|
|
}
|
|
.x-nlw-dag {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 4px;
|
|
flex: 1;
|
|
align-items: center;
|
|
}
|
|
.x-nlw-node {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 2.5px;
|
|
height: 38px;
|
|
padding: 0 5px;
|
|
border-radius: 5px;
|
|
border: 1px solid rgba(255, 255, 255, .09);
|
|
background: rgba(0, 0, 0, .48);
|
|
font: 500 7.4px/1 var(--mono);
|
|
color: rgba(245, 245, 247, .48);
|
|
overflow: hidden;
|
|
transition: border-color .22s, background-color .22s, color .22s;
|
|
}
|
|
.x-nlw-node.on {
|
|
border-color: rgba(255, 255, 255, .34);
|
|
background: rgba(255, 255, 255, .11);
|
|
color: #fff;
|
|
}
|
|
.x-nlw-node b { font-weight: 600; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.x-nlw-node i { font-style: normal; font-size: 6.8px; opacity: .78; white-space: nowrap; }
|
|
.x-nlw-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 4px;
|
|
height: 50px;
|
|
}
|
|
.x-nlw-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
padding: 5px;
|
|
border-radius: 5px;
|
|
border: 1px solid rgba(255, 255, 255, .08);
|
|
background: rgba(0, 0, 0, .45);
|
|
opacity: .42;
|
|
transition: opacity .24s, border-color .24s, background-color .24s;
|
|
}
|
|
.x-nlw-card.on {
|
|
opacity: 1;
|
|
border-color: rgba(255, 255, 255, .28);
|
|
background: rgba(255, 255, 255, .09);
|
|
}
|
|
.x-nlw-card i { display: block; width: 65%; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, .78); }
|
|
.x-nlw-card u { display: block; width: 100%; height: 18px; border-radius: 3px; background: rgba(255, 255, 255, .12); text-decoration: none; }
|
|
.x-nlw-spark {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 3px;
|
|
height: 52px;
|
|
padding: 6px 7px;
|
|
border-radius: 5.5px;
|
|
border: 1px solid rgba(255, 255, 255, .08);
|
|
background: rgba(0, 0, 0, .5);
|
|
}
|
|
.x-nlw-spark > i {
|
|
width: 8px;
|
|
border-radius: 2px 2px 0 0;
|
|
background: rgba(255, 255, 255, .28);
|
|
transition: height .35s var(--ease);
|
|
}
|
|
.x-nlw-spark > i.hi { background: #f5f5f7; }
|
|
.x-nlw-kpi {
|
|
margin-left: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 3px;
|
|
}
|
|
.x-nlw-kpi strong { font: 600 11.5px/1 var(--sans); color: #fff; white-space: nowrap; }
|
|
.x-nlw-kpi span { font: 500 7.2px/1 var(--mono); color: rgba(245, 245, 247, .55); white-space: nowrap; }
|
|
.x-nlw-ab {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 5px;
|
|
flex: 1;
|
|
align-items: center;
|
|
}
|
|
.x-nlw-pane {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3.5px;
|
|
padding: 5px 6px;
|
|
border-radius: 5px;
|
|
border: 1px solid rgba(255, 255, 255, .09);
|
|
background: rgba(0, 0, 0, .48);
|
|
font: 500 7.4px/1 var(--mono);
|
|
color: rgba(245, 245, 247, .56);
|
|
transition: border-color .22s, background-color .22s;
|
|
}
|
|
.x-nlw-pane.on {
|
|
border-color: rgba(255, 255, 255, .3);
|
|
background: rgba(255, 255, 255, .09);
|
|
color: #fff;
|
|
}
|
|
.x-nlw-pane b { font-weight: 600; color: #f5f5f7; }
|
|
.x-nlw-pane .x-ndk-bar u {
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background: #f5f5f7;
|
|
transition: width .36s var(--ease);
|
|
text-decoration: none;
|
|
}
|
|
.x-nlw-sub { font: 400 7.8px/1.2 var(--mono); color: rgba(245, 245, 247, .68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.x-nlw-heat {
|
|
display: grid;
|
|
grid-template-columns: repeat(8, 1fr);
|
|
gap: 3px;
|
|
padding: 6px 8px;
|
|
border-radius: 5.5px;
|
|
border: 1px solid rgba(255, 255, 255, .08);
|
|
background: rgba(0, 0, 0, .5);
|
|
height: 52px;
|
|
align-content: center;
|
|
}
|
|
.x-nlw-heat i { height: 9px; border-radius: 2px; background: rgba(255, 255, 255, .08); transition: background-color .3s; }
|
|
.x-nlw-heat i.lv1 { background: rgba(255, 255, 255, .18); }
|
|
.x-nlw-heat i.lv2 { background: rgba(255, 255, 255, .34); }
|
|
.x-nlw-heat i.lv3 { background: rgba(255, 255, 255, .62); }
|
|
.x-nlw-heat i.lv4 { background: #f5f5f7; }
|
|
.x-nlw-uptime {
|
|
display: grid;
|
|
grid-template-columns: repeat(22, 1fr);
|
|
gap: 2.2px;
|
|
align-items: center;
|
|
height: 52px;
|
|
padding: 8px;
|
|
border-radius: 5.5px;
|
|
border: 1px solid rgba(255, 255, 255, .08);
|
|
background: rgba(0, 0, 0, .5);
|
|
}
|
|
.x-nlw-uptime i { height: 26px; border-radius: 2px; background: rgba(245, 245, 247, .68); transition: transform .25s, background-color .25s; }
|
|
.x-nlw-uptime i.pulse { background: #fff; transform: scaleY(1.16); box-shadow: 0 0 6px rgba(255, 255, 255, .75); }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.x-ndk-dot, .x-ndk-bars.run i, .x-ndk-sheen, .x-ndk-cur, .x-ndk-spin { animation: none; }
|
|
}
|
|
|
|
.x-nav-stage-top {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
}
|
|
.x-nav-stage-kick {
|
|
font: 500 9.5px/1.2 var(--mono);
|
|
letter-spacing: .08em;
|
|
text-transform: uppercase;
|
|
color: rgba(245, 245, 247, .74);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
min-width: 0;
|
|
}
|
|
.x-nav-stage-tags { display: inline-flex; gap: 4px; flex-wrap: nowrap; flex: none; }
|
|
.x-nav-stage-tags i {
|
|
font-style: normal;
|
|
padding: 3px 6px;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(255, 255, 255, .18);
|
|
background: rgba(0, 0, 0, .52);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
font: 500 9px/1 var(--mono);
|
|
letter-spacing: .04em;
|
|
text-transform: uppercase;
|
|
color: #e5e5ea;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.x-nav-stage-t {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
margin-top: auto;
|
|
padding-top: 16px;
|
|
}
|
|
.x-nav-stage-product .x-nav-stage-t {
|
|
padding-top: 6px;
|
|
}
|
|
.x-nav-stage-t b {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 21px;
|
|
font-weight: 560;
|
|
letter-spacing: -.022em;
|
|
line-height: 1.12;
|
|
color: #f5f5f7;
|
|
}
|
|
.x-nav-stage-t b svg { flex: none; opacity: .82; transition: transform .32s var(--ease), opacity .25s; }
|
|
.x-nav-stage:hover .x-nav-stage-t b svg { transform: translateX(3px); opacity: 1; }
|
|
.x-nav-stage-t p {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
line-height: 1.42;
|
|
color: rgba(229, 229, 234, .82);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
.x-nav-stage-url {
|
|
font: 500 11px/1.2 var(--mono);
|
|
color: rgba(245, 245, 247, .5);
|
|
overflow-wrap: anywhere;
|
|
margin-top: 1px;
|
|
}
|
|
}
|
|
.x-sheet { display: flex; flex-direction: column; height: 100dvh; padding: 0 20px calc(20px + env(safe-area-inset-bottom)); box-sizing: border-box; }
|
|
.x-sheet-top { display: flex; align-items: center; gap: 4px; height: 68px; flex: none; }
|
|
.x-sheet-home { font: 600 21px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); text-decoration: none; margin-right: auto; }
|
|
.x-sheet-s { width: 44px; height: 44px; margin-right: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--x-raised); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
|
|
.x-sheet-x { top: 12px !important; width: 44px !important; height: 44px !important; color: var(--ink); }
|
|
.x-sheet-list { flex: 1 0 auto; }
|
|
.x-sheet-b { min-height: 56px; }
|
|
.x-sheet-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
|
|
@media (max-width: 380px) { .x-sheet-body { grid-template-columns: minmax(0, 1fr); } }
|
|
.x-sheet-foot { flex: none; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
|
|
.x-sheet-lh { margin: 0 0 -4px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
|
|
.x-sheet-login { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
|
.x-sheet-login a { display: flex; flex-direction: column; gap: 3px; min-height: 56px; justify-content: center; padding: 10px 14px; border-radius: 14px; background: var(--x-fill); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
|
|
.x-sheet-login b { font-size: 15px; font-weight: 560; }
|
|
.x-sheet-login span { font-size: 12.5px; color: var(--soft); }
|
|
.x-sheet-ask { width: 100%; }
|
|
|
|
/* ---------- sound toggle (components/Sound.jsx): in Hanzo's header, before the language button ---------- */
|
|
|
|
/* ---------- the phone ask (components/Ask.jsx): slim and quiet, phones only, only where it covers nothing ---------- */
|
|
.x-ask { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: var(--x-z-ask); height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-radius: var(--x-radius-pill); background: var(--room-raised); color: var(--room-ink); border: 1px solid var(--room-line); box-shadow: 0 10px 28px -16px rgba(0, 0, 0, .35); font: 500 15px/1 var(--sans); text-decoration: none; -webkit-tap-highlight-color: transparent; }
|
|
.x-ask[data-tone=dark] { background: #171717; color: #fafafa; border-color: rgba(255, 255, 255, .14); }
|
|
.x-ask i { font-style: normal; transition: transform var(--dur-hover) var(--ease-out-expo); }
|
|
.x-ask:active { transform: scale(.98); }
|
|
.x-ask:active i { transform: translateX(3px); }
|
|
@media (min-width: 701px) { .x-ask { display: none; } }
|
|
|
|
/* ---------- reduced motion: final states, no travel ---------- */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
|
|
.x-skel::after { display: none; }
|
|
.x-btn[aria-busy='true']::after { animation: x-turn 1.6s linear infinite !important; } /* a loading ring is information, not decoration */
|
|
}
|