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_01DqUybANbjm2jfVS7XsqXDg
88 lines
8.1 KiB
CSS
88 lines
8.1 KiB
CSS
/* Story grammar for /about, /history and the /blog index (page-owned; components/v2 is frozen for page chats).
|
|
MASTER.md section 3: Hanzo's deck only. Ink, the neutral ramp and #e4e4e7; Zen at Book 497 for every heading and Air
|
|
220 for the largest figures; golden space (4 6.5 10.5 17 27 44 72 116 188); container 1152, gutter clamp(16,4vw,32).
|
|
Scale has rhythm: resting sizes follow live hanzo.ai (h1 52, section headings 26, figures 64); one big thing per
|
|
screen, and a figure grows past 64 only while it is the moment (add .moment), then settles back.
|
|
No label above a headline: Hanzo's labels sit under their heading as a caption (v2s-cap).
|
|
Usage: import './story.css' from a Story page, then compose with these classes:
|
|
- type: v2s-display (the h1, 52 / 40), v2s-headline (h2, 26), v2s-title (h3, 17), v2s-lede (20), v2s-body (16),
|
|
v2s-cap / v2s-label (12 Zen Mono capitals), v2s-figure (64, Air, tabular; .moment grows it to 112).
|
|
- layout: v2s-wrap, v2s-grid (12 columns), v2s-sec (section air), v2s-head (heading and caption left on 8 of 13
|
|
columns, lede right on 5, aligned to the bottom).
|
|
- asks: v2s-btn solid (the one primary, 48px pill), v2s-tlink (a text link with a chevron).
|
|
- rooms: v2s-room on a black section: it enters as a rounded card inside the gutters and opens to full width. */
|
|
:root { --v2-max: 1152px; --v2-gut: 17px; --v2-pad: clamp(16px, 4vw, 32px); }
|
|
|
|
.v2s { --ink: #0a0a0a; --soft: #525252; --faint: #737373; --hair: rgba(0, 0, 0, .1); --tile: #f5f5f5;
|
|
--e-out: cubic-bezier(0, 0, .2, 1); --e-move: cubic-bezier(.4, 0, .2, 1); --e-arrive: cubic-bezier(.16, 1, .3, 1); }
|
|
.v2s-display { margin: 0; font-family: var(--sans); font-size: clamp(40px, 3.6vw, 52px); font-weight: 497; line-height: 1.04; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
|
|
.v2s-headline { margin: 0; font-size: 26px; font-weight: 497; line-height: 1.18; letter-spacing: -.02em; color: var(--ink); max-width: 24ch; text-wrap: balance; }
|
|
.v2s-title { margin: 0; font-size: 17px; font-weight: 497; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
|
|
.v2s-lede { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; letter-spacing: -.01em; color: var(--soft); max-width: 44ch; text-wrap: pretty; }
|
|
.v2s-body { margin: 0; font-size: 16px; line-height: 1.6; color: var(--soft); max-width: 66ch; text-wrap: pretty; }
|
|
.v2s-kick, .v2s-label, .v2s-cap { margin: 0; font: 606 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
|
|
.v2s-figure { display: inline-block; font-size: 64px; font-weight: 220; line-height: .92; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; transform-origin: 0 100%; transition: transform .5s var(--e-arrive); }
|
|
.v2s-figure.moment, .moment .v2s-figure { transform: scale(1.75); }
|
|
.v2s-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
|
|
|
|
.v2s-wrap { width: min(100% - 2 * var(--v2-pad), var(--v2-max)); margin-inline: auto; }
|
|
.v2s-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--v2-gut); }
|
|
.v2s-sec { position: relative; padding-block: clamp(72px, 11vw, 188px); }
|
|
.v2s-sec.tight { padding-block: clamp(44px, 7vw, 116px); }
|
|
.v2s-hair { height: 1px; border: 0; margin: 0; background: var(--hair); }
|
|
|
|
/* a section head: heading and its caption on 8 of 13 columns, the lede on 5, bottom-aligned */
|
|
.v2s-head { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); column-gap: var(--v2-gut); row-gap: 10.5px; align-items: end; }
|
|
.v2s-head > .v2s-headline, .v2s-head > .v2s-display { grid-column: 1 / 9; grid-row: 1; }
|
|
.v2s-head > .v2s-cap, .v2s-head > .v2s-label { grid-column: 1 / 9; grid-row: 2; }
|
|
.v2s-head > .v2s-lede, .v2s-head > .v2s-side { grid-column: 9 / 14; grid-row: 1 / 3; align-self: end; }
|
|
|
|
/* asks: one solid pill (48px), and text links for the rest */
|
|
.v2s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .1); background: #fff; color: var(--ink); font: 497 16px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background .15s var(--e-out), border-color .15s var(--e-out), transform .15s var(--e-out); }
|
|
.v2s-btn:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.v2s-btn.solid { background: var(--ink); color: #fff; border-color: var(--ink); }
|
|
@media (hover: hover) { .v2s-btn:hover { border-color: rgba(0, 0, 0, .3); } .v2s-btn.solid:hover { background: #262626; } .v2s-btn:hover svg { transform: translateX(3px); } }
|
|
.v2s-btn svg { transition: transform .15s var(--e-out); }
|
|
.v2s-link, .v2s-tlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 497 16px/1.3 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(10, 10, 10, .3); transition: text-decoration-color .15s var(--e-out); }
|
|
.v2s-link span { text-decoration: inherit; }
|
|
.v2s-link svg, .v2s-tlink svg { transition: transform .15s var(--e-out); }
|
|
.v2s-tlink:active, .v2s-link:active { transform: translateY(1px); }
|
|
@media (hover: hover) { .v2s-link:hover, .v2s-tlink:hover { text-decoration-color: currentColor; } .v2s-link:hover svg, .v2s-tlink:hover svg { transform: translateX(3px); } }
|
|
.v2s-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10.5px 27px; }
|
|
.v2s :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px #fff; border-radius: 8px; }
|
|
[data-room='dark'].v2s-room :focus-visible, .xst-close :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px #000; }
|
|
|
|
/* a black room enters as a rounded card inside the gutters and opens to full width as it is reached */
|
|
@supports (animation-timeline: view()) {
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.v2s-room { animation: v2s-room linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
|
|
}
|
|
}
|
|
@keyframes v2s-room { from { clip-path: inset(0 var(--v2-pad) round 24px); } to { clip-path: inset(0 0 round 0); } }
|
|
|
|
@media (min-width: 900px) {
|
|
.v2s-c-1-5 { grid-column: 1 / 6; } .v2s-c-1-6 { grid-column: 1 / 7; } .v2s-c-1-7 { grid-column: 1 / 8; } .v2s-c-1-8 { grid-column: 1 / 9; } .v2s-c-1-9 { grid-column: 1 / 10; } .v2s-c-1-10 { grid-column: 1 / 11; } .v2s-c-1-12 { grid-column: 1 / -1; }
|
|
.v2s-c-6-12 { grid-column: 6 / -1; } .v2s-c-7-12 { grid-column: 7 / -1; } .v2s-c-8-12 { grid-column: 8 / -1; } .v2s-c-9-12 { grid-column: 9 / -1; } .v2s-c-2-12 { grid-column: 2 / -1; } .v2s-c-5-12 { grid-column: 5 / -1; }
|
|
}
|
|
@media (max-width: 899px) {
|
|
.v2s-grid, .v2s-head { grid-template-columns: minmax(0, 1fr); row-gap: 17px; }
|
|
.v2s-grid > *, .v2s-head > * { grid-column: 1 !important; grid-row: auto !important; }
|
|
.v2s-head > .v2s-lede, .v2s-head > .v2s-side { margin-top: 6.5px; }
|
|
.v2s-figure { font-size: 52px; }
|
|
.v2s-figure.moment, .moment .v2s-figure { transform: scale(1.4); }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.v2s-btn, .v2s-btn svg, .v2s-link svg, .v2s-tlink svg, .v2s-figure { transition: none; }
|
|
}
|
|
|
|
/* the closing Band (StoryClose): the kit's black room, a centred head (the only centred head on the page) */
|
|
.xst-close h2 { font-size: clamp(32px, 3.4vw, 44px) !important; font-weight: 497 !important; letter-spacing: -.03em !important; max-width: 22ch !important; }
|
|
.xst-close p { font-size: 17px !important; color: rgba(255, 255, 255, .78) !important; }
|
|
.xst-close .x-band-note a { display: inline-flex; align-items: center; min-height: 44px; color: #fafafa; text-underline-offset: 3px; }
|
|
|
|
/* the pause control (StoryPause): 44px, quiet, first in the DOM of what moves by itself */
|
|
.xst-pause { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .1); background: #fff; color: #0a0a0a; cursor: pointer; transition: border-color .15s cubic-bezier(0, 0, .2, 1), transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
.xst-pause:active { transform: scale(.97); transition-duration: 90ms; }
|
|
@media (hover: hover) { .xst-pause:hover { border-color: rgba(0, 0, 0, .3); } }
|
|
@media (prefers-reduced-motion: reduce) { .xst-pause { display: none; } }
|