@cameronsjo/artificer 0.25.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +14 -12
  2. package/dist/artificer-chromium-dark.zip +0 -0
  3. package/dist/artificer-chromium-light.zip +0 -0
  4. package/dist/artificer-firefox.zip +0 -0
  5. package/package.json +5 -1
  6. package/reference/SKILL.md +30 -24
  7. package/src/artificer-editorial.css +3 -1
  8. package/src/artificer-sploot.js +303 -0
  9. package/src/artificer-texture.css +129 -23
  10. package/src/artificer-whimsy.css +209 -30
  11. package/src/artificer-whimsy.js +227 -5
  12. package/src/artificer.css +334 -117
  13. package/src/assets/app-icon-1024.png +0 -0
  14. package/src/assets/app-icon.svg +1 -0
  15. package/src/assets/favicon-16.png +0 -0
  16. package/src/assets/favicon-180.png +0 -0
  17. package/src/assets/favicon-32.png +0 -0
  18. package/src/assets/favicon-48.png +0 -0
  19. package/src/assets/favicon-512.png +0 -0
  20. package/src/assets/favicon-legacy.svg +5 -0
  21. package/src/assets/favicon.ico +0 -0
  22. package/src/assets/favicon.svg +1 -5
  23. package/src/assets/fonts/bricolage-grotesque-variable.woff2 +0 -0
  24. package/src/assets/fonts/jetbrains-mono-blocks.woff2 +0 -0
  25. package/src/assets/fonts/recursive-variable.woff2 +0 -0
  26. package/src/assets/og-image.png +0 -0
  27. package/src/assets/og-image.svg +14 -20
  28. package/src/primitives.json +77 -4
  29. package/src/print.css +4 -3
  30. package/src/tokens.json +4 -4
  31. package/types/sploot.d.ts +48 -0
  32. package/src/assets/fonts/ia-writer-quattro-s-400-italic.woff2 +0 -0
  33. package/src/assets/fonts/ia-writer-quattro-s-400.woff2 +0 -0
  34. package/src/assets/fonts/ia-writer-quattro-s-700-italic.woff2 +0 -0
  35. package/src/assets/fonts/ia-writer-quattro-s-700.woff2 +0 -0
  36. package/src/assets/fonts/ia-writer-quattro-v-400-italic.woff2 +0 -0
  37. package/src/assets/fonts/ia-writer-quattro-v-400.woff2 +0 -0
@@ -1,5 +1,5 @@
1
1
  /* ═══════════════════════════════════════════════════════════════════════════
2
- ARTIFICER · Texture · v0.12.0 (the third — and ceiling — sanctioned carve)
2
+ ARTIFICER · Texture · v0.12.0 → drafting v0.28 (the third — and ceiling — sanctioned carve)
3
3
  ─────────────────────────────────────────────────────────────────────────
4
4
  Artificer's surfaces are flat solid fills by doctrine. This file is the
5
5
  bounded place that relaxes that — material honesty, not decoration. Read
@@ -28,26 +28,30 @@
28
28
 
29
29
  :root {
30
30
  /* ── knobs ─────────────────────────────────────────────────────────────── */
31
- --tex-dot-gap: 14px; /* dot-matrix lattice pitch. Sweet spot 14; 12–16. */
32
- --tex-fiber-strength: 0.5; /* document-fiber intensity (0–1). */
33
- --tex-paper-grain: 0.22; /* page-grain level. 0.22 = Faint · 0.45 = Whisper. */
34
- --tex-line-ink: var(--border); /* deco lines are token ink, never raw color. */
35
- --tex-line-a: 70%; /* line ink alpha (dark). */
31
+ --tex-dot-gap: 14px; /* @kind spacing */ /* dot-matrix lattice pitch. Sweet spot 14; 12–16. */
32
+ --tex-fiber-strength: 0.5; /* @kind other */ /* document-fiber intensity (0–1). */
33
+ --tex-paper-grain: 0.22; /* @kind other */ /* page-grain level. 0.22 = Faint · 0.45 = Whisper (drawn ×0.71 on ink). */
34
+ --tex-line-ink: var(--border); /* @kind color */ /* deco lines are token ink, never raw color. */
35
+ --tex-line-a: 70%; /* @kind other */ /* line ink alpha (dark). */
36
+ --tex-grid-minor: 8px; /* @kind spacing */ /* drafting grid minor pitch = --s-sm. */
37
+ --tex-grid-major: 40px; /* @kind spacing */ /* drafting grid major pitch (5 minors). */
38
+ --tex-ruled-lh: 1.7em; /* @kind other */ /* ledger line pitch; text + rules share it. */
39
+ --tex-perf-ground: var(--bg); /* @kind color */ /* what the perforation notches punch through to. */
36
40
 
