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

45 lines
3.0 KiB
CSS

/* v2 grammar for the Company pages (Wave 2 group 1). Usage: import '../v2/vc-type.css' once in a page, then use the
classes below. It is VISION.md's type, space and material scale as classes, prefixed vc- so nothing collides with
another chat's names. Each page sets its one accent with style={{ '--acc': '#…' }} on its <main>.
Owned by the Wave 2 Company chat. */
.vc { --acc: #0a0a0a; --acc-soft: color-mix(in srgb, var(--acc) 12%, #fff); --ease: cubic-bezier(.16, 1, .3, 1); }
/* 12 columns, 1440 max, 24px gutters */
.vc-wrap { width: min(100% - 48px, 1440px); margin-inline: auto; }
.vc-grid { width: min(100% - 48px, 1440px); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
/* air: sections 200-260 on desktop, 120 on phone; chapters are full-screen scenes */
.vc-sec { position: relative; padding: clamp(120px, 16vw, 240px) 0; }
.vc-sec.tight { padding: clamp(96px, 10vw, 160px) 0; }
.vc-scene { position: relative; min-height: 100svh; display: flex; align-items: center; }
/* type */
.vc-display { margin: 0; font-weight: 600; font-size: clamp(56px, 8.9vw, 128px); line-height: .92; letter-spacing: -.05em; text-wrap: balance; color: var(--ink); }
.vc-display.m { font-size: clamp(48px, 6.7vw, 96px); }
.vc-display.s { font-size: clamp(48px, 5.6vw, 80px); }
.vc-headline { margin: 0; font-weight: 600; font-size: clamp(36px, 3.9vw, 56px); line-height: 1.02; letter-spacing: -.04em; max-width: 18ch; text-wrap: balance; color: var(--ink); }
.vc-title { margin: 0; font-weight: 600; font-size: clamp(22px, 1.95vw, 28px); line-height: 1.15; letter-spacing: -.025em; color: var(--ink); }
.vc-lede { margin: 0; font-size: clamp(21px, 1.67vw, 24px); line-height: 1.38; letter-spacing: -.012em; color: var(--soft); max-width: 40ch; text-wrap: pretty; }
.vc-body { margin: 0; font-size: clamp(17px, 1.32vw, 19px); line-height: 1.55; color: var(--soft); max-width: 64ch; text-wrap: pretty; }
.vc-kick { margin: 0; font: 500 13px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.vc-kick.acc { color: var(--acc); }
.vc-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
/* material: hero objects 28px, cards 16px, hairlines, soft long shadows, no glass */
.vc-obj { border-radius: 28px; box-shadow: 0 70px 120px -50px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .06); }
.vc-card { border-radius: 16px; border: 1px solid var(--line); background: var(--x-raised); }
.vc-hair { border: 0; border-top: 1px solid var(--line); margin: 0; }
/* masked lines (MaskLines.jsx): room for descenders inside each mask */
.vc-ml { display: block; }
.vc-ml-l { display: block; overflow: hidden; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.vc-ml-i { display: block; will-change: auto; }
@media (max-width: 900px) {
.vc-wrap, .vc-grid { width: min(100% - 40px, 1440px); }
.vc-grid { grid-template-columns: minmax(0, 1fr); }
.vc-grid > * { grid-column: 1 / -1 !important; }
.vc-body { font-size: 17px; }
.vc-lede { font-size: 21px; }
}