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

44 lines
3.4 KiB
CSS

/* KeynoteSpec + KeynoteSheet (Cloud 1 chat): see KeynoteSpec.jsx */
.kfs-h { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(48px, 6vw, 88px); }
.kfs-rows { margin: 0; border-top: 1px solid var(--ink); }
.kfs-row { padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.kfs-row dt { grid-column: 1 / span 3; padding-top: 6px; }
.kfs-row dd { grid-column: 4 / -1; margin: 0; display: flex; flex-wrap: wrap; gap: 20px 56px; }
.kfs-row dd > p, .kfs-row dd li { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); max-width: 62ch; }
.kfs-row dd b { color: var(--ink); font-weight: 606; }
.kfs-row dd ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.kfs-fig { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 120px; }
.kfs-fig b { font-size: 64px; font-weight: 220; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.kfs-fig span { font: 497 14px/1.35 var(--sans); color: var(--ink); }
.kfs-fig em { font-style: normal; font-size: 14px; color: var(--soft); max-width: 26ch; }
.kfs-more { margin-top: 40px; }
.kfs-open svg { transition: transform .35s var(--ease); }
@media (hover: hover) { .kfs-open:hover svg { transform: rotate(90deg); } }
.kfs-x:active { transform: scale(.94); }
/* the sheet: rises from the bottom on a spring-like curve; always in the HTML, inert while shut */
.kfs-sheet-root { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.kfs-sheet-root[data-open] { pointer-events: auto; }
.kfs-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); opacity: 0; transition: opacity .35s var(--ease); }
.kfs-sheet-root[data-open] .kfs-back { opacity: 1; }
.kfs-sheet { position: absolute; left: 50%; bottom: 0; width: min(100%, 1040px); max-height: 86svh; overflow: auto; overscroll-behavior: contain; background: var(--x-raised); border-radius: 24px 24px 0 0; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .18); transform: translate3d(-50%, 104%, 0); transition: transform .42s cubic-bezier(.7, 0, .84, 0); visibility: hidden; }
.kfs-sheet-root[data-open] .kfs-sheet { transform: translate3d(-50%, 0, 0); transition: transform .7s cubic-bezier(.16, 1, .3, 1); visibility: visible; }
.kfs-sheet-root:not([data-open]) .kfs-sheet { transition: transform .42s cubic-bezier(.7, 0, .84, 0), visibility 0s linear .42s; }
.kfs-grip { width: 40px; height: 5px; border-radius: 3px; background: #d4d4d4; margin: 12px auto 0; }
.kfs-sheet-h { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 4vw, 48px); background: var(--x-raised); border-bottom: 1px solid var(--line); z-index: 1; }
.kfs-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--x-raised); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.kfs-x:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
.kfs-sheet-b { padding: clamp(24px, 4vw, 48px); }
@media (max-width: 900px) {
.kfs-row { padding: 28px 0; row-gap: 14px; }
.kfs-row dt, .kfs-row dd { grid-column: 1 / -1; }
.kfs-row dd { gap: 20px 32px; }
.kfs-fig b { font-size: 52px; }
.kfs-fig em { font-size: 14px; }
.kfs-sheet { max-height: 90svh; border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
.kfs-sheet, .kfs-back { transition: none !important; }
}