mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
- /affiliate had no dark rules: its #0a0a0b text and fills were black on black. Now on Hanzo's tokens (--ink, --soft, --primary/--primary-foreground chips, --x-raised/--muted cards); the black request bar stays black. - /models: the selected tab in the always-black 'Try any model' console was white on white; it now uses --primary-foreground on the pill's own fill. - The rest: selected tabs and chips whose light pill is a sibling element; the selected element now carries the pill's colour in dark. Gradient-text names (/oss, /research) declare the colour actually shown. 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
392 lines
32 KiB
CSS
392 lines
32 KiB
CSS
/* ---------- sdks ---------- */
|
|
.xsd-hero { padding: clamp(36px, 5vw, 80px) 0 clamp(56px, 7vw, 104px); }
|
|
.xsd-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
|
|
.xsd-h1 { margin: 0; font-size: clamp(2.8rem, 5.4vw, 5.6rem); font-weight: 560; letter-spacing: -.05em; line-height: .96; }
|
|
.xsd-lede { margin: 22px 0 0; max-width: 42ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--soft); }
|
|
.xsd-lede b { color: var(--ink); font-weight: 560; }
|
|
.xsd-hero-links { margin-top: 24px; }
|
|
.xsd-ex { margin: 36px 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
|
|
.xsd-dias { display: grid; gap: 12px; }
|
|
.xsd-dias div { display: grid; gap: 3px; padding-left: 14px; border-left: 2px solid var(--line); }
|
|
.xsd-dias b { font-size: 15px; font-weight: 600; }
|
|
.xsd-dias span { font-size: 14px; line-height: 1.45; color: var(--soft); }
|
|
|
|
/* the console */
|
|
.xsd-con { border-radius: 24px; background: #0a0a0a; color: #f5f5f7; box-shadow: 0 60px 100px -60px rgba(0, 0, 0, .6); overflow: hidden; }
|
|
.xsd-con-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 12px 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
|
|
.xsd-dia { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
|
|
.xsd-dia button { position: relative; height: 32px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: #a1a1a6; font: 500 13.5px/1 var(--sans); cursor: pointer; transition: color .2s; }
|
|
@media (hover: hover) { .xsd-dia button:hover { color: #fff; } }
|
|
.xsd-dia button[aria-selected='true'] { color: var(--ink); }
|
|
.xsd-dia button span:not(.xsd-dia-bg) { position: relative; }
|
|
.xsd-dia-bg { position: absolute; inset: 0; border-radius: 999px; background: #f5f5f7; }
|
|
.xsd-langs { display: flex; gap: 2px; }
|
|
.xsd-langs button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 0; border-radius: 8px; background: none; color: #86868b; font: 500 13px/1 var(--mono); cursor: pointer; transition: color .2s, background .2s; }
|
|
@media (hover: hover) { .xsd-langs button:hover { color: #fff; } }
|
|
.xsd-langs button[aria-selected='true'] { color: #fff; background: rgba(255, 255, 255, .1); }
|
|
.xsd-url { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 46px; padding: 0 12px 0 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 13px; color: #d2d2d7; overflow: hidden; }
|
|
.xsd-url > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.xsd-con .x-copy { flex: none; background: transparent; border-color: rgba(255, 255, 255, .16); color: #d2d2d7; }
|
|
@media (hover: hover) { .xsd-con .x-copy:hover { color: #fff; border-color: rgba(255, 255, 255, .4); } }
|
|
.xsd-pre { margin: 0; padding: 20px 22px; min-height: 330px; font: 400 13.5px/1.75 var(--mono); color: #e8e8ed; white-space: pre; overflow-x: auto; animation: xsd-fade .4s var(--ease); }
|
|
@keyframes xsd-fade { from { opacity: 0; transform: translateY(6px); } }
|
|
.xsd-pre code { font: inherit; }
|
|
.xsd-l { position: relative; display: inline; }
|
|
.xsd-l.chg { background: rgba(255, 255, 255, .08); box-shadow: -22px 0 0 rgba(255, 255, 255, .08), 22px 0 0 rgba(255, 255, 255, .08); border-radius: 2px; animation: xsd-mark 2.4s var(--ease) var(--d) both; }
|
|
@keyframes xsd-mark { 0% { color: transparent; background: rgba(255, 255, 255, .22); } 25% { color: #fff; } 100% { background: rgba(255, 255, 255, 0); box-shadow: none; } }
|
|
.xsd-s { color: #cbcbcb; }
|
|
.xsd-c { color: #6e6e73; }
|
|
.xsd-cap { margin: 0; padding: 14px 22px 18px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14px; color: #a1a1a6; }
|
|
|
|
/* paste and ship */
|
|
.xsd-paste { padding: 0 0 clamp(16px, 3vw, 32px); }
|
|
.xsd-paste-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px; align-items: center; padding: 22px 24px; border-radius: 24px; background: var(--card); }
|
|
.xsd-paste-in p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--soft); }
|
|
.xsd-paste-in .xsd-paste-k { margin-bottom: 4px; font-size: 18px; font-weight: 600; color: var(--ink); }
|
|
.xsd-prompt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; border-radius: 16px; background: light-dark(#fff, var(--card)); border: 1px solid var(--line); }
|
|
.xsd-prompt-k { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
|
|
.xsd-prompt code { font: 400 14px/1.45 var(--mono); overflow-wrap: anywhere; }
|
|
|
|
/* the two libraries */
|
|
.xsd-two-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
|
|
.xsd-half { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--card); }
|
|
.xsd-half.dark { background: var(--ink); color: #f5f5f7; }
|
|
.xsd-glyph { font: 500 28px/1 var(--mono); color: var(--faint); }
|
|
.xsd-half h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 560; letter-spacing: -.04em; }
|
|
.xsd-half p { margin: 0; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--soft); }
|
|
.xsd-half.dark p { color: #a1a1a6; }
|
|
.xsd-half code, .xsd-lives code { font: 500 .92em/1 var(--mono); padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .06); color: var(--ink); }
|
|
.xsd-half.dark code { background: rgba(255, 255, 255, .1); color: #fff; }
|
|
|
|
/* official SDKs: the chooser */
|
|
.xsd-pick { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
|
|
.xsd-pick-l { display: grid; gap: 2px; padding: 6px; border-radius: 20px; background: var(--card); }
|
|
.xsd-pick-l button { position: relative; height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: none; text-align: left; font: 500 16px/1 var(--sans); color: var(--soft); cursor: pointer; transition: color .2s, transform .25s var(--ease); }
|
|
@media (hover: hover) { .xsd-pick-l button:hover { color: var(--ink); transform: translateX(3px); } }
|
|
.xsd-pick-l button[aria-selected='true'] { color: var(--ink); }
|
|
.xsd-pick-l button span:not(.xsd-pick-bg) { position: relative; }
|
|
.xsd-pick-bg { position: absolute; inset: 0; border-radius: 14px; background: light-dark(#fff, var(--card)); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
|
|
.xsd-pick-p { min-height: 280px; padding: clamp(22px, 3vw, 36px); border-radius: 28px; border: 1px solid var(--line); }
|
|
.xsd-pick-p h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 560; letter-spacing: -.04em; }
|
|
.xsd-reg { margin: 6px 0 22px; font-size: 13px; color: var(--faint); }
|
|
.xsd-cmd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 14px; background: var(--ink); color: #f5f5f7; }
|
|
.xsd-cmd code { font: 400 14.5px/1.5 var(--mono); overflow-wrap: anywhere; }
|
|
.xsd-cmd .x-copy { flex: none; background: transparent; border-color: rgba(255, 255, 255, .2); color: #d2d2d7; }
|
|
@media (hover: hover) { .xsd-cmd .x-copy:hover { color: #fff; border-color: rgba(255, 255, 255, .45); } }
|
|
.xsd-pkg { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 18px; }
|
|
.xsd-pkg-a { font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(0, 0, 0, .25); transition: text-decoration-color .2s; }
|
|
@media (hover: hover) { .xsd-pkg-a:hover { text-decoration-color: var(--ink); } }
|
|
.xsd-lives { margin: 22px 0 0; font-size: 15px; line-height: 1.6; color: var(--soft); }
|
|
|
|
/* orgs: a table in the one dark room */
|
|
.xsd-orgs { background: #0a0a0a; color: #f5f5f7; }
|
|
.xsd-table { display: grid; }
|
|
.xsd-tr { display: grid; grid-template-columns: 1.3fr 1fr 2.2fr 1.2fr 1.4fr 1fr; gap: 16px; align-items: center; padding: 18px 12px; border-top: 1px solid rgba(255, 255, 255, .1); color: #f5f5f7; text-decoration: none; font-size: 13.5px; transition: background .25s; border-radius: 12px; }
|
|
@media (hover: hover) { a.xsd-tr:hover { background: rgba(255, 255, 255, .06); } }
|
|
.xsd-th { padding-top: 0; border-top: 0; font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #86868b; }
|
|
.xsd-tr .x-mono { color: #d2d2d7; overflow-wrap: anywhere; }
|
|
.xsd-tr i { display: none; font-style: normal; margin-right: 8px; color: #86868b; }
|
|
.xsd-lang { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
|
.xsd-lang b { font-size: 16px; font-weight: 560; margin-right: 4px; }
|
|
.xsd-lang em, .xsd-lib em { font-style: normal; padding: 3px 7px; border-radius: 6px; background: #f5f5f7; color: var(--ink); font: 500 13px/1.2 var(--mono); }
|
|
.xsd-lang em.ga { background: rgba(255, 255, 255, .12); color: #d2d2d7; }
|
|
.xsd-inst { color: #fff !important; }
|
|
|
|
/* the flagship library */
|
|
.xsd-ai-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
|
|
.xsd-lib.lead { grid-row: span 2; } /* the flagship leads; Node and Rust stack beside it, never three in a row */
|
|
.xsd-lib { display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: 26px; background: var(--card); transition: transform .3s var(--ease); }
|
|
@media (hover: hover) { .xsd-lib:hover { transform: translateY(-4px); } }
|
|
.xsd-lib.lead { background: var(--ink); color: #f5f5f7; }
|
|
.xsd-lib-top { display: flex; justify-content: space-between; align-items: center; }
|
|
.xsd-lib h3 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 560; letter-spacing: -.04em; }
|
|
.xsd-lib.lead em { background: #f5f5f7; }
|
|
.xsd-lib:not(.lead) em { background: light-dark(#fff, var(--card)); }
|
|
.xsd-repo { margin: -6px 0 0; font-size: 13px; color: var(--faint); }
|
|
.xsd-lib p:last-child { margin: 0; font-size: 15px; line-height: 1.55; color: var(--soft); }
|
|
.xsd-lib.lead p:last-child { color: #a1a1a6; }
|
|
.xsd-lib.lead .xsd-cmd { background: #1d1d1f; }
|
|
|
|
/* go modules */
|
|
.xsd-find { display: flex; align-items: center; gap: 0; height: 64px; padding: 0 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); font-size: 20px; cursor: text; transition: border-color .2s, box-shadow .2s; }
|
|
.xsd-find:focus-within { border-color: light-dark(rgba(0, 0, 0, .35), var(--white-40)); box-shadow: 0 0 0 4px rgba(0, 0, 0, .05); }
|
|
.xsd-find > .x-mono:first-child { color: var(--faint); }
|
|
.xsd-find-f { position: relative; flex: 1; min-width: 0; height: 100%; }
|
|
.xsd-find input { width: 100%; height: 100%; border: 0; background: none; font: 500 20px/1 var(--mono); color: var(--ink); outline: none; padding: 0; }
|
|
.xsd-ph { position: absolute; left: 0; top: 50%; translate: 0 -50%; display: flex; align-items: center; font-size: 20px; color: var(--soft); pointer-events: none; }
|
|
.xsd-ph i { width: 2px; height: 1.1em; margin-left: 2px; background: var(--ink); animation: xsd-blink 1s steps(1) infinite; }
|
|
@keyframes xsd-blink { 50% { opacity: 0; } }
|
|
.xsd-find-n { font-size: 13px; color: var(--faint); }
|
|
.xsd-modlist { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
|
|
.xsd-mod { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font: 500 13.5px/1 var(--mono); color: var(--ink); text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
|
|
.xsd-mod span { color: var(--faint); transition: color .2s; }
|
|
@media (hover: hover) { .xsd-mod:hover { background: var(--ink); border-color: var(--ink); color: light-dark(#fff, var(--primary-foreground)); } }
|
|
@media (hover: hover) { .xsd-mod:hover span { color: light-dark(#86868b, var(--text-tertiary)); } }
|
|
.xsd-none { margin: 18px 0 0; font-size: 15px; color: var(--soft); }
|
|
[data-off] .xsd-ph i, [data-off] .xsd-l.chg { animation-play-state: paused; }
|
|
@media (prefers-reduced-motion: reduce) { .xsd-l.chg, .xsd-pre, .xsd-ph i { animation: none; } .xsd-lib:hover, .xsd-pick-l button:hover { transform: none; } }
|
|
|
|
@media (max-width: 900px) {
|
|
.xsd-grid, .xsd-paste-in, .xsd-two-in, .xsd-pick, .xsd-ai-grid { grid-template-columns: 1fr; }
|
|
.xsd-lib.lead { grid-row: auto; }
|
|
.xsd-h1 { font-size: clamp(2.6rem, 12.5vw, 4rem); }
|
|
.xsd-con-top { padding: 10px; }
|
|
.xsd-dia button, .xsd-langs button { height: 44px; }
|
|
.xsd-langs { width: 100%; justify-content: space-between; }
|
|
.xsd-pre { min-height: 0; padding: 16px; font-size: 14px; }
|
|
.xsd-l.chg { box-shadow: none; }
|
|
.xsd-url { font-size: 14px; }
|
|
.xsd-dias span, .xsd-cap, .xsd-paste-in p { font-size: 14px; }
|
|
.xsd-prompt { grid-template-columns: 1fr auto; }
|
|
.xsd-prompt-k { grid-column: 1 / -1; }
|
|
.xsd-pick-l { display: flex; overflow-x: auto; scrollbar-width: none; border-radius: 16px; }
|
|
.xsd-pick-l button { flex: none; height: 44px; }
|
|
@media (hover: hover) { .xsd-pick-l button:hover { transform: none; } }
|
|
.xsd-th { display: none; }
|
|
.xsd-tr { grid-template-columns: 1fr; gap: 6px; padding: 16px 4px; }
|
|
.xsd-tr i { display: inline; }
|
|
.xsd-tr { font-size: 14px; }
|
|
.xsd-find { height: 56px; padding: 0 14px; font-size: 16px; }
|
|
.xsd-find input, .xsd-ph { font-size: 16px; }
|
|
.xsd-mod { height: 44px; font-size: 14px; }
|
|
.xsd-ex, .xsd-dia button, .xsd-langs button, .xsd-url, .xsd-pre, .xsd-prompt-k, .xsd-reg, .xsd-tr, .xsd-th, .xsd-lang em, .xsd-lib em, .xsd-repo, .xsd-find-n, .xsd-mod { font-size: 14px; }
|
|
}
|
|
|
|
/* ---------- v2 overrides (James 7 Nov): the a2 grammar from components/v2/A2.css ---------- */
|
|
.xsd-hero { padding: clamp(112px, 14vh, 156px) 0 clamp(96px, 10vw, 160px); }
|
|
.xsd-top { align-items: end; row-gap: 28px; margin-bottom: clamp(48px, 5vw, 72px); }
|
|
.xsd-top-l { grid-column: 1 / span 8; }
|
|
.xsd-top-l .a2-kick { margin-bottom: 28px; }
|
|
.xsd-h1 { max-width: none; }
|
|
.xsd-top-r { grid-column: 9 / span 4; }
|
|
.xsd-lede { margin: 0; font-size: clamp(17px, 1.4vw, 20px); }
|
|
.xsd-hero-links { margin-top: 24px; }
|
|
.xsd-stage { align-items: start; row-gap: 32px; }
|
|
.xsd-stage-con { grid-column: 1 / span 8; }
|
|
.xsd-stage-side { grid-column: 9 / span 4; position: sticky; top: 120px; }
|
|
.xsd-con { border-radius: var(--r-hero); box-shadow: 0 70px 140px -60px color-mix(in srgb, var(--acc) 55%, #000); }
|
|
.xsd-con-top { padding: 14px 16px; }
|
|
.xsd-dia button { height: 38px; padding: 0 20px; font-size: 15px; }
|
|
.xsd-dia-bg { background: var(--acc); }
|
|
.xsd-dia button[aria-selected='true'] { color: #fff; }
|
|
.xsd-langs button { height: 38px; padding: 0 13px; font-size: 14px; }
|
|
.xsd-url { height: 54px; font-size: 14.5px; padding: 0 14px 0 24px; }
|
|
.xsd-pre { padding: 28px 30px; min-height: 420px; font-size: clamp(14px, 1.08vw, 16px); line-height: 1.85; }
|
|
.xsd-l.chg { background: color-mix(in srgb, var(--acc) 30%, transparent); box-shadow: -30px 0 0 color-mix(in srgb, var(--acc) 30%, transparent), 30px 0 0 color-mix(in srgb, var(--acc) 30%, transparent); }
|
|
@keyframes xsd-mark { 0% { color: transparent; background: color-mix(in srgb, var(--acc) 60%, transparent); } 25% { color: #fff; } 100% { background: transparent; box-shadow: none; } }
|
|
.xsd-cap { padding: 16px 30px 20px; font-size: 15px; }
|
|
.xsd-ex { margin: 8px 0 18px; }
|
|
.xsd-dias { gap: 24px; }
|
|
.xsd-dias div { border-left-color: var(--acc); }
|
|
.xsd-dias b { font-size: 17px; }
|
|
.xsd-dias span { font-size: 15px; }
|
|
.xsd-head { max-width: 900px; margin-bottom: clamp(48px, 5vw, 80px); }
|
|
.xsd-head .a2-kick { margin-bottom: 24px; }
|
|
.xsd-head .a2-lede { margin-top: 28px; max-width: 52ch; }
|
|
.xsd-head.dark .a2-kick { color: var(--acc); }
|
|
.xsd-half { border-radius: var(--r-hero); padding: clamp(32px, 4vw, 56px); min-height: 380px; }
|
|
.xsd-half h2 { font-size: clamp(26px, 2.4vw, 32px); font-weight: 497; letter-spacing: -.02em; }
|
|
.xsd-half p { font-size: 17px; }
|
|
.xsd-half.dark { background: var(--acc); }
|
|
.xsd-half.dark p { color: rgba(255, 255, 255, .85); }
|
|
.xsd-pick-bg { background: var(--acc) !important; }
|
|
.xsd-orgs { background: #000; }
|
|
.xsd-row { display: contents; }
|
|
.xsd-lib { border-radius: var(--r-hero); padding: 32px; }
|
|
.xsd-lib.lead { background: var(--acc); }
|
|
.xsd-lib.lead p:last-child { color: rgba(255, 255, 255, .85); }
|
|
.xsd-lib.lead .xsd-cmd { background: rgba(0, 0, 0, .22); }
|
|
.xsd-find { height: 76px; border-radius: var(--r-card); font-size: 24px; }
|
|
.xsd-find input { font-size: 24px; }
|
|
.xsd-find:focus-within { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 15%, transparent); }
|
|
.xsd-modlist { gap: 4px 22px; margin-top: 32px; }
|
|
.xsd-mod { height: auto; padding: 4px 0; border: 0; border-radius: 0; font-size: clamp(18px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.02em; }
|
|
.xsd-mod span { display: none; }
|
|
@media (hover: hover) { .xsd-mod:hover { color: var(--acc); background: none; } }
|
|
@media (max-width: 900px) {
|
|
.xsd-hero { padding-top: 112px; }
|
|
.xsd-stage-side { position: static; }
|
|
.xsd-h1 { font-size: clamp(48px, 14.6vw, 56px) !important; }
|
|
.xsd-pre { min-height: 0; padding: 18px; font-size: 13.5px; }
|
|
.xsd-half { min-height: 0; }
|
|
.xsd-find { height: 64px; font-size: 18px; padding: 0 14px; }
|
|
.xsd-find input { font-size: 18px; }
|
|
.xsd-mod { font-size: 18px; }
|
|
}
|
|
.xsd-lib.lead .xsd-repo { color: rgba(255, 255, 255, .82); }
|
|
|
|
/* 0 UI hues (James 7 Nov 14:20): the accent is ink in light rooms and #f5f5f7 in dark panels */
|
|
.xsd-con { --acc: #f5f5f7; }
|
|
.xsd-con .xsd-dia button[aria-selected='true'] { color: #000; }
|
|
|
|
.xsd-close { border-top: 1px solid var(--line); }
|
|
.xsd-close-in { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
|
|
.xsd-close-h { margin: 0; max-width: 12ch; }
|
|
|
|
/* code first (differs from its neighbours): the console on the left, the words on the right */
|
|
.xsd-first { align-items: start; row-gap: 40px; }
|
|
.xsd-code-first { grid-column: 1 / span 8; grid-row: 1; }
|
|
.xsd-words { grid-column: 9 / span 4; grid-row: 1; padding-top: 8px; }
|
|
.xsd-words .a2-kick { margin-bottom: 24px; }
|
|
.xsd-words .xsd-h1 { max-width: none; font-size: clamp(44px, 4.6vw, 68px) !important; }
|
|
.xsd-words .xsd-lede { margin: 24px 0 0; font-size: clamp(17px, 1.3vw, 19px); }
|
|
.xsd-words .xsd-ex { margin: 40px 0 14px; }
|
|
.xsd-pre { min-height: 470px; }
|
|
@media (max-width: 900px) {
|
|
.xsd-code-first, .xsd-words { grid-row: auto; }
|
|
.xsd-pre { min-height: 0; }
|
|
/* phone: h1, lede and ask, then the console moving right under them; the two dialect notes follow it */
|
|
.xsd-first { display: flex; flex-direction: column; row-gap: 0; align-items: stretch; }
|
|
.xsd-code-first { width: 100%; min-width: 0; }
|
|
.xsd-code-first .xsd-con, .xsd-code-first .xsd-pre { min-width: 0; max-width: 100%; }
|
|
.xsd-pre { overflow-x: auto; }
|
|
.xsd-con-top { flex-wrap: wrap; row-gap: 8px; }
|
|
.xsd-mod, .xsd .x-arrow, .xsd-pkg-a { min-height: 44px; display: inline-flex; align-items: center; }
|
|
.xsd-langs { flex-wrap: wrap; row-gap: 4px; }
|
|
.xsd-langs button { padding: 0 10px; }
|
|
.xsd-words { display: contents; }
|
|
.xsd-words > * { order: 0; }
|
|
.xsd-code-first { order: 1; margin-top: 28px; }
|
|
.xsd-words > .xsd-ex, .xsd-words > .xsd-dias { order: 2; }
|
|
}
|
|
/* the accent became ink (0 UI hues), so text set on an accent fill reads light: the AI + Agents half, the lead
|
|
library card and the picker's chosen language */
|
|
.xsd-half.dark, .xsd-half.dark h2, .xsd-half.dark h3, .xsd-lib.lead, .xsd-lib.lead h3, .xsd-lib.lead h2 { color: #fafafa; }
|
|
.xsd-pick-l button[aria-selected='true'] { color: light-dark(#fafafa, var(--primary-foreground)); }
|
|
/* ---------- the peel (signature): the stack lifts apart in 3D, then closes again ---------- */
|
|
.xsd-peel { padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 8vw, 120px); border-top: 1px solid var(--line); }
|
|
.xsd-peel-grid { align-items: center; row-gap: 32px; }
|
|
.xsd-peel-stage { grid-column: 1 / span 7; min-width: 0; }
|
|
.xsd-peel-side { grid-column: 9 / span 4; min-width: 0; }
|
|
.xsd-peel-scene { --pw: 320px; --ph: 200px; --gap: 104px; position: relative; height: 560px; perspective: 1900px; perspective-origin: 50% 20%; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; border-radius: var(--r-hero); background: light-dark(#f5f5f5, var(--muted)); }
|
|
.xsd-peel-scene:active { cursor: grabbing; }
|
|
.xsd-peel-stack { position: absolute; left: 50%; top: 75%; width: var(--pw); height: var(--ph); margin: calc(var(--ph) / -2) 0 0 calc(var(--pw) / -2); transform-style: preserve-3d; transform: translateY(calc((1 - var(--o)) * -60%)) rotateX(56deg) rotateZ(-36deg); }
|
|
.xsd-plate { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * (8px + var(--o) * var(--gap)))); }
|
|
.xsd-plate-f { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; text-align: right; gap: 6px; padding: 20px 22px; border-radius: 20px; background: light-dark(#fff, var(--card)); color: light-dark(#0a0a0a, var(--foreground)); border: 1px solid light-dark(rgba(0, 0, 0, .14), var(--white-14)); box-shadow: 5px 7px 0 light-dark(#d4d4d4, var(--white-14)), 0 30px 60px -24px rgba(0, 0, 0, .18); transition: transform .4s cubic-bezier(.16, 1, .3, 1), background-color .3s cubic-bezier(0, 0, .2, 1), color .3s cubic-bezier(0, 0, .2, 1), box-shadow .3s cubic-bezier(0, 0, .2, 1); cursor: pointer; }
|
|
.xsd-plate.p0 .xsd-plate-f { background: light-dark(#ededed, var(--secondary)); }
|
|
.xsd-plate.on .xsd-plate-f { transform: translateZ(calc(var(--o) * 22px)); background: light-dark(#0a0a0a, var(--primary)); color: light-dark(#fafafa, var(--primary-foreground)); border-color: light-dark(#0a0a0a, var(--foreground)); box-shadow: 5px 7px 0 #404040, 0 40px 80px -24px rgba(0, 0, 0, .3); }
|
|
@media (hover: hover) { .xsd-plate:not(.on):hover .xsd-plate-f { border-color: light-dark(rgba(0, 0, 0, .4), var(--white-40)); } }
|
|
.xsd-plate-n { position: absolute; top: 16px; left: 20px; font-size: 12px; letter-spacing: .14em; color: light-dark(#737373, var(--muted-foreground)); }
|
|
.xsd-plate.on .xsd-plate-n, .xsd-plate.on .xsd-plate-s { color: light-dark(#a3a3a3, var(--neutral-500)); }
|
|
.xsd-plate b { display: flex; align-items: baseline; gap: 10px; font-size: 26px; font-weight: 497; letter-spacing: -.02em; line-height: 1.1; }
|
|
.xsd-plate b i { font: 500 18px/1 var(--mono); font-style: normal; color: light-dark(#737373, var(--muted-foreground)); }
|
|
.xsd-plate.on b i { color: light-dark(#a3a3a3, var(--neutral-500)); }
|
|
.xsd-plate-s { font-size: 13px; color: light-dark(#525252, var(--muted-foreground)); }
|
|
.xsd-plate-c { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin-bottom: 4px; max-width: 80%; }
|
|
.xsd-plate-c em { padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .06); font: 500 12px/1.2 var(--mono); font-style: normal; }
|
|
.xsd-plate.on .xsd-plate-c em { background: rgba(255, 255, 255, .1); }
|
|
.xsd-peel-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
|
|
.xsd-peel-tog { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: light-dark(#fff, var(--card)); color: var(--ink); font: 500 15px/1 var(--sans); cursor: pointer; transition: background-color .15s cubic-bezier(0, 0, .2, 1), transform .09s cubic-bezier(0, 0, .2, 1); }
|
|
@media (hover: hover) { .xsd-peel-tog:hover { background: light-dark(#f5f5f5, var(--muted)); } }
|
|
.xsd-peel-tog:active { transform: scale(.97); }
|
|
.xsd-peel-tog:focus-visible, .xsd-peel-list button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
|
|
.xsd-peel-ic { display: grid; gap: 3px; width: 16px; }
|
|
.xsd-peel-ic i { display: block; height: 2px; border-radius: 1px; background: currentColor; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
|
|
.xsd-peel-tog[aria-pressed='true'] .xsd-peel-ic { gap: 1px; }
|
|
.xsd-peel-tog[aria-pressed='false'] .xsd-peel-ic i:nth-child(1) { transform: translateY(-2px); }
|
|
.xsd-peel-tog[aria-pressed='false'] .xsd-peel-ic i:nth-child(3) { transform: translateY(2px); }
|
|
.xsd-peel-hint { font-size: 13px; color: light-dark(#737373, var(--muted-foreground)); }
|
|
.xsd-peel-list { list-style: none; margin: 0 0 28px; padding: 0; border-bottom: 1px solid var(--line); }
|
|
.xsd-peel-list li { border-top: 1px solid var(--line); }
|
|
.xsd-peel-list button { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 52px; padding: 0 4px; border: 0; background: none; text-align: left; font: 497 17px/1.2 var(--sans); color: light-dark(#737373, var(--muted-foreground)); cursor: pointer; transition: color .15s cubic-bezier(0, 0, .2, 1), padding .3s cubic-bezier(.16, 1, .3, 1); }
|
|
.xsd-peel-list button > span { font-size: 12px; letter-spacing: .14em; color: light-dark(#737373, var(--muted-foreground)); }
|
|
.xsd-peel-list button[aria-pressed='true'] { color: var(--ink); padding-left: 14px; }
|
|
.xsd-peel-list button[aria-pressed='true']::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; background: var(--ink); }
|
|
@media (hover: hover) { .xsd-peel-list button:hover { color: var(--ink); } }
|
|
.xsd-peel-says { display: grid; }
|
|
.xsd-say { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s cubic-bezier(0, 0, .2, 1), transform .4s cubic-bezier(.16, 1, .3, 1), visibility 0s .3s; }
|
|
.xsd-say.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
|
|
.xsd-say h2 { margin: 0; font-size: 26px; font-weight: 497; letter-spacing: -.02em; line-height: 1.15; }
|
|
.xsd-say p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--soft); }
|
|
.xsd-say p b { color: var(--ink); font-weight: 497; }
|
|
.xsd-say code { font: 500 .92em/1 var(--mono); padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .06); color: var(--ink); }
|
|
.xsd-say .xsd-cmd { align-self: stretch; }
|
|
.xsd-say .xsd-cmd code { background: none; padding: 0; color: #fafafa; }
|
|
.xsd-peel-scene.calm .xsd-plate-f, .xsd-peel-scene.calm .xsd-peel-ic i { transition: none; }
|
|
@media (prefers-reduced-motion: reduce) { .xsd-plate-f, .xsd-say, .xsd-peel-list button { transition: none; } }
|
|
@media (max-width: 900px) {
|
|
.xsd-peel-stage, .xsd-peel-side { grid-column: 1 / -1; }
|
|
.xsd-peel-scene { --pw: 200px; --ph: 128px; --gap: 74px; height: 380px; }
|
|
.xsd-plate-f { padding: 12px 14px; gap: 4px; border-radius: 14px; }
|
|
.xsd-plate b { font-size: 17px; gap: 6px; }
|
|
.xsd-plate b i { font-size: 13px; }
|
|
.xsd-plate-n, .xsd-plate-s { font-size: 11px; }
|
|
.xsd-plate-n { top: 10px; left: 14px; }
|
|
.xsd-plate-c { display: none; }
|
|
.xsd-peel-hint { font-size: 14px; }
|
|
.xsd-peel-list button > span { font-size: 14px; }
|
|
.xsd-peel-list { margin-bottom: 22px; }
|
|
}
|
|
|
|
/* h3s rest below the 32px section h2s they sit under */
|
|
.xsd-pick-p h3, .xsd-lib h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 497; letter-spacing: -.02em; }
|
|
|
|
/* idle, the finder types a path and the wall answers: the modules it names stay ink, the rest step back */
|
|
.xsd-modlist .xsd-mod { transition: color .35s cubic-bezier(0, 0, .2, 1), background .2s; }
|
|
.xsd-modlist.ghost .xsd-mod:not(.lit) { color: light-dark(#a3a3a3, var(--neutral-500)); }
|
|
/* the flagship card: the name on top, the line and its install at the foot, so the tall card is composed, not empty */
|
|
.xsd-lib.lead { grid-template-rows: auto auto 1fr auto; }
|
|
.xsd-lib.lead .xsd-cmd { order: 1; background: rgba(255, 255, 255, .08); }
|
|
.xsd-lib.lead p:last-child { align-self: end; max-width: 24ch; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; letter-spacing: -.01em; color: #fafafa; }
|
|
@media (max-width: 900px) {
|
|
.xsd-lib.lead { grid-template-rows: none; }
|
|
.xsd-lib.lead p:last-child { font-size: 18px; }
|
|
}
|
|
@media (hover: hover) { .xsd-modlist.ghost .xsd-mod:hover { color: var(--ink); } }
|
|
|
|
/* ---------- section entrances (MOTION-MAP /sdks), played once by useEnter in Sdks.jsx ---------- */
|
|
.xsd-tilt { transform-origin: 50% 0; }
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
/* 1. scroll-tilt: the picker arrives leaning back on rotateX and levels out (then leans with the scroll's speed) */
|
|
.js .xsd-pick[data-enter]:not([data-in]) { opacity: 0; transform: perspective(1400px) rotateX(22deg) translateY(40px); }
|
|
.js .xsd-pick[data-in]:not([data-done]) { transform-origin: 50% 0; animation: xsd-tilt 1s cubic-bezier(.16, 1, .3, 1) both; }
|
|
@keyframes xsd-tilt { 0% { opacity: 0; transform: perspective(1400px) rotateX(22deg) translateY(40px); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; } }
|
|
|
|
/* 2. fold-out: the org rows unfold from their top edge like paper, one after another, as the dark room opens */
|
|
.js .xsd-table[data-enter]:not([data-in]) .xsd-tr:not(.xsd-th) { opacity: 0; }
|
|
.js .xsd-table[data-in]:not([data-done]) .xsd-tr:not(.xsd-th) { transform-origin: 50% 0; animation: xsd-fold .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 110ms) both; }
|
|
@keyframes xsd-fold { 0% { opacity: 0; transform: perspective(900px) rotateX(-82deg); } 35% { opacity: 1; } 100% { opacity: 1; transform: none; } }
|
|
|
|
/* 3. inertia-drag: the flagship cards are thrown in from the right, coast and settle with a small give */
|
|
.js .xsd-ai-grid[data-enter]:not([data-in]) > * { opacity: 0; }
|
|
.js .xsd-ai-grid[data-in]:not([data-done]) > * { animation: xsd-throw 1.1s cubic-bezier(.06, .8, .18, 1) both; }
|
|
.js .xsd-ai-grid[data-in] > :nth-child(2) { animation-delay: 70ms; }
|
|
.js .xsd-ai-grid[data-in] > :nth-child(3) { animation-delay: 140ms; }
|
|
@keyframes xsd-throw { 0% { opacity: 0; transform: translateX(240px); } 12% { opacity: 1; } 78% { transform: translateX(-6px); } 100% { opacity: 1; transform: none; } }
|
|
|
|
/* 4. pendulum: the finder swings in from a pivot above its centre and settles */
|
|
.js .xsd-find[data-enter]:not([data-in]) { opacity: 0; }
|
|
.js .xsd-find[data-in]:not([data-done]) { transform-origin: 50% -240px; animation: xsd-swing 1.3s cubic-bezier(.3, .6, .3, 1) both; }
|
|
@keyframes xsd-swing { 0% { opacity: 0; transform: rotate(-9deg); } 20% { opacity: 1; } 45% { transform: rotate(4deg); } 68% { transform: rotate(-1.6deg); } 86% { transform: rotate(.5deg); } 100% { opacity: 1; transform: none; } }
|
|
|
|
/* 5. invert-flash: the close arrives inverted for a beat, flickers once, then holds on paper */
|
|
.js .xsd-close[data-enter]:not([data-in]) > .a2-wrap { opacity: 0; }
|
|
.js .xsd-close[data-in]:not([data-done]) { animation: xsd-invert .7s linear both; }
|
|
@keyframes xsd-invert { 0% { filter: invert(1); } 22% { filter: invert(1); } 34% { filter: invert(0); } 46% { filter: invert(.9); } 58%, 100% { filter: invert(0); } }
|
|
}
|
|
|
|
/* copy pass (8 Nov): Hanzo's lines as whole lines of text */
|
|
.xsd-dias .xsd-dia-t { font-size: 17px; font-weight: 600; color: var(--ink); }
|
|
@media (max-width: 900px) { .xsd-dias .xsd-dia-t { font-size: 15px; } }
|
|
/* each module is its whole path, as Hanzo prints it; "hanzo.ai/" is set grey by a text-clipped fill (9ch in mono) */
|
|
.xsd-modlist { gap: 6px 22px; }
|
|
.xsd .xsd-mod { font-size: clamp(16px, 1.35vw, 20px); letter-spacing: 0; color: var(--ink); background: linear-gradient(90deg, light-dark(#a3a3a3, var(--neutral-500)) 9ch, currentColor 9ch) no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
|
|
@media (hover: hover) { .xsd .xsd-mod:hover { color: light-dark(#737373, var(--muted-foreground)); } }
|
|
.xsd-modlist.ghost .xsd-mod:not(.lit) { color: light-dark(#a3a3a3, var(--neutral-500)); }
|
|
@media (max-width: 900px) { .xsd .xsd-mod { font-size: 16px; } }
|
|
|
|
/* ---------- dark mode (8 Nov): live hanzo.ai's dark palette; every light value stays exact through light-dark() ---------- */
|
|
.a2.xsd { --card: light-dark(#f2f2f2, var(--muted)); --soft: light-dark(#525252, var(--muted-foreground)); --faint: light-dark(#737373, var(--muted-foreground)); --line: light-dark(rgba(0, 0, 0, .1), var(--border)); --acc: light-dark(#0a0a0b, var(--foreground)); }
|
|
/* the install bars and the flagship card stay dark in dark (as live's code blocks), lifted off the page */
|
|
.xsd-cmd { background: light-dark(#0a0a0a, var(--card)); }
|
|
html:not(.light) .xsd-cmd { box-shadow: inset 0 0 0 1px var(--border); }
|
|
.xsd-lib.lead { background: light-dark(#0a0a0b, var(--secondary)); }
|
|
.xsd-lib.lead .xsd-cmd { background: light-dark(rgba(255, 255, 255, .08), var(--muted)); }
|
|
.xsd-lib.lead em { background: light-dark(#f5f5f7, var(--white-14)); color: light-dark(#0a0a0a, var(--primary)); }
|
|
.xsd-lib:not(.lead) em { background: light-dark(#fff, var(--secondary)); }
|
|
.xsd-lang em { background: light-dark(#f5f5f7, var(--secondary)); }
|
|
.xsd-mod:focus-visible { outline-color: var(--ink); }
|
|
html:not(.light) .xsd-con { outline: 1px solid var(--border); outline-offset: -1px; }
|
|
/* dark: the selected dialect / language carries its own fill (same colour as the sliding pill behind it) */
|
|
html:not(.light) .xsd-dia button[aria-selected='true'], html:not(.light) .xsd-pick-l button[aria-selected='true'] { background: var(--acc); }
|