37
41
  /* Desaturated fiber noise — the paper/ink tooth. No hue, blended into surface. */
38
- --tex-noise-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
42
+ --tex-noise-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); /* @kind other */
39
43
  /* Page-grain speckle — noise baked as ALPHA so it shows with normal
40
44
  compositing (blend-mode independent, renders reliably). Light grains on
41
45
  ink; the light-theme block below swaps to ink grains on paper. */
42
- --tex-speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.1' intercept='-0.45'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
46
+ --tex-speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.1' intercept='-0.45'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"); /* @kind other */
43
47
  }
44
48
 
45
49
  /* Light (paper) retunes — the lines read too strong on cream with the dark
46
50
  --border at full alpha and pick up a bluish cast; ride the border ink softer.
47
51
  The page-grain speckle inverts to ink grains so it shows on paper. */
48
52
  :root[data-theme="light"] {
49
- --tex-line-a: 68%;
50
- --tex-speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.12 0 0 0 0 0.11 0 0 0 0 0.20 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.1' intercept='-0.45'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
53
+ --tex-line-a: 68%; /* @kind other */
54
+ --tex-speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.12 0 0 0 0 0.11 0 0 0 0 0.20 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.1' intercept='-0.45'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"); /* @kind other */
51
55
  }
52
56
 
53
57
  /* ═══ 1 · GRAIN ═══════════════════════════════════════════════════════════
@@ -91,6 +95,13 @@
91
95
  opacity: var(--tex-paper-grain);
92
96
  }
93
97
  .tex-paper--whisper { --tex-paper-grain: 0.45; }
98
+ /* Whisper is capped lower on ink: at 0.45 the light speckle on a dark floor
99
+ read as dust/static, so the ink floor draws it at ~0.32 (0.45 × 0.71).
100
+ Paper keeps the full level — ink grains on cream read as tooth. Scaled on
101
+ the pseudo-element so no new custom property is declared per theme. */
102
+ .tex-paper--whisper::before { opacity: calc(var(--tex-paper-grain) * 0.71); }
103
+ :root[data-theme="light"] .tex-paper--whisper::before { opacity: var(--tex-paper-grain); }
104
+ @media (prefers-color-scheme: light) { :root:not([data-theme]) .tex-paper--whisper::before { opacity: var(--tex-paper-grain); } }
94
105
 
95
106
  /* ═══ 3 · DECO LINE-TEXTURE (ink, not material) ═══════════════════════════
96
107
  Hatch / cross / flute / pinstripe — drawn ONLY from token ink, so they add
@@ -114,20 +125,24 @@
114
125
  repeating-linear-gradient(45deg, transparent 0 7px, color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 7px 8px),
115
126
  repeating-linear-gradient(-45deg, transparent 0 7px, color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 7px 8px);
116
127
  }
117
- /* flute — paired vertical hairlines, the speakeasy column */
128
+ /* flute — paired vertical hairlines, the speakeasy column. 28px period, a
129
+ 4px pair gap: wide enough that the doubling reads at a glance (the old
130
+ 17px/2px pitch was indistinguishable from pinstripe). */
118
131
  .tex-line--flute::after {
119
132
  background-image: repeating-linear-gradient(90deg,
120
- transparent 0 13px,
121
- color-mix(in oklab, var(--fg) 9%, transparent) 13px 14px,
122
- transparent 14px 16px,
123
- color-mix(in oklab, var(--fg) 9%, transparent) 16px 17px);
133
+ transparent 0 20px,
134
+ color-mix(in oklab, var(--fg) 9%, transparent) 20px 21px,
135
+ transparent 21px 25px,
136
+ color-mix(in oklab, var(--fg) 9%, transparent) 25px 26px,
137
+ transparent 26px 28px);
124
138
  }
125
139
  :root[data-theme="light"] .tex-line--flute::after {
126
140
  background-image: repeating-linear-gradient(90deg,
127
- transparent 0 13px,
128
- color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 13px 14px,
129
- transparent 14px 16px,
130
- color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 16px 17px);
141
+ transparent 0 20px,
142
+ color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 20px 21px,
143
+ transparent 21px 25px,
144
+ color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 25px 26px,
145
+ transparent 26px 28px);
131
146
  }
