mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
519 lines
42 KiB
CSS
519 lines
42 KiB
CSS
/* ---------- /benchmarks family, v2: a model launch for a benchmark (stage, figures, chapters, spec, source) ---------- */
|
|
@import '../../v2/fam.css';
|
|
.xbr { --xbr-hl: rgba(0, 0, 0, .08); }
|
|
|
|
/* stage: the title huge, then the card close and big */
|
|
.xbr-stage { position: relative; padding: clamp(24px, 3vw, 40px) 0 clamp(96px, 10vw, 152px); overflow: clip; }
|
|
.xbr-sigil { position: absolute; top: -4%; right: -8%; width: min(70vw, 1000px); height: 760px; color: var(--ink); opacity: .1; pointer-events: none; }
|
|
.xbr-top-g { position: relative; align-items: end; row-gap: 28px; padding-top: clamp(8px, 1.4vw, 24px); }
|
|
.xbr-head { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 20px; }
|
|
.xbr-h1 { max-width: 18ch; overflow-wrap: anywhere; }
|
|
.xbr-side { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 24px; padding-bottom: 8px; min-width: 0; }
|
|
.xbr-lede { color: var(--soft); max-width: 36ch; font-size: clamp(19px, 1.45vw, 21px); }
|
|
.xbr-lede a { color: var(--ink); }
|
|
.xbr-acts { display: flex; flex-wrap: wrap; gap: 12px; }
|
|
.xbr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
|
|
.xbr-crumb { margin: 0; font-size: 15px; color: var(--soft); }
|
|
.xbr-crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .3); text-underline-offset: 4px; }
|
|
@media (hover: hover) { .xbr-crumb a:hover { text-decoration-color: var(--ink); } }
|
|
.xbr-crumb > span, .xbr-crumb > a { margin-right: 6px; }
|
|
.xbr-kicker { margin: 0; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
|
|
.xbr-intro { position: relative; margin-top: 40px; align-items: start; row-gap: 16px; }
|
|
.xbr-intro-c { grid-column: 1 / span 7; min-width: 0; }
|
|
.xbr-intro-n { grid-column: 8 / span 5; align-self: center; }
|
|
.xbr-intro-n .xbr-p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
|
|
.xbr-stage-o { position: relative; max-width: 1240px; margin-top: clamp(40px, 4vw, 64px); }
|
|
|
|
/* the card: the hero object. A live readout on the left, the table / chart on the right */
|
|
.xbr-turn { margin: 0; min-width: 0; padding: clamp(20px, 2.4vw, 36px); }
|
|
.xbr-turn-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 clamp(20px, 2.4vw, 32px); }
|
|
.xbr-turn-g { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
|
|
.xbr-turn.one .xbr-turn-g { grid-template-columns: minmax(0, 1fr); }
|
|
.xbr-turn-b { min-width: 0; }
|
|
.xbr-turn-v { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--card); }
|
|
.xbr-turn-v button { position: relative; min-height: 38px; min-width: 76px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: 500 14px/1 var(--sans); color: var(--soft); cursor: pointer; }
|
|
.xbr-turn-v button[aria-pressed='true'] { color: #fff; }
|
|
.xbr-turn-v button span { position: relative; }
|
|
.xbr-turn-v button { transition: color .3s var(--ease); }
|
|
.xbr-turn-vb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
|
|
.xbr-cols { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding-bottom: 2px; scrollbar-width: none; }
|
|
.xbr-cols::-webkit-scrollbar { display: none; }
|
|
.xbr-cols button { flex: none; min-height: 38px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; background: #fff; font: 500 13px/1 var(--mono); color: var(--soft); cursor: pointer; transition: border-color .2s, color .2s; }
|
|
.xbr-cols button:hover { color: var(--ink); border-color: rgba(0, 0, 0, .2); }
|
|
.xbr-cols button[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: #fff; }
|
|
|
|
/* the readout: the row the playhead is on; its figure is the hero */
|
|
.xbr-ro { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 0 22px; min-width: 0; }
|
|
.xbr-ro-l { font-size: 17px; line-height: 1.35; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
|
|
/* the figure's box never changes height, whatever the row: a rolling figure must not move the page */
|
|
.xbr-ro-vw { position: relative; display: flex; align-items: flex-end; overflow: hidden; height: clamp(64px, 6.2vw, 92px); }
|
|
.xbr-ro-v { display: block; font-size: clamp(52px, 5.7vw, 84px); color: var(--ink); white-space: nowrap; }
|
|
.xbr-ro-v.mid { font-size: clamp(44px, 4.4vw, 64px); }
|
|
.xbr-ro-v.long { font-size: clamp(32px, 3vw, 44px); }
|
|
.xbr-ro-s { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
|
|
.xbr-ro-n { font-size: 13px; color: var(--faint); }
|
|
.xbr-ro-t { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: rgba(0, 0, 0, .1); overflow: hidden; }
|
|
.xbr-ro-t::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; animation: xbr-step 1.9s linear both; }
|
|
.xbr-ro-t.rest::after { animation: none; transform: scaleX(0); }
|
|
.xbr-turn-ctl { display: flex; align-items: center; gap: 8px; }
|
|
.xbr-walk { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: border-color var(--ui) var(--out), transform var(--press) var(--out); }
|
|
@media (hover: hover) { .xbr-walk:hover { border-color: rgba(0, 0, 0, .4); } }
|
|
.xbr-walk:active { transform: scale(.96); }
|
|
@keyframes xbr-step { from { transform: scaleX(0); } to { transform: scaleX(1); } }
|
|
.xbr-ro.big { justify-content: center; height: 100%; padding: clamp(28px, 4vw, 56px); gap: 16px; }
|
|
.xbr-ro.big .xbr-ro-l { font-size: 21px; font-weight: 497; letter-spacing: -.015em; max-width: 26ch; }
|
|
.xbr-ro.big .xbr-ro-vw { height: clamp(72px, 6.6vw, 96px); }
|
|
.xbr-ro.big .xbr-ro-v { font-size: clamp(56px, 5.7vw, 84px); }
|
|
.xbr-ro.big .xbr-ro-v.mid { font-size: clamp(44px, 4.4vw, 64px); }
|
|
.xbr-ro.big .xbr-ro-v.long { font-size: clamp(32px, 3vw, 44px); }
|
|
.xbr-ro.big .xbr-ro-t { left: clamp(28px, 4vw, 56px); right: clamp(28px, 4vw, 56px); bottom: clamp(28px, 4vw, 48px); }
|
|
|
|
/* bars: in table view a row of figures; in chart view the figure drops onto the end of its bar */
|
|
.xbr-bars-h { display: flex; justify-content: space-between; gap: 12px; padding: 0 2px 12px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--xbr-hl); }
|
|
.xbr-bars-h > span { display: inline-flex; align-items: center; gap: 8px; }
|
|
.xbr-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--ink); }
|
|
.xbr-key.b { background: rgba(0, 0, 0, .2); }
|
|
.xbr-bars ul { margin: 0; padding: 0; list-style: none; }
|
|
.xbr-bars li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 20px; grid-template-areas: 'l va' 'ba ba'; align-items: center; gap: 4px 16px; padding: 11px 2px; border-bottom: 1px solid var(--xbr-hl); cursor: default; }
|
|
.xbr-bars.chart li { grid-template-areas: 'l l' 'ba va'; }
|
|
.xbr-bars:not(.vs) li { grid-template-columns: minmax(0, 1fr) var(--xbr-vw, 8ch); }
|
|
.xbr-bars:not(.vs) .xbr-v { justify-self: stretch; text-align: right; }
|
|
.xbr-bars.vs li, .xbr-bars.vs.chart li { grid-template-rows: auto auto auto; grid-template-areas: 'l l' 'ba va' 'bb vb'; }
|
|
.xbr-bars li.none { opacity: .45; }
|
|
.xbr-bl { grid-area: l; font-size: 15px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
|
|
.xbr-bar { grid-area: ba; display: block; height: 12px; border-radius: 6px; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
|
|
.xbr-bar.bb { grid-area: bb; background: rgba(0, 0, 0, .16); }
|
|
.xbr-bars li:not(.lit) .xbr-bar.ba { background: #a3a3a3; }
|
|
.xbr-bars li.own .xbr-bar.ba { background: var(--ink); }
|
|
.xbr-bars.chart .xbr-bar { transform: scaleX(var(--xbr-w)); }
|
|
.xbr-bars.chart.racing .xbr-bar { transform: scaleX(var(--xbr-r, 0)); transition: none !important; transition-delay: 0s !important; }
|
|
.xbr-bars.chart li:nth-child(2) .xbr-bar { transition-delay: .04s; } .xbr-bars.chart li:nth-child(3) .xbr-bar { transition-delay: .08s; } .xbr-bars.chart li:nth-child(n+4) .xbr-bar { transition-delay: .12s; }
|
|
.xbr-v { grid-area: va; justify-self: end; font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--ink); }
|
|
.xbr-v.vb { grid-area: vb; max-width: 30ch; white-space: normal; text-align: right; font-weight: 400; font-size: 13px; color: var(--soft); }
|
|
.xbr-bars li.lit .xbr-bl { font-weight: 600; }
|
|
.xbr-bars li::before { content: ''; position: absolute; inset: 2px -10px; border-radius: 12px; background: #f5f5f5; opacity: 0; transition: opacity .35s var(--ease); }
|
|
.xbr-bars li > * { position: relative; }
|
|
.xbr-bars li.lit::before, .xbr-bars li:hover::before { opacity: 1; }
|
|
|
|
/* trend: Kai's revisions as a list, then as a line over the dates hanzo.ai plots */
|
|
.xbr-tr { position: relative; height: 360px; color: var(--ink); }
|
|
.xbr-tr:not(.chart) .xbr-tr-pts { max-height: 100%; overflow-y: auto; }
|
|
.xbr-tr-pts { margin: 0; padding: 0; list-style: none; color: var(--ink); }
|
|
.xbr-tr-pts li { border-bottom: 1px solid var(--xbr-hl); }
|
|
.xbr-tr-pts button { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 8px 2px; border: 0; background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
|
|
.xbr-tr-who { font-size: 15px; }
|
|
.xbr-tr-val { font-size: 15px; font-weight: 500; }
|
|
.xbr-tr-when { font-size: 13px; color: var(--faint); white-space: nowrap; }
|
|
.xbr-dot { display: none; }
|
|
.xbr-tr-pts li.lit .xbr-tr-who { font-weight: 600; }
|
|
.xbr-tr.chart { height: 300px; margin: 18px 0 40px 48px; }
|
|
.xbr-tr.chart .xbr-tr-pts { position: absolute; inset: 0; }
|
|
.xbr-tr.chart .xbr-tr-pts li { position: absolute; width: 0; height: 0; border: 0; }
|
|
.xbr-tr.chart .xbr-tr-pts button { position: absolute; left: -22px; top: -22px; display: block; width: 44px; height: 44px; min-height: 0; padding: 0; }
|
|
.xbr-tr.chart .xbr-dot { position: absolute; left: 50%; top: 50%; display: block; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px #fff; transition: transform .35s var(--ease); }
|
|
.xbr-tr.chart li.lit .xbr-dot, .xbr-tr.chart button:hover .xbr-dot, .xbr-tr.chart button:focus-visible .xbr-dot { transform: scale(1.6); }
|
|
.xbr-tr.chart .xbr-tr-val { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; white-space: nowrap; }
|
|
.xbr-tr.chart .xbr-tr-who, .xbr-tr.chart .xbr-tr-when { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; opacity: 0; transition: opacity .3s; pointer-events: none; }
|
|
.xbr-tr.chart .xbr-tr-who { top: 40px; }
|
|
.xbr-tr.chart .xbr-tr-when { top: 58px; }
|
|
.xbr-tr.chart li.lit .xbr-tr-who, .xbr-tr.chart li.lit .xbr-tr-when { opacity: 1; }
|
|
.xbr-tr.chart li:not(.lit) .xbr-tr-val { opacity: 0; }
|
|
.xbr-tr.chart li.lit { z-index: 2; }
|
|
.xbr-tr-axes { position: absolute; inset: 0; }
|
|
.xbr-tick { position: absolute; left: -48px; transform: translateY(50%); font: 13px var(--mono); color: var(--faint); }
|
|
/* the axes stay in the page (hanzo.ai's own tick labels) but show only once the table has turned */
|
|
.xbr-tr:not(.chart) .xbr-tr-axes, .xbr-tr:not(.chart) .xbr-tr-dates { display: none; }
|
|
.xbr-base { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(0, 0, 0, .35); }
|
|
.xbr-base em { position: absolute; right: 0; bottom: 4px; font: normal 13px var(--mono); color: var(--soft); }
|
|
.xbr-tr-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; clip-path: inset(-10px 100% -10px -10px); }
|
|
.xbr-tr.chart .xbr-tr-line { clip-path: inset(-10px -10px -10px -10px); transition: clip-path 1.3s cubic-bezier(.16, 1, .3, 1) .35s; }
|
|
.xbr-tr-dates { position: absolute; left: 0; right: 0; bottom: -32px; display: flex; justify-content: space-between; font-size: 13px; color: var(--faint); }
|
|
.xbr-one { display: flex; flex-direction: column; gap: 14px; padding: 8px 0 4px; }
|
|
.xbr-one-l { font-size: 17px; color: var(--soft); }
|
|
.xbr-one-v { font-size: clamp(52px, 5.7vw, 84px); color: var(--ink); }
|
|
.xbr-one-h { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
|
|
|
|
/* the command, ready to copy */
|
|
.xbr-cmd { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 16px 20px; border-radius: 16px; background: #0a0a0a; color: #f5f5f7; }
|
|
.xbr-cmd pre { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
.xbr-cmd pre > span { color: #86868b; }
|
|
.xbr-cmd .x-copy { flex: none; background: transparent; border-color: rgba(255, 255, 255, .2); color: #a1a1a6; }
|
|
.xbr-cmd .x-copy:hover { color: #fff; }
|
|
|
|
/* facts: a spec line under the stage */
|
|
.xbr-facts-s { padding: 0 0 clamp(24px, 3vw, 40px); }
|
|
.xbr-stage { padding-bottom: clamp(56px, 6vw, 96px); }
|
|
.xbr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 var(--gut); margin: 0; }
|
|
.xbr-facts > div { padding: 20px 0; border-top: 1px solid var(--ink); }
|
|
.xbr-facts dt { font: 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
|
|
.xbr-facts dd { margin: 10px 0 0; font-size: 17px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
|
|
.xbr-facts a, .xbr-p a, .xbr-more a, .xbr-lede a, .xbr-spec a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(0, 0, 0, .3); transition: text-underline-offset var(--ui) var(--out), text-decoration-color var(--ui) var(--out); }
|
|
@media (hover: hover) { .xbr-facts a:hover, .xbr-p a:hover, .xbr-more a:hover, .xbr-lede a:hover, .xbr-spec a:hover { text-underline-offset: 5px; text-decoration-color: var(--ink); } }
|
|
|
|
/* latest: the headline figures, huge */
|
|
.xbr-figs .v2f-grid { align-items: end; row-gap: 48px; }
|
|
.xbr-figs-h { grid-column: 1 / -1; }
|
|
.xbr-fig { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; }
|
|
.xbr-fig .v2f-num { font-size: 44px; }
|
|
.xbr-fig.big { grid-column: 1 / span 7; }
|
|
.xbr-fig.big .v2f-num { font-size: 64px; color: var(--ink); }
|
|
.xbr-fig-l { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.35; color: var(--ink); max-width: 36ch; }
|
|
.xbr-fig-s { font-size: 15px; line-height: 1.45; color: var(--soft); max-width: 44ch; }
|
|
.xbr-fig:hover .xbr-fig-l { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
|
|
.xbr-figs-r { grid-column: 9 / span 4; display: grid; gap: 40px; margin: 0; padding: 0; list-style: none; }
|
|
.xbr-figs-r.many { grid-column: 8 / span 5; grid-template-columns: 1fr 1fr; gap: 36px var(--gut); }
|
|
.xbr-figs-r.many .v2f-num { font-size: 32px; }
|
|
.xbr-figs-r.many .xbr-fig-l { font-size: 15px; }
|
|
.xbr-figs-r.many .xbr-fig-s { font-size: 13px; }
|
|
|
|
/* chapters: the words pin, the section's table or the live figure wipes in */
|
|
.xbr-ch-t { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
|
|
.xbr-ch-h { max-width: 14ch; }
|
|
.xbr-ch-b .xbr-p { font-size: inherit; color: inherit; max-width: 52ch; }
|
|
.xbr-ch .v2f-ch-v { display: flex; align-items: center; }
|
|
.xbr-ch-v { width: 100%; height: 100%; overflow: hidden; }
|
|
.xbr-ch-v.v2f-obj { height: auto; max-height: 100%; }
|
|
.xbr-ch-v.v2f-obj { display: flex; padding: 12px; }
|
|
.xbr-ch-v.v2f-obj .xbr-tw { flex: 1; box-shadow: none; max-height: 100%; overflow: auto; border-radius: 18px; }
|
|
.xbr-ch-fig { border-radius: var(--r-hero); }
|
|
.xbr-ch-fig.ink { background: #171717; color: #fafafa; }
|
|
.xbr-ch-fig.ink .xbr-ro-l, .xbr-ch-fig.ink .xbr-ro-v { color: #fff; }
|
|
.xbr-ch-fig.ink .xbr-ro-s, .xbr-ch-fig.ink .xbr-ro-n { color: rgba(255, 255, 255, .72); }
|
|
.xbr-ch-fig.ink .xbr-ro-t { background: rgba(255, 255, 255, .25); }
|
|
.xbr-ch-fig.ink .xbr-ro-t::after { background: #fff; }
|
|
.xbr-ch-fig.card { background: var(--card); }
|
|
.xbr-ch-fig.line { background: #fff; border: 1px solid var(--hair); }
|
|
.xbr-ch-q { margin: 0; padding: 48px; font-size: 26px; font-weight: 497; letter-spacing: -.02em; line-height: 1.2; }
|
|
.xbr-sheet-b { display: flex; flex-direction: column; gap: 18px; }
|
|
|
|
/* one long section (result pages: History): the words on the left, the table as an object on the right */
|
|
.xbr-one-s { border-top: 1px solid var(--hair); }
|
|
.xbr-one-s .v2f-grid { align-items: start; row-gap: 48px; }
|
|
.xbr-one-l { grid-column: 1 / span 4; position: sticky; top: 112px; display: flex; flex-direction: column; gap: 28px; }
|
|
.xbr-one-ro { padding-top: 8px; border-top: 1px solid var(--hair); }
|
|
.xbr-one-ro .xbr-ro-v { font-size: 52px; }
|
|
.xbr-one-r { grid-column: 6 / span 7; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
|
|
.xbr-one-t { padding: 12px; }
|
|
.xbr-one-t .xbr-tw { box-shadow: none; }
|
|
|
|
/* spec list: short sections as a tech-spec sheet */
|
|
.xbr-spec { border-top: 1px solid var(--hair); }
|
|
.xbr-spec-r { padding: 36px 0; border-bottom: 1px solid var(--hair); row-gap: 16px; }
|
|
.xbr-spec-r:first-child { padding-top: 0; }
|
|
.xbr-spec-h { grid-column: 1 / span 4; margin: 0; font-size: 21px; font-weight: 497; letter-spacing: -.015em; line-height: 1.2; }
|
|
.xbr-spec-b { grid-column: 5 / span 8; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
|
|
.xbr-spec-b .xbr-p { font-size: 17px; }
|
|
|
|
/* text inside sections and sheets */
|
|
.xbr-p { margin: 0; max-width: 68ch; font-size: 16px; line-height: 1.65; color: #333336; text-wrap: pretty; }
|
|
.xbr-p strong { color: var(--ink); font-weight: 600; }
|
|
.xbr-p code { font: 14px var(--mono); }
|
|
.xbr-small { margin: 0; font-size: 15px; color: var(--soft); }
|
|
.xbr-h3 { margin: 18px 0 0; font-size: 17px; font-weight: 497; letter-spacing: -.01em; }
|
|
.xbr-a { min-height: 44px; }
|
|
.xbr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
|
|
.xbr-chip { display: inline-block; padding: 10px 14px; border-radius: 12px; background: var(--card); font-size: 15px; line-height: 1.4; }
|
|
|
|
/* tables: every cell, in a frame that scrolls on its own */
|
|
.xbr-tw { max-width: 100%; overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--hair); }
|
|
.xbr-tw:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
|
|
.xbr-tw table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
|
|
.xbr-tw th { position: sticky; top: 0; z-index: 1; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--ink); font: 500 13px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); text-align: left; white-space: nowrap; }
|
|
.xbr-tw td { padding: 13px 16px; border-top: 1px solid var(--hair); line-height: 1.45; vertical-align: top; font-feature-settings: 'tnum'; }
|
|
.xbr-tw td:first-child { font-weight: 500; }
|
|
.xbr-tw tbody tr { transition: background .2s; }
|
|
.xbr-tw tbody tr:hover { background: var(--card); }
|
|
.xbr-tw td a { color: var(--soft); font-size: 13px; margin-left: 6px; text-underline-offset: 3px; }
|
|
|
|
/* beyond: ask the source, the one dark room */
|
|
.xbr-src { padding: clamp(72px, 11vw, 188px) 0; }
|
|
.xbr-src-g { align-items: start; row-gap: 40px; }
|
|
.xbr-src-l { grid-column: 1 / span 5; }
|
|
.xbr-src-r { grid-column: 7 / span 6; min-width: 0; }
|
|
.xbr-src-u { margin: 0; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); font-size: 14px; line-height: 1.55; color: #a1a1a6; overflow-wrap: anywhere; }
|
|
.xbr-src-u b { color: #fff; font-weight: 600; }
|
|
.xbr-src-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
|
|
.xbr-ask { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border: 0; border-radius: 50%; background: #f5f5f7; color: #0a0a0a; cursor: pointer; transition: transform var(--press) var(--out), background-color var(--ui) var(--out); }
|
|
@media (hover: hover) { .xbr-ask:hover { background: #fff; } }
|
|
.xbr-ask:active { transform: scale(.96); }
|
|
.xbr-ask:disabled { cursor: progress; }
|
|
.xbr-ask-d { position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: none; width: auto; height: auto; }
|
|
.xbr-ask-d.on { animation: xbr-beat .8s ease-in-out infinite; }
|
|
@keyframes xbr-beat { 50% { opacity: .25; } }
|
|
.xbr-raw { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); color: #f5f5f7; transition: border-color var(--ui) var(--out), transform var(--press) var(--out); }
|
|
@media (hover: hover) { .xbr-raw:hover { border-color: rgba(255, 255, 255, .6); } }
|
|
.xbr-raw:active { transform: scale(.96); }
|
|
.xbr-src-s { min-height: 1.5em; margin: 16px 0 0; font-size: 15px; color: #a1a1a6; }
|
|
.xbr-src .xbr-cmd { background: rgba(255, 255, 255, .07); }
|
|
.xbr-term { border-radius: var(--r-hero); background: #0a0a0a; border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
|
|
.xbr-term-h { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
|
|
.xbr-term-h i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
|
|
.xbr-term-h span { margin-left: 10px; font-size: 13px; color: #86868b; }
|
|
.xbr-term-b { min-height: 320px; max-height: 560px; overflow: auto; padding: 20px; }
|
|
.xbr-src-wait { padding: 8px 4px; color: #86868b; font-size: 15px; overflow-wrap: anywhere; }
|
|
.xbr-caret { display: inline-block; width: 9px; height: 1.1em; margin-left: 4px; vertical-align: text-bottom; background: #f5f5f7; animation: xbr-beat 1.1s steps(1) infinite; }
|
|
.xbr-skel { display: grid; gap: 10px; }
|
|
.xbr-skel i { height: 92px; border-radius: 16px; background: rgba(255, 255, 255, .06); animation: xbr-beat 1.2s ease-in-out infinite; animation-delay: calc(var(--k) * .15s); }
|
|
.xbr-runs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
|
|
.xbr-runs li { padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
|
|
.xbr-run-id { margin: 0 0 12px; font-size: 13px; color: #fff; overflow-wrap: anywhere; }
|
|
.xbr-run-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 16px; margin: 0 0 12px; font-size: 13px; }
|
|
.xbr-run-k dt { color: #6e6e73; }
|
|
.xbr-run-k dd { margin: 2px 0 0; color: #e8e8ed; overflow-wrap: anywhere; }
|
|
.xbr-run-m { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
|
|
.xbr-run-m li { display: inline-flex; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
|
|
.xbr-run-m span { color: #a1a1a6; }
|
|
.xbr-run-m b { color: #fff; font-weight: 500; }
|
|
|
|
/* tail: Build on Hanzo Cloud, the siblings as cards that open, every other benchmark */
|
|
.xbr-band { padding: clamp(72px, 11vw, 188px) 0; }
|
|
.xbr-band-g { align-items: end; row-gap: 40px; }
|
|
.xbr-band-h { grid-column: 1 / span 8; color: #f5f5f7; }
|
|
.xbr-band-r { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
|
|
.xbr-band-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
|
|
.xbr-band-solid { background: #f5f5f7; color: #0a0a0a; border-color: #f5f5f7; min-height: 52px; padding: 0 28px; }
|
|
@media (hover: hover) { .xbr-band-solid:hover { background: #fff; border-color: #fff; } }
|
|
.xbr-band-link { color: #f5f5f7 !important; text-decoration-color: rgba(255, 255, 255, .4) !important; min-height: 44px; display: inline-flex; align-items: center; }
|
|
.xbr-band-k { color: #86868b; }
|
|
.xbr-next { margin-bottom: clamp(56px, 6vw, 96px); }
|
|
.xbr-more { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 980px; padding-top: 32px; border-top: 1px solid var(--hair); }
|
|
.xbr-more .xbr-h3 { margin: 0; }
|
|
.xbr-more .xbr-p { font-size: 17px; line-height: 1.8; }
|
|
.xbr-more .xbr-chip { background: none; padding: 0; font: 500 13px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 16px; }
|
|
|
|
@media (max-width: 900px) {
|
|
.xbr-stage { padding: 8px 0 56px; }
|
|
.xbr-sigil { width: 130vw; right: -40%; height: 520px; }
|
|
.xbr-head, .xbr-side, .xbr-intro-c, .xbr-intro-n { grid-column: 1 / -1; }
|
|
.xbr-head { gap: 8px; }
|
|
.xbr-side { gap: 20px; padding: 0; }
|
|
.xbr-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 16px; padding-top: 8px; }
|
|
.xbr-acts .x-mag, .xbr-acts .v2f-btn { width: 100%; }
|
|
.xbr-crumb, .xbr-kicker { font-size: 14px; }
|
|
.xbr-stage-o { margin-top: 20px; }
|
|
.xbr-top-g { row-gap: 14px; }
|
|
/* phone: Hanzo's figure leads the card, its controls sit between it and the table */
|
|
.xbr-turn { padding: 16px 16px 20px; display: flex; flex-direction: column; }
|
|
.xbr-turn-g { display: contents; }
|
|
.xbr-turn-g > .xbr-ro { order: 1; padding-bottom: 12px; }
|
|
.xbr-turn-h { order: 2; margin-bottom: 12px; }
|
|
.xbr-turn-b { order: 3; }
|
|
.xbr-ro-l { height: auto; }
|
|
.xbr-ro-vw { height: 64px; }
|
|
.xbr-ro.big .xbr-ro-vw { height: 64px; }
|
|
.xbr-ro-v { font-size: 52px; }
|
|
.xbr-bl, .xbr-v, .xbr-tr-who, .xbr-tr-val, .xbr-tr-when, .xbr-bars-h, .xbr-cols button, .xbr-tick, .xbr-base em, .xbr-tr-dates, .xbr-one-h, .xbr-facts dt, .xbr-tw th, .xbr-tw td, .xbr-tw td a, .xbr-ro-s, .xbr-ro-n, .xbr-v.vb { font-size: 14px; }
|
|
.xbr-v.vb { max-width: 20ch; }
|
|
.xbr-tr-pts button { grid-template-columns: minmax(0, 1fr) auto; }
|
|
.xbr-tr-pts .xbr-tr-when { grid-column: 1 / -1; }
|
|
.xbr-tr { height: 320px; }
|
|
.xbr-tr.chart { height: 252px; margin-left: 44px; }
|
|
.xbr-tr.chart .xbr-tr-when { display: none; }
|
|
.xbr-tick { left: -44px; }
|
|
.xbr-fig.big, .xbr-figs-r, .xbr-figs-r.many { grid-column: 1 / -1; }
|
|
.xbr-fig.big .v2f-num { font-size: 52px; }
|
|
.xbr-figs-r { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
|
|
.xbr-figs-r .v2f-num, .xbr-figs-r.many .v2f-num { font-size: 32px; }
|
|
.xbr-fig-s, .xbr-figs-r.many .xbr-fig-s { font-size: 14px; }
|
|
.xbr-ch-v { height: auto; }
|
|
.xbr-ch-v.v2f-obj .xbr-tw { max-height: 70svh; }
|
|
.xbr-ch-fig { min-height: 340px; }
|
|
.xbr-ro.big .xbr-ro-v { font-size: 52px; }
|
|
.xbr-ro-v.mid, .xbr-ro.big .xbr-ro-v.mid { font-size: 48px; }
|
|
.xbr-ro-v.long, .xbr-ro.big .xbr-ro-v.long { font-size: 34px; }
|
|
.xbr-one-l, .xbr-one-r { grid-column: 1 / -1; position: static; }
|
|
.xbr-spec-h, .xbr-spec-b { grid-column: 1 / -1; }
|
|
.xbr-spec-h { font-size: 20px; }
|
|
.xbr-src-l, .xbr-src-r { grid-column: 1 / -1; }
|
|
.xbr-src { padding: 120px 0; }
|
|
.xbr-term-b { min-height: 200px; }
|
|
.xbr-band-h, .xbr-band-r { grid-column: 1 / -1; }
|
|
.xbr-band { padding: 120px 0; }
|
|
.xbr-p, .xbr-spec-b .xbr-p, .xbr-more .xbr-p { font-size: 16px; }
|
|
.xbr-small, .xbr-chip, .xbr-src-u, .xbr-cmd pre, .xbr-run-id, .xbr-run-k, .xbr-run-m, .xbr-more .xbr-chip { font-size: 14px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.xbr-ro-t::after, .xbr-skel i, .xbr-ask-d.on, .xbr-caret { animation: none; }
|
|
.xbr-ro-t::after { transform: none; }
|
|
.xbr-bar, .xbr-tr-line, .xbr-turn-vb { transition: none !important; }
|
|
}
|
|
|
|
/* a chapter with no table of its own: its contour field, the section's name set small in its corner */
|
|
.xbr-ch-fig { position: relative; min-height: 420px; }
|
|
.xbr-ch-sig { position: absolute; inset: 0; width: 100%; height: 100%; color: currentColor; opacity: .5; }
|
|
.xbr-ch-fig .xbr-ch-q { position: absolute; left: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); font-size: 21px; max-width: 18ch; }
|
|
/* tables never break a value or a name: cells stay on one line; the first column (the row's name) is pinned by the kit
|
|
and the rest scrolls inside the table's own frame, with a fade at the right edge while there is more to see */
|
|
.xbr-dt .x-table th, .xbr-dt .x-table td { white-space: nowrap; padding: 12px 14px; font-size: 14px; }
|
|
.xbr-dt .x-table td:last-child, .xbr-dt .x-table th:last-child { padding-right: 28px; }
|
|
@media (max-width: 720px) {
|
|
.xbr-dt { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
|
|
.xbr-dt .x-table th, .xbr-dt .x-table td { padding: 11px 12px; }
|
|
}
|
|
/* the detail sheet opens below the site header, so its title and close stay in view */
|
|
/* wide enough for the widest captured table (fleet, 749px), so no column is cut on desktop */
|
|
@media (min-width: 901px) { .xbr .v2f-sheet-p { top: 72px; width: min(860px, calc(100vw - 24px)); } }
|
|
/* the source's reply: the run ids the page links, then the page's own figures */
|
|
.xbr-src-reply { display: grid; gap: 18px; }
|
|
.xbr-src-reply pre { margin: 0; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
.xbr-src-json { color: #a3a3a3; }
|
|
.xbr-src-figs { color: #fafafa; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
|
|
/* sibling cards say where they go: their figure darkens and the title underlines */
|
|
@media (hover: hover) { .xbr-next a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }
|
|
|
|
/* a chapter whose table is the card's own: the questions as squares (filled where the row got them right), or the rows
|
|
as nested squares whose area is the figure. Both follow the row being read on the card. */
|
|
.xbr-parts, .xbr-scale { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-hero); background: var(--card); }
|
|
.xbr-parts-g { display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); gap: 4px; }
|
|
.xbr-parts-g i { aspect-ratio: 1; border-radius: 3px; background: var(--ink); opacity: .12; transition: transform .6s var(--out) calc(var(--i) * 5ms), opacity .45s var(--out) calc(var(--i) * 5ms); }
|
|
.xbr-parts-g i.on { opacity: 1; }
|
|
html.js .xbr-parts:not([data-seen]) .xbr-parts-g i { transform: scale(.2); opacity: 0; }
|
|
.xbr-parts-f { display: flex; flex-direction: column; gap: 8px; }
|
|
.xbr-parts-l { font-size: 17px; font-weight: 500; color: var(--ink); }
|
|
.xbr-parts-f b { font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
|
|
.xbr-scale-b { position: relative; flex: 1; min-height: 0; width: auto; max-width: 100%; aspect-ratio: 1; align-self: flex-start; }
|
|
.xbr-sq { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; border-radius: 6px; transform-origin: 0 100%; transform: scale(var(--s)); transition: transform 1s var(--out) calc(var(--i) * 70ms); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22); }
|
|
.xbr-sq.b { background: #e4e4e7; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22); } /* outlined: the published figure reads as an area, Hanzo's as the dot in its corner */
|
|
.xbr-sq.a { background: var(--ink); box-shadow: none; }
|
|
.xbr-scale .xbr-sq.o { box-shadow: inset 0 0 0 2px var(--ink); }
|
|
.xbr-bars-sq .xbr-sq.a { background: rgba(0, 0, 0, .1); box-shadow: inset 0 0 0 2px var(--ink); }
|
|
html.js .xbr-scale:not([data-seen]) .xbr-sq { transform: scale(0); }
|
|
.xbr-scale-k { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--soft); }
|
|
.xbr-scale-k > span { display: inline-flex; align-items: center; gap: 8px; }
|
|
.xbr-scale-k .xbr-key.b { background: #e4e4e7; }
|
|
@media (max-width: 900px) {
|
|
.xbr-parts, .xbr-scale { min-height: 0; }
|
|
.xbr-parts-g { gap: 3px; }
|
|
.xbr-scale-b { flex: none; width: 100%; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) { .xbr-parts-g i, .xbr-sq { transition: none; } }
|
|
|
|
/* the facts strip: each rule draws across in turn, its words rising after it */
|
|
.xbr-facts-s .xbr-facts > div { position: relative; border-top: 0; }
|
|
.xbr-facts-s .xbr-facts > div::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink); transform-origin: 0 50%; transition: transform 1.4s var(--out) calc(var(--k, 0) * .2s); }
|
|
.xbr-facts-s .xbr-facts dt, .xbr-facts-s .xbr-facts dd { transition: opacity .8s var(--out) calc(var(--k, 0) * .2s + .3s), transform 1s var(--out) calc(var(--k, 0) * .2s + .3s); }
|
|
.xbr-facts-s .xbr-facts > div:nth-child(2) { --k: 1; } .xbr-facts-s .xbr-facts > div:nth-child(3) { --k: 2; } .xbr-facts-s .xbr-facts > div:nth-child(n+4) { --k: 3; }
|
|
html.js .xbr-facts-s:not([data-seen]) .xbr-facts > div::before { transform: scaleX(0); }
|
|
html.js .xbr-facts-s:not([data-seen]) .xbr-facts dt, html.js .xbr-facts-s:not([data-seen]) .xbr-facts dd { opacity: 0; transform: translateY(10px); }
|
|
@media (prefers-reduced-motion: reduce) { .xbr-facts-s .xbr-facts > div::before, .xbr-facts-s .xbr-facts dt, .xbr-facts-s .xbr-facts dd { transition: none; } }
|
|
|
|
/* the source's reply holds its finished height while it types, so nothing below it moves */
|
|
.xbr-ty { position: relative; display: block; }
|
|
.xbr-ty-g { visibility: hidden; }
|
|
.xbr-ty-o { position: absolute; inset: 0; }
|
|
|
|
/* pinned chapters cut, never crossfade: the outgoing words wipe up and away, then the next chapter's words wipe in */
|
|
@media (min-width: 901px) {
|
|
/* (keyframes, not a resting clip-path: a clip left on the words would also clip the sheet they open) */
|
|
html.js .xbr-ch .v2f-ch-t[data-on] { animation: xbr-cut-in .5s cubic-bezier(.76, 0, .24, 1) .34s backwards; transition: opacity .2s linear .34s, transform .6s var(--out) .34s; }
|
|
html.js .xbr-ch .v2f-ch-t:not([data-on]) { animation: xbr-cut-out .3s cubic-bezier(.76, 0, .24, 1) forwards; opacity: 0; transform: translateY(-24px); transition: opacity .2s linear .1s, transform .3s var(--out); }
|
|
/* the chapter marks: numbered, and they answer the pointer */
|
|
.xbr-ch .v2f-ch-nav { counter-reset: xbr-step; gap: 18px; }
|
|
.xbr-ch .v2f-ch-nav button { counter-increment: xbr-step; gap: 10px; padding: 0 2px; }
|
|
.xbr-ch .v2f-ch-nav button::before { content: counter(xbr-step, decimal-leading-zero); font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--faint); transition: color var(--ui) var(--out); }
|
|
.xbr-ch .v2f-ch-nav button[aria-current='step']::before { color: var(--ink); }
|
|
.xbr-ch .v2f-ch-nav button i { transition: transform var(--reveal) var(--out), background-color var(--ui) var(--out); transform-origin: 0 50%; }
|
|
.xbr-ch .v2f-ch-nav button[aria-current='step'] i { transform: scaleX(1.6); }
|
|
.xbr-ch .v2f-ch-nav button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
|
|
}
|
|
@keyframes xbr-cut-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
|
|
@keyframes xbr-cut-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
|
|
@media (prefers-reduced-motion: reduce) { html.js .xbr-ch .v2f-ch-t[data-on], html.js .xbr-ch .v2f-ch-t:not([data-on]) { animation: none; } }
|
|
@media (hover: hover) {
|
|
.xbr-ch .v2f-ch-nav button:hover::before { color: var(--ink); }
|
|
.xbr-ch .v2f-ch-nav button:hover i { background: rgba(0, 0, 0, .3); transform: scaleX(1.25); }
|
|
.xbr-ch .v2f-ch-nav button[aria-current='step']:hover i { transform: scaleX(1.9); }
|
|
}
|
|
|
|
/* a closed sheet takes no room on screen (it stays in the HTML), once its slide-out has finished */
|
|
.xbr .v2f-sheet { transition: visibility 0s .5s, transform 0s .5s; }
|
|
.xbr .v2f-sheet:not([data-open]) { transform: scale(0); }
|
|
.xbr .v2f-sheet[data-open] { transition: none; }
|
|
|
|
/* every control answers the pointer with more than a shade */
|
|
@media (hover: hover) {
|
|
.xbr-code pre { transition: box-shadow var(--ui) var(--out); }
|
|
.xbr-code pre:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
|
|
}
|
|
@media (hover: hover) {
|
|
.xbr-crumb a, .xbr-more a, .xbr-facts a, .xbr-p a, .xbr-spec a { border-radius: 4px; transition: background-color var(--ui) var(--out), box-shadow var(--ui) var(--out), text-underline-offset var(--ui) var(--out), text-decoration-color var(--ui) var(--out); }
|
|
.xbr-crumb a:hover, .xbr-more a:hover, .xbr-facts a:hover, .xbr-p a:hover, .xbr-spec a:hover { background-color: rgba(0, 0, 0, .06); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
|
|
.xbr-turn-v button:not([aria-pressed='true']):hover { color: var(--ink); background: rgba(0, 0, 0, .06); }
|
|
.xbr-turn-v button svg { transition: transform var(--reveal) var(--out); }
|
|
.xbr-turn-v button[aria-pressed='true']:hover svg { transform: scale(1.15); }
|
|
.xbr-cols button[aria-pressed='true']:hover { background: #262626; border-color: #262626; }
|
|
}
|
|
.xbr-turn-v button { transition: color .3s var(--ease), background-color var(--ui) var(--out); }
|
|
.xbr-turn-v button:active, .xbr-cols button:active { transform: scale(.98); }
|
|
|
|
/* closing rail: one big card, the next two smaller, the last peeking past the edge; a card shows its benchmark's
|
|
figure when pointed at */
|
|
.xbr-next .v2f-next-m > span:first-child { font: 500 clamp(28px, 2.6vw, 40px)/1 var(--sans); letter-spacing: -.02em; color: var(--ink); font-feature-settings: 'tnum'; transition: opacity var(--ui) var(--out), transform var(--reveal) var(--out); }
|
|
@media (hover: hover) {
|
|
.xbr-next .v2f-next-m > span:first-child { opacity: 0; transform: translateY(12px); }
|
|
.xbr-next .v2f-next-c:hover .v2f-next-m > span:first-child, .xbr-next .v2f-next-c:focus-visible .v2f-next-m > span:first-child { opacity: 1; transform: none; }
|
|
.xbr-next .v2f-next-c:hover { transform: translateY(-4px); }
|
|
}
|
|
@media (min-width: 901px) {
|
|
.xbr-next.v2f-next { grid-template-columns: 50%; grid-auto-columns: 32%; }
|
|
.xbr-next .v2f-next-c:first-child { min-height: 400px; }
|
|
.xbr-next .v2f-next-c:first-child .v2f-next-t { font-size: 34px; }
|
|
.xbr-next .v2f-next-c:not(:first-child) { min-height: 400px; }
|
|
}
|
|
.xbr-more { max-width: none; }
|
|
|
|
/* kit parts in this template: DataTable (captured tables), CodeBlock (commands), Cta (asks) */
|
|
.xbr-dt { max-width: 100%; }
|
|
.xbr-ch-v .xbr-dt { flex: 1; max-height: 100%; overflow: auto; }
|
|
.xbr-code { margin: 0; }
|
|
/* a one-line command scrolls sideways only: a wheel over it still scrolls the page */
|
|
.xbr-code pre { overscroll-behavior-y: auto; overflow-y: hidden; }
|
|
.xbr-band-solid.x-btn.solid { background: #fafafa; color: #000; border-color: #fafafa; }
|
|
@media (hover: hover) { .xbr-band-solid.x-btn.solid:hover { background: #fff; border-color: #fff; } }
|
|
.xbr-band-link.x-arrow { color: #fafafa; min-height: 44px; }
|
|
/* a row's name and its "run" link are separate words in Hanzo's table (the capture drops the space between them) */
|
|
.xbr-dt th a, .xbr-dt td a { margin-left: .45em; color: var(--muted); text-underline-offset: 3px; }
|
|
|
|
/* ---------- dark (docs/DARK-MODE.md): fam.css's .v2f deck tokens have no dark rule, so this family maps them to Hanzo's
|
|
dark tokens here, on its own root. Hanzo's --muted/--card are shadowed by .v2f, so the quiet fill uses --surface-1.
|
|
The source room, the band, the command line and the ink figure stay dark in both modes. Light is untouched. ---------- */
|
|
html:not(.light) .xbr { --acc: var(--foreground); --acc-ink: var(--primary-foreground); --acc-soft: var(--surface-1); --ink: var(--foreground); --soft: var(--muted-foreground); --muted: var(--muted-foreground); --faint: var(--text-tertiary); --card: var(--surface-1); --silver: var(--neutral-600); --hair: var(--border); --xbr-hl: var(--glass-strong); background: var(--bg); }
|
|
/* fam.css pieces on this page */
|
|
html:not(.light) .xbr .v2f-body a, html:not(.light) .xbr a.v2f-link { text-decoration-color: var(--white-30); }
|
|
html:not(.light) .xbr .v2f-btn, html:not(.light) .xbr .v2f-spec-btn { border-color: var(--border-control); }
|
|
@media (hover: hover) {
|
|
html:not(.light) .xbr .v2f-btn:hover, html:not(.light) .xbr .v2f-spec-btn:hover { border-color: var(--border-strong); }
|
|
html:not(.light) .xbr .v2f-btn.solid:hover, html:not(.light) .xbr .v2f-btn.acc:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
|
|
html:not(.light) .xbr .v2f-next-c:hover { background: var(--secondary); }
|
|
}
|
|
html:not(.light) .xbr .v2f-ch-nav button i { background: var(--border-control); }
|
|
html:not(.light) .xbr .v2f-next-c .v2f-next-s { color: var(--white-30); }
|
|
html:not(.light) .xbr .v2f-next-go { border-color: var(--border-strong); }
|
|
/* the family's own pieces */
|
|
html:not(.light) .xbr-crumb a, html:not(.light) :is(.xbr-facts, .xbr-p, .xbr-more, .xbr-lede, .xbr-spec) a { text-decoration-color: var(--white-30); }
|
|
html:not(.light) .xbr-turn-v button[aria-pressed='true'], html:not(.light) .xbr-cols button[aria-pressed='true'], html:not(.light) .xbr-tr.chart .xbr-tr-val { color: var(--x-on-ink); }
|
|
html:not(.light) .xbr-cols button:not([aria-pressed='true']), html:not(.light) .xbr-walk, html:not(.light) .xbr-ch-fig.line { background: var(--x-raised); }
|
|
html:not(.light) .xbr-cols button:not([aria-pressed='true']):hover { border-color: var(--border-strong); }
|
|
html:not(.light) .xbr-walk { border-color: var(--border-control); }
|
|
@media (hover: hover) { html:not(.light) .xbr-walk:hover { border-color: var(--border-strong); } }
|
|
html:not(.light) .xbr-ro-t { background: var(--border); }
|
|
html:not(.light) .xbr-key.b { background: var(--border-strong); }
|
|
html:not(.light) .xbr-bar.bb { background: var(--border-strong); }
|
|
html:not(.light) .xbr-bars li:not(.lit) .xbr-bar.ba { background: var(--neutral-600); }
|
|
html:not(.light) .xbr-bars li::before { background: var(--surface-1); }
|
|
html:not(.light) .xbr-tr.chart .xbr-dot { box-shadow: 0 0 0 4px var(--background); }
|
|
html:not(.light) .xbr-base { border-top-color: var(--white-30); }
|
|
html:not(.light) .xbr-p { color: var(--text-secondary); }
|
|
html:not(.light) .xbr-tw th { background: var(--bg); }
|
|
html:not(.light) .xbr-sq, html:not(.light) .xbr-sq.b { box-shadow: inset 0 0 0 1px var(--border-strong); }
|
|
html:not(.light) .xbr-sq.b, html:not(.light) .xbr-scale-k .xbr-key.b { background: var(--secondary); }
|
|
html:not(.light) .xbr-sq.a { box-shadow: none; }
|
|
html:not(.light) .xbr-scale .xbr-sq.o { box-shadow: inset 0 0 0 2px var(--ink); }
|
|
html:not(.light) .xbr-bars-sq .xbr-sq.a { background: var(--glass-strong); box-shadow: inset 0 0 0 2px var(--ink); }
|
|
@media (hover: hover) {
|
|
html:not(.light) .xbr-ch .v2f-ch-nav button:hover i { background: var(--white-30); }
|
|
html:not(.light) .xbr-crumb a:hover, html:not(.light) :is(.xbr-more, .xbr-facts, .xbr-p, .xbr-spec) a:hover { background-color: var(--glass); box-shadow: 0 0 0 3px var(--glass); }
|
|
html:not(.light) .xbr-turn-v button:not([aria-pressed='true']):hover { background: var(--glass); }
|
|
html:not(.light) .xbr-cols button[aria-pressed='true']:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
|
|
}
|