Files
Claude 6738f13977 dark tokens: /design, /desktop, /download, /api, /sms-opt-in, /buying-specialist, /dns, /risk, /registry, /kai, /enso
- /design, /desktop, /download, /api: the shared app-page stylesheet paints the page
  white with no dark rules; each page now maps it to Hanzo's dark tokens
  (--bg, --ink, --soft, --faint, --line), as /bot and /chrome already do.
- /api, /sms-opt-in, /buying-specialist: white diagram cards, chips, phone screen and
  composer now sit on --x-raised / --card / --muted with --border edges.
- /dns, /risk, /registry: captions on ink fills (light in dark) use --primary-foreground.
- /kai: the light model card uses --muted in dark.
- /enso: the particle ring was drawn on a canvas in a fixed #0a0a0a, invisible in dark.
  It now reads --eo-ink, which only dark sets (var(--foreground)); light still draws #0a0a0a.
Every CSS 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
2026-11-08 14:05:13 +00:00

105 lines
8.7 KiB
CSS

/* Kai (ka-): the decision tree, the question-type chapters, the model cards, the spec */
.ka-head { width: min(42%, 540px); }
.ka-art { position: absolute; inset: 0; background: #000; overflow: hidden; }
.ka-art img, .ka-art video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.25); }
.ka-qcard { position: absolute; left: 50%; top: 50%; width: min(440px, calc(100% - 48px)); transform: translate(-50%, -50%); padding: 24px; border-radius: 16px; background: rgba(10, 10, 12, .94); border: 1px solid rgba(255, 255, 255, .12); color: #f5f5f5; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.ka-qcard p { margin: 0; }
.ka-qcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ka-qcard-top code { font: 500 13px var(--mono); color: #a3a3a3; }
.ka-qcard-top em { font: 500 13px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: #f5f5f5; color: #0a0a0a; }
.ka-qcard-n { margin-top: 22px !important; font: 497 22px var(--mono); letter-spacing: -.01em; }
.ka-qcard-i { margin: 6px 0 20px !important; font-size: 15px; color: #a3a3a3; }
.ka-qcard .ka-bar i, .ka-qcard .ka-mark { background: #f5f5f5; }
.ka-qcard .ka-mark { box-shadow: 0 0 0 6px rgba(255, 255, 255, .16); }
.ka-qcard .ka-opt-k, .ka-qcard .ka-levels li, .ka-qcard .ka-noul { font-size: 14px; }
.ka-get { color: var(--ink); }
.ka-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 7fr 5fr; gap: 24px; }
.ka-cards li:nth-child(2) .ka-card { background: #f5f5f5; color: var(--ink); }
.ka-cards li:nth-child(2) .ka-card-l { color: #737373; }
.ka-cards li:nth-child(2) .ka-card code { background: rgba(0, 0, 0, .06); color: #525252; }
.ka-cards li:nth-child(2) .ka-sig { color: rgba(0, 0, 0, .3); }
.ka-cards li:nth-child(2) .ka-card-go { color: var(--ink); }
@media (hover: hover) { .ka-cards li:nth-child(2) .ka-card:hover .ka-sig { color: rgba(0, 0, 0, .6); } }
.ka-card:active { transform: scale(.98); }
.ka-tree { padding: 22px 24px 20px; }
.ka-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ka-body { position: relative; }
.ka-root { max-width: 560px; margin: 0 auto; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .18); background: #171717; text-align: center; }
.ka-root .mb-mono { margin: 0 0 8px; }
.ka-state { margin: 0; min-height: 3em; font: 400 14.5px/1.5 var(--mono); color: #f5f5f5; overflow-wrap: anywhere; }
.ka-caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: #f5f5f5; opacity: 0; }
.ka-caret[data-on] { opacity: 1; animation: mb-blink .9s steps(2, jump-none) infinite; }
.ka-wires { display: block; width: 100%; height: 44px; overflow: visible; }
.ka-wires path { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.4; }
.ka-qs { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; min-height: 264px; align-content: start; }
.ka-root { min-height: 103px; }
.ka-q { padding: 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background: #0f0f0f; transition: border-color .5s var(--ease); }
.ka-q[data-on] { border-color: rgba(255, 255, 255, .22); }
.ka-q-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.ka-q-h b { font: 497 14px var(--mono); color: #f5f5f5; overflow-wrap: anywhere; }
.ka-q-h em { font: 500 13px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; border-radius: 999px; background: #f5f5f5; color: #0a0a0a; }
.ka-q-i { margin: 8px 0 14px; font-size: 13.5px; line-height: 1.4; color: #a3a3a3; }
.ka-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ka-opts li { display: grid; gap: 3px; }
.ka-opt-k { font: 500 13px var(--mono); color: #d4d4d4; overflow-wrap: anywhere; transition: color .3s; }
.ka-opt-d { font-size: 13px; color: #737373; }
.ka-opts li[data-win] .ka-opt-k { color: #fff; }
.ka-opts li[data-win] .ka-opt-k::after { content: ' ✓'; color: #f5f5f5; }
.ka-bar { position: relative; height: 4px; border-radius: 4px; background: #262626; overflow: hidden; }
.ka-bar i { position: absolute; inset: 0; background: #f5f5f5; transform-origin: 0 50%; transform: scaleX(0); }
.ka-track { position: relative; height: 4px; border-radius: 4px; background: #262626; margin: 10px 7px; }
.ka-run { position: absolute; inset: 0; pointer-events: none; }
.ka-mark { position: absolute; top: 50%; left: -7px; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #f5f5f5; box-shadow: 0 0 0 5px rgba(255, 255, 255, .12); }
.ka-tick { position: absolute; top: -3px; width: 1px; height: 10px; background: rgba(255, 255, 255, .3); }
.ka-levels { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ka-levels li { font: 500 13px var(--mono); color: #737373; transition: color .3s; }
.ka-levels li[data-win] { color: #fff; }
.ka-levels li[data-win]::after { content: ' ✓'; color: #f5f5f5; }
.ka-noul { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font: 500 13px var(--mono); color: #a3a3a3; }
.ka-noul .ka-track { margin: 0 7px; }
.ka-noul em { grid-column: 1 / -1; font-style: normal; color: #737373; }
.ka-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ka-foot-t { margin: 0 auto 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.ka-foot code { font: 500 13px var(--mono); color: #f5f5f5; }
.ka-foot-t span { font: 500 13px var(--mono); color: #a3a3a3; }
.ka-foot .x-copy { background: #171717; border-color: rgba(255, 255, 255, .14); color: #d4d4d4; height: 36px; }
.ka-foot .x-copy:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.ka-foot .x-arrow { color: #f5f5f5; }
.ka-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #a3a3a3; max-width: 70ch; }
.ka-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 440px; padding: 36px; border-radius: 28px; background: #0a0a0a; color: #f5f5f5; text-decoration: none; overflow: hidden; isolation: isolate; }
.ka-sig { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: rgba(255, 255, 255, .5); transition: color .5s var(--ease); }
@media (hover: hover) { .ka-card:hover .ka-sig { color: rgba(255, 255, 255, .85); } }
.ka-card-l { font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #a3a3a3; }
.ka-card-n { font-size: clamp(2.75rem, 4.4vw, 4rem); font-weight: 497; letter-spacing: -.04em; line-height: 1; }
.ka-card code { align-self: flex-start; font: 500 13px var(--mono); padding: 5px 9px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #e5e5e5; }
.ka-card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 15px; color: #f5f5f5; }
.ka-card-go svg { transition: transform .35s var(--ease); }
@media (hover: hover) { .ka-card:hover .ka-card-go svg { transform: translateX(5px); } }
@media (max-width: 900px) {
.ka-head { width: auto; }
#ka-types .lv-ch-art { aspect-ratio: 4 / 4.6; }
.ka-qcard { padding: 18px; }
.ka-qcard-n { margin-top: 14px !important; font-size: 18px; }
.ka-qcard-i { margin-bottom: 14px !important; }
.ka-tree { padding: 18px 14px; }
.ka-wires { display: none; }
.ka-qs { grid-template-columns: 1fr; margin-top: 12px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .3); min-height: 620px; }
.ka-root { min-height: 148px; }
.ka-cards { grid-template-columns: 1fr; gap: 16px; }
.ka-card { min-height: 300px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ka-caret[data-on] { animation: none; } }
/* dark: the second model card was a light #f5f5f5 panel under light type; lay it on Hanzo's muted surface, and edge both
cards with the hairline so the black card isn't lost on the dark page */
html:not(.light) .ka-card { box-shadow: inset 0 0 0 1px var(--border); }
html:not(.light) .ka-cards li:nth-child(2) .ka-card { background: var(--muted); color: var(--foreground); }
html:not(.light) .ka-cards li:nth-child(2) .ka-card-l { color: var(--muted-foreground); }
html:not(.light) .ka-cards li:nth-child(2) .ka-card code { background: var(--secondary); color: var(--muted-foreground); }
html:not(.light) .ka-cards li:nth-child(2) .ka-sig { color: color-mix(in srgb, var(--foreground) 30%, transparent); }
html:not(.light) .ka-cards li:nth-child(2) .ka-card-go { color: var(--foreground); }
@media (hover: hover) { html:not(.light) .ka-cards li:nth-child(2) .ka-card:hover .ka-sig { color: color-mix(in srgb, var(--foreground) 60%, transparent); } }