132
147
  /* pinstripe — even single hairlines, tailoring not architecture */
133
148
  .tex-line--pinstripe::after {
@@ -139,15 +154,106 @@
139
154
  /* ═══ 4 · RAISED (outer-glow depth) ═══════════════════════════════════════
140
155
  The one sanctioned elevation beyond the functional --shadow-overlay. The
141
156
  card FACE stays flat (no interior gradient — that "uniform glow" look is a
142
- canonical no); depth is a soft halo bleeding to the bottom-right, entirely
143
- outside the border. A raised tile lit from outside. */
157
+ canonical no); depth is a soft halo falling straight down, entirely outside
158
+ the border — lit from above, the same light as the app icon (v0.28; was
159
+ bottom-right). */
144
160
  .tex-raised {
145
- box-shadow: 4px 6px 14px 1px rgba(0,0,0,.20), 9px 12px 30px 2px rgba(0,0,0,.14);
161
+ box-shadow: 0 6px 14px 1px rgba(0,0,0,.20), 0 14px 30px 2px rgba(0,0,0,.14);
146
162
  }
147
163
  :root[data-theme="light"] .tex-raised {
148
- box-shadow: 4px 6px 14px 1px rgba(32,32,62,.13), 9px 12px 30px 2px rgba(32,32,62,.09);
164
+ box-shadow: 0 6px 14px 1px rgba(32,32,62,.13), 0 14px 30px 2px rgba(32,32,62,.09);
149
165
  }
150
166
 
