Files
Claude 345ee4a2bd dark tokens: home, /slack, /skills, /machines, /brand, /tag, /bot, /hsm, /press, /comparison, /iro, /koe, /koma
- Home: product mockups stay dark; their green/red diff lines, POST labels and Posted badge
  keep the same colours, written as the rgb Hanzo's color-mix() resolves to in dark; the
  GitHub mark on its dark tile uses var(--foreground).
- /tag, /brand: labels on light chips and the Hanzo White sample use --neutral-600 /
  --x-on-ink / --primary-foreground; swatch colours unchanged.
- /bot, /hsm: dimmed names use --text-tertiary instead of white at 30%.
- /comparison, /iro, /koe, /koma: secondary lines in dark rooms use --muted-foreground.
- /slack, /skills, /machines, /hsm, /brand, /press: selected tabs and pills drawn by a
  sibling or ::before; the selected element now carries the same colour in dark.
Every rule is under html:not(.light): light mode is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P5YBdwj33XByFVTvu9bfci
2026-11-08 14:05:55 +00:00

63 lines
5.3 KiB
CSS

/* Iro (ir-): the headline left of the square, then the resolving canvas */
.ir-head { width: min(44%, 560px); }
.ir-stage { padding: 0; }
.ir-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #171717, #0a0a0a 70%); }
.ir-frame::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 32px 32px; }
.ir-pic { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(88cqw, calc((100cqh - 112px) * var(--r))); aspect-ratio: var(--r); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -20px rgba(0, 0, 0, .8); background: #000; }
.ir-pic canvas, .ir-pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.ir-pic img { object-fit: cover; }
.js .ir-pic img { opacity: 0; transition: opacity 1.1s var(--ease); }
.js .ir-pic img[data-on] { opacity: 1; }
.ir-tag { position: absolute; margin: 0; z-index: 2; padding: 6px 9px; border-radius: 6px; background: rgba(10, 10, 10, .72); color: #d4d4d4; }
.ir-tl { top: 14px; left: 14px; }
.ir-bl { bottom: 14px; left: 14px; }
/* round 2: the step count never re-wraps the line, the window fits the screen, the tags sit off the picture on phones */
.ir-bl .ir-n { display: inline-block; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.ir-tag { white-space: nowrap; }
.ir-frame { container-type: size; aspect-ratio: auto; width: 100%; height: max(420px, min(calc(100svh - 330px), 560px)); }
.ir-bl .ir-cfg { display: inline; min-width: 0; }
/* phones: a 4:5 window leaves room above and below the picture for both tags, and the CFG reading takes its own line
(never cut at the window's edge, never over the picture) */
@media (max-width: 899px) {
.ir-frame { height: auto; aspect-ratio: 4 / 5; }
.ir-pic { width: min(88cqw, calc((100cqh - 150px) * var(--r))); }
.ir-tag { font-size: 11px; letter-spacing: .08em; }
.ir-bl .ir-cfg { display: block; text-align: left; }
}
.ir-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ir-play { min-width: 76px; }
.ir-range { flex: 1 1 160px; display: flex; align-items: center; min-height: 36px; }
.ir-range input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; --f: 50%; }
.ir-range input::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(90deg, #fafafa var(--f), rgba(255, 255, 255, .2) var(--f)); }
.ir-range input::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.ir-range input::-moz-range-progress { height: 4px; border-radius: 999px; background: #fafafa; }
.ir-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fafafa; border: 0; transition: transform .15s cubic-bezier(.16, 1, .3, 1); }
.ir-range input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fafafa; border: 0; }
.ir-range input:active::-webkit-slider-thumb { transform: scale(1.15); }
.ir-range input:focus-visible { outline: 2px solid #fafafa; outline-offset: 4px; border-radius: 6px; }
.ir-asp { margin-left: auto; }
@media (max-width: 900px) {
.ir-head { width: auto; }
.ir-tag { padding: 5px 7px; }
.ir-asp { margin-left: 0; }
.ir-range { flex-basis: 100%; order: 3; }
}
/* chapters and the fits tile: the flow frozen at its own step */
.ir-grain canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.cr-art.ir-grain canvas { transform: translate(var(--x), var(--y)) scale(var(--z)); }
/* the fits rows run straight into the studio map, no dead paper between */
.lv:has(> [data-hero=iro]) .cr-fits { padding-bottom: 58px; }
.lv:has(> [data-hero=iro]) .cr-fits + .cr-map { padding-top: 58px; }
/* the chapter rail answers hover too: the hairline beside the hovered chapter draws in ink */
.lv:has(> [data-hero=iro]) .lv-ch-rail button { position: relative; }
.lv:has(> [data-hero=iro]) .lv-ch-rail button::before { content: ''; position: absolute; left: -18px; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: #0a0a0a; transform: scaleY(0); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) { .lv:has(> [data-hero=iro]) .lv-ch-rail button:hover::before { transform: scaleY(1); } }
/* dark (docs/DARK-MODE.md): the rail's hover hairline draws in Hanzo's ink */
html:not(.light) .lv:has(> [data-hero=iro]) .lv-ch-rail button::before { background: var(--foreground); }
/* dark: the shared Creative.css draws these two headings in #0a0a0a in both modes; on this page they take Hanzo's
foreground in dark until the shared file is converted */
html:not(.light) .lv:has(> .lv-stage[data-hero=iro]) :is(.cr-caps-h, .cr-fits-list h3) { color: var(--foreground); }
html:not(.light) .lv:has(> .lv-stage[data-hero=iro]) .cr-fit-x { color: var(--muted-foreground); }
html:not(.light) .lv:has(> .lv-stage[data-hero=iro]) :is(.cr-fits-list, .cr-fits-list li) { border-color: var(--border); }