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_01P5YBdwj33XByFVTvu9bfci
561 lines
50 KiB
CSS
561 lines
50 KiB
CSS
/* Crawl: see Crawl.jsx. Built on components/v2/Keynote*. Deck values only (docs/build-notes/MASTER.md section 3): no accent,
|
|
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. */
|
|
|
|
/* ---------- the wireframe of a page (hero and scene) ---------- */
|
|
.cr-wf { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
|
|
.cr-wf-nav { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 12px; border-radius: 8px; background: light-dark(#f2f2f2, var(--muted)); }
|
|
.cr-wf-nav b { width: 26px; height: 10px; border-radius: 999px; background: light-dark(#d4d4d4, var(--secondary-hover)); margin-right: auto; }
|
|
.cr-wf-nav i { width: 34px; height: 6px; border-radius: 999px; background: light-dark(#e4e4e4, var(--secondary)); }
|
|
.cr-wf-g { flex: 1; display: grid; grid-template-columns: 22% minmax(0, 1fr) 18%; gap: 12px; min-height: 0; }
|
|
.cr-wf-side { display: flex; flex-direction: column; gap: 11px; padding: 14px 10px; border-radius: 8px; background: light-dark(#f7f7f7, var(--muted)); }
|
|
.cr-wf-side i { height: 6px; border-radius: 999px; background: light-dark(#e4e4e4, var(--secondary)); }
|
|
.cr-wf-art { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 12px 14px 16px; }
|
|
.cr-wf-art > i, .cr-wf-art > b, .cr-wf-art > .cr-wf-code { align-self: stretch; }
|
|
.cr-wf-h { width: 58%; height: 14px; border-radius: 999px; background: var(--ink); margin-bottom: 6px; align-self: flex-start !important; }
|
|
.cr-wf-art > i { height: 7px; border-radius: 999px; background: light-dark(#d4d4d4, var(--secondary-hover)); }
|
|
.cr-wf-code { height: 40px; border-radius: 8px; background: #262626; margin: 4px 0; }
|
|
/* the readable part: outlined in ink, and named in the flow (never a tag floating over the page) */
|
|
.cr-wf-ring { position: absolute; inset: 0; border: 1.5px solid var(--ink); border-radius: 12px; clip-path: inset(0 100% 0 0 round 12px); pointer-events: none; }
|
|
.cr-wf-tag { padding: 4px 8px; border-radius: 6px; background: light-dark(#0a0a0a, var(--secondary)); color: #fff; font: 606 12px/1 var(--mono); letter-spacing: .04em; opacity: 0; }
|
|
.cr-wf-ad { display: flex; flex-direction: column; gap: 10px; }
|
|
.cr-wf-ad span { flex: 1; border-radius: 8px; background: repeating-linear-gradient(135deg, light-dark(#f2f2f2, var(--muted)) 0 8px, light-dark(#e9e9e9, var(--secondary)) 8px 16px); }
|
|
.cr-wf-foot { display: flex; align-items: center; gap: 16px; height: 24px; padding: 0 12px; border-radius: 8px; background: light-dark(#f2f2f2, var(--muted)); }
|
|
.cr-wf-foot i { width: 48px; height: 6px; border-radius: 999px; background: light-dark(#e4e4e4, var(--secondary)); }
|
|
.cr-wf.big { gap: 16px; padding: 20px; }
|
|
.cr-wf.big .cr-wf-nav { height: 36px; }
|
|
.cr-wf.big .cr-wf-art { gap: 12px; padding: 14px 20px 20px; }
|
|
.cr-wf.big .cr-wf-h { height: 18px; }
|
|
.cr-wf.big .cr-wf-art > i { height: 9px; }
|
|
.cr-wf.big .cr-wf-code { height: 56px; }
|
|
|
|
/* ---------- the hero: the reader (an outlined object; its CSS plays from first paint, before hydration) ---------- */
|
|
.cr-rd { width: 100%; display: flex; flex-direction: column; }
|
|
.cr-rd-bar { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 14px clamp(20px, 6.5vw, 104px); border-bottom: 1px solid var(--hair); background: var(--x-sunk); }
|
|
.cr-dots { display: flex; gap: 8px; }
|
|
.cr-dots i { width: 12px; height: 12px; border-radius: 50%; background: light-dark(#e5e5e5, var(--secondary)); }
|
|
.cr-rd-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; margin: 0 0 0 8px; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--x-raised); border: 1px solid var(--hair); font: 400 14px/1 var(--mono); white-space: nowrap; overflow: hidden; }
|
|
.cr-rd-url b { color: var(--ink); font-weight: 606; }
|
|
.cr-rd-url span { color: light-dark(#737373, var(--text-tertiary)); padding-right: 8px; border-right: 1px solid var(--hair); }
|
|
.cr-rd-url em { font-style: normal; color: light-dark(#525252, var(--muted-foreground)); overflow: hidden; text-overflow: ellipsis; }
|
|
.cr-rd-url u { text-decoration: none; color: var(--ink); display: inline-block; animation: cr-url .5s steps(10, end) .1s both; }
|
|
.cr-rd-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: light-dark(#ededed, var(--secondary)); }
|
|
.cr-rd-tabs button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: 400 13px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); cursor: pointer; transition: background-color .3s var(--e-move), color .15s var(--e-out), transform .15s var(--e-out); }
|
|
.cr-rd-tabs button[aria-pressed='true'] { background: var(--x-raised); color: var(--ink); }
|
|
.cr-rd-tabs button:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.cr-rd-tabs button:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
|
|
@media (hover: hover) { .cr-rd-tabs button:hover { color: var(--ink); } }
|
|
.cr-rd-b { display: grid; grid-template-columns: minmax(0, 1.05fr) 80px minmax(0, 1fr); padding: clamp(28px, 4.4vw, 64px) clamp(24px, 6.5vw, 104px); min-height: clamp(400px, 40vw, 560px); }
|
|
.cr-rd-page { border-radius: 16px; border: 1px solid var(--hair); background: var(--x-raised); overflow: hidden; }
|
|
.cr-rd-pipe { position: relative; align-self: center; height: 1px; margin: 0 14px; background: var(--hair); }
|
|
.cr-rd-pipe i { position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); animation: cr-pipe .9s var(--e-move) .5s both; }
|
|
.cr-rd-md { display: flex; flex-direction: column; gap: 17px; padding: clamp(22px, 2.4vw, 32px); border-radius: 16px; background: #0a0a0a; color: #fafafa; min-width: 0; }
|
|
.cr-rd-k { margin: 0; display: flex; justify-content: space-between; gap: 12px; font: 606 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #a3a3a3; }
|
|
.cr-rd-k span { text-transform: none; letter-spacing: 0; font-weight: 400; color: rgba(255, 255, 255, .78); }
|
|
.cr-rd-md pre { flex: 1; margin: 0; font: 400 16px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word; }
|
|
.cr-ml { display: block; }
|
|
.cr-ml.h { color: #fafafa; font-weight: 606; }
|
|
.cr-ml.l { color: #a3a3a3; }
|
|
.cr-ml.q, .cr-ml.c { color: rgba(255, 255, 255, .55); }
|
|
.cr-ml.p { color: rgba(255, 255, 255, .78); }
|
|
.cr-rd .cr-ml { animation: cr-in .4s var(--e-in) both; }
|
|
.cr-rd-meta { display: grid; gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); animation: cr-in .4s var(--e-in) both; }
|
|
.cr-rd-meta div { display: flex; gap: 12px; font: 400 13px/1.3 var(--mono); }
|
|
.cr-rd-meta dt { min-width: 84px; color: rgba(255, 255, 255, .55); }
|
|
.cr-rd-meta dd { margin: 0; color: #fafafa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.cr-rd .cr-chrome { animation: cr-dim .5s var(--e-move) .7s both; }
|
|
.cr-rd .cr-wf-ring { animation: cr-ring .5s var(--e-move) .85s both; }
|
|
.cr-rd .cr-wf-tag { animation: cr-tag .3s var(--e-in) 1.2s both; }
|
|
@keyframes cr-url { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
|
|
@keyframes cr-pipe { from { transform: translateX(0); opacity: 0; } 25% { opacity: 1; } to { transform: translateX(42px); opacity: 1; } }
|
|
@keyframes cr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
|
|
@keyframes cr-tag { from { opacity: 0; } to { opacity: 1; } }
|
|
@keyframes cr-dim { to { opacity: .14; } }
|
|
@keyframes cr-ring { from { clip-path: inset(0 100% 0 0 round 12px); } to { clip-path: inset(0 0 0 0 round 12px); } }
|
|
|
|
/* the hero's text-link ask (the kit's secondary) keeps a 44px target */
|
|
.cr .kns-acts .x-arrow { min-height: 44px; }
|
|
|
|
/* ---------- the signature scene: one scroll value (--p, 0 to 6) drives every part ---------- */
|
|
.cr-sc-head { padding: clamp(72px, 11vw, 188px) 0 clamp(27px, 4vw, 44px); align-items: end; row-gap: 17px; }
|
|
.cr-sc-h { grid-column: 1 / span 6; }
|
|
.cr-sc-lede { grid-column: 8 / span 5; }
|
|
.cr-run { position: relative; }
|
|
.cr-pin { position: relative; }
|
|
.cr-sc-g { align-items: center; row-gap: 27px; }
|
|
.cr-sc-l { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 27px; padding-right: 24px; }
|
|
.cr-ctl { display: none; }
|
|
.cr-toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
|
|
.cr-toc li.gap { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair); }
|
|
.cr-toc h3 { margin: 0; font: inherit; }
|
|
.cr-toc button { display: flex; align-items: baseline; gap: 14px; width: 100%; min-height: 44px; padding: 6px 0; border: 0; background: none; text-align: left; cursor: pointer; font: 497 17px/1.3 var(--sans); letter-spacing: -.01em; color: light-dark(#737373, var(--text-tertiary)); transition: color .3s var(--e-out), transform .15s var(--e-out); }
|
|
.cr-toc button > .kn-fig { min-width: 22px; font: 400 12px/1 var(--mono); letter-spacing: .04em; color: light-dark(#737373, var(--text-tertiary)); }
|
|
.cr-toc button[aria-current] { color: var(--ink); }
|
|
.cr-toc button[aria-current] > .kn-fig { color: var(--ink); }
|
|
.cr-toc button:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.cr-toc button:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 4px; border-radius: 8px; }
|
|
@media (hover: hover) { .cr-toc button:hover { color: var(--ink); } }
|
|
.cr-sc-body { display: grid; gap: 16px; padding-left: 36px; }
|
|
.cr-sc-body p { max-width: 44ch; }
|
|
|
|
.cr-map { --p: 0; grid-column: 6 / span 7; position: relative; height: min(76svh, 760px); min-height: 520px; background: light-dark(#f5f5f5, var(--muted)); border-color: transparent; }
|
|
.cr-map-in { position: absolute; inset: 0; }
|
|
.cr-map-bar { position: absolute; top: 22px; left: 28px; right: 28px; display: flex; gap: 6px; }
|
|
.cr-map-bar i { position: relative; flex: 1; height: 2px; border-radius: 999px; background: light-dark(rgba(0, 0, 0, .1), var(--border)); overflow: hidden; }
|
|
.cr-map-bar i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(clamp(0, calc(var(--p) - var(--k)), 1)); }
|
|
.cr-L { position: absolute; inset: 0; display: grid; place-items: center; padding: 56px clamp(24px, 3.4vw, 48px) clamp(24px, 3.4vw, 48px); }
|
|
|
|
/* 01: the page loses its chrome (--a) */
|
|
.cr-L0 { --a: clamp(0, calc(var(--p) * 1.45 - .12), 1); opacity: clamp(0, calc((1 - var(--p)) * 30), 1); }
|
|
.cr-pg { width: 100%; height: 100%; max-width: 720px; display: flex; flex-direction: column; border-radius: 16px; background: var(--x-raised); overflow: hidden; }
|
|
.cr-pg-bar { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--hair); }
|
|
.cr-pg-bar i { width: 10px; height: 10px; border-radius: 50%; background: light-dark(#e5e5e5, var(--secondary)); }
|
|
.cr-pg-bar span { margin-left: 12px; font: 400 13px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); }
|
|
.cr-L0 .cr-chrome { opacity: calc(1 - var(--a) * .88); }
|
|
.cr-L0 .cr-wf-nav { transform: translateY(calc(var(--a) * -12px)); }
|
|
.cr-L0 .cr-wf-side { transform: translateX(calc(var(--a) * -20px)); }
|
|
.cr-L0 .cr-wf-ad { transform: translateX(calc(var(--a) * 20px)); }
|
|
.cr-L0 .cr-wf-foot { transform: translateY(calc(var(--a) * 12px)); }
|
|
.cr-L0 .cr-wf-ring { clip-path: inset(0 calc((1 - clamp(0, calc(var(--a) * 1.7 - .55), 1)) * 100%) 0 0 round 12px); }
|
|
.cr-L0 .cr-wf-tag { opacity: clamp(0, calc((var(--a) - .82) * 6), 1); }
|
|
|
|
/* 02: most pages are a fetch and a parse; one needs a browser (--b) */
|
|
.cr-L1 { --b: clamp(0, calc((var(--p) - 1) * 1.3), 1); opacity: min(clamp(0, calc((var(--p) - .97) * 30), 1), clamp(0, calc((2 - var(--p)) * 30), 1)); }
|
|
.cr-lanes { width: 100%; height: 100%; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
|
|
.cr-lane { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px; border: 1px solid light-dark(rgba(0, 0, 0, .1), var(--border)); }
|
|
.cr-lane.br { background: light-dark(#0a0a0a, var(--secondary)); border-color: transparent; color: #fafafa; }
|
|
.cr-lane-k { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 400 14px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); }
|
|
.cr-lane-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
|
|
.cr-lane.br .cr-lane-k { color: rgba(255, 255, 255, .78); }
|
|
.cr-lane ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
|
|
.cr-lane li { --k: clamp(0, calc((var(--b) * 7 - var(--i)) * 1.6), 1); display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--x-raised); font: 400 14px/1 var(--mono); color: var(--ink); opacity: var(--k); transform: translate3d(0, calc((1 - var(--k)) * -22px), 0); }
|
|
.cr-lane.br li { background: rgba(255, 255, 255, .1); color: #fafafa; }
|
|
.cr-lane li em { font-style: normal; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .3); font-size: 13px; }
|
|
|
|
/* 03: Markdown, and the metadata (--c) */
|
|
.cr-L2 { --c: clamp(0, calc((var(--p) - 2) * 1.25), 1); opacity: min(clamp(0, calc((var(--p) - 1.97) * 30), 1), clamp(0, calc((3 - var(--p)) * 30), 1)); transform: scale(calc(1 - clamp(0, calc((var(--p) - 2.88) * 3.5), .42))); }
|
|
.cr-doc { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 17px; padding: clamp(24px, 2.6vw, 32px); border-radius: 16px; background: #0a0a0a; color: #fafafa; }
|
|
.cr-doc-k { margin: 0; display: flex; justify-content: space-between; gap: 12px; font: 400 13px/1 var(--mono); color: #a3a3a3; }
|
|
.cr-doc-k span { color: rgba(255, 255, 255, .78); }
|
|
.cr-doc pre { margin: 0; font: 400 16px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word; }
|
|
.cr-doc .cr-ml { --k: clamp(0, calc((var(--c) * 11 - var(--i)) * 1.4), 1); opacity: var(--k); transform: translate3d(calc((1 - var(--k)) * -10px), 0, 0); }
|
|
.cr-doc-meta { display: grid; gap: 10px; margin: 0; padding-top: 17px; border-top: 1px solid rgba(255, 255, 255, .1); }
|
|
.cr-doc-meta div { --k: clamp(0, calc((var(--c) * 11 - 8 - var(--i)) * 1.4), 1); display: flex; gap: 14px; font: 400 14px/1.3 var(--mono); opacity: var(--k); transform: translate3d(0, calc((1 - var(--k)) * 8px), 0); }
|
|
.cr-doc-meta dt { min-width: 104px; color: rgba(255, 255, 255, .55); }
|
|
.cr-doc-meta dd { margin: 0; color: #fafafa; min-width: 0; overflow-wrap: anywhere; }
|
|
|
|
/* 04-06: the camera pulls back and the crawl spreads (--d), a redirect is cut (--e), pages leave (--f) */
|
|
.cr-L3 { --d: clamp(0, calc(var(--p) - 3), 1); --e: clamp(0, calc(var(--p) - 4), 1); --f: clamp(0, calc(var(--p) - 5), 1);
|
|
inset: 52px 4% 4%; padding: 0; container-type: size; opacity: clamp(0, calc((var(--p) - 2.97) * 30), 1);
|
|
transform: scale(calc(1 + .32 * clamp(0, calc((3.32 - var(--p)) / .36), 1))); transform-origin: 33.5% 61%; }
|
|
/* before the spread the zoomed site is not laid out at all (it would only sit clipped past the object's edge) */
|
|
.cr-map-in[data-beat='0'] .cr-L3, .cr-map-in[data-beat='1'] .cr-L3, .cr-map-in[data-beat='2'] .cr-L3 { display: none; }
|
|
.cr-site { position: relative; width: min(100cqw, 100cqh * 4 / 3); aspect-ratio: 4 / 3; transform-origin: 50% 0; transform: translate3d(0, calc(var(--f) * -3%), 0) scale(calc(1 - var(--f) * .2)); }
|
|
.cr-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
|
|
.cr-edges line, .cr-edges path { fill: none; stroke: rgba(10, 10, 10, .55); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - clamp(0, calc((var(--d) - var(--t)) * 9), 1)); }
|
|
.cr-edges line.bad { stroke: light-dark(#737373, var(--text-tertiary)); }
|
|
.cr-edges path.hop { stroke: var(--ink); stroke-width: 1.5; stroke-dashoffset: calc(1 - clamp(0, calc(var(--e) * 1.7), 1)); }
|
|
/* a node: outlined on the grey room; the one being reached draws its outline in ink */
|
|
.cr-n { --k: clamp(0, calc((var(--d) - var(--t) - .06) * 12), 1); --g: min(var(--k), clamp(0, calc((var(--t) + .26 - var(--d)) * 8), 1));
|
|
position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px 7px 9px; border-radius: 999px; background: light-dark(#f5f5f5, var(--muted));
|
|
border: 1px solid color-mix(in srgb, var(--ink) calc(var(--g) * 100%), light-dark(rgba(0, 0, 0, .14), var(--border-control))); font: 400 13px/1 var(--mono); color: var(--ink); white-space: nowrap;
|
|
opacity: var(--k); transform: translate(-50%, -50%) scale(calc(.7 + var(--k) * .3)); z-index: 1; }
|
|
.cr-n i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); background: color-mix(in srgb, var(--ink) calc((1 - var(--g)) * 100%), light-dark(#f5f5f5, var(--muted))); }
|
|
.cr-n.root { background: light-dark(#0a0a0a, var(--secondary)); color: #fafafa; border-color: transparent; }
|
|
.cr-n.root i { border-color: var(--x-sunk); background: var(--x-sunk); }
|
|
/* refused: a hollow node on a dashed outline, and the word */
|
|
.cr-n.bad { --g: 0; border: 1px dashed #525252; color: light-dark(#525252, var(--muted-foreground)); }
|
|
.cr-n.bad i { background: transparent; border-color: #525252; }
|
|
.cr-n.bad b { padding: 3px 7px; border-radius: 6px; border: 1px solid #525252; color: var(--ink); font-size: 12px; font-weight: 606; }
|
|
.cr-guard { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 8px; background: light-dark(#0a0a0a, var(--secondary)); color: #fafafa; font: 400 13px/1 var(--mono); white-space: nowrap; z-index: 2;
|
|
opacity: clamp(0, calc((var(--e) - .55) * 5), 1); transform: translate(-86%, 10%); }
|
|
.cr-guard b { padding: 3px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .3); font-weight: 606; }
|
|
.cr-ports { position: absolute; left: 6%; right: 6%; bottom: 4%; display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; z-index: 3;
|
|
opacity: clamp(0, calc((var(--p) - 5.02) * 6), 1); transform: translate3d(0, calc((1 - clamp(0, calc((var(--p) - 5) * 4), 1)) * 24px), 0); }
|
|
.cr-ports p { margin: 0; display: flex; flex-direction: column; gap: 6px; padding: 17px 20px; border-radius: 16px; background: light-dark(#0a0a0a, var(--secondary)); color: #fafafa; }
|
|
.cr-ports p:last-child { background: light-dark(#f5f5f5, var(--muted)); color: var(--ink); border: 1px solid var(--ink); }
|
|
.cr-ports b { font: 497 21px/1 var(--sans); letter-spacing: -.015em; }
|
|
.cr-ports span { font: 400 13px/1.3 var(--mono); color: #a3a3a3; }
|
|
.cr-ports p:last-child span { color: light-dark(#525252, var(--muted-foreground)); }
|
|
.cr-flow { position: relative; height: 1px; margin: 0 8px; background: light-dark(rgba(0, 0, 0, .14), var(--border-control)); }
|
|
.cr-flow i { position: absolute; top: -4px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); opacity: 0; }
|
|
/* the pages leave three times, then the scene rests (no loop past 5 s) */
|
|
.cr-map-in[data-beat='5'] .cr-flow i { animation: cr-out 1.5s var(--e-move) 3 both; }
|
|
.cr-map-in[data-beat='5'] .cr-flow i:nth-child(2) { animation-name: cr-out2; animation-delay: .4s; }
|
|
.cr-map-in[data-beat='5'] .cr-flow i:nth-child(3) { animation-delay: .8s; }
|
|
@keyframes cr-out { 0% { opacity: 0; transform: translateX(-5px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(-34px); } }
|
|
@keyframes cr-out2 { 0% { opacity: 0; transform: translateX(-5px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(24px); } }
|
|
[data-off] .cr-flow i, .cr-sc[data-paused] .cr-flow i { animation-play-state: paused; }
|
|
|
|
/* wide screens with JS: the scene pins and one chapter speaks at a time (JS off, every paragraph stands in order) */
|
|
@media (min-width: 900px) {
|
|
.js .cr-run { height: 600svh; }
|
|
.js .cr-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
|
|
.js .cr-sc-g { padding-top: 32px; }
|
|
.js .cr-sc-body { gap: 0; }
|
|
.js .cr-sc-body p { grid-area: 1 / 1; opacity: 0; transform: translate3d(0, 16px, 0); visibility: hidden; transition: opacity .15s var(--e-out), transform .3s var(--e-move), visibility 0s linear .3s; }
|
|
.js .cr-sc-body p[data-on] { opacity: 1; transform: none; visibility: visible; transition: opacity .4s var(--e-in) .1s, transform .5s var(--e-in) .1s, visibility 0s; }
|
|
}
|
|
|
|
/* ---------- spec ---------- */
|
|
.cr .kfs-row dd > .cr-st, .cr .cr-step .cr-st { min-width: 160px; margin: 0; color: var(--ink); font-size: 21px; }
|
|
/* each step's object sits beside its words and plays once when the row is reached (JS off or reduced motion: the end state) */
|
|
.cr-step { display: grid; grid-template-columns: minmax(0, 1fr) 216px; gap: 27px; align-items: center; }
|
|
.cr-step > div:first-child { display: flex; flex-direction: column; gap: 10px; }
|
|
.cr-step > div:first-child p { margin: 0; }
|
|
.cr-sa { position: relative; height: 132px; border-radius: 16px; background: light-dark(#f5f5f5, var(--muted)); overflow: hidden; }
|
|
.cr-sa-pg { position: absolute; display: flex; flex-direction: column; gap: 6px; padding: 10px 9px; border-radius: 8px; background: var(--x-raised); box-shadow: inset 0 0 0 1px light-dark(rgba(0, 0, 0, .14), var(--border-control)); }
|
|
.cr-sa-pg > i { height: 4px; border-radius: 2px; background: light-dark(#d4d4d4, var(--secondary-hover)); }
|
|
.cr-sa-pg > i:first-child { height: 6px; background: #262626; }
|
|
/* fetch: a URL leaves, passes the guard on the dialer, and the page arrives */
|
|
.cr-sa-u { position: absolute; left: 14px; top: 54px; width: 40px; height: 24px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--x-raised); display: grid; place-items: center; }
|
|
.cr-sa-u i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
|
|
.cr-sa-ln { position: absolute; left: 58px; width: 82px; top: 65px; height: 1.5px; background: light-dark(rgba(0, 0, 0, .2), var(--border-strong)); }
|
|
.cr-sa-ln b { position: absolute; left: -2px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); transform: translateX(76px); transition: transform 1s cubic-bezier(.4, 0, .2, 1) .2s; }
|
|
.js .cr-sa-f:not([data-on]) .cr-sa-ln b { transform: none; }
|
|
.cr-sa-sh { position: absolute; left: 86px; top: 52px; padding: 2px; border-radius: 8px; background: light-dark(#f5f5f5, var(--muted)); }
|
|
.cr-sa-sh path { fill: var(--x-raised); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
|
|
.cr-sa-sh path.t { fill: none; stroke-linecap: round; stroke-dasharray: 12; stroke-dashoffset: 0; transition: stroke-dashoffset .3s cubic-bezier(0, 0, .2, 1) .75s; }
|
|
.js .cr-sa-f:not([data-on]) .cr-sa-sh path.t { stroke-dashoffset: 12; }
|
|
.cr-sa-f .cr-sa-pg { right: 14px; top: 26px; width: 56px; height: 80px; transition: opacity .4s cubic-bezier(.16, 1, .3, 1) 1.1s, transform .4s cubic-bezier(.16, 1, .3, 1) 1.1s; }
|
|
.js .cr-sa-f:not([data-on]) .cr-sa-pg { opacity: 0; transform: translate3d(-12px, 0, 0); }
|
|
/* extract: the chrome falls away, the readable subtree keeps an ink outline */
|
|
.cr-sa-pg.big { left: 24px; right: 24px; top: 16px; bottom: 16px; padding: 0; display: block; }
|
|
.cr-sa-x .c { position: absolute; border-radius: 3px; background: light-dark(#d4d4d4, var(--secondary-hover)); transition: opacity .5s cubic-bezier(0, 0, .2, 1) .3s; }
|
|
.cr-sa-x .nav { left: 6px; right: 6px; top: 6px; height: 10px; }
|
|
.cr-sa-x .side { left: 6px; top: 22px; bottom: 6px; width: 22%; }
|
|
.cr-sa-x .ad { right: 6px; top: 22px; width: 18%; height: 44%; }
|
|
.cr-sa-x .art { position: absolute; left: 28%; right: 24%; top: 22px; bottom: 6px; display: flex; flex-direction: column; gap: 6px; padding: 7px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--ink); transition: box-shadow .4s cubic-bezier(0, 0, .2, 1) .6s; }
|
|
.cr-sa-x .art i { height: 4px; border-radius: 2px; background: #a3a3a3; }
|
|
.cr-sa-x .art i:first-child { height: 6px; background: #262626; }
|
|
.cr-sa-x[data-on] .c { opacity: .18; }
|
|
.js .cr-sa-x:not([data-on]) .art { box-shadow: inset 0 0 0 1.5px transparent; }
|
|
/* render: the Markdown writes itself line by line */
|
|
.cr-sa-md { position: absolute; inset: 16px 20px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 12px 14px; border-radius: 10px; background: #171717; }
|
|
.cr-sa-md span { display: flex; align-items: center; gap: 8px; height: 8px; clip-path: inset(0 0 0 0); transition: clip-path .4s cubic-bezier(.16, 1, .3, 1) calc(.2s + var(--i) * .12s); }
|
|
.js .cr-sa-r:not([data-on]) .cr-sa-md span { clip-path: inset(0 100% 0 0); }
|
|
.cr-sa-md em { flex: none; width: 22px; font: 400 12px/1 var(--mono); font-style: normal; color: #a3a3a3; }
|
|
.cr-sa-md i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
|
|
.cr-sa-md span:first-child i, .cr-sa-md span:nth-child(3) i { height: 6px; background: var(--x-sunk); }
|
|
.cr-ways { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
|
|
.cr-ways span { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hair); font: 400 14px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); }
|
|
.cr-ways b { color: var(--ink); font-weight: 606; }
|
|
.cr-kinds { display: flex !important; flex-wrap: wrap; gap: 10px !important; }
|
|
.cr-kinds li { padding: 10px 17px; border-radius: 999px; border: 1px solid var(--hair); color: var(--ink) !important; font-size: 16px !important; line-height: 1.2 !important; }
|
|
.cr-figs { display: flex; flex-wrap: wrap; gap: 27px 56px; }
|
|
|
|
/* ---------- Beyond: which plan covers it ---------- */
|
|
.cr-price-top { align-items: end; row-gap: 44px; margin-bottom: clamp(44px, 6vw, 72px); }
|
|
.cr-price-l { grid-column: 1 / span 6; align-self: start; display: flex; flex-direction: column; gap: 17px; }
|
|
.cr-fit { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 10px; padding: 27px 27px 17px; border-radius: 24px; background: light-dark(#f5f5f5, var(--muted)); }
|
|
.cr-fit > .kn-kick { color: light-dark(#525252, var(--muted-foreground)); }
|
|
.cr-fit-out { display: flex; flex-direction: column; gap: 6px; }
|
|
.cr-fit-fig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
|
|
.cr-fit-m { display: block; overflow: hidden; padding: .04em 0 .1em; margin: -.04em 0 -.1em; }
|
|
.cr-fit-m b { display: block; font-size: 64px; font-weight: 220; line-height: 1; letter-spacing: -.04em; color: var(--ink); animation: cr-mask .4s var(--e-in) both; }
|
|
@keyframes cr-mask { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
|
|
.cr-fit-u { font: 400 14px/1.3 var(--mono); color: light-dark(#525252, var(--muted-foreground)); }
|
|
.cr-fit-a { margin: 0; font-size: 16px; line-height: 1.45; color: light-dark(#525252, var(--muted-foreground)); }
|
|
.cr-fit-a b { color: var(--ink); font-weight: 606; }
|
|
/* the stop slider: three stops, a hairline that fills to the chosen one, an ink thumb that glides (transform only) */
|
|
.cr-fit-r { --at: 0; position: relative; height: 44px; margin: 6px 14px 0; cursor: pointer; touch-action: pan-y; container-type: inline-size; }
|
|
.cr-fit-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 999px; background: light-dark(#d4d4d4, var(--secondary-hover)); overflow: hidden; }
|
|
.cr-fit-line i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(calc(var(--at) / 2)); transition: transform .4s var(--e-move); }
|
|
.cr-fit-stop { --s: 0; position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1.5px solid light-dark(#737373, var(--text-tertiary)); background: light-dark(#f5f5f5, var(--muted)); transform: translateX(calc(var(--s) * 50cqw)); }
|
|
.cr-fit-stop[data-on] { border-color: var(--ink); background: var(--ink); }
|
|
.cr-fit-th { position: absolute; top: 50%; left: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; transform: translateX(calc(var(--at) * 50cqw)); transition: transform .4s var(--e-move); }
|
|
.cr-fit-th::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--ink); }
|
|
.cr-fit-th::after { content: ''; position: absolute; inset: 17px; border-radius: 50%; background: var(--x-raised); }
|
|
.cr-fit-th:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 3px; }
|
|
.cr-fit-r:active .cr-fit-th { scale: .97; }
|
|
.cr-fit-ticks { display: flex; justify-content: space-between; }
|
|
.cr-fit-ticks button { min-height: 44px; padding: 0 2px; border: 0; background: none; font: 400 13px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); cursor: pointer; transition: color .15s var(--e-out), transform .15s var(--e-out); }
|
|
.cr-fit-ticks button[data-on] { color: var(--ink); font-weight: 606; }
|
|
.cr-fit-ticks button:active { transform: scale(.97); transition-duration: 90ms; }
|
|
@media (hover: hover) { .cr-fit-ticks button:hover { color: var(--ink); } }
|
|
|
|
/* the plans: columns of one outlined sheet, divided by hairlines; the ring glides to the plan you chose */
|
|
.cr-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--hair); border-radius: 24px; }
|
|
.cr-plan { position: relative; display: flex; flex-direction: column; gap: 17px; padding: clamp(24px, 2.6vw, 40px); }
|
|
.cr-plan + .cr-plan { border-left: 1px solid var(--hair); }
|
|
.cr-ring { position: absolute; inset: -1px; border-radius: 24px; border: 1.5px solid var(--ink); pointer-events: none; }
|
|
.cr-plan-n { margin: 0; font-size: 17px; font-weight: 497; line-height: 1.3; letter-spacing: -.01em; }
|
|
.cr-plan-p { margin: 0; font-size: 44px; font-weight: 220; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
|
|
.cr-plan-p span { margin-left: 6px; font: 400 14px/1 var(--mono); letter-spacing: 0; color: light-dark(#737373, var(--text-tertiary)); }
|
|
.cr-plan-p span::before { content: '/'; }
|
|
.cr-plan ul { flex: 1; list-style: none; margin: 0; padding: 17px 0 0; border-top: 1px solid var(--hair); display: grid; align-content: start; gap: 10px; }
|
|
.cr-plan li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.4; color: light-dark(#525252, var(--muted-foreground)); }
|
|
.cr-plan li::before { content: ''; position: absolute; left: 2px; top: .38em; width: 10px; height: 5px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
|
|
.cr-plan li:first-child { color: var(--ink); font-weight: 606; }
|
|
.cr-plan-go { align-self: flex-start; }
|
|
.cr-oss { margin-top: 44px; }
|
|
|
|
/* ---------- send it a URL (the quiet room) ---------- */
|
|
.cr-send { background: light-dark(#f5f5f5, var(--muted)); }
|
|
.cr-send .kn-lede, .cr-send .kn-body { color: light-dark(#525252, var(--muted-foreground)); }
|
|
.cr-send-g { align-items: center; row-gap: 44px; }
|
|
.cr-send-l { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 17px; }
|
|
.cr-send-l .kn-acts { margin-top: 10px; }
|
|
.cr-send-r { grid-column: 7 / -1; }
|
|
.cr-note { margin: 17px 0 0; font-size: 14px; color: light-dark(#525252, var(--muted-foreground)); }
|
|
|
|
/* the console: a white window (a fill, no outline), its own sidebar, one session that runs once */
|
|
.cr-con { border-radius: 16px; background: var(--x-raised); overflow: hidden; }
|
|
.cr-con-bar { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--hair); }
|
|
.cr-con-bar .cr-dots i { width: 10px; height: 10px; }
|
|
.cr-con-t { display: inline-flex; align-items: center; min-height: 44px; margin: 0; font: 400 13px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); text-decoration: none; transition: color .15s var(--e-out); }
|
|
.cr-con-t:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; border-radius: 6px; }
|
|
@media (hover: hover) { .cr-con-t:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
|
|
.cr-con-b { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 300px; }
|
|
.cr-con-side { display: flex; flex-direction: column; padding: 10px; border-right: 1px solid var(--hair); }
|
|
.cr-con-l { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 8px; color: light-dark(#525252, var(--muted-foreground)); text-decoration: none; font-size: 14px; transition: background-color .15s var(--e-out), color .15s var(--e-out), transform .15s var(--e-out); }
|
|
.cr-con-l[aria-current] { background: light-dark(#f2f2f2, var(--muted)); color: var(--ink); }
|
|
.cr-con-l:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.cr-con-l:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
|
|
@media (hover: hover) { .cr-con-l:hover { background: light-dark(#f5f5f5, var(--muted)); color: var(--ink); } }
|
|
.cr-con-main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; }
|
|
.cr-con-me { align-self: flex-end; margin: 0; padding: 10px 14px; border-radius: 16px 16px 6px 16px; background: light-dark(#0a0a0a, var(--secondary)); color: #fafafa; font-size: 14px; }
|
|
.cr-con-who { margin: 10px 0 0; font: 606 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: light-dark(#737373, var(--text-tertiary)); }
|
|
.cr-con-step, .cr-con-done { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: light-dark(#525252, var(--muted-foreground)); }
|
|
.cr-con-step i, .cr-con-done i { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); }
|
|
.cr-con[data-done] .cr-con-step i { background: var(--ink); }
|
|
.cr-con-done { color: var(--ink); }
|
|
.cr-con-done i { background: var(--ink); }
|
|
.cr-con-done i::after { content: ''; position: absolute; left: 3.5px; top: 2.5px; width: 4px; height: 6px; border-right: 1.5px solid var(--x-raised); border-bottom: 1.5px solid var(--x-raised); transform: rotate(40deg); }
|
|
.cr-con-bar2 { display: block; width: 160px; height: 2px; margin-left: 24px; border-radius: 999px; background: light-dark(#e5e5e5, var(--secondary)); overflow: hidden; }
|
|
.cr-con-bar2 i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(1); }
|
|
.js .cr-con:not([data-run]) .cr-con-bar2 i { transform: scaleX(0); }
|
|
.js .cr-con[data-run] .cr-con-bar2 i { animation: cr-fill 2.4s var(--e-move) both; }
|
|
@keyframes cr-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
|
|
.js .cr-con:not([data-done]) .cr-con-done { opacity: 0; transform: translate3d(0, 6px, 0); }
|
|
.js .cr-con-done { transition: opacity .4s var(--e-in), transform .4s var(--e-in); }
|
|
.cr-con-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 4px 8px 4px 16px; border-top: 1px solid var(--hair); font: 400 13px/1.3 var(--mono); color: light-dark(#737373, var(--text-tertiary)); }
|
|
.cr-con-foot b { font-weight: 400; color: var(--ink); }
|
|
.cr-con-open { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: background-color .15s var(--e-out), transform .15s var(--e-out); }
|
|
.cr-con-open:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.cr-con-open:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
|
|
@media (hover: hover) { .cr-con-open:hover { background: light-dark(#f5f5f5, var(--muted)); } }
|
|
|
|
/* related: hairline rows; the name flies into its page (Morph) */
|
|
.cr-rel { margin-top: clamp(72px, 8vw, 116px); }
|
|
.cr-rel > .kn-kick { color: light-dark(#525252, var(--muted-foreground)); margin-bottom: 17px; }
|
|
.cr-rel ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid light-dark(rgba(0, 0, 0, .14), var(--border-control)); }
|
|
.cr-rel li { border-bottom: 1px solid light-dark(rgba(0, 0, 0, .14), var(--border-control)); }
|
|
.cr-rel-a { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr) 24px; align-items: center; gap: 17px; min-height: 64px; padding: 0 10px; color: var(--ink); text-decoration: none; transition: background-color .15s var(--e-out), transform .15s var(--e-out); }
|
|
.cr-rel-a b { font-size: 17px; font-weight: 497; }
|
|
.cr-rel-a span { font-size: 16px; color: light-dark(#525252, var(--muted-foreground)); }
|
|
.cr-rel-a svg { transition: transform .3s var(--e-move); }
|
|
.cr-rel-a:active { transform: scale(.99); transition-duration: 90ms; }
|
|
.cr-rel-a:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; border-radius: 8px; }
|
|
@media (hover: hover) { .cr-rel-a:hover { background: light-dark(#ededed, var(--secondary)); } .cr-rel-a:hover svg { transform: translateX(4px); } }
|
|
|
|
@media (max-width: 899px) {
|
|
.cr-rd-bar { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
|
|
.cr-dots { display: none; }
|
|
.cr-con-bar .cr-dots { display: flex; }
|
|
.cr-rd-url { margin: 0; flex: 1 1 100%; padding: 0 12px; }
|
|
.cr-rd-url span { display: none; }
|
|
.cr-rd-tabs { flex: 1 1 100%; }
|
|
.cr-rd-tabs button { flex: 1; min-height: 44px; padding: 0 6px; font-size: 14px; }
|
|
.cr-tab-d { display: none; }
|
|
.cr-rd-b { grid-template-columns: minmax(0, 1fr); grid-template-rows: 250px 28px auto; padding: 17px; min-height: 0; }
|
|
.cr-rd .cr-wf-art { gap: 7px; padding: 10px; }
|
|
.cr-rd .cr-wf-code { height: 26px; }
|
|
.cr-rd .cr-wf-art > i:nth-of-type(n+5) { display: none; }
|
|
.cr-rd-pipe { width: 1px; height: 100%; justify-self: center; margin: 0; }
|
|
.cr-rd-pipe i { display: none; }
|
|
.cr-rd-md { padding: 17px; }
|
|
.cr-rd-meta div { font-size: 14px; }
|
|
.cr-rd-md pre { font-size: 14px; }
|
|
.cr-wf { padding: 12px; gap: 9px; }
|
|
|
|
/* the scene on phones: the chapter's words, then the scene, then its steps and the pause control */
|
|
.cr-sc-head { padding: 72px 0 17px; }
|
|
.cr-sc-h, .cr-sc-lede { grid-column: 1 / -1; }
|
|
.cr-sc-g { display: flex; flex-direction: column; align-items: stretch; gap: 17px; }
|
|
.cr-sc-l { display: contents; }
|
|
.cr-toc { order: 1; }
|
|
.cr-sc-body { order: 2; padding-left: 0; }
|
|
.cr-map { order: 3; }
|
|
.cr-ctl { order: 4; display: flex; align-items: center; gap: 10px; }
|
|
.cr-steps { flex: 1; display: flex; gap: 4px; }
|
|
.cr-steps button { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--hair); border-radius: 999px; background: var(--x-raised); font: 400 14px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); cursor: pointer; transition: background-color .3s var(--e-move), color .15s var(--e-out), transform .15s var(--e-out); }
|
|
.cr-steps button[aria-current] { background: light-dark(#0a0a0a, var(--secondary)); border-color: var(--ink); color: #fff; }
|
|
.cr-steps button:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.cr-steps button:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
|
|
.js .cr-toc li { display: none; }
|
|
.js .cr-toc li.on { display: block; margin: 0; padding: 0; border: 0; }
|
|
.cr-toc button { font-size: 21px; min-height: 0; padding: 0; cursor: default; }
|
|
.cr-toc button > .kn-fig { display: none; }
|
|
.js .cr-sc-body p:not([data-on]) { display: none; }
|
|
.cr-map { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 4.9; }
|
|
.cr-map-bar { top: 16px; left: 18px; right: 18px; }
|
|
.cr-L { padding: 40px 14px 14px; }
|
|
.cr-wf.big { padding: 12px; gap: 10px; }
|
|
.cr-pg-bar span, .cr-lane-k, .cr-doc-k, .cr-doc-meta div, .cr-n, .cr-guard, .cr-ports span, .cr-lane li em { font-size: 14px; }
|
|
.cr-n.bad b { font-size: 12px; }
|
|
.cr-lanes { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 10px; }
|
|
.cr-lane { padding: 14px; gap: 8px; }
|
|
.cr-lane ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
|
.cr-lane li { padding: 10px; font-size: 14px; }
|
|
.cr-doc { padding: 17px; gap: 14px; }
|
|
.cr-doc pre { font-size: 14px; line-height: 1.6; }
|
|
.cr-doc .cr-ml.c, .cr-doc .cr-ml.p { display: none; }
|
|
.cr-doc-meta dt { min-width: 92px; }
|
|
.cr-L3 { inset: 40px 2% 2%; }
|
|
.cr-n { padding: 6px 8px 6px 6px; gap: 5px; }
|
|
.cr-n.minor span { display: none; }
|
|
.cr-n.minor { padding: 6px; }
|
|
.cr-n.bad b { display: none; }
|
|
.cr-n .cr-tab-d { display: none; }
|
|
.cr-guard { padding: 6px; transform: translate(-60%, -20%); }
|
|
.cr-guard span { display: none; }
|
|
.cr-site { transform: translate3d(0, calc(var(--f) * -20%), 0) scale(calc(1 - var(--f) * .06)); }
|
|
.cr-ports { left: 4%; right: 4%; bottom: 4%; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); }
|
|
.cr-ports p { padding: 12px 14px; }
|
|
.cr-ports b { font-size: 17px; }
|
|
|
|
.cr .kfs-row dd > .cr-st { min-width: 0; }
|
|
.cr-price-l, .cr-fit { grid-column: 1 / -1; }
|
|
.cr-fit { padding: 20px 20px 10px; }
|
|
.cr-fit-m b { font-size: 52px; }
|
|
.cr-sheet { grid-template-columns: minmax(0, 1fr); }
|
|
.cr-plan + .cr-plan { border-left: 0; border-top: 1px solid var(--hair); }
|
|
.cr-plan-go { align-self: stretch; }
|
|
.cr-send-l, .cr-send-r { grid-column: 1 / -1; }
|
|
.cr-con-b { grid-template-columns: 52px minmax(0, 1fr); }
|
|
.cr-con-side { padding: 4px; }
|
|
.cr-con-l { justify-content: center; min-height: 44px; padding: 0; }
|
|
.cr-con-l span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
.cr-con-main { padding: 17px; }
|
|
.cr-con-me, .cr-con-step, .cr-con-done { font-size: 14px; }
|
|
.cr-con-bar2 { width: 120px; }
|
|
.cr-con-t, .cr-con-foot { font-size: 14px; }
|
|
.cr-con-foot { flex-wrap: wrap; gap: 0 12px; padding: 6px 8px 6px 14px; }
|
|
.cr-rel-a { grid-template-columns: minmax(0, 1fr) 24px; grid-template-rows: auto auto; row-gap: 4px; padding: 14px 6px; }
|
|
.cr-rel-a b { grid-column: 1; }
|
|
.cr-rel-a span { grid-column: 1; grid-row: 2; font-size: 14px; }
|
|
.cr-rel-a svg { grid-column: 2; grid-row: 1 / span 2; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.cr-rd .cr-ml, .cr-rd-meta, .cr-rd .cr-wf-tag, .cr-rd-url u, .cr-rd-pipe i { animation: none; opacity: 1; transform: none; clip-path: none; }
|
|
.cr-rd .cr-chrome { animation: none; opacity: .14; }
|
|
.cr-rd .cr-wf-ring { animation: none; clip-path: none; }
|
|
.cr-flow i, .cr-fit-m b, .js .cr-con[data-run] .cr-con-bar2 i { animation: none !important; }
|
|
.cr-sc-body p, .cr-sc-body p[data-on], .cr-fit-th, .cr-fit-line i { transition: none !important; }
|
|
}
|
|
@media (max-width: 899px) {
|
|
.cr-step { grid-template-columns: minmax(0, 1fr); gap: 17px; }
|
|
.cr-sa { width: min(100%, 280px); }
|
|
}
|
|
|
|
/* round 3 (critic, 7 Nov) */
|
|
/* less dead white between sections */
|
|
.cr .kn-sec { padding-top: clamp(56px, 7vw, 116px); padding-bottom: clamp(56px, 7vw, 116px); }
|
|
.cr > .kns { padding-bottom: clamp(44px, 5vw, 72px); }
|
|
.cr .cr-sc-head { padding-top: clamp(44px, 5vw, 72px); }
|
|
/* How it works: while a step is in view its object runs its cycle three times, then rests on the last frame */
|
|
.cr-sa-f[data-on] .cr-sa-ln b { animation: cr-sa-dot 3.6s cubic-bezier(.4, 0, .2, 1) .2s 3 both; }
|
|
.cr-sa-f[data-on] .cr-sa-sh path.t { animation: cr-sa-tk 3.6s cubic-bezier(0, 0, .2, 1) .2s 3 both; }
|
|
.cr-sa-f[data-on] .cr-sa-pg { animation: cr-sa-in 3.6s cubic-bezier(.16, 1, .3, 1) .2s 3 both; }
|
|
@keyframes cr-sa-dot { 0% { transform: none; } 40%, 100% { transform: translateX(76px); } }
|
|
@keyframes cr-sa-tk { 0%, 24% { stroke-dashoffset: 12; } 34%, 100% { stroke-dashoffset: 0; } }
|
|
@keyframes cr-sa-in { 0%, 40% { opacity: 0; transform: translate3d(-12px, 0, 0); } 56%, 100% { opacity: 1; transform: none; } }
|
|
.cr-sa-x[data-on] .c { animation: cr-sa-fade 3.6s cubic-bezier(0, 0, .2, 1) .6s 3 both; }
|
|
.cr-sa-x[data-on] .art { animation: cr-sa-ring 3.6s cubic-bezier(0, 0, .2, 1) .6s 3 both; }
|
|
@keyframes cr-sa-fade { 0%, 20% { opacity: 1; } 45%, 100% { opacity: .18; } }
|
|
@keyframes cr-sa-ring { 0%, 36% { box-shadow: inset 0 0 0 1.5px transparent; } 52%, 100% { box-shadow: inset 0 0 0 1.5px var(--ink); } }
|
|
.cr-sa-r[data-on] .cr-sa-md span { animation: cr-sa-line 3.6s cubic-bezier(.16, 1, .3, 1) calc(1s + var(--i) * .12s) 3 both; }
|
|
@keyframes cr-sa-line { 0% { clip-path: inset(0 100% 0 0); } 24%, 100% { clip-path: inset(0 0 0 0); } }
|
|
|
|
/* tags, not buttons: Reads and the two ways to call it are plain mono words */
|
|
.cr-kinds li, .cr-ways span { min-height: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; font: 400 14px/1.4 var(--mono) !important; color: light-dark(#525252, var(--muted-foreground)) !important; }
|
|
.cr-kinds li + li::before, .cr-ways span + span::before { content: '·'; margin-right: 10px; color: #a3a3a3; }
|
|
.cr-kinds, .cr-ways { gap: 4px 10px !important; }
|
|
/* 44px text links */
|
|
.cr .x-arrow { display: inline-flex; align-items: center; min-height: 44px; }
|
|
/* phones: the hero's example tabs keep their whole path; the rail scrolls */
|
|
@media (max-width: 899px) {
|
|
.cr-rd-tabs { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
|
|
.cr-rd-tabs .cr-tab-d { display: inline !important; }
|
|
.cr-rd-tabs button { flex: none; }
|
|
/* one copy of the chapter: the one under the chips */
|
|
.js .cr-toc, .js .cr-sc-body { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
}
|
|
html:not(.js) .cr-now { display: none !important; }
|
|
/* Returns: four medium words, not four big ones */
|
|
.cr .cr-figs .kn-fig { font-size: 32px; }
|
|
.cr-figs { gap: 17px 44px; }
|
|
/* Reads: plain chips, not button shapes */
|
|
.cr-kinds li { border: 0 !important; background: light-dark(#f5f5f5, var(--muted)); border-radius: 8px !important; }
|
|
/* the pinned stage leans toward a fine pointer */
|
|
.cr-map { --rx: 0deg; --ry: 0deg; transform: perspective(1800px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .4s cubic-bezier(0, 0, .2, 1); }
|
|
@media (prefers-reduced-motion: reduce) { .cr-map { transform: none; } }
|
|
/* hovers that answer: text links step their arrow, the slider thumb takes a ring */
|
|
@media (hover: hover) {
|
|
.cr .x-arrow svg { transition: transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
.cr .x-arrow:hover svg { transform: translateX(4px); }
|
|
.cr .x-arrow:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
|
|
.cr-fit-th:hover { box-shadow: 0 0 0 6px rgba(10, 10, 10, .1); }
|
|
}
|
|
/* 44px copy */
|
|
.cr .x-copy { min-height: 44px; }
|
|
/* the active chapter under the stage, phones only */
|
|
.cr-now { display: none; }
|
|
@media (max-width: 899px) {
|
|
.cr-now { order: 4; grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; margin-top: 17px; min-height: 9.5em; }
|
|
.cr-now p { margin: 0; }
|
|
.cr-now-t { display: flex; align-items: baseline; gap: 10px; font-size: 19px; font-weight: 497; color: var(--ink); }
|
|
.cr-now-t .kn-fig { font-size: 14px; color: light-dark(#737373, var(--text-tertiary)); }
|
|
.cr .cr-figs .kn-fig { font-size: 26px; }
|
|
}
|
|
|
|
/* round 4 (8 Nov) */
|
|
/* the reader: the last page's Markdown holds until the new lines start, then steps aside */
|
|
.cr-rd-mdb { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
|
|
.cr-rd-mdb > pre:last-child { flex: 1; }
|
|
.cr-rd-prev { position: absolute; inset: 0; margin: 0; font: 400 16px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word; pointer-events: none; }
|
|
.cr-rd .cr-rd-prev .cr-ml { animation: none; }
|
|
.cr-rd-prev { animation: cr-prev 1.15s steps(1, end) both; }
|
|
@keyframes cr-prev { to { visibility: hidden; } }
|
|
/* the first screen: the reader's bar and its first lines sit inside 1470x801 */
|
|
@media (min-width: 900px) {
|
|
.cr > .kns { padding-top: clamp(32px, calc(26svh - 128px), 120px); }
|
|
.cr > .kns .kns-g { row-gap: 36px; }
|
|
/* How it works: each step's object at a size you can read (its parts scale with it) */
|
|
.cr-step { grid-template-columns: minmax(0, 1fr) 302px; gap: 44px; }
|
|
.cr-sa { zoom: 1.4; }
|
|
}
|
|
@media (max-width: 899px) { .cr-rd-prev { font-size: 14px; } }
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.cr .kns-in, .cr .kns-obj-in, .cr .knl-t, .cr-rd-prev, .cr-sa *, .cr-sa-md span { animation: none !important; }
|
|
.cr-rd-prev { display: none; }
|
|
}
|
|
/* entrances (arrive.js sets data-arm below the fold, then data-in on arrival; JS off and reduced motion: final state) */
|
|
/* slot-roll: each Reads word rolls up into its slot */
|
|
.cr-kinds[data-arm]:not([data-in]) li { clip-path: inset(0 0 100% 0); transform: translateY(70%); }
|
|
.cr-kinds[data-in] li { animation: cr-slot .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--n, 0) * 70ms); }
|
|
.cr-kinds li:nth-child(2) { --n: 1; } .cr-kinds li:nth-child(3) { --n: 2; } .cr-kinds li:nth-child(4) { --n: 3; } .cr-kinds li:nth-child(5) { --n: 4; } .cr-kinds li:nth-child(6) { --n: 5; }
|
|
@keyframes cr-slot { from { clip-path: inset(0 0 100% 0); transform: translateY(70%); } to { clip-path: inset(0); transform: none; } }
|
|
/* tile-flip: the four Returns flip in on their top edge, one after another */
|
|
.cr-figs[data-enter] { perspective: 900px; }
|
|
.cr-figs[data-arm]:not([data-in]) > * { transform: rotateX(-90deg); opacity: 0; }
|
|
.cr-figs[data-in] > * { transform-origin: 50% 0; animation: cr-flip .7s cubic-bezier(.16, 1, .3, 1) both; }
|
|
.cr-figs[data-in] > :nth-child(2) { animation-delay: .09s; } .cr-figs[data-in] > :nth-child(3) { animation-delay: .18s; } .cr-figs[data-in] > :nth-child(4) { animation-delay: .27s; }
|
|
@keyframes cr-flip { from { transform: rotateX(-90deg); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
|
|
/* pendulum: the plan picker swings in from its top edge and settles */
|
|
.cr-fit[data-arm]:not([data-in]) { transform: rotate(9deg); opacity: 0; }
|
|
.cr-fit[data-in] { transform-origin: 50% -40%; animation: cr-swing 1.2s both; }
|
|
@keyframes cr-swing { 0% { transform: rotate(9deg); opacity: 0; animation-timing-function: cubic-bezier(.3, 0, .5, 1); } 20% { opacity: 1; } 40% { transform: rotate(-4deg); animation-timing-function: cubic-bezier(.4, 0, .5, 1); } 66% { transform: rotate(1.6deg); } 86% { transform: rotate(-.5deg); } 100% { transform: none; opacity: 1; } }
|
|
/* grow-from-point: the plan sheet grows out of where you last pressed (or its centre) */
|
|
.cr-sheet[data-arm]:not([data-in]) { transform: scale(.6); opacity: 0; }
|
|
.cr-sheet[data-in] { transform-origin: var(--hz-ox, 50%) 0; animation: cr-grow .8s cubic-bezier(.16, 1, .3, 1) both; }
|
|
@keyframes cr-grow { from { transform: scale(.6); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
|
|
|
|
/* ---------- dark mode (8 Nov, docs/DARK-MODE.md): the Keynote deck pins its tokens light on .kn, so this page points
|
|
them at Hanzo's dark tokens; every light value above is unchanged ---------- */
|
|
html:not(.light) .cr { --ink: var(--foreground); --soft: var(--muted-foreground); --faint: var(--text-tertiary); --line: var(--border); --body: var(--muted-foreground); --quiet: var(--text-tertiary); --hair: var(--border); background: var(--background); }
|
|
/* dark: the wireframe's heading bar in Hanzo's muted grey (a mark, not a white slab) */
|
|
html:not(.light) .cr .cr-wf-h { background: var(--muted-foreground); }
|