167
+ /* ═══ 5 · DRAFTING (v0.28) — the maker's bench ════════════════════════════
168
+ Six textures from the drafting table the compass icon comes off. Same
169
+ bounds as everything above: token ink only, no hue, no motion, never on
170
+ data/status/errors, one per surface.
171
+ .tex-grid engineering paper — tool canvases, layout previews
172
+ .tex-line--arc scribed compass arcs from a corner — empty states
173
+ .tex-line--ray deco sunburst from bottom-centre — ONE launch moment
174
+ .tex-ruled ledger rules locked to the text — notes, journals
175
+ .tex-perf a perforated tear line — receipt / ticket cards
176
+ .tex-deboss pressed-in display type — decorative ONLY */
177
+
178
+ /* drafting grid — minor on the 8px spacing unit, major every 5 minors. */
179
+ .tex-grid { position: relative; isolation: isolate; }
180
+ .tex-grid::after {
181
+ content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
182
+ background-image:
183
+ linear-gradient(to right, color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 1px, transparent 1px),
184
+ linear-gradient(to bottom, color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 1px, transparent 1px),
185
+ linear-gradient(to right, color-mix(in oklab, var(--tex-line-ink) calc(var(--tex-line-a) * .45), transparent) 1px, transparent 1px),
186
+ linear-gradient(to bottom, color-mix(in oklab, var(--tex-line-ink) calc(var(--tex-line-a) * .45), transparent) 1px, transparent 1px);
187
+ background-size:
188
+ var(--tex-grid-major) var(--tex-grid-major), var(--tex-grid-major) var(--tex-grid-major),
189
+ var(--tex-grid-minor) var(--tex-grid-minor), var(--tex-grid-minor) var(--tex-grid-minor);
190
+ background-position: -1px -1px;
191
+ }
192
+ :root[data-theme="light"] .tex-grid::after { opacity: 0.8; }
193
+
194
+ /* scribed arcs — concentric compass arcs swung from the bottom-right corner,
195
+ masked so they fade before reaching the content. Composes with .tex-line. */
196
+ .tex-line--arc::after {
197
+ background-image: repeating-radial-gradient(circle at 100% 100%,
198
+ transparent 0 17px,
199
+ color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 17px 18px);
200
+ -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 30%, transparent 85%);
201
+ mask-image: radial-gradient(circle at 100% 100%, #000 30%, transparent 85%);
202
+ }
203
+
204
+ /* deco sunburst — hairline rays fanned from bottom-centre. A single-moment
205
+ texture (release banner, launch hero): never a repeated surface. */
206
+ .tex-line--ray::after {
207
+ background-image: repeating-conic-gradient(from -90deg at 50% 100%,
208
+ color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 0 .5deg,
209
+ transparent .5deg 7.5deg);
210
+ -webkit-mask-image: radial-gradient(ellipse 70% 95% at 50% 100%, #000 25%, transparent 80%);
211
+ mask-image: radial-gradient(ellipse 70% 95% at 50% 100%, #000 25%, transparent 80%);
212
+ }
213
+
214
+ /* ledger rule — the element owns its line-height, and each rule sits at the
215
+ bottom of the em box: (line-height + 1em) / 2 from the top of every line
216
+ box, just under the baseline (the baseline sits 0.33–0.36em below the
217
+ line box's middle for Bricolage Grotesque, Recursive and JetBrains Mono,
218
+ so the rule at +0.5em clears it). Rules start at the content box, so
219
+ padding never shifts them; local attachment keeps them under the text when
220
+ a <textarea> scrolls. Set the font-size on the element itself. */
221
+ .tex-ruled {
222
+ line-height: var(--tex-ruled-lh);
223
+ background-image: linear-gradient(to bottom,
224
+ transparent 0 calc((var(--tex-ruled-lh) + 1em) / 2 - 1px),
225
+ color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 0 calc((var(--tex-ruled-lh) + 1em) / 2),
226
+ transparent 0);
227
+ background-size: 100% var(--tex-ruled-lh);
228
+ background-origin: content-box;
229
+ background-attachment: local;
230
+ }
231
+
232
+ /* perforation — a tear line between two padded sections of a card. The card
233
+ needs overflow: hidden and no side padding on the line itself; the notches
234
+ punch through to --tex-perf-ground (set it to the card's backdrop). */
235
+ .tex-perf {
236
+ height: 16px; margin: 0 -1px; border: 0;
237
+ background:
238
+ radial-gradient(circle at 0 50%, var(--tex-perf-ground) 7px, var(--border) 7.5px 8.5px, transparent 9px) left / 50% 100% no-repeat,
239
+ radial-gradient(circle at 100% 50%, var(--tex-perf-ground) 7px, var(--border) 7.5px 8.5px, transparent 9px) right / 50% 100% no-repeat,
240
+ repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px) center / calc(100% - 32px) 1px no-repeat;
241
+ }
242
+
243
+ /* letterpress — display type pressed into its surface: the text IS the
244
+ surface color, drawn by a 1px light edge below and a 1px shadow edge above.
245
+ Below text contrast BY DESIGN — decorative only (colophons, empty-page
246
+ watermarks). Always aria-hidden or duplicated in readable text. */
247
+ .tex-deboss {
248
+ color: var(--bg);
249
+ text-shadow: 0 1px 0 rgba(255,255,255,.07), 0 -1px 0 rgba(0,0,0,.55);
250
+ }
251
+ :root[data-theme="light"] .tex-deboss {
252
+ color: var(--bg-overlay);
253
+ text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 -1px 0 rgba(32,32,62,.18);
254
+ }
255
+ @media (forced-colors: active) { .tex-deboss { color: GrayText; text-shadow: none; } }
256
+
151
257
  /* ═══ Reduced-motion ══════════════════════════════════════════════════════
152
258
  Texture is static by design, so there is nothing to stop. Page-grain travels
153
259
  with native scroll only — it has no animation. Documented for completeness. */
@@ -15,7 +15,7 @@
15
15
  oklch at the palette's own lightness + chroma. The "normal RGB" look,
16
16
  kept in-family. Dial --whimsy-c up only when you mean it.
17
17
  • .whimsy--brand — cycles through Artificer's REAL semantic tokens
18
- (gold → rose → brand-purple → steel → green → gold). It reads the live
18
+ (gold → rose → brand-purple-bright → steel → gold). It reads the live
19
19
  CSS vars, so it tracks light/dark for free and is unmistakably ours.
20
20
  More tonal variation than the spectrum by design — the brand colors
21
21
  aren't uniform lightness, so the brand cycle breathes.
@@ -32,15 +32,15 @@
32
32
 
33
33
  :root {
34
34
  /* The knobs. Override on a scope to retune locally. */
35
- --whimsy-l: 0.80; /* lightness of the spectrum (dark mode) */
36
- --whimsy-c: 0.115; /* chroma — palette-muted. ~0.20 = vivid. */
37
- --whimsy-angle: 100deg; /* gradient direction across the text */
38
- --whimsy-speed: 7s; /* one full hue cycle. Calm, not frantic. */
39
- --whimsy-bob: 2.6s; /* sine-wave bob period (wave variant) */
40
- --whimsy-rise: 0.16em; /* sine-wave bob amplitude */
41
- --whimsy-settle-speed: 150s; /* glacial rest cycle — ~2.5min, sub-perceptual */
42
- --whimsy-dissolve-hold: 800ms; /* graceful exit: fully-lit before receding */
43
- --whimsy-dissolve-fade: 2000ms; /* graceful exit: opacity fade-out duration */
35
+ --whimsy-l: 0.80; /* @kind other */ /* lightness of the spectrum (dark mode) */
36
+ --whimsy-c: 0.115; /* @kind other */ /* chroma — palette-muted. ~0.20 = vivid. */
37
+ --whimsy-angle: 100deg; /* @kind other */ /* gradient direction across the text */
38
+ --whimsy-speed: 7s; /* @kind other */ /* one full hue cycle. Calm, not frantic. */
39
+ --whimsy-bob: 2.6s; /* @kind other */ /* sine-wave bob period (wave variant) */
40
+ --whimsy-rise: 0.16em; /* @kind other */ /* sine-wave bob amplitude */
41
+ --whimsy-settle-speed: 150s; /* @kind other */ /* glacial rest cycle — ~2.5min, sub-perceptual */
42
+ --whimsy-dissolve-hold: 800ms; /* @kind other */ /* graceful exit: fully-lit before receding */
43
+ --whimsy-dissolve-fade: 2000ms; /* @kind other */ /* graceful exit: opacity fade-out duration */
44
44
 
45
45
  /* Burnished spectrum — hue stops walk Artificer's own brand hues and loop
46
46
  (first == last so the flow is seamless). Built lazily from the knobs,
@@ -58,33 +58,48 @@
58
58
  );
59
59
 
60
60
  /* Brand palette — the system's real tokens in motion. Auto-tracks theme
61
- because it references the live vars. First == last so the loop is seamless. */
61
+ because it references the live vars. First == last so the loop is seamless.
62
+ v0.28: the FOREGROUND purple (-bright) replaces the deep surface purple,
63
+ which sat near 2:1 on dark (1.67:1) and made the word go muddy mid-flow;
64
+ apothecary green (3.39:1) leaves the loop too: below the 4.5:1 text floor on dark. */
62
65
  --whimsy-gradient-brand: linear-gradient(
63
66
  var(--whimsy-angle),
64
- var(--accent, #dbbb6f), /* gold */
65
- var(--attention, #c4808a), /* rose */
66
- var(--brand-purple, #5a3a9a), /* purple */
67
- var(--steel, #b8cad4), /* steel */
68
- var(--success, #4a8a5e), /* apothecary */
69
- var(--accent, #dbbb6f) /* → gold */
67
+ var(--accent, #dbbb6f), /* gold */
68
+ var(--attention, #c4808a), /* rose */
69
+ var(--brand-purple-bright, #b095e0), /* purple */
70
+ var(--steel, #b8cad4), /* steel */
71
+ var(--accent, #dbbb6f) /* → gold */
70
72
  );
71
73
 
74
+ /* Night ground for .whimsy-sky (#501) — derived from tokens, no new hex.
75
+ scripts/icon-recipe.mjs reads these two declarations and resolves them
76
+ (var() or an oklab color-mix) for the app icon, so keep them in one of
77
+ those two forms. A deep night at the zenith (--bg-inactive
78
+ with a touch of the deepest brand purple) that ends exactly on --bg, so
79
+ the band meets the page with no seam (owner ruling 2026-09-27, from the
80
+ Gatehouse header: the first, brighter purple read too loud). --fg holds
81
+ 11.2:1 or better across the whole band. */
82
+ --whimsy-night-top: color-mix(in oklab, var(--bg-inactive) 76%, var(--brand-purple-fill)); /* @kind color */
83
+ --whimsy-night-bottom: var(--bg); /* @kind color */
84
+ --whimsy-sky-speed: 40s; /* @kind other */ /* one sky cycle — slow drift, not a sweep */
85
+ --whimsy-sky-opacity: 0.1; /* @kind other */ /* flowing field over the ground — a faint tint, never a fill */
86
+
72
87
  /* Sine-wave mask for the rainbow rule (one period = 64px). */
73
- --whimsy-wave-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='22' viewBox='0 0 64 22'><path d='M0 11 Q 8 2 16 11 T 32 11 T 48 11 T 64 11' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>");
88
+ --whimsy-wave-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='22' viewBox='0 0 64 22'><path d='M0 11 Q 8 2 16 11 T 32 11 T 48 11 T 64 11' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>"); /* @kind other */
74
89
  }
75
90
 
76
91
  /* Light mode (ivory paper) — the spectrum must darken to read on cream.
77
92
  Same hues, lower lightness, a touch more chroma so it stays present. */
78
93
  :root[data-theme="light"],
79
94
  :root:not([data-theme]) {
80
- --whimsy-l: 0.80;
95
+ --whimsy-l: 0.80; /* @kind other */
81
96
  }
82
97
  :root[data-theme="light"] {
83
- --whimsy-l: 0.52;
84
- --whimsy-c: 0.135;
98
+ --whimsy-l: 0.52; /* @kind other */
99
+ --whimsy-c: 0.135; /* @kind other */
85
100
  }
86
101
  @media (prefers-color-scheme: light) {
87
- :root:not([data-theme]) { --whimsy-l: 0.52; --whimsy-c: 0.135; }
102
+ :root:not([data-theme]) { --whimsy-l: 0.52; /* @kind other */ --whimsy-c: 0.135; /* @kind other */ }
88
103
  }
89
104
 
90
105
  /* Silver inverts on cream: warm graphite/ink so it reads on the paper bg,
@@ -162,6 +177,13 @@
162
177
  Works on .whimsy text, .whimsy--wave, and .whimsy-rule alike (they all read
163
178
  --whimsy-gradient). Brand mode ignores --whimsy-c/l — it uses the tokens. */
164
179
  .whimsy--brand { --whimsy-gradient: var(--whimsy-gradient-brand); }
180
+ /* Signature — gold + purple only, the pair the tokens call the personal
181
+ signature. Narrower than brand: reads as Cameron's mark, not a rainbow.
182
+ For the wordmark and the footer; same display-only rules as all whimsy. */
183
+ .whimsy--signature {
184
+ --whimsy-gradient: linear-gradient(var(--whimsy-angle),
185
+ var(--accent), var(--brand-purple-bright), var(--accent));
186
+ }
165
187
 
166
188
  /* ─── Silver: a near-neutral metal sheen — the most restrained whimsy ──────
167
189
  Black/white/grey/silver on dark; warm graphite on cream (text must contrast
@@ -240,13 +262,13 @@
240
262
 
241
263
  /* Flow off — freeze the hue on a held slice. Gradient stays, motion stops. */
242
264
  .whimsy--no-flow.whimsy,
243
- .whimsy--no-flow.whimsy-rule { animation: none; background-position: 30% 50%; }
265
+ .whimsy--no-flow.whimsy-rule { animation: none; background-position: 150% 50%; }
244
266
  .whimsy--no-flow.whimsy--wave > .whimsy-char {
245
267
  animation-name: whimsy-bob; /* keep the bob, drop the flow */
246
268
  animation-duration: var(--whimsy-bob);
247
269
  animation-timing-function: var(--ease);
248
270
  animation-iteration-count: infinite;
249
- background-position: 30% 50%;
271
+ background-position: 150% 50%;
250
272
  }
251
273
  /* Bob off — wave chars hold still; the hue keeps flowing. */
252
274
  .whimsy--no-bob.whimsy--wave > .whimsy-char {
@@ -273,7 +295,7 @@
273
295
  .whimsy--settled.whimsy-rule,
274
296
  .whimsy--settled .whimsy-char {
275
297
  animation: none !important;
276
- background-position: 30% 50% !important;
298
+ background-position: 150% 50% !important;
277
299
  }
278
300
  .whimsy--settled .whimsy-char { transform: none !important; }
279
301
 
@@ -301,7 +323,7 @@
301
323
  .whimsy--glacial.whimsy-rule,
302
324
  .whimsy--glacial .whimsy-char {
303
325
  animation: none !important;
304
- background-position: 30% 50%; /* hold a pleasant slice of spectrum */
326
+ background-position: 150% 50%; /* hold the gold-centred slice (amber → gold → green) */
305
327
  }
306
328
  .whimsy--wave > .whimsy-char { transform: none !important; }
307
329
  }
@@ -346,8 +368,8 @@
346
368
  }
347
369
  .whimsy-focus.whimsy--brand::after {
348
370
  background: conic-gradient(from var(--whimsy-spin),
349
- var(--accent), var(--attention), var(--brand-purple),
350
- var(--steel), var(--success), var(--accent));
371
+ var(--accent), var(--attention), var(--brand-purple-bright),
372
+ var(--steel), var(--accent));
351
373
  }
352
374
  .whimsy-focus:focus-visible::after,
353
375
  .whimsy-focus:hover::after {
@@ -371,7 +393,7 @@
371
393
 
372
394
  /* Tiling sine for rainbow underlines — one clean period per 40px; start/end at
373
395
  the same phase so repeat-x butts seamlessly. */
374
- :root { --whimsy-sine: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'><path d='M0 5 Q 10 1.5 20 5 T 40 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>"); }
396
+ :root { --whimsy-sine: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'><path d='M0 5 Q 10 1.5 20 5 T 40 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>"); /* @kind other */ }
375
397
 
376
398
  /* .whimsy--gold — a metal palette, cousin of .whimsy--silver. Slow (16s) so it
377
399
  reads as near-static metal; add .whimsy--no-flow for a still gold fill. Metal
@@ -419,5 +441,162 @@
419
441
  to { -webkit-mask-position: -40px center, center; mask-position: -40px center, center; }
420
442
  }
421
443
  @media (prefers-reduced-motion: reduce) {
422
- .whimsy-underline::after { animation: none !important; background-position: 30% 50% !important; }
444
+ .whimsy-underline::after { animation: none !important; background-position: 150% 50% !important; }
445
+ }
446
+
447
+ /* ═══ Night sky — the backdrop form of whimsy (#501) ══════════════════════════
448
+ A slow flowing brand field over a night ground, with a seeded starfield
449
+ (Whimsy.starfield / data-whimsy="sky"). Rule #5 ("display + bold only")
450
+ governs gradient TEXT; the sky is a non-text backdrop, so it lives by its
451
+ own bounds instead:
452
+ • only behind a header or hero band — never behind data, status, errors,
453
+ or body copy; foreground text stays on solid ground (--fg > 9:1)
454
+ • the sky and the wordmark it frames are ONE whimsy moment (rule #2) and
455
+ rest on one timer (rule #7 — Whimsy.starfield arms it)
456
+ • dark only: light mode hides the field and stars, leaving plain --bg
457
+ • never stacked with a texture (texture rule #2)
458
+ Markup: <header data-whimsy="sky"> … <a class="wordmark whimsy whimsy--brand">
459
+ The stars layer is aria-hidden; the sky adds nothing to the a11y tree. */
460
+ .whimsy-sky {
461
+ position: relative;
462
+ isolation: isolate;
463
+ overflow: hidden;
464
+ }
465
+ .whimsy-sky::before,
466
+ .whimsy-sky::after {
467
+ content: "";
468
+ position: absolute;
469
+ inset: 0;
470
+ z-index: var(--z-base);
471
+ pointer-events: none;
472
+ }
473
+ /* The night ground. */
474
+ .whimsy-sky::before {
475
+ background: linear-gradient(180deg, var(--whimsy-night-top), var(--whimsy-night-bottom));
476
+ }
477
+ /* The flowing field — the brand cycle, faded out toward the bottom so the
478
+ horizon stays quiet. Unlike text whimsy it drifts by TRANSFORM, not
479
+ background-position: the layer is two sky-widths wide with one gradient
480
+ tile per sky-width, and slides left by one tile per cycle. A transform
481
+ runs on the compositor; a background-position animation repaints this
482
+ whole band every frame, which is too much for a long-lived backdrop. */
483
+ .whimsy-sky::after {
484
+ right: auto;
485
+ width: 200%;
486
+ background-image: var(--whimsy-gradient-brand);
487
+ background-size: 50% 100%;
488
+ background-repeat: repeat;
489
+ opacity: var(--whimsy-sky-opacity);
490
+ animation: whimsy-sky-drift var(--whimsy-sky-speed) linear infinite;
491
+ /* A mask reads alpha only; --fg is simply an opaque token. */
492
+ -webkit-mask-image: linear-gradient(180deg, var(--fg), transparent);
493
+ mask-image: linear-gradient(180deg, var(--fg), transparent);
494
+ }
495
+ @keyframes whimsy-sky-drift {
496
+ from { transform: translateX(0); }
497
+ to { transform: translateX(-50%); } /* exactly one tile → seamless loop */
498
+ }
499
+ .whimsy-sky__stars {
500
+ position: absolute;
501
+ inset: 0;
502
+ z-index: var(--z-base);
503
+ pointer-events: none;
504
+ }
505
+ /* Paint order at --z-base follows the box tree: ::before (ground), then the
506
+ stars layer, then ::after (field). The field washing over the stars is
507
+ deliberate — one tint unifies the sky. Content rides above all three. */
508
+ .whimsy-sky > :not(.whimsy-sky__stars) {
509
+ position: relative;
510
+ z-index: var(--z-raised);
511
+ }
512
+
513
+ /* A star — the element holds position and its base opacity; ::before draws
514
+ the tinted dot and twinkles. Tints are token roles softened toward --fg,
515
+ so the field reads as starlight, not as status colors. */
516
+ .whimsy-star {
517
+ position: absolute;
518
+ width: calc(2 * var(--star-r, 1.7px));
519
+ height: calc(2 * var(--star-r, 1.7px));
520
+ transform: translate(-50%, -50%);
521
+ opacity: var(--star-o, 0.6);
522
+ }
523
+ .whimsy-star::before {
524
+ content: "";
525
+ position: absolute;
526
+ inset: 0;
527
+ border-radius: var(--radius-pill);
528
+ background: color-mix(in oklab, var(--star-tint, var(--accent)) 70%, var(--fg));
529
+ animation: whimsy-twinkle var(--star-period, 6s) var(--ease) infinite;
530
+ animation-delay: var(--d, 0s);
531
+ }
532
+ /* A sparkle — a four-point star over a soft glow. The glow is the element's
533
+ own background; the star shape is ::before, clipped, so the clip never
534
+ cuts the glow. */
535
+ .whimsy-star--sparkle {
536
+ background: radial-gradient(closest-side,
537
+ color-mix(in oklab, var(--star-tint, var(--accent)) 45%, transparent),
538
+ transparent);
539
+ }
540
+ .whimsy-star--sparkle::before {
541
+ inset: 1px;
542
+ border-radius: 0;
543
+ clip-path: polygon(50% 0, 57.7% 42.3%, 100% 50%, 57.7% 57.7%,
544
+ 50% 100%, 42.3% 57.7%, 0 50%, 42.3% 42.3%);
545
+ }
546
+ /* Twinkle — opacity only, dipping to 65% of the star's base (the element's
547
+ opacity multiplies in). Constant keyframes on purpose: a var() inside
548
+ @keyframes keeps 48 animations off the compositor, and on WebKit that
549
+ measurably stalls the main thread. */
550
+ @keyframes whimsy-twinkle {
551
+ 0%, 100% { opacity: 1; }
552
+ 50% { opacity: 0.65; }
553
+ }
554
+
555
+ /* Settle — the sky rests with its wordmark (Whimsy.starfield arms one timer
556
+ that adds these to the sky, every star, and every .whimsy inside).
557
+ Glacial: the field drifts at --whimsy-settle-speed; stars hold at base.
558
+ Static: everything freezes. Compound selectors, !important, and the
559
+ reduced-motion list below all mirror the #221 pattern above. */
560
+ .whimsy-sky.whimsy--glacial::after {
561
+ animation-name: whimsy-sky-drift !important;
562
+ animation-duration: var(--whimsy-settle-speed) !important;
563
+ animation-timing-function: linear !important;
564
+ animation-iteration-count: infinite !important;
565
+ }
566
+ .whimsy-sky.whimsy--settled::after {
567
+ animation: none !important;
568
+ }
569
+ .whimsy-star.whimsy--glacial::before,
570
+ .whimsy-star.whimsy--settled::before {
571
+ animation: none !important;
572
+ }
573
+
574
+ /* Reduced motion freezes the whole sky: no drift, no twinkle. Every settle
575
+ compound is listed so its !important longhands tie on specificity and
576
+ this later block wins (#221). */
577
+ @media (prefers-reduced-motion: reduce) {
578
+ .whimsy-sky::after,
579
+ .whimsy-sky.whimsy--glacial::after,
580
+ .whimsy-sky.whimsy--settled::after,
581
+ .whimsy-star::before,
582
+ .whimsy-star.whimsy--glacial::before,
583
+ .whimsy-star.whimsy--settled::before {
584
+ animation: none !important;
585
+ }
586
+ }
587
+
588
+ /* Dark only — light mode hides the ground, the field, and the stars, and the
589
+ sky falls back to the plain page surface. Both light branches, mirroring
590
+ the light rules at the top of this file. */
591
+ :root[data-theme="light"] .whimsy-sky::before,
592
+ :root[data-theme="light"] .whimsy-sky::after,
593
+ :root[data-theme="light"] .whimsy-sky__stars {
594
+ display: none;
595
+ }
596
+ @media (prefers-color-scheme: light) {
597
+ :root:not([data-theme]) .whimsy-sky::before,
598
+ :root:not([data-theme]) .whimsy-sky::after,
599
+ :root:not([data-theme]) .whimsy-sky__stars {
600
+ display: none;
601
+ }
423
602
  }