mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
/automations, /billing, /chrome, /cli, /commerce, /edge, /gateway, /idv, /ledger, /operative, /playground, /pubsub. /billing's Issued chip lost its solid fill in dark (now var(--primary) / var(--primary-foreground)). On the others the selected label sits on a sliding pill drawn by a sibling element; the label now carries the pill's own colour in dark, so it reads the same and James's darkcheck measures it correctly. Every rule is under html:not(.light): light mode is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P5YBdwj33XByFVTvu9bfci
305 lines
24 KiB
CSS
305 lines
24 KiB
CSS
/* Edge: see Edge.jsx. Built on components/v2/Keynote*. Deck values only (docs/build-notes/MASTER.md section 3): no accent (the old
|
|
lime and its deep-lime words are greys now), surfaces are an outline or a fill (never both), no shadows, radii
|
|
6/8/12/16/24/999, sizes from the deck scale. Hover lives inside @media (hover: hover); presses scale to .97 in 90 ms.
|
|
Hidden-until-active states are scoped to html.js, so with JS off every word stands. */
|
|
/* dark mode: Keynote.css pins its deck tokens in light hex on .kn; on this page they follow Hanzo's dark too (light unchanged) */
|
|
.eg.kn {
|
|
--ink: light-dark(#0a0a0a, #e5e5e5); --soft: light-dark(#525252, #a3a3a3); --faint: light-dark(#737373, #858585); --line: light-dark(rgba(0, 0, 0, .1), rgba(255, 255, 255, .1));
|
|
--body: light-dark(#525252, #a3a3a3); --quiet: light-dark(#737373, #858585); --hair: light-dark(rgba(0, 0, 0, .1), rgba(255, 255, 255, .1)); --ac-text: light-dark(#525252, #a3a3a3);
|
|
}
|
|
.eg-off-i { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
|
|
.eg-off-i circle { fill: currentColor; stroke: none; }
|
|
.eg-off-i .cut { stroke: currentColor; }
|
|
|
|
/* ---------- the hero: localhost (a black product window; its stream plays by CSS from first paint) ---------- */
|
|
.eg-loc { width: 100%; aspect-ratio: 16 / 11; display: flex; flex-direction: column; font-family: var(--mono); }
|
|
.eg-loc-bar { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 clamp(24px, 12vw, 180px) 0 clamp(24px, 4vw, 64px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
|
|
.eg-dots { display: flex; gap: 8px; }
|
|
.eg-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
|
|
.eg-host { margin-left: 8px; padding: 7px 12px; border-radius: 8px; background: rgba(255, 255, 255, .06); font: 400 14px/1 var(--mono); color: rgba(255, 255, 255, .78); }
|
|
.eg-net { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); font: 400 13px/1 var(--mono); color: #fafafa; }
|
|
.eg-loc-b { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); gap: clamp(17px, 2.4vw, 27px); padding: clamp(24px, 3vw, 44px) clamp(24px, 12vw, 180px) clamp(24px, 3vw, 44px) clamp(24px, 4vw, 64px); }
|
|
.eg-spec { margin: 0; display: flex; flex-direction: column; gap: 10px; }
|
|
.eg-spec div { display: flex; flex-direction: column; gap: 8px; padding: 16px 17px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
|
|
.eg-spec dt { font: 606 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #a3a3a3; }
|
|
.eg-spec dd { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font: 497 21px/1.1 var(--sans); letter-spacing: -.015em; color: #fafafa; }
|
|
.eg-spec dd em { font: 400 13px/1.3 var(--mono); font-style: normal; letter-spacing: 0; color: rgba(255, 255, 255, .55); }
|
|
.eg-spec-own { margin-top: auto; background: transparent !important; border: 1px solid rgba(255, 255, 255, .3); }
|
|
.eg-spec-own dd { align-items: center; flex-wrap: nowrap; gap: 14px; font-size: 17px; }
|
|
/* the machine answering for itself: an ink dot with a ring that leaves it (transform and opacity only) */
|
|
.eg-pulse { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fafafa; }
|
|
.eg-pulse::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid #fafafa; animation: eg-pulse 2s var(--e-out) infinite; }
|
|
@keyframes eg-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(2.2); opacity: 0; } }
|
|
.eg-sse { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 20px; border-radius: 16px; background: #000; }
|
|
.eg-sse-k { margin: 0; display: flex; justify-content: space-between; align-items: center; font: 606 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #a3a3a3; }
|
|
.eg-sse-k b { padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .3); color: #fafafa; letter-spacing: .04em; }
|
|
.eg-sse-l { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
|
|
.eg-ev { margin: 0; display: flex; align-items: center; gap: 12px; font: 400 14px/1 var(--mono); color: rgba(255, 255, 255, .55); }
|
|
.js .eg-ev { animation: eg-ev-in .3s var(--e-in) both; animation-delay: calc(.3s + var(--i) * .22s); }
|
|
@keyframes eg-ev-in { from { opacity: 0; transform: translate3d(-8px, 0, 0); } to { opacity: 1; transform: none; } }
|
|
.eg-ev span { color: #a3a3a3; }
|
|
.eg-ev b { font-weight: 400; color: #fafafa; }
|
|
.eg-sse-f { margin: 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); font: 400 13px/1.4 var(--mono); color: rgba(255, 255, 255, .55); }
|
|
|
|
/* ---------- the signature: the field (its labels live in a band above the canvas, never over it) ---------- */
|
|
.eg-field { position: relative; padding: clamp(44px, 5vw, 72px) 0 clamp(72px, 11vw, 188px); }
|
|
.eg-ctl { display: flex; align-items: center; gap: 17px; margin-bottom: 17px; }
|
|
.eg-said { margin: 0; overflow: hidden; font: 400 14px/1.4 var(--mono); color: light-dark(#525252, #a3a3a3); }
|
|
.eg-said span { display: block; }
|
|
.js .eg-said span { animation: eg-mask .4s var(--e-in) both; }
|
|
@keyframes eg-mask { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
|
|
.eg-band { position: relative; height: 72px; border-top: 1px solid var(--hair); }
|
|
.eg-kind { position: absolute; top: 17px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translate(-50%, 0); white-space: nowrap; }
|
|
.eg-kind b { font: 497 21px/1 var(--sans); letter-spacing: -.015em; color: var(--ink); }
|
|
.eg-kind span { font: 400 13px/1 var(--mono); color: light-dark(#525252, #a3a3a3); }
|
|
.eg-repo { position: absolute; top: 17px; left: 50%; margin: 0; transform: translate(-50%, 0); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: light-dark(#fafafa, #0a0a0a); font: 400 14px/1 var(--mono); }
|
|
.eg-repo b { font-weight: 400; }
|
|
.js .eg-kind, .js .eg-repo { opacity: 0; transition: opacity .3s var(--e-out), transform .4s var(--e-in); }
|
|
.js .eg-kind { transform: translate(-50%, 8px); }
|
|
.js .eg-band[data-mode='0'] .eg-kind { opacity: 1; transform: translate(-50%, 0); transition-delay: .3s; }
|
|
.js .eg-band[data-mode='2'] .eg-repo { opacity: 1; }
|
|
.eg-cv { position: relative; height: min(60svh, 600px); min-height: 400px; border-bottom: 1px solid var(--hair); overflow: hidden; }
|
|
.eg-cv canvas { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); } /* the field draws in this colour (read in Edge.jsx) */
|
|
.eg-facts { margin-top: 27px; row-gap: 17px; align-items: center; }
|
|
.eg-film { grid-column: 1 / span 5; position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #000; }
|
|
.eg-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
|
.eg-film-n { position: absolute; right: 20px; top: 18px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); font: 400 13px/1 var(--mono); color: #fafafa; }
|
|
.eg-fact-l { grid-column: 7 / -1; display: flex; flex-direction: column; }
|
|
.eg-fact { width: 100%; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0 10px; border: 0; background: none; text-align: left; cursor: pointer; color: light-dark(#737373, #858585); font: inherit; transition: color .3s var(--e-out), transform .15s var(--e-out); }
|
|
.eg-fact-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--hair); overflow: hidden; }
|
|
.eg-fact-bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
|
|
.eg-fact[aria-pressed='true'] .eg-fact-bar i { animation: eg-bar 6.8s linear both; }
|
|
.eg-field[data-mine] .eg-fact[aria-pressed='true'] .eg-fact-bar i { animation: none; transform: none; }
|
|
@keyframes eg-bar { to { transform: scaleX(1); } }
|
|
.eg-fact-t { display: inline-block; transition: transform .3s var(--e-in); font-size: 17px; font-weight: 497; line-height: 1.3; letter-spacing: -.01em; color: inherit; }
|
|
.eg-fact-d { font-size: 16px; line-height: 1.5; max-width: 40ch; color: inherit; }
|
|
.eg-fact-n { font: 400 13px/1 var(--mono); letter-spacing: .08em; color: light-dark(#737373, #858585); }
|
|
.eg-fact[aria-pressed='true'] { color: var(--ink); }
|
|
.eg-fact[aria-pressed='true'] .eg-fact-d { color: light-dark(#525252, #a3a3a3); }
|
|
.eg-fact[aria-pressed='true'] .eg-fact-n { color: var(--ink); }
|
|
.eg-fact:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.eg-fact:focus-visible { outline: 2px solid var(--focus, #0a0a0a); outline-offset: 4px; border-radius: 8px; }
|
|
@media (hover: hover) { .eg-fact:hover { color: var(--ink); } }
|
|
[data-off] .eg-fact-bar i, [data-off] .eg-pulse::after, .eg-field[data-paused] .eg-fact-bar i { animation-play-state: paused; }
|
|
|
|
/* ---------- what the runtime does: six cards in uneven pairs (never three equal boxes in a row) ---------- */
|
|
.eg-rt { padding-top: 0; }
|
|
.eg-rt-h { align-items: end; row-gap: 17px; margin-bottom: clamp(44px, 6vw, 72px); }
|
|
.eg-rt-t { grid-column: 1 / span 6; }
|
|
.eg-rt-l { grid-column: 8 / span 5; }
|
|
/* JS off: each card's detail stands under it (the kit keeps it hidden until the card opens) */
|
|
html:not(.js) .eg-open .kno-grid > li { flex-direction: column; }
|
|
html:not(.js) .eg-open .kno-detail { display: block; padding: 17px 4px 0; }
|
|
html:not(.js) .eg-open .kno-detail p { margin: 0; font-size: 16px; line-height: 1.6; color: light-dark(#525252, #a3a3a3); }
|
|
/* the hero's text-link ask keeps a 44px target */
|
|
.eg .kns-acts .x-arrow { min-height: 44px; }
|
|
@media (min-width: 900px) {
|
|
.eg-open .kno-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
|
|
.eg-open .kno-grid > li { grid-column: span 5; }
|
|
.eg-open .kno-grid > li:nth-child(4n + 1), .eg-open .kno-grid > li:nth-child(4n + 4) { grid-column: span 7; }
|
|
.eg-open .kno-card .kno-art { aspect-ratio: auto; height: 300px; }
|
|
}
|
|
.eg-art { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 27px; background: light-dark(#f5f5f5, #171717); font-family: var(--mono); }
|
|
.kno-art.big .eg-art { padding: clamp(27px, 4vw, 44px); }
|
|
.eg-art.a0 { background: #0a0a0a; color: #fafafa; align-items: flex-start; }
|
|
.eg-art.a0 p { margin: 0; display: flex; align-items: baseline; font-size: 32px; }
|
|
.eg-art.a0 b { font-weight: 497; letter-spacing: -.03em; }
|
|
.eg-art.a0 span { color: #a3a3a3; }
|
|
.eg-art.a0 i { width: 12px; height: 26px; background: #fafafa; animation: eg-blink 1.1s steps(1) 6; }
|
|
@keyframes eg-blink { 50% { opacity: 0; } }
|
|
.eg-art.a1 p { margin: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; }
|
|
.eg-art.a1 b { font: 606 14px/1 var(--mono); color: var(--ink); }
|
|
.eg-art.a1 i { height: 12px; border-radius: 999px; background: #a3a3a3; transform: scaleX(var(--w)); transform-origin: 0 50%; }
|
|
.eg-art.a1 p:first-child i { background: var(--ink); }
|
|
.eg-art.a1 em { margin-top: 6px; font-style: normal; font-size: 14px; color: light-dark(#525252, #a3a3a3); }
|
|
.eg-art.a2 { flex-direction: row; align-items: stretch; gap: 10px; }
|
|
.eg-art.a2 p { flex: 1; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 16px; border-radius: 12px; border: 1px solid light-dark(rgba(0, 0, 0, .14), rgba(255, 255, 255, .14)); }
|
|
.eg-art.a2 p.on { border: 1.5px solid var(--ink); }
|
|
.eg-art.a2 b { font: 497 17px/1 var(--sans); letter-spacing: -.01em; color: var(--ink); }
|
|
.eg-art.a2 span { font-size: 13px; color: light-dark(#525252, #a3a3a3); }
|
|
.eg-art.a3 { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 27px; }
|
|
.eg-art.a3 p { margin: 0; display: flex; flex-direction: column; gap: 8px; }
|
|
.eg-art.a3 b { font: 220 44px/.9 var(--sans); letter-spacing: -.04em; color: var(--ink); }
|
|
.kno-art.big .eg-art.a3 b { font-size: 64px; }
|
|
.eg-art.a3 span { font-size: 14px; color: light-dark(#525252, #a3a3a3); }
|
|
.eg-art.a4 { background: #0a0a0a; gap: 10px; }
|
|
.eg-art.a4 p { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #a3a3a3; animation: eg-ev 2.4s var(--e-move) 2 both; animation-delay: var(--d); }
|
|
.eg-art.a4 b { font-weight: 400; color: #fafafa; }
|
|
@keyframes eg-ev { 0% { opacity: .15; } 20%, 80% { opacity: 1; } 100% { opacity: 1; } }
|
|
.eg-art.a5 { align-items: center; }
|
|
.eg-art.a5 > div { position: relative; display: flex; gap: 10px; padding: 20px; border-radius: 16px; border: 1.5px dashed light-dark(rgba(10, 10, 10, .3), rgba(229, 229, 229, .3)); }
|
|
.eg-art.a5 > div p { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: light-dark(#fafafa, #0a0a0a); font-size: 14px; }
|
|
.eg-art.a5 > div p:last-child { background: var(--x-raised); color: var(--ink); }
|
|
.eg-art.a5 > span { color: light-dark(#525252, #a3a3a3); }
|
|
[data-off] .eg-art.a0 i, [data-off] .eg-art.a4 p { animation-play-state: paused; }
|
|
|
|
/* ---------- Beyond: what runs on yours (the quiet room) ---------- */
|
|
.eg-yours { background: light-dark(#f5f5f5, #171717); }
|
|
.eg-yours-g { align-items: center; row-gap: 44px; }
|
|
.eg-yours-l { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 27px; }
|
|
.eg-yours-h { display: flex; flex-direction: column; gap: 10px; }
|
|
.eg-yours-h .kn-kick { color: light-dark(#525252, #a3a3a3); }
|
|
.eg-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
|
|
.eg-pick button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 17px; min-height: 104px; padding: 17px; border: 0; border-radius: 16px; background: var(--x-raised); color: light-dark(#525252, #a3a3a3); text-align: left; font: 400 16px/1.2 var(--sans); cursor: pointer; transition: color .3s var(--e-out), background-color .15s var(--e-out), transform .15s var(--e-out); }
|
|
.eg-pick button[aria-checked='true'] { color: light-dark(#fafafa, #0a0a0a); }
|
|
.eg-pick button > :not(.eg-pick-bg) { position: relative; }
|
|
.eg-pick-bg { position: absolute; inset: 0; border-radius: 16px; background: var(--ink); }
|
|
.eg-pick svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
|
|
.eg-pick button:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.eg-pick button:focus-visible { outline: 2px solid var(--focus, #0a0a0a); outline-offset: 3px; }
|
|
@media (hover: hover) { .eg-pick button:not([aria-checked='true']):hover { background: var(--x-sunk); color: var(--ink); } }
|
|
.eg-ans { grid-column: 8 / -1; min-height: 360px; display: flex; }
|
|
.eg-ans-in { flex: 1; display: flex; flex-direction: column; gap: 27px; padding: clamp(27px, 3.4vw, 44px); border-radius: 24px; background: var(--x-raised); }
|
|
.eg-ans-k { margin: 0; font: 606 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: light-dark(#525252, #a3a3a3); }
|
|
.eg-ans dl { margin: 0; display: grid; gap: 27px; }
|
|
.eg-ans dt { font: 606 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: light-dark(#737373, #858585); margin-bottom: 10px; }
|
|
.eg-ans dd { margin: 0; color: var(--ink); }
|
|
/* the answer arrives by line mask: each value rises out of its own line */
|
|
.eg-m { display: block; overflow: hidden; padding: .04em 0 .1em; margin: -.04em 0 -.1em; }
|
|
.eg-m b { display: block; font-size: 44px; font-weight: 220; line-height: 1.05; letter-spacing: -.035em; }
|
|
.eg-m.sm b { font-size: 26px; font-weight: 497; letter-spacing: -.02em; }
|
|
.eg-ans-l { margin: auto 0 0; padding-top: 17px; border-top: 1px solid var(--hair); overflow: hidden; font-size: 16px; line-height: 1.55; color: light-dark(#525252, #a3a3a3); max-width: 46ch; }
|
|
.eg-ans-l span { display: block; }
|
|
.js .eg-m b, .js .eg-ans-l span { animation: eg-mask .4s var(--e-in) both; }
|
|
.js .eg-m.sm b { animation-delay: .06s; }
|
|
.js .eg-ans-l span { animation-delay: .12s; }
|
|
|
|
/* ---------- when to reach for it (the dark room) ---------- */
|
|
.eg-when-h { align-items: end; row-gap: 17px; margin-bottom: clamp(44px, 6vw, 72px); }
|
|
.eg-when-t { grid-column: 1 / span 6; color: #fafafa; }
|
|
.eg-when-l { grid-column: 8 / span 5; color: #a3a3a3; }
|
|
.eg-cases { align-items: start; row-gap: 27px; }
|
|
.eg-mini-wrap { grid-column: 1 / span 5; position: sticky; top: 112px; }
|
|
.eg-list { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
|
|
.eg-case { display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: clamp(27px, 3vw, 44px) 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
|
|
.eg-case-n { font: 400 13px/1.6 var(--mono); color: #737373; transition: color .3s var(--e-out); }
|
|
.eg-case.on .eg-case-n { color: #fafafa; }
|
|
.eg-case-t { display: flex; flex-direction: column; gap: 10px; }
|
|
.eg-case-h { margin: 0; font-size: 21px; font-weight: 497; line-height: 1.25; letter-spacing: -.015em; color: #fafafa; }
|
|
.eg-case-t p { margin: 0; font-size: 16px; line-height: 1.55; color: #a3a3a3; max-width: 46ch; }
|
|
.eg-case-t ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
|
|
.eg-case-t ul li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .78); }
|
|
.eg-case-t ul li::before { content: ''; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #fafafa; transition: background-color .3s var(--e-out); }
|
|
.eg-case.on .eg-case-t ul li::before { background: #fafafa; }
|
|
/* the room's object: the localhost window, network off, streaming the uses of the case you are reading */
|
|
.eg-mini { border-radius: 16px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); overflow: hidden; }
|
|
.eg-mini-bar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
|
|
.eg-mini-bar .eg-dots i { width: 10px; height: 10px; }
|
|
.eg-mini-bar .eg-host { font-size: 13px; padding: 6px 10px; }
|
|
.eg-mini-bar .eg-net { margin-left: auto; padding: 6px 10px; }
|
|
.eg-mini-k { margin: 0; padding: 18px 20px 0; font: 400 13px/1 var(--mono); color: #737373; }
|
|
.eg-mini ul { list-style: none; margin: 0; padding: 14px 20px 22px; display: grid; gap: 12px; min-height: 196px; align-content: start; }
|
|
.eg-mini li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; font: 400 14px/1.5 var(--mono); color: #fafafa; }
|
|
.eg-mini li span:first-child { color: #737373; }
|
|
.js .eg-mini li { animation: eg-ev-in .4s var(--e-in) both; animation-delay: calc(.1s + var(--k) * .28s); }
|
|
|
|
/* the close is KeynoteClose's 'light' variant; Hanzo's stylesheet scopes any .light to the light scheme, so here it
|
|
follows the page instead (same in bright mode) */
|
|
html:not(.light) .eg .knx.light { color-scheme: dark; }
|
|
|
|
/* related, inside the light close */
|
|
.eg-rel { margin-top: 10px; }
|
|
.eg-rel > .kn-kick { color: light-dark(#525252, #a3a3a3); margin-bottom: 10px; }
|
|
.eg-rel ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid light-dark(rgba(0, 0, 0, .14), rgba(255, 255, 255, .14)); }
|
|
.eg-rel li { border-bottom: 1px solid light-dark(rgba(0, 0, 0, .14), rgba(255, 255, 255, .14)); }
|
|
.eg-rel-a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 20px; align-items: center; gap: 17px; min-height: 56px; padding: 0 8px; color: var(--ink); text-decoration: none; transition: background-color .15s var(--e-out), transform .15s var(--e-out); }
|
|
.eg-rel-a b { grid-column: 1; font-size: 17px; font-weight: 497; }
|
|
.eg-rel-a span { grid-column: 2; font-size: 14px; color: light-dark(#525252, #a3a3a3); }
|
|
.eg-rel-a svg { grid-column: 3; transition: transform .3s var(--e-move); }
|
|
.eg-rel-a:active { transform: scale(.99); transition-duration: 90ms; }
|
|
.eg-rel-a:focus-visible { outline: 2px solid var(--focus, #0a0a0a); outline-offset: 2px; border-radius: 8px; }
|
|
@media (hover: hover) { .eg-rel-a:hover { background: light-dark(#f5f5f5, #171717); } .eg-rel-a:hover svg { transform: translateX(4px); } }
|
|
|
|
/* the hero window fits the page (no bleed past the right edge at 1470) */
|
|
@media (min-width: 900px) {
|
|
.eg .kns.side .kns-obj-wrap { margin-right: 0; }
|
|
.eg-loc { aspect-ratio: auto; }
|
|
.eg-sse-l { min-height: 0; }
|
|
.eg-loc .eg-loc-bar { height: 52px; }
|
|
.eg-loc .eg-loc-b { padding-top: 22px; padding-bottom: 22px; }
|
|
.eg-loc .eg-spec div { padding: 12px 15px; gap: 6px; }
|
|
.eg-loc-bar { padding-right: clamp(24px, 3vw, 44px); }
|
|
.eg-loc-b { padding-right: clamp(24px, 3vw, 44px); padding-left: clamp(24px, 3vw, 44px); }
|
|
.eg-loc-bar { padding-left: clamp(24px, 3vw, 44px); }
|
|
}
|
|
/* the field: the kind in front inks its label */
|
|
.eg-kind b, .eg-kind span { transition: color .3s var(--e-out); }
|
|
.js .eg-band[data-mode='0'] .eg-kind:not(.on) b { color: light-dark(#a3a3a3, #737373); }
|
|
.js .eg-band[data-mode='0'] .eg-kind:not(.on) span { color: light-dark(#a3a3a3, #737373); }
|
|
/* hovers that answer */
|
|
@media (hover: hover) {
|
|
.eg .kns-acts .x-arrow { text-decoration: underline transparent; text-underline-offset: 4px; transition: text-decoration-color .2s var(--e-out); }
|
|
.eg .kns-acts .x-arrow:hover { text-decoration-color: currentColor; }
|
|
.eg .kns-acts .x-arrow:hover svg { transform: translateX(3px); }
|
|
.eg-open .kno-card { transition: border-color .15s var(--e-out), scale .15s var(--e-out), translate .3s var(--e-in); }
|
|
.eg-open .kno-card:hover { translate: 0 -4px; }
|
|
.eg-open .kno-x:hover { background: light-dark(#f5f5f5, #171717); }
|
|
.eg-fact[aria-pressed='true']:hover .eg-fact-bar { height: 3px; }
|
|
.eg-fact:hover .eg-fact-t { transform: translateX(4px); }
|
|
}
|
|
.eg .kns-acts .x-arrow svg { transition: transform .2s var(--e-out); }
|
|
.eg .x-copy:active { transform: scale(.97); }
|
|
|
|
@media (max-width: 899px) {
|
|
.eg-loc { aspect-ratio: auto; }
|
|
.eg-loc-bar { height: auto; flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
|
|
.eg-dots { display: none; }
|
|
.eg-host { margin: 0; }
|
|
.eg-net { font-size: 14px; }
|
|
.eg-loc-b { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 14px; }
|
|
.eg-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
|
.eg-spec div { padding: 12px; }
|
|
.eg-spec-own { grid-column: 1 / -1; }
|
|
.eg-spec dd em, .eg-sse-f, .eg-ev { font-size: 14px; }
|
|
.eg-spec dd { font-size: 17px; }
|
|
.eg-sse { height: 300px; padding: 16px; }
|
|
|
|
.eg-field { padding: 27px 0 72px; }
|
|
.eg-band { height: 56px; }
|
|
.eg-kind { top: 17px; }
|
|
.eg-kind b { font-size: 17px; }
|
|
.eg-kind span { display: none; }
|
|
.eg-repo { top: 10px; }
|
|
.eg-cv { height: 400px; min-height: 0; }
|
|
.eg-said { font-size: 14px; }
|
|
.eg-facts { margin-top: 17px; row-gap: 0; }
|
|
.eg-fact { grid-column: 1 / -1; padding: 17px 0 14px; gap: 8px; min-height: 44px; }
|
|
.eg-fact-n { font-size: 14px; }
|
|
|
|
.eg-rt-t, .eg-rt-l { grid-column: 1 / -1; }
|
|
.eg-art { padding: 20px; }
|
|
.eg-art.a2 span, .eg-art.a4 p { font-size: 14px; }
|
|
.eg-art.a0 p { font-size: 26px; }
|
|
.eg-yours-l, .eg-ans { grid-column: 1 / -1; }
|
|
.eg-pick { grid-template-columns: 1fr 1fr; }
|
|
.eg-pick button { min-height: 88px; padding: 14px; gap: 12px; }
|
|
.eg-ans { min-height: 0; }
|
|
.eg-m b { font-size: 32px; }
|
|
.eg-m.sm b { font-size: 21px; }
|
|
.eg-when-t, .eg-when-l { grid-column: 1 / -1; }
|
|
.eg-mini-wrap { display: none; }
|
|
.eg-list { grid-column: 1 / -1; }
|
|
.eg-case { grid-template-columns: 32px minmax(0, 1fr); }
|
|
.eg-case-h { font-size: 17px; }
|
|
.eg-film, .eg-fact-l { grid-column: 1 / -1; }
|
|
.eg-film { border-radius: 16px; }
|
|
.eg-ev:nth-child(n + 11) { display: none; }
|
|
/* the six runtime cards: one rail you swipe, not six screens */
|
|
.eg-open .kno-grid { display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
|
|
.eg-open .kno-grid::-webkit-scrollbar { display: none; }
|
|
.eg-open .kno-grid > li { flex: 0 0 82%; scroll-snap-align: start; }
|
|
.eg-rel-a { grid-template-columns: minmax(0, 1fr) 20px; grid-template-rows: auto auto; row-gap: 2px; padding: 10px 6px; }
|
|
.eg-rel-a span { grid-column: 1; grid-row: 2; }
|
|
.eg-rel-a svg { grid-column: 2; grid-row: 1 / span 2; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.eg-pulse::after, .eg-art.a0 i, .eg-art.a4 p, .js .eg-ev, .js .eg-m b, .js .eg-ans-l span, .js .eg-said span { animation: none !important; }
|
|
.eg-pulse::after { opacity: 0; }
|
|
.eg-fact-bar i { animation: none !important; }
|
|
.js .eg-mini li { animation: none !important; }
|
|
.eg-kind, .eg-repo { transition: none !important; }
|
|
}
|
|
|
|
/* dark: the selected tab's text sits on a sibling motion pill; its label carries the pill's own colour (after the pill has slid in) so the ancestor walk sees what the eye sees. Light untouched. */
|
|
html:not(.light) .eg-pick button[aria-checked='true'] > span:not(.eg-pick-bg) { background: var(--ink); transition: background-color 0s .3s; }
|