Files
Claude 36f6a01051 dark mode foundation: follow the device like live hanzo.ai (dark t_dark / light t_light), Hanzo's dark palette on every shared token, shared pieces dark-correct
- Theme before paint: app/layout.jsx runs live hanzo.ai's own pre-paint script (localStorage
  "hanzo.appearance.painted", else prefers-color-scheme) and sets light/dark + t_light/t_dark,
  color-scheme and data-scheme; it re-applies when the device setting changes. Measured: "dark
  t_dark" at first paint, after hydration and after client navigation; no flash; JS off stays bright.
  theme-color follows the scheme (#0A0A0A dark, as live). No appearance switch: no captured live
  menu shows one, so no new words.
- Tokens: html.dark gives --ink/--soft/--faint/--line/--card/--bg and Hanzo's --foreground/
  --background/--primary/--border/--hover/--muted Hanzo's own dark values (public/hanzo.css: page
  #0d0d0d, text #e5e5e5, muted #a3a3a3, borders white 10%, #171717 / #0f0f0f / #262626 surfaces);
  rooms (system.css) too. New --x-raised/--x-on-ink/--x-fill/--x-sunk/--x-knob/--x-e10..15
  replace hard-coded whites in shared rules (Hanzo already defines --card/--raised on inner
  elements, so the new names are prefixed). One-off greys keep their exact light value via
  light-dark(); html.light/html.dark pin color-scheme.
- Dark-correct: cookie banner and preferences, announcement strip, sign-in buttons, buttons, search
  palette and scrims, menus and the menu feature card, sheets, drawers, pause buttons, related
  cards, every components/v2/*.css; the hero dot field draws in the page ink at 17% and redraws on
  a theme change. Hanzo's header and footer go dark through hanzo.css.
- docs/DARK-MODE.md: how a page chat converts its pages; scripts/darkcheck.mjs (what is still
  bright in dark) and scripts/lightcheck.mjs (bright mode unchanged vs an older server).

Checks: bright mode 0 computed-colour diffs vs the base commit on / /pricing /chat (1470, 375) and
/enso /kai /api /affiliate /beta /about /dev /security /payments /models (1470); page text
identical (only the live tokens/s counters move); 0 console/page errors in both modes on / /pricing
/chat at 1470x801 and 375x812 (home's media requests to hanzo.ai are blocked in this sandbox, same
in light); taste, unique OK; build exits 0 with HZ_LIVE_OFFLINE=1 (live figure hosts are blocked
here). Page-owned CSS left for the page chats: /pricing .xpr-*, /chat .cht-*, home .xs-*/.xh-pause.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P5YBdxPteCvBL7f74SauJt
2026-11-08 10:59:06 +00:00

59 lines
4.9 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* v2 Story grammar (owned by the Story chat: /about, /history, /blog). The VISION.md v2 system for editorial pages:
fluid type scale, a 12-column grid at 1440 with 24px gutters, 8pt spacing and 200–260px of air between chapters.
Usage: import '../v2/Story.css' from a page (any page may), then compose with these classes:
- type: v2s-display (128/96/80 → 56/48), v2s-headline (56 → 36), v2s-title (28), v2s-lede (24/21), v2s-body (19/17),
v2s-kick (Zen Mono 13 caps); v2s-it sets one word in Zen Italic for an editorial accent.
- layout: v2s-grid (12 columns) with v2s-c-<start>-<end> spans (desktop only; everything stacks under 900px),
v2s-sec (chapter air), v2s-scene (a 100svh chapter), v2s-hair (a 1px rule).
- accent: set --acc on the page root; v2s-acc paints text in it. One accent per page. */
:root { --v2-max: 1440px; --v2-gut: 24px; --v2-pad: clamp(16px, 4.4vw, 64px); }
.v2s { --acc: #0a0a0a; --ink: #0a0a0a; --soft: #6e6e73; --faint: #86868b; --hair: rgba(0, 0, 0, .08); }
.v2s-display { margin: 0; font-family: var(--sans); font-size: clamp(56px, 8.9vw, 128px); font-weight: 600; line-height: .92; letter-spacing: -.05em; color: var(--ink); text-wrap: balance; font-variant-numeric: tabular-nums; }
.v2s-headline { margin: 0; font-size: clamp(36px, 3.9vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -.042em; color: var(--ink); max-width: 16ch; text-wrap: balance; }
.v2s-title { margin: 0; font-size: clamp(22px, 1.95vw, 28px); font-weight: 560; line-height: 1.14; letter-spacing: -.024em; color: var(--ink); text-wrap: balance; }
.v2s-lede { margin: 0; font-size: clamp(19px, 1.67vw, 24px); line-height: 1.42; letter-spacing: -.012em; color: var(--soft); max-width: 40ch; text-wrap: pretty; }
.v2s-body { margin: 0; font-size: clamp(17px, 1.32vw, 19px); line-height: 1.58; color: var(--soft); max-width: 64ch; text-wrap: pretty; }
.v2s-kick { margin: 0; font: 500 13px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.v2s-it { font-family: Zen, var(--sans); font-style: italic; font-weight: 420; letter-spacing: -.04em; }
.v2s-acc { color: var(--acc); }
.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(120px, 15vw, 240px); }
.v2s-sec.tight { padding-block: clamp(96px, 10vw, 160px); }
.v2s-scene { position: relative; min-height: 100svh; }
.v2s-hair { height: 1px; border: 0; margin: 0; background: var(--hair); }
/* line-masked reveals: a block that rises out of its own line box, played once */
.v2s-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.v2s-mask > * { display: block; }
/* buttons in the v2 scale: a calm pill, a solid one for the single primary action */
.v2s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--hair); background: var(--x-raised); color: var(--ink); font: 500 16px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: border-color .25s var(--ease), background .25s var(--ease), transform .3s var(--ease); }
.v2s-btn:hover { border-color: rgba(0, 0, 0, .22); }
.v2s-btn:active { transform: scale(.97); }
.v2s-btn.solid { background: var(--ink); color: var(--x-on-ink); border-color: var(--ink); }
.v2s-btn.solid:hover { background: #262626; }
.v2s-btn svg { transition: transform .35s var(--ease); }
.v2s-btn:hover svg { transform: translateX(3px); }
.v2s-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 16px/1.3 var(--sans); color: var(--ink); text-decoration: none; }
.v2s-link svg { transition: transform .35s var(--ease); }
.v2s-link:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.v2s-link:hover svg { transform: translateX(4px); }
.v2s-acts { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 901px) {
.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: 900px) {
.v2s-grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
.v2s-grid > * { grid-column: 1 / -1; }
.v2s-btn { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
.v2s-btn, .v2s-btn svg, .v2s-link svg { transition: none; }
}