mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P5YBdvdmGVS8p6FhaTwzh4
184 lines
16 KiB
CSS
184 lines
16 KiB
CSS
/* Compare (v2). Prefix xcp-. No colour of its own: ink, its alpha steps and greys (JAMES.md). Scale from components/v2/ProofScale.css. */
|
|
.xcp { background: var(--bg); }
|
|
/* dark mode (docs/DARK-MODE.md): the shared proof type (components/v2/ProofRhythm.css) writes its greys literally; here, in dark, Hanzo's */
|
|
html:not(.light) .xcp .pf-lede { color: var(--soft); }
|
|
html:not(.light) .xcp .pf-kick { color: var(--faint); }
|
|
html:not(.light) .xcp .pf-plus.ghost i { background: var(--secondary); }
|
|
.xcp-cap { margin: 0; }
|
|
|
|
/* ---------- hero: Display headline across the width, the table as a wide object under it ---------- */
|
|
.xcp-hero { padding: calc(60px + clamp(44px, 6vw, 72px)) 0 clamp(72px, 11vw, 188px); }
|
|
.xcp-hero-g { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 44px; }
|
|
.xcp-hero-g .xcp-h1 { grid-column: 1 / 9; }
|
|
.xcp-sub { grid-column: 9 / 14; padding-bottom: 6px; }
|
|
.xcp-sub-l .xcp-cap { margin-bottom: 10px; }
|
|
.xcp-sub-l .pf-lede { max-width: 30ch; }
|
|
.xcp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 27px; }
|
|
.xcp-acts > [data-thumb] { order: -1; }
|
|
|
|
.xcp-obj { overflow: hidden; }
|
|
.xcp-obj-h { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 44px; gap: 16px; align-items: center; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--x-e10); }
|
|
.xcp-pause { order: 4; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color 150ms cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
|
|
@media (hover: hover) { .xcp-pause:hover { background: light-dark(rgba(0, 0, 0, .06), var(--glass-strong)); } }
|
|
.xcp-pause:active { transform: scale(.97); }
|
|
.xcp-pause:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 4px var(--bg); }
|
|
.xcp-obj-img { order: 1; }
|
|
.xcp-obj-q { order: 2; }
|
|
.xcp-obj-n { order: 3; }
|
|
.xcp-tick { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform-origin: 0 50%; animation: xcp-tick 2.6s linear both; }
|
|
.xcp-tick.held { animation-play-state: paused; }
|
|
.xcp-obj-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; display: block; background: #000; }
|
|
.xcp-obj-q { font-size: 17px; font-weight: 560; letter-spacing: -.012em; color: var(--ink); text-decoration: none; }
|
|
.xcp-obj-q { text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 150ms cubic-bezier(0, 0, .2, 1); }
|
|
@media (hover: hover) { .xcp-obj-q:hover { text-decoration-color: currentColor; } }
|
|
.xcp-obj-q:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
|
|
.xcp-obj-n { font-size: 13px; color: var(--soft); letter-spacing: .06em; }
|
|
|
|
.xcp-mx { position: relative; padding: 0 8px 8px; }
|
|
.xcp-t { position: relative; z-index: 1; width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
|
|
.xcp-t-k { width: 30%; }
|
|
.xcp-t thead th { height: 52px; padding: 0 16px; text-align: left; vertical-align: middle; font-size: 15px; font-weight: 560; color: var(--ink); white-space: nowrap; }
|
|
.xcp-t thead th small { margin-left: 10px; font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
|
|
.xcp-t tbody tr { height: 54px; cursor: pointer; }
|
|
.xcp-t tbody th, .xcp-t tbody td { padding: 0 16px; border-top: 1px solid var(--line); vertical-align: middle; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.xcp-t th.me, .xcp-t td.me { box-shadow: inset 1px 0 0 var(--x-e10), inset -1px 0 0 var(--x-e10); }
|
|
.xcp-t-row { text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 3px; display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 0; border: 0; background: none; font: 560 16px/1.3 var(--sans); letter-spacing: -.012em; color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: text-decoration-color 150ms cubic-bezier(0, 0, .2, 1); }
|
|
.xcp-t-row .pf-mono { flex: none; font-size: 13px; font-weight: 500; color: var(--faint); transition: color .3s; }
|
|
@media (hover: hover) { .xcp-t tbody tr:hover .xcp-t-row { text-decoration-color: currentColor; } .xcp-t tbody tr:hover th, .xcp-t tbody tr:hover td { background-color: light-dark(rgba(0, 0, 0, .025), var(--glass)); } }
|
|
.xcp-t-row:active { transform: scale(.97); transition: transform 90ms cubic-bezier(0, 0, .2, 1); }
|
|
.xcp-t tbody tr.on .xcp-t-row .pf-mono { color: var(--ink); }
|
|
.xcp-t-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
|
|
.xcp-v { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; font-feature-settings: 'tnum'; color: var(--ink); transition: transform .3s var(--ease); }
|
|
.xcp-td.me .xcp-v { font-weight: 650; }
|
|
.xcp-td.n .xcp-v { color: light-dark(rgba(0, 0, 0, .4), var(--text-tertiary)); }
|
|
.xcp-x { font-size: 14px; color: var(--soft); }
|
|
.xcp-td.me .xcp-x { color: var(--ink); font-weight: 560; }
|
|
.xcp-t tbody tr.on .xcp-v { transform: translateY(-2px); }
|
|
.xcp-mark { position: absolute; z-index: 0; left: 8px; right: 8px; top: 52px; height: 54px; border-radius: 12px; background: var(--x-knob); pointer-events: none; }
|
|
@keyframes xcp-tick { from { transform: scaleX(0); } to { transform: scaleX(1); } }
|
|
.xcp-cards { display: none; }
|
|
|
|
/* the sheet: every row's sentence */
|
|
.xcp-all { display: grid; gap: 28px; }
|
|
.xcp-all h3 { display: flex; gap: 12px; align-items: baseline; margin: 0 0 8px; font-size: 19px; font-weight: 560; letter-spacing: -.015em; color: var(--ink); }
|
|
.xcp-all h3 .pf-mono { font-size: 13px; color: var(--faint); }
|
|
.xcp-all p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--soft); }
|
|
|
|
/* ---------- Beyond: count the Yes ---------- */
|
|
.xcp-tally { background: light-dark(#f5f5f5, var(--muted)); }
|
|
.xcp-tally-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
|
|
.xcp-tally-l { grid-column: 1 / 6; }
|
|
.xcp-chips { display: grid; gap: 10px; margin-top: 48px; }
|
|
.xcp-chips button { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--x-raised); font: 500 16px/1.3 var(--sans); color: var(--faint); text-align: left; cursor: pointer; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); transition: color 150ms, border-color 150ms, background-color 150ms, transform 150ms cubic-bezier(0, 0, .2, 1); }
|
|
@media (hover: hover) { .xcp-chips button:hover { border-color: light-dark(rgba(0, 0, 0, .3), var(--border-selected)); background: light-dark(#fafafa, var(--secondary)); } }
|
|
.xcp-chips button:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.xcp-chips button[aria-pressed='true'] { color: var(--ink); text-decoration: none; }
|
|
.xcp-chips button i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid light-dark(rgba(0, 0, 0, .25), var(--border-selected)); color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
|
|
.xcp-chips button[aria-pressed='true'] i { background: var(--ink); border-color: var(--ink); color: var(--x-on-ink); }
|
|
.xcp-chips button .pf-mono { font-size: 13px; color: var(--faint); }
|
|
.xcp-chips button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
|
|
.xcp-tally-r { grid-column: 7 / 13; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 24px; align-content: center; }
|
|
.xcp-tally-n { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: 17px; font-weight: 560; color: var(--ink); }
|
|
.xcp-tally-n small { font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
|
|
.xcp-tally-r .xcp-big, .xcp-tally-r .xcp-small { display: block; font-feature-settings: 'tnum'; }
|
|
.xcp .xcp-tally-r .xcp-small { font-size: 44px; color: light-dark(#737373, var(--text-tertiary)); }
|
|
.xcp-tally-r em { font-style: normal; font-size: 17px; font-weight: 400; letter-spacing: 0; color: light-dark(#737373, var(--text-tertiary)); }
|
|
.xcp-tally-r li > i { display: block; height: 4px; margin-top: 22px; border-radius: 4px; background: light-dark(rgba(0, 0, 0, .08), var(--glass-strong)); overflow: hidden; }
|
|
.xcp-tally-r li > i b { display: block; height: 100%; border-radius: 4px; background: light-dark(rgba(0, 0, 0, .35), var(--text-tertiary)); transform-origin: 0 50%; transition: transform .5s var(--ease); }
|
|
.xcp-tally-r li.me > i b { background: var(--ink); }
|
|
|
|
/* ---------- the index: the card that opens ---------- */
|
|
.xcp-index .pf-head { margin-bottom: 56px; }
|
|
.xcp-list { list-style: none; margin: 0; padding: 0; }
|
|
.xcp-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; color: var(--ink); text-decoration: none; transition: transform .2s; }
|
|
.xcp-card:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.xcp-card-img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #000; }
|
|
.xcp-card-img img { position: absolute; left: 0; right: 0; top: -24px; width: 100%; height: calc(100% + 48px); object-fit: cover; object-position: 50% 42%; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
|
|
@media (hover: hover) { .xcp-card:hover .xcp-card-img img { transform: translate3d(0, -20px, 0); } .xcp-card:hover .xcp-card-q { text-decoration-color: currentColor; } .xcp-card:hover .xcp-card-go { background: light-dark(#262626, var(--primary-hover)); } }
|
|
.xcp-card-b { display: flex; flex-direction: column; gap: 22px; padding: 8px 0 8px 24px; }
|
|
.xcp-card-q { max-width: 22ch; font-size: 26px; text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color 150ms cubic-bezier(0, 0, .2, 1); }
|
|
.xcp-card-v { max-width: 28ch; }
|
|
.xcp-card-v b { font-weight: 600; color: var(--ink); }
|
|
.xcp-card-v span { color: var(--ink); }
|
|
.xcp-card-f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
|
|
.xcp-card-n { font-size: 14px; color: var(--faint); }
|
|
.xcp-card-go { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--x-on-ink); transition: background-color 150ms cubic-bezier(0, 0, .2, 1); }
|
|
.xcp-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; border-radius: 22px; }
|
|
|
|
/* ---------- the dark room ---------- */
|
|
.xcp-diff { padding: clamp(116px, 13vw, 188px) 0 clamp(72px, 11vw, 188px); }
|
|
.xcp-diff-g { align-items: end; width: min(100% - 220px, 1152px); }
|
|
.xcp-diff-l { grid-column: 1 / 8; }
|
|
.xcp-diff-l .pf-head { color: #fafafa; }
|
|
.xcp-diff-l .pf-lede { margin-top: 17px; max-width: 30ch; color: #a3a3a3; }
|
|
.xcp-ask-d { margin-top: 44px; background: #fafafa; border-color: #fafafa; color: #0a0a0a; }
|
|
.xcp .xcp-ask-d:hover { background: #fff; border-color: #fff; }
|
|
.xcp-ask-d:focus-visible { outline-color: #fff; }
|
|
.xcp-diff-c { grid-column: 9 / 13; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 220px; padding: 27px; border-radius: 24px; background: #171717; color: #fafafa; text-decoration: none; transition: background-color 150ms cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
|
|
@media (hover: hover) { .xcp-diff-c:hover { background: #262626; } .xcp-diff-c:hover i { background: #fafafa; color: #0a0a0a; } }
|
|
.xcp-diff-c:active { transform: scale(.97); }
|
|
.xcp-diff-a { font-size: 26px; font-weight: 497; letter-spacing: -.018em; }
|
|
.xcp-diff-c i { align-self: flex-end; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); color: #fafafa; transition: background-color 150ms cubic-bezier(0, 0, .2, 1), color 150ms; }
|
|
.xcp-diff-c:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
|
|
|
|
@media (max-width: 900px) {
|
|
.xcp-hero { padding: calc(60px + 27px) 0 72px; }
|
|
.xcp-hero-g { display: block; margin-bottom: 32px; }
|
|
.xcp-sub { margin-top: 17px; padding: 0; }
|
|
.xcp-acts { margin-top: 20px; }
|
|
.xcp-obj { border-radius: 22px; }
|
|
.xcp-obj-h { grid-template-columns: 40px minmax(0, 1fr) 44px; padding: 12px 8px 12px 16px; gap: 12px; }
|
|
.xcp-obj-img { width: 40px; height: 40px; border-radius: 10px; }
|
|
.xcp-obj-q { font-size: 16px; }
|
|
.xcp-obj-n { display: none; }
|
|
.xcp-mx { display: none; }
|
|
.xcp-cards { display: block; list-style: none; margin: 0; padding: 6px; }
|
|
.xcp-cards li { padding: 14px 12px 16px; border-radius: 16px; transition: background-color .4s var(--ease); }
|
|
.xcp-cards li + li { margin-top: 2px; }
|
|
.xcp-cards li.on { background: light-dark(#f5f5f5, var(--muted)); }
|
|
.xcp-card-h { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); cursor: pointer; }
|
|
.xcp-card-h .pf-mono { font-size: 14px; color: var(--faint); }
|
|
.xcp-card-h b { flex: 1; font-size: 17px; font-weight: 600; letter-spacing: -.012em; }
|
|
.xcp-card-h i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: light-dark(#ededed, var(--secondary)); font: 400 18px/1 var(--sans); font-style: normal; transition: transform .3s var(--ease); }
|
|
.xcp-card-h[aria-expanded='true'] i { transform: rotate(45deg); }
|
|
.xcp-card-h:active i { transform: scale(.92); }
|
|
.xcp-cards dl { margin: 8px 0 0; display: grid; gap: 2px; }
|
|
.xcp-cl { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid var(--line); }
|
|
.xcp-cl dt { flex: none; font-size: 15px; color: var(--soft); }
|
|
.xcp-cl.me dt { color: var(--ink); font-weight: 600; }
|
|
.xcp-cl dd { margin: 0; min-width: 0; text-align: right; }
|
|
.xcp-cl .xcp-v { font-size: 16px; }
|
|
.xcp-cl.me .xcp-v { font-weight: 650; }
|
|
.xcp-cl.n .xcp-v { color: light-dark(rgba(0, 0, 0, .4), var(--text-tertiary)); }
|
|
.xcp-cl .xcp-x { display: block; font-size: 14px; }
|
|
.xcp-cl.me .xcp-x { color: var(--ink); font-weight: 560; }
|
|
.xcp-card-s { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--soft); }
|
|
|
|
.xcp-tally-l, .xcp-tally-r { grid-column: 1 / -1; }
|
|
.xcp-chips { margin-top: 32px; }
|
|
.xcp-tally-r { margin-top: 56px; gap: 40px 16px; }
|
|
.xcp .xcp-tally-r .xcp-small { font-size: 32px; }
|
|
.xcp-chips button { font-size: 15px; }
|
|
|
|
.xcp-index .pf-head { margin-bottom: 32px; }
|
|
.xcp-card { grid-template-columns: minmax(0, 1fr); }
|
|
.xcp-card-b { padding: 8px 0 0; gap: 16px; }
|
|
.xcp-card-go { width: 48px; height: 48px; }
|
|
.xcp-card-q { font-size: 21px; }
|
|
|
|
.xcp-diff { padding: 120px 0 96px; }
|
|
.xcp-diff-g { width: min(100% - 32px, 1392px); }
|
|
.xcp-diff-l, .xcp-diff-c { grid-column: 1 / -1; }
|
|
.xcp-ask-d { margin-top: 32px; }
|
|
.xcp-diff-c { margin-top: 48px; min-height: 160px; padding: 24px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.xcp-tick { animation: none; transform: scaleX(0); }
|
|
.xcp-card-img img, .xcp-card-go, .xcp-diff-c, .xcp-diff-c i, .xcp-tally-r li > i b, .xcp-v, .xcp-t-row, .xcp-chips button, .xcp-obj-q, .xcp-card-q { transition: none; }
|
|
.xcp-card:hover .xcp-card-img img { transform: none; }
|
|
}
|
|
|
|
/* the Yes tally swaps whole counts in place (never counts through numbers that are not the table's) */
|
|
.xcp-fig { display: inline-grid; overflow: hidden; vertical-align: bottom; }
|
|
.xcp-fig > span { grid-area: 1 / 1; }
|