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

24 lines
1.7 KiB
CSS

/* GetIt (owner: Cloud 2 chat). See GetIt.jsx. */
.gi { position: relative; padding: clamp(72px, 11vw, 188px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.gi-in { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.gi-copy { grid-column: 1 / span 7; position: relative; z-index: 1; }
.gi-lead { margin-top: 22px; }
.gi-h { color: var(--ink); }
.gi-tag { margin-top: 24px; }
.gi-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.gi-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--x-raised); font: 500 13px/1 var(--mono); color: var(--ink); text-decoration: none; }
.gi-chip > span { color: var(--faint); }
.gi-chip em { font-style: normal; color: var(--soft); padding-left: 8px; border-left: 1px solid var(--line); }
@media (hover: hover) { a.gi-chip:hover { border-color: var(--ink); } }
a.gi-chip:active { transform: translateY(1px); }
.gi-chip { min-height: 44px; }
.gi-acts { margin-top: 40px; }
.gi-more { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0 0; }
.gi-art { grid-column: 8 / -1; position: relative; aspect-ratio: 1; color: var(--acc); }
.gi-sigil { position: absolute; inset: -10%; width: 120%; height: 120%; display: block; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
@media (max-width: 900px) {
.gi-in { display: block; }
.gi-art { position: absolute; right: -30%; top: -20%; width: 90%; opacity: .45; }
}
@media (max-width: 900px) { .gi-chip { font-size: 14px; } }