hd-garden 0.9.3 → 0.10.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 (53) hide show
  1. package/app/components/SiteChrome.tsx +3 -17
  2. package/app/components/SiteHeader.tsx +3 -3
  3. package/app/garden-modules.d.ts +0 -6
  4. package/app/layout.tsx +1 -2
  5. package/app/lib/i18n.ts +2 -12
  6. package/app/sitemap.ts +0 -11
  7. package/app/styles/shell.css +0 -37
  8. package/docs/handbook/config.md +2 -59
  9. package/docs/handbook/en/config.md +2 -59
  10. package/package.json +1 -2
  11. package/scripts/build-content.mjs +1 -31
  12. package/scripts/handbook-facts.mjs +1 -2
  13. package/ui/garden/site-nav.mjs +0 -12
  14. package/vite.config.ts +3 -12
  15. package/app/bookshelf/[bookId]/page.tsx +0 -55
  16. package/app/bookshelf/load.mjs +0 -114
  17. package/app/bookshelf/load.ts +0 -16
  18. package/app/bookshelf/page.tsx +0 -52
  19. package/app/components/bookshelf/BookHub.tsx +0 -142
  20. package/app/components/bookshelf/Bookshelf.tsx +0 -128
  21. package/app/components/bookshelf/bookshelf.css +0 -1334
  22. package/app/components/bookshelf/catalog.mjs +0 -176
  23. package/app/components/bookshelf/catalog.ts +0 -27
  24. package/app/components/bookshelf/demo-data.ts +0 -93
  25. package/app/components/bookshelf/density.ts +0 -32
  26. package/app/components/bookshelf/engine.ts +0 -2773
  27. package/app/components/bookshelf/index.ts +0 -15
  28. package/app/components/bookshelf/model.ts +0 -16
  29. package/app/components/bookshelf/schema.mjs +0 -155
  30. package/app/components/bookshelf/schema.ts +0 -110
  31. package/app/components/bookshelf/types.ts +0 -89
  32. package/public/covers/accelerate.jpg +0 -0
  33. package/public/covers/clean-architecture.jpg +0 -0
  34. package/public/covers/clean-code.jpg +0 -0
  35. package/public/covers/continuous-delivery.jpg +0 -0
  36. package/public/covers/ddd.jpg +0 -0
  37. package/public/covers/ddia.jpg +0 -0
  38. package/public/covers/design-patterns.jpg +0 -0
  39. package/public/covers/eaa.jpg +0 -0
  40. package/public/covers/fundamentals-sa.jpg +0 -0
  41. package/public/covers/implementing-ddd.jpg +0 -0
  42. package/public/covers/lean-startup.jpg +0 -0
  43. package/public/covers/microservices.jpg +0 -0
  44. package/public/covers/mythical-man-month.jpg +0 -0
  45. package/public/covers/phoenix-project.jpg +0 -0
  46. package/public/covers/pragmatic-programmer.jpg +0 -0
  47. package/public/covers/refactoring.jpg +0 -0
  48. package/public/covers/release-it.jpg +0 -0
  49. package/public/covers/sre.jpg +0 -0
  50. package/public/covers/systems-performance.jpg +0 -0
  51. package/public/covers/tdd.jpg +0 -0
  52. package/public/covers/team-topologies.jpg +0 -0
  53. package/scripts/bookshelf-covers.mjs +0 -62
@@ -1,1334 +0,0 @@
1
- @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500&family=Noto+Serif+SC:wght@500;600&display=swap');
2
- /* tip: ux26-open-pages held-book-s10-ux26-20261028 — dual pages: cover palette shell + left title + right summary; keep ux25 frame/plate */
3
-
4
- /* ux14: kill :hover / expand lift while extracting — freeze resting rect */
5
- .bookshelf-demo .cover.is-extracting,
6
- .bookshelf-demo .cover.is-extracting:hover,
7
- .bookshelf-demo .spine.is-extracting,
8
- .bookshelf-demo .spine.is-extracting:hover,
9
- .bookshelf-demo .spine.is-extracting.is-expanded,
10
- .bookshelf-demo .spine.is-seat,
11
- .bookshelf-demo .spine.is-seat:hover,
12
- .bookshelf-demo .spine.is-seat:focus-visible {
13
- transform: none !important;
14
- box-shadow: none !important;
15
- transition: none !important;
16
- }
17
-
18
-
19
-
20
- .bookshelf-demo {
21
- --wall: #faf9f5;
22
- --ink: #1b1a18;
23
- --muted: #6e6b64;
24
- --faint: #a09b91;
25
- --rail-top: #e8e2d4;
26
- --rail-bot: #cfc7b6;
27
- --rail-shadow: rgba(60, 50, 30, 0.08);
28
- --line: #e6e3dc;
29
- --col: 740px;
30
- --hover-ring: rgba(27, 26, 24, 0.18);
31
- --hover-lift: 0 10px 22px rgba(40, 30, 20, 0.14);
32
- --pad: 24px;
33
-
34
- --t-expand: 250ms;
35
- --t-collapse: 230ms;
36
- --t-pull: 500ms;
37
- --t-flip: 1000ms;
38
- --t-settle: 580ms;
39
- --t-putback: 500ms;
40
- --t-land: 480ms;
41
- --t-veil: 580ms;
42
- --ease-motion: cubic-bezier(0.32, 0.72, 0, 1);
43
- --ease-out: var(--ease-motion);
44
- --ease-in: var(--ease-motion);
45
- --ease-inout: var(--ease-motion);
46
- --ease-pull: var(--ease-motion);
47
- }
48
-
49
- .bookshelf-demo, .bookshelf-demo * { box-sizing: border-box; }
50
- .bookshelf-demo,
51
- .bookshelf-demo { margin: 0; overflow-x: hidden; overflow-x: clip; }
52
- .bookshelf-demo {
53
- background: var(--wall);
54
- color: var(--ink);
55
- font-family: "Noto Sans SC", "PingFang SC", sans-serif;
56
- font-size: 16px;
57
- line-height: normal;
58
- -webkit-font-smoothing: antialiased;
59
- min-height: 100vh;
60
- }
61
-
62
- .bookshelf-demo { position: relative; min-height: 100vh; overflow-x: hidden; max-width: 100%; }
63
- .bookshelf-demo .shelf-view { overflow-x: hidden; max-width: 100%; }
64
-
65
- .bookshelf-demo .page {
66
- width: min(100%, var(--col));
67
- max-width: 100%;
68
- margin: 0 auto;
69
- padding: 40px var(--pad) 56px;
70
- overflow-x: hidden;
71
- }
72
-
73
- .bookshelf-demo .brand {
74
- font-size: 13px;
75
- color: var(--muted);
76
- letter-spacing: 0.06em;
77
- margin-bottom: 24px;
78
- }
79
- .bookshelf-demo h1 {
80
- margin: 0 0 10px;
81
- font-family: "Noto Serif SC", "Songti SC", serif;
82
- font-size: clamp(28px, 5vw, 36px);
83
- font-weight: 600;
84
- }
85
- .bookshelf-demo .lede {
86
- margin: 0 0 20px;
87
- font-size: 14px;
88
- line-height: 1.7;
89
- color: var(--muted);
90
- }
91
-
92
- .bookshelf-demo .qa-bar {
93
- display: flex;
94
- flex-wrap: wrap;
95
- align-items: center;
96
- gap: 8px;
97
- margin-bottom: 36px;
98
- padding: 10px 12px;
99
- background: rgba(255,255,255,0.45);
100
- border: 1px solid var(--line);
101
- border-radius: 6px;
102
- }
103
- .bookshelf-demo .qa-label {
104
- font-size: 11px;
105
- color: var(--faint);
106
- letter-spacing: 0.08em;
107
- margin-right: 4px;
108
- }
109
- .bookshelf-demo .qa-btn {
110
- border: 1px solid var(--line);
111
- background: #fff;
112
- color: var(--ink);
113
- font-size: 12px;
114
- padding: 5px 10px;
115
- border-radius: 4px;
116
- cursor: pointer;
117
- font-family: inherit;
118
- }
119
- .bookshelf-demo .qa-btn.is-active {
120
- background: var(--ink);
121
- color: var(--wall);
122
- border-color: var(--ink);
123
- }
124
- .bookshelf-demo .qa-hint {
125
- font-size: 11px;
126
- color: var(--muted);
127
- margin-left: auto;
128
- }
129
-
130
- .bookshelf-demo .bay { margin-bottom: 36px; min-width: 0; max-width: 100%; }
131
- .bookshelf-demo .row-label {
132
- display: flex;
133
- align-items: baseline;
134
- gap: 12px;
135
- margin-bottom: 12px;
136
- }
137
- .bookshelf-demo .row-label .name {
138
- font-size: 12px;
139
- color: var(--muted);
140
- letter-spacing: 0.12em;
141
- }
142
- .bookshelf-demo .row-label .hint {
143
- font-size: 11px;
144
- color: var(--faint);
145
- letter-spacing: 0.04em;
146
- }
147
-
148
- .bookshelf-demo .ledge {
149
- position: relative;
150
- padding-bottom: 10px;
151
- width: 100%;
152
- max-width: 100%;
153
- min-width: 0;
154
- overflow: hidden; /* books scroll inside .covers; rail stays bay-wide */
155
- }
156
- .bookshelf-demo .rail {
157
- height: 7px;
158
- width: 100%;
159
- background: linear-gradient(180deg, var(--rail-top) 0%, var(--rail-bot) 100%);
160
- border-radius: 1px;
161
- box-shadow: 0 6px 14px var(--rail-shadow);
162
- }
163
-
164
- .bookshelf-demo .covers {
165
- display: flex;
166
- align-items: flex-end;
167
- gap: 14px;
168
- min-height: 210px;
169
- padding-bottom: 2px;
170
- flex-wrap: nowrap;
171
- /* ux17: density gate must prevent overflow; never scroll-clip half covers */
172
- overflow-x: visible;
173
- }
174
-
175
- /* ux22: mobile — each .covers row is a shelf rail; page X stays put */
176
- @media (hover: none), (max-width: 640px) {
177
- .bookshelf-demo .covers {
178
- flex-wrap: nowrap;
179
- gap: 10px;
180
- width: 100%;
181
- max-width: 100%;
182
- min-width: 0;
183
- overflow-x: auto;
184
- overflow-y: hidden;
185
- -webkit-overflow-scrolling: touch;
186
- overscroll-behavior-x: contain;
187
- scrollbar-width: none;
188
- touch-action: pan-x pan-y;
189
- }
190
- .bookshelf-demo .covers::-webkit-scrollbar { display: none; }
191
- .bookshelf-demo .cover {
192
- width: 102px;
193
- flex-shrink: 0;
194
- }
195
- }
196
-
197
- .bookshelf-demo .cover {
198
- width: 118px;
199
- height: 178px; /* fallback; JS sets natural aspect height */
200
- border: none;
201
- padding: 0;
202
- display: block;
203
- cursor: pointer;
204
- border-radius: 2px 3px 0 0;
205
- background-color: transparent; /* ux24: no preset plate behind art */
206
- background-size: contain; /* ux17: ban crop */
207
- background-position: center top;
208
- background-repeat: no-repeat;
209
- box-shadow:
210
- inset -2px 0 0 rgba(0,0,0,0.12),
211
- inset 1px 0 0 rgba(255,255,255,0.08),
212
- 0 6px 14px rgba(40, 30, 20, 0.08);
213
- transform: translateY(0) scale(1);
214
- transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
215
- position: relative;
216
- overflow: hidden;
217
- flex-shrink: 0;
218
- }
219
- .bookshelf-demo .cover:focus-visible {
220
- transform: translateY(-10px) scale(1.04);
221
- box-shadow:
222
- 0 0 0 2px rgba(255,255,255,0.85),
223
- 0 0 0 3px var(--hover-ring),
224
- var(--hover-lift);
225
- z-index: 2;
226
- outline: none;
227
- }
228
- @media (hover: hover) and (pointer: fine) {
229
- .bookshelf-demo .cover:hover {
230
- transform: translateY(-10px) scale(1.04);
231
- box-shadow:
232
- 0 0 0 2px rgba(255,255,255,0.85),
233
- 0 0 0 3px var(--hover-ring),
234
- var(--hover-lift);
235
- z-index: 2;
236
- }
237
- }
238
- .bookshelf-demo .cover.is-placeholder,
239
- .bookshelf-demo .spine.is-placeholder {
240
- /* Empty seat while the flyer owns the motion: shelf surface only.
241
- A bk-* fill here is the gray/lavender plate behind the real cover. */
242
- opacity: 0 !important;
243
- visibility: hidden !important;
244
- background-color: transparent !important;
245
- background-image: none !important;
246
- filter: none !important;
247
- pointer-events: none;
248
- box-shadow: none !important;
249
- color: transparent !important;
250
- transform: none !important;
251
- }
252
- .bookshelf-demo .cover.is-placeholder > .cover-art,
253
- .bookshelf-demo .spine.is-placeholder > .cover-art {
254
- visibility: hidden !important;
255
- opacity: 0 !important;
256
- }
257
- /* ux24: resting covers must show art, never solid bk-* shell */
258
- .bookshelf-demo .cover[class*="img-"] {
259
- background-color: transparent !important;
260
- }
261
- .bookshelf-demo .cover > .cover-art {
262
- position: absolute;
263
- inset: 0;
264
- width: 100%;
265
- height: 100%;
266
- /* ux25: seat = nat aspect (JS) — contain fills exactly; no letterbox plate */
267
- object-fit: contain;
268
- object-position: center top;
269
- display: block;
270
- pointer-events: none;
271
- border-radius: inherit;
272
- z-index: 0;
273
- }
274
-
275
- .bookshelf-demo .spines {
276
- display: flex;
277
- align-items: flex-end;
278
- gap: 4px;
279
- min-height: 188px;
280
- flex-wrap: nowrap;
281
- overflow-x: auto;
282
- -webkit-overflow-scrolling: touch;
283
- overscroll-behavior-x: contain;
284
- scrollbar-width: none;
285
- }
286
- .bookshelf-demo .spines::-webkit-scrollbar { display: none; }
287
-
288
- .bookshelf-demo .spine {
289
- height: 150px;
290
- width: 28px;
291
- border: none;
292
- padding: 10px 0;
293
- writing-mode: vertical-rl;
294
- text-orientation: mixed;
295
- font-family: "Noto Serif SC", serif;
296
- font-size: 12px;
297
- letter-spacing: 0.16em;
298
- color: #F7F3EA;
299
- cursor: pointer;
300
- border-radius: 1px 2px 0 0;
301
- box-shadow:
302
- inset -1px 0 0 rgba(255,255,255,0.12),
303
- inset 1px 0 0 rgba(0,0,0,0.18);
304
- display: flex;
305
- align-items: center;
306
- justify-content: center;
307
- transform: translateY(0) scale(1);
308
- transition:
309
- transform 0.16s ease,
310
- box-shadow 0.16s ease,
311
- filter 0.16s ease,
312
- width var(--t-expand) var(--ease-out),
313
- height var(--t-expand) var(--ease-out),
314
- margin var(--t-expand) var(--ease-out),
315
- opacity 0.2s ease,
316
- background-size var(--t-expand) var(--ease-out);
317
- flex-shrink: 0;
318
- position: relative;
319
- overflow: hidden;
320
- background-size: contain;
321
- background-position: center top;
322
- background-repeat: no-repeat;
323
- }
324
- .bookshelf-demo .spine.thin { width: 18px; font-size: 10px; height: 122px; color: #2A261E; }
325
- .bookshelf-demo .spine.light-text { color: #F7F3EA; }
326
- .bookshelf-demo .spine.dark-text { color: #1b1a18; }
327
- .bookshelf-demo .spine span { pointer-events: none; transition: opacity 120ms ease; }
328
- .bookshelf-demo .spine:focus-visible {
329
- transform: translateY(-8px) scale(1.06);
330
- box-shadow:
331
- 0 0 0 2px rgba(255,255,255,0.9),
332
- 0 0 0 3px var(--hover-ring),
333
- 0 8px 16px rgba(40, 30, 20, 0.16);
334
- filter: brightness(1.08);
335
- z-index: 2;
336
- outline: none;
337
- }
338
- @media (hover: hover) and (pointer: fine) {
339
- .bookshelf-demo .spine:hover {
340
- transform: translateY(-8px) scale(1.06);
341
- box-shadow:
342
- 0 0 0 2px rgba(255,255,255,0.9),
343
- 0 0 0 3px var(--hover-ring),
344
- 0 8px 16px rgba(40, 30, 20, 0.16);
345
- filter: brightness(1.08);
346
- z-index: 2;
347
- }
348
- }
349
- .bookshelf-demo .spine.is-placeholder span { opacity: 0 !important; visibility: hidden !important; }
350
- .bookshelf-demo .cover.is-placeholder.is-landing,
351
- .bookshelf-demo .spine.is-placeholder.is-landing {
352
- opacity: 0;
353
- transition: opacity 220ms var(--ease-motion);
354
- }
355
-
356
- /* Mode C: temporary expand on spine wall */
357
- /* resting spines: solid hue only; cover image only when expanded */
358
- /* Expanded / extracting face must not fall back to bk-* (#513688 etc.).
359
- The jacket is .cover-art. A missing image stays cream shelf, not a shell pad. */
360
- .bookshelf-demo .spine.is-expanded,
361
- .bookshelf-demo .spine.is-extracting {
362
- background-color: transparent !important;
363
- }
364
- .bookshelf-demo .spine.is-expanded > .cover-art,
365
- .bookshelf-demo .spine.is-extracting > .cover-art {
366
- position: absolute;
367
- inset: 0;
368
- width: 100%;
369
- height: 100%;
370
- object-fit: contain;
371
- object-position: center top;
372
- display: block;
373
- pointer-events: none;
374
- z-index: 1;
375
- border-radius: inherit;
376
- }
377
- .bookshelf-demo .spine[class*="img-"] {
378
- background-image: none !important;
379
- }
380
- .bookshelf-demo .spine.is-expanded[class*="img-"] {
381
- background-image: unset;
382
- }
383
- .bookshelf-demo .spine.is-expanded.img-clean-code { background-image: url("/covers/clean-code.jpg") !important; }
384
- .bookshelf-demo .spine.is-expanded.img-refactoring { background-image: url("/covers/refactoring.jpg") !important; }
385
- .bookshelf-demo .spine.is-expanded.img-design-patterns { background-image: url("/covers/design-patterns.jpg") !important; }
386
- .bookshelf-demo .spine.is-expanded.img-pragmatic-programmer { background-image: url("/covers/pragmatic-programmer.jpg") !important; }
387
- .bookshelf-demo .spine.is-expanded.img-continuous-delivery { background-image: url("/covers/continuous-delivery.jpg") !important; }
388
- .bookshelf-demo .spine.is-expanded.img-phoenix-project { background-image: url("/covers/phoenix-project.jpg") !important; }
389
- .bookshelf-demo .spine.is-expanded.img-mythical-man-month { background-image: url("/covers/mythical-man-month.jpg") !important; }
390
- .bookshelf-demo .spine.is-expanded.img-tdd { background-image: url("/covers/tdd.jpg") !important; }
391
- .bookshelf-demo .spine.is-expanded.img-lean-startup { background-image: url("/covers/lean-startup.jpg") !important; }
392
- .bookshelf-demo .spine.is-expanded.img-release-it { background-image: url("/covers/release-it.jpg") !important; }
393
- .bookshelf-demo .spine.is-expanded.img-sre { background-image: url("/covers/sre.jpg") !important; }
394
- .bookshelf-demo .spine.is-expanded.img-team-topologies { background-image: url("/covers/team-topologies.jpg") !important; }
395
- .bookshelf-demo .spine.is-expanded.img-accelerate { background-image: url("/covers/accelerate.jpg") !important; }
396
- .bookshelf-demo .spine.is-expanded.img-ddd { background-image: url("/covers/ddd.jpg") !important; }
397
- .bookshelf-demo .spine.is-expanded.img-microservices { background-image: url("/covers/microservices.jpg") !important; }
398
- .bookshelf-demo .spine.is-expanded.img-eaa { background-image: url("/covers/eaa.jpg") !important; }
399
- .bookshelf-demo .spine.is-expanded.img-ddia { background-image: url("/covers/ddia.jpg") !important; }
400
- .bookshelf-demo .spine.is-expanded.img-fundamentals-sa { background-image: url("/covers/fundamentals-sa.jpg") !important; }
401
- .bookshelf-demo .spine.is-expanded.img-implementing-ddd { background-image: url("/covers/implementing-ddd.jpg") !important; }
402
- .bookshelf-demo .spine.is-expanded.img-systems-performance { background-image: url("/covers/systems-performance.jpg") !important; }
403
- .bookshelf-demo .spine.is-expanded.img-clean-architecture { background-image: url("/covers/clean-architecture.jpg") !important; }
404
-
405
- .bookshelf-demo .spine.is-expanded {
406
- width: 100px;
407
- height: 152px;
408
- margin: 0 4px 0 2px;
409
- padding: 0;
410
- writing-mode: horizontal-tb;
411
- text-orientation: initial;
412
- letter-spacing: 0;
413
- transform: translateY(-10px) scale(1.03);
414
- box-shadow:
415
- inset -2px 0 0 rgba(0,0,0,0.14),
416
- 0 0 0 2px rgba(255,255,255,0.9),
417
- 0 0 0 3px var(--hover-ring),
418
- var(--hover-lift);
419
- filter: none;
420
- z-index: 3;
421
- transition:
422
- width var(--t-expand) var(--ease-out),
423
- height var(--t-expand) var(--ease-out),
424
- margin var(--t-expand) var(--ease-out),
425
- transform var(--t-expand) var(--ease-out),
426
- box-shadow var(--t-expand) var(--ease-out);
427
- }
428
- .bookshelf-demo .spine.is-expanded span { opacity: 0; position: absolute; }
429
- .bookshelf-demo .spine.is-collapsing {
430
- transition:
431
- width var(--t-collapse) var(--ease-motion),
432
- height var(--t-collapse) var(--ease-motion),
433
- margin var(--t-collapse) var(--ease-motion),
434
- transform var(--t-collapse) var(--ease-motion),
435
- box-shadow var(--t-collapse) var(--ease-motion),
436
- background-size var(--t-collapse) var(--ease-motion);
437
- }
438
- /* C collapse: shrink while still "expanded" class — drop cover image to solid hue immediately, never flash a wide black plate */
439
- .bookshelf-demo .spine.is-expanded.is-collapsing {
440
- width: 28px;
441
- height: 150px;
442
- margin: 0;
443
- padding: 10px 0;
444
- writing-mode: vertical-rl;
445
- text-orientation: mixed;
446
- letter-spacing: 0.16em;
447
- transform: translateY(0) scale(1);
448
- filter: none;
449
- box-shadow:
450
- inset -1px 0 0 rgba(255,255,255,0.12),
451
- inset 1px 0 0 rgba(0,0,0,0.18);
452
- background-image: none !important;
453
- background-size: auto;
454
- z-index: 2;
455
- }
456
- .bookshelf-demo .spine.is-expanded.is-collapsing.s-tall { width: 30px; height: 168px; }
457
- .bookshelf-demo .spine.is-expanded.is-collapsing.s-mid { width: 28px; height: 152px; }
458
- .bookshelf-demo .spine.is-expanded.is-collapsing.s-short { width: 24px; height: 136px; }
459
- .bookshelf-demo .spine.is-expanded.is-collapsing.thin { width: 18px; height: 122px; }
460
- .bookshelf-demo .spine.is-expanded.is-collapsing span {
461
- opacity: 1;
462
- position: static;
463
- }
464
-
465
- .bookshelf-demo .s-tall { height: 168px; width: 30px; }
466
- .bookshelf-demo .s-mid { height: 152px; width: 28px; }
467
- .bookshelf-demo .s-short { height: 136px; width: 24px; }
468
- .bookshelf-demo .spine.is-expanded.s-tall,
469
- .bookshelf-demo .spine.is-expanded.s-mid,
470
- .bookshelf-demo .spine.is-expanded.s-short {
471
- width: 100px;
472
- height: 152px;
473
- }
474
-
475
- /* book colors */
476
- .bookshelf-demo .bk-clean-code { background-color: #0d1b2a; }
477
- .bookshelf-demo .bk-refactoring { background-color: #7a0d1b; }
478
- .bookshelf-demo .bk-design-patterns { background-color: #0d1b1b; }
479
- .bookshelf-demo .bk-continuous-delivery { background-color: #be2828; }
480
- .bookshelf-demo .bk-phoenix-project { background-color: #3a7ab8; }
481
- .bookshelf-demo .bk-mythical-man-month { background-color: #1b3688; }
482
- .bookshelf-demo .bk-pragmatic-programmer { background-color: #1a1a1a; }
483
- .bookshelf-demo .bk-tdd { background-color: #513688; }
484
- .bookshelf-demo .bk-lean-startup { background-color: #3a3a3a; }
485
- .bookshelf-demo .bk-release-it { background-color: #5a6a88; }
486
- .bookshelf-demo .bk-sre { background-color: #00367a; }
487
- .bookshelf-demo .bk-team-topologies { background-color: #2a6a88; }
488
- .bookshelf-demo .bk-accelerate { background-color: #36445f; }
489
- .bookshelf-demo .bk-ddd { background-color: #1e4a7a; }
490
- .bookshelf-demo .bk-microservices { background-color: #a38851; }
491
- .bookshelf-demo .bk-eaa { background-color: #950d1b; }
492
- .bookshelf-demo .bk-ddia { background-color: #8b3a2f; }
493
- .bookshelf-demo .bk-fundamentals-sa { background-color: #44881b; }
494
- .bookshelf-demo .bk-implementing-ddd { background-color: #b03644; }
495
- .bookshelf-demo .bk-systems-performance { background-color: #00447a; }
496
- .bookshelf-demo .bk-clean-architecture { background-color: #0d1b44; }
497
- .bookshelf-demo .bk-sand { background-color: #c4b7a2; color: #2A261E; }
498
- .bookshelf-demo .bk-cream { background-color: #d2c4ae; color: #2A261E; }
499
-
500
- .bookshelf-demo .img-clean-code { background-image: url("/covers/clean-code.jpg"); }
501
- .bookshelf-demo .img-refactoring { background-image: url("/covers/refactoring.jpg"); }
502
- .bookshelf-demo .img-design-patterns { background-image: url("/covers/design-patterns.jpg"); }
503
- .bookshelf-demo .img-pragmatic-programmer { background-image: url("/covers/pragmatic-programmer.jpg"); }
504
- .bookshelf-demo .img-continuous-delivery { background-image: url("/covers/continuous-delivery.jpg"); }
505
- .bookshelf-demo .img-phoenix-project { background-image: url("/covers/phoenix-project.jpg"); }
506
- .bookshelf-demo .img-mythical-man-month { background-image: url("/covers/mythical-man-month.jpg"); }
507
- .bookshelf-demo .img-tdd { background-image: url("/covers/tdd.jpg"); }
508
- .bookshelf-demo .img-lean-startup { background-image: url("/covers/lean-startup.jpg"); }
509
- .bookshelf-demo .img-release-it { background-image: url("/covers/release-it.jpg"); }
510
- .bookshelf-demo .img-sre { background-image: url("/covers/sre.jpg"); }
511
- .bookshelf-demo .img-team-topologies { background-image: url("/covers/team-topologies.jpg"); }
512
- .bookshelf-demo .img-accelerate { background-image: url("/covers/accelerate.jpg"); }
513
- .bookshelf-demo .img-ddd { background-image: url("/covers/ddd.jpg"); }
514
- .bookshelf-demo .img-microservices { background-image: url("/covers/microservices.jpg"); }
515
- .bookshelf-demo .img-eaa { background-image: url("/covers/eaa.jpg"); }
516
- .bookshelf-demo .img-ddia { background-image: url("/covers/ddia.jpg"); }
517
- .bookshelf-demo .img-fundamentals-sa { background-image: url("/covers/fundamentals-sa.jpg"); }
518
- .bookshelf-demo .img-implementing-ddd { background-image: url("/covers/implementing-ddd.jpg"); }
519
- .bookshelf-demo .img-systems-performance { background-image: url("/covers/systems-performance.jpg"); }
520
- .bookshelf-demo .img-clean-architecture { background-image: url("/covers/clean-architecture.jpg"); }
521
-
522
- .bookshelf-demo .foot {
523
- margin-top: 40px;
524
- padding-top: 16px;
525
- border-top: 1px solid var(--line);
526
- display: flex;
527
- justify-content: space-between;
528
- gap: 16px;
529
- font-size: 12px;
530
- color: var(--muted);
531
- flex-wrap: wrap;
532
- }
533
-
534
- /* —— Note view —— */
535
- .bookshelf-demo .note-view {
536
- position: fixed;
537
- inset: 0;
538
- z-index: 60;
539
- background: #faf9f5; /* solid paper — never translucent wall flash */
540
- overflow: auto;
541
- opacity: 0;
542
- pointer-events: none;
543
- /* opacity driven by WAAPI / inline — no CSS transition */
544
- transition: none;
545
- }
546
- .bookshelf-demo .note-view.is-preparing,
547
- .bookshelf-demo .note-view.is-open {
548
- /* Above stage so note can cover flyer without a kill-flash */
549
- z-index: 75;
550
- }
551
- .bookshelf-demo .note-view.is-open {
552
- opacity: 1;
553
- pointer-events: auto;
554
- }
555
- .bookshelf-demo .note {
556
- width: min(100%, var(--col));
557
- margin: 0 auto;
558
- padding: 32px var(--pad) 80px;
559
- }
560
- .bookshelf-demo .back-btn {
561
- border: none;
562
- background: transparent;
563
- color: var(--muted);
564
- font-size: 14px;
565
- cursor: pointer;
566
- padding: 8px 0;
567
- margin-bottom: 28px;
568
- font-family: inherit;
569
- }
570
- .bookshelf-demo .back-btn:hover { color: var(--ink); }
571
- .bookshelf-demo .note-hero {
572
- display: flex;
573
- gap: 24px;
574
- align-items: flex-start;
575
- margin-bottom: 36px;
576
- }
577
- .bookshelf-demo .note-meta {
578
- min-width: 0;
579
- flex: 1 1 auto;
580
- }
581
- /* Settled note header: size the box to the picture. A fixed 2:3 frame with
582
- background-size:cover center-crops landscape heroes (Obsidian → "sid"). */
583
- .bookshelf-demo .note-cover {
584
- width: max-content;
585
- max-width: min(420px, 46%);
586
- height: auto;
587
- flex: 0 0 auto;
588
- border-radius: 2px 3px 0 0;
589
- background-color: transparent;
590
- background-image: none;
591
- box-shadow: 0 8px 20px rgba(40,30,20,0.12);
592
- line-height: 0;
593
- }
594
- .bookshelf-demo .note-cover-img {
595
- display: block;
596
- width: auto;
597
- height: auto;
598
- max-width: 100%;
599
- max-height: 180px;
600
- object-fit: contain;
601
- object-position: center;
602
- border-radius: inherit;
603
- }
604
- .bookshelf-demo .note-cat {
605
- margin: 0 0 8px;
606
- font-size: 12px;
607
- color: var(--muted);
608
- letter-spacing: 0.1em;
609
- }
610
- .bookshelf-demo .note-meta h1 {
611
- font-size: clamp(24px, 4vw, 32px);
612
- margin: 0 0 8px;
613
- }
614
- .bookshelf-demo .note-author {
615
- margin: 0;
616
- color: var(--muted);
617
- font-size: 14px;
618
- }
619
- .bookshelf-demo .note-body {
620
- font-size: 16px;
621
- line-height: 1.85;
622
- color: var(--ink);
623
- }
624
- .bookshelf-demo .note-body h2 {
625
- font-family: "Noto Serif SC", serif;
626
- font-size: 20px;
627
- margin: 32px 0 12px;
628
- font-weight: 600;
629
- }
630
- .bookshelf-demo .note-body p { margin: 0 0 1.1em; }
631
- .bookshelf-demo .note-body ul { padding-left: 1.2em; margin: 0 0 1.1em; }
632
- .bookshelf-demo .note-body li { margin-bottom: 0.4em; }
633
- .bookshelf-demo .note-body .placeholder {
634
- color: var(--muted);
635
- font-style: italic;
636
- }
637
-
638
- /* —— Stage / backdrop / veil / held-book flyer (§10) —— */
639
- .bookshelf-demo .open-backdrop {
640
- position: fixed;
641
- inset: 0;
642
- z-index: 58;
643
- pointer-events: none;
644
- background: #faf9f5;
645
- opacity: 0;
646
- }
647
- .bookshelf-demo .open-backdrop.is-on {
648
- /* Soft — shelf can still read through slightly; never the only visible layer */
649
- opacity: 0.55;
650
- }
651
- .bookshelf-demo .open-backdrop.is-solid {
652
- opacity: 1;
653
- }
654
-
655
- .bookshelf-demo .stage {
656
- position: fixed;
657
- inset: 0;
658
- z-index: 70;
659
- pointer-events: none;
660
- perspective: 1800px;
661
- perspective-origin: 50% 45%;
662
- }
663
-
664
- .bookshelf-demo .open-veil {
665
- position: fixed;
666
- inset: 0;
667
- z-index: 80;
668
- pointer-events: none;
669
- overflow: hidden;
670
- opacity: 0;
671
- }
672
- .bookshelf-demo .open-veil.is-on {
673
- opacity: 1;
674
- }
675
- .bookshelf-demo .open-veil-blob {
676
- position: absolute;
677
- width: 280vmax;
678
- height: 280vmax;
679
- left: var(--vx, 50%);
680
- top: var(--vy, 45%);
681
- margin-left: -140vmax;
682
- margin-top: -140vmax;
683
- border-radius: 50%;
684
- background:
685
- radial-gradient(
686
- circle at center,
687
- #fffcf6 0%,
688
- #faf9f5 42%,
689
- #faf9f5 100%
690
- );
691
- transform: translateZ(0) scale(0);
692
- transform-origin: center center;
693
- will-change: transform, opacity;
694
- opacity: 1;
695
- }
696
-
697
- .bookshelf-demo .flyer {
698
- position: fixed;
699
- left: 0;
700
- top: 0;
701
- width: 680px;
702
- height: 400px;
703
- margin: 0;
704
- transform-origin: top left;
705
- /* FLAT: scaling a preserve-3d parent causes shimmer/jitter */
706
- transform-style: flat;
707
- opacity: 1;
708
- overflow: visible;
709
- contain: layout style;
710
- }
711
- .bookshelf-demo .flyer.is-ready {
712
- will-change: translate, scale, opacity;
713
- }
714
-
715
- /* Soft oval foot shadow — no filter:blur (blur+anim = jitter) */
716
- .bookshelf-demo .flyer-shadow {
717
- position: absolute;
718
- left: 8%;
719
- right: 8%;
720
- bottom: -10%;
721
- height: 28%;
722
- border-radius: 50%;
723
- background: radial-gradient(
724
- ellipse at center,
725
- rgba(40, 30, 20, 0.16) 0%,
726
- rgba(40, 30, 20, 0.07) 42%,
727
- rgba(40, 30, 20, 0.02) 65%,
728
- rgba(40, 30, 20, 0) 80%
729
- );
730
- opacity: 0.4;
731
- z-index: 0;
732
- pointer-events: none;
733
- transform: translate3d(0, 0, 0) scale(1, 0.45);
734
- will-change: opacity;
735
- }
736
-
737
- .bookshelf-demo .flyer-book {
738
- position: absolute;
739
- inset: 0;
740
- transform-style: preserve-3d;
741
- transform-origin: center center;
742
- /* Static mild tilt — do NOT animate rotateX (competes with flyer scale) */
743
- transform: rotateX(8deg) translate3d(0, 0, 0);
744
- z-index: 1;
745
- backface-visibility: hidden;
746
- }
747
-
748
- /* ux27 plate ban: this used to be a full-spread shell (fallback #6a7a98 / #5a6a88,
749
- and shell-hi of dark covers reads the same gray-lavender). It sat wider than
750
- the jacket during lift and put-back. Fore-edge stays on .flyer-thickness. */
751
- .bookshelf-demo .flyer-board {
752
- display: none !important;
753
- background: none !important;
754
- background-color: transparent !important;
755
- box-shadow: none !important;
756
- opacity: 0 !important;
757
- visibility: hidden !important;
758
- }
759
-
760
- .bookshelf-demo .flyer-leaf {
761
- position: absolute;
762
- top: 0;
763
- width: 50%;
764
- height: 100%;
765
- transform-style: preserve-3d;
766
- z-index: 2;
767
- }
768
- .bookshelf-demo .flyer-leaf-left {
769
- left: 0;
770
- transform-origin: right center;
771
- }
772
- .bookshelf-demo .flyer-leaf-right {
773
- left: 50%;
774
- transform-origin: left center;
775
- }
776
-
777
- .bookshelf-demo .flyer-face {
778
- position: absolute;
779
- inset: 0;
780
- border-radius: 2px 3px 0 0;
781
- overflow: hidden;
782
- backface-visibility: hidden;
783
- -webkit-backface-visibility: hidden;
784
- }
785
-
786
- /* Cover on BACK of left leaf — camera-facing when leaf folded (180°) */
787
- .bookshelf-demo .flyer-face-cover {
788
- transform: rotateY(180deg);
789
- background-color: transparent !important; /* ux24/ux27: bk-* must not fill behind the img */
790
- /* No background-image here — .img-* / inline applyCoverImage owns the photo.
791
- Gradients-only used to override img classes → flat brown/gray close flash. */
792
- box-shadow:
793
- inset -2px 0 0 rgba(0,0,0,0.18),
794
- 2px 0 10px rgba(40, 30, 20, 0.14);
795
- }
796
- .bookshelf-demo .flyer-face-cover.is-spine-face {
797
- writing-mode: vertical-rl;
798
- text-orientation: mixed;
799
- font-family: "Noto Serif SC", serif;
800
- font-size: 12px;
801
- letter-spacing: 0.16em;
802
- color: #F7F3EA;
803
- display: flex;
804
- align-items: center;
805
- justify-content: center;
806
- background-image:
807
- linear-gradient(90deg, rgba(0,0,0,0.18) 0%, transparent 10%),
808
- linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%);
809
- }
810
- .bookshelf-demo .flyer-spine-label { pointer-events: none; }
811
-
812
- /* ux15 plate kept inert; ux16 uses full-height .flyer-spine-slot instead.
813
- Never paint the lavender shell fallback if a leftover plate node is mounted. */
814
- .bookshelf-demo .flyer-spine-land-plate {
815
- position: absolute;
816
- inset: 0;
817
- pointer-events: none;
818
- border-radius: inherit;
819
- z-index: 1;
820
- display: none !important;
821
- background: none !important;
822
- background-color: transparent !important;
823
- opacity: 0 !important;
824
- }
825
-
826
- /* ux16: exact homeRect standing spine — full height, spine width, slides out/in */
827
- .bookshelf-demo .flyer.flyer-spine-slot {
828
- position: fixed;
829
- margin: 0;
830
- padding: 10px 0;
831
- box-sizing: border-box;
832
- border-radius: 1px 2px 0 0;
833
- box-shadow:
834
- inset -1px 0 0 rgba(255,255,255,0.12),
835
- inset 1px 0 0 rgba(0,0,0,0.18),
836
- 0 6px 14px rgba(40, 30, 20, 0.18);
837
- display: flex;
838
- align-items: center;
839
- justify-content: center;
840
- overflow: hidden;
841
- pointer-events: none;
842
- transform-origin: center center;
843
- contain: layout style;
844
- will-change: transform, opacity;
845
- }
846
- .bookshelf-demo .flyer-spine-slot-label {
847
- writing-mode: vertical-rl;
848
- text-orientation: mixed;
849
- font-family: "Noto Serif SC", serif;
850
- font-size: 12px;
851
- letter-spacing: 0.16em;
852
- color: #F7F3EA;
853
- pointer-events: none;
854
- line-height: 1.2;
855
- max-height: 100%;
856
- overflow: hidden;
857
- }
858
- .bookshelf-demo .flyer-spine-slot.bk-sand .flyer-spine-slot-label,
859
- .bookshelf-demo .flyer-spine-slot.bk-cream .flyer-spine-slot-label {
860
- color: #2A261E;
861
- font-size: 10px;
862
- }
863
- .bookshelf-demo .flyer-face-cover.is-cover-ready {
864
- writing-mode: horizontal-tb;
865
- }
866
- .bookshelf-demo .flyer-face-cover.is-cover-ready[class*="img-"] {
867
- background-size: contain !important;
868
- background-position: center top !important;
869
- background-repeat: no-repeat !important;
870
- }
871
- .bookshelf-demo .flyer-face-cover.is-cover-ready .flyer-spine-label {
872
- display: none;
873
- }
874
- .bookshelf-demo .flyer-cover-img {
875
- position: absolute;
876
- inset: 0;
877
- width: 100%;
878
- height: 100%;
879
- object-fit: contain; /* ux25: mid page aspect = book nat — contain fills, no plate */
880
- object-position: center top;
881
- display: block;
882
- pointer-events: none;
883
- border-radius: inherit;
884
- /* Sit under optional spine label; above empty board fill */
885
- z-index: 0;
886
- transform: translateZ(0);
887
- }
888
-
889
- /* Cream page with gutter shade + micro-arch (radial) — not flat fill */
890
- .bookshelf-demo .flyer-face-page {
891
- /* ux26: page wash from cover palette (--page*); text --ink */
892
- background-color: var(--page, #fffcf6);
893
- background-image:
894
- radial-gradient(120% 40% at 50% -5%, rgba(255,255,255,0.45) 0%, transparent 55%),
895
- linear-gradient(180deg, var(--page-hi, #fffcf6) 0%, var(--page, #f7f4ef) 55%, var(--page-lo, #efe8dc) 100%);
896
- padding: 16px 14px 16px 16px;
897
- display: flex;
898
- flex-direction: column;
899
- gap: 8px;
900
- color: var(--ink, #2a261e);
901
- box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--shell, #5a6a88) 14%, transparent);
902
- }
903
- .bookshelf-demo .flyer-leaf-left .flyer-face-page {
904
- background-image:
905
- radial-gradient(120% 40% at 50% -5%, rgba(255,255,255,0.4) 0%, transparent 55%),
906
- linear-gradient(90deg, transparent 55%, color-mix(in srgb, var(--shell, #5a6a88) 10%, transparent) 82%, color-mix(in srgb, var(--shell, #5a6a88) 28%, transparent) 100%),
907
- linear-gradient(180deg, var(--page-hi, #fffcf6) 0%, var(--page, #f7f4ef) 55%, var(--page-lo, #efe8dc) 100%);
908
- border-radius: 3px 0 0 2px;
909
- padding-right: 18px;
910
- justify-content: center;
911
- }
912
- .bookshelf-demo .flyer-leaf-right .flyer-face-page {
913
- background-image:
914
- radial-gradient(120% 40% at 50% -5%, rgba(255,255,255,0.4) 0%, transparent 55%),
915
- linear-gradient(270deg, transparent 55%, color-mix(in srgb, var(--shell, #5a6a88) 10%, transparent) 82%, color-mix(in srgb, var(--shell, #5a6a88) 28%, transparent) 100%),
916
- linear-gradient(180deg, var(--page-hi, #fffcf6) 0%, var(--page, #f7f4ef) 55%, var(--page-lo, #efe8dc) 100%);
917
- border-radius: 0 3px 2px 0;
918
- padding-left: 18px;
919
- justify-content: flex-start;
920
- padding-top: 18px;
921
- }
922
-
923
- /* Page-block thickness strips on outer fore-edges */
924
- .bookshelf-demo .flyer-thickness {
925
- position: absolute;
926
- top: 1%;
927
- bottom: 2%;
928
- width: 7px;
929
- pointer-events: none;
930
- z-index: 3;
931
- /* ux26: fore-edge from cover palette, not generic cream paper */
932
- background:
933
- repeating-linear-gradient(
934
- 180deg,
935
- var(--edge-a, #d8cfc0) 0px,
936
- var(--edge-b, #c4b7a2) 1px,
937
- var(--edge-c, #b0a08a) 2px,
938
- var(--edge-a, #d8cfc0) 3px
939
- );
940
- box-shadow: 0 0 0 1px color-mix(in srgb, var(--shell, #5a6a88) 22%, transparent);
941
- opacity: 0.92;
942
- transform: translateZ(1px);
943
- }
944
- .bookshelf-demo .flyer-leaf-left .flyer-thickness {
945
- left: -5px;
946
- border-radius: 1px 0 0 1px;
947
- }
948
- .bookshelf-demo .flyer-leaf-right .flyer-thickness {
949
- right: -5px;
950
- border-radius: 0 1px 1px 0;
951
- }
952
-
953
- /* Center gutter accent (binding dip) */
954
- .bookshelf-demo .flyer-gutter {
955
- position: absolute;
956
- top: 2%;
957
- bottom: 3%;
958
- left: 50%;
959
- width: 14px;
960
- margin-left: -7px;
961
- z-index: 4;
962
- pointer-events: none;
963
- background: linear-gradient(
964
- 90deg,
965
- rgba(40, 30, 18, 0) 0%,
966
- rgba(40, 30, 18, 0.18) 35%,
967
- rgba(30, 22, 12, 0.32) 50%,
968
- rgba(40, 30, 18, 0.18) 65%,
969
- rgba(40, 30, 18, 0) 100%
970
- );
971
- opacity: 0;
972
- transform: translateZ(2px);
973
- }
974
-
975
- .bookshelf-demo .flyer-page-title {
976
- font-family: "Noto Serif SC", "Songti SC", serif;
977
- font-size: 13px;
978
- font-weight: 650;
979
- color: var(--ink, #2a261e);
980
- line-height: 1.4;
981
- margin: 0 0 6px;
982
- letter-spacing: 0.02em;
983
- opacity: 1; /* ux26: left page shows book title mid-open */
984
- }
985
- .bookshelf-demo .flyer-page-author {
986
- font-family: system-ui, sans-serif;
987
- font-size: 9px;
988
- font-weight: 500;
989
- color: var(--ink-muted, #5a5348);
990
- line-height: 1.3;
991
- margin: 0;
992
- opacity: 0.85;
993
- }
994
- .bookshelf-demo .flyer-page-kicker {
995
- font-family: system-ui, sans-serif;
996
- font-size: 9px;
997
- font-weight: 600;
998
- letter-spacing: 0.08em;
999
- text-transform: uppercase;
1000
- color: var(--ink-muted, #5a5348);
1001
- margin: 0 0 8px;
1002
- opacity: 0.75;
1003
- }
1004
- .bookshelf-demo .flyer-page-summary {
1005
- font-family: "Noto Serif SC", "Songti SC", serif;
1006
- font-size: 10px;
1007
- font-weight: 400;
1008
- color: var(--ink, #2a261e);
1009
- line-height: 1.55;
1010
- margin: 0;
1011
- opacity: 1; /* ux26: right page shows reading-notes summary */
1012
- display: -webkit-box;
1013
- -webkit-box-orient: vertical;
1014
- -webkit-line-clamp: 9;
1015
- overflow: hidden;
1016
- }
1017
- .bookshelf-demo .flyer-page-line {
1018
- display: none; /* ux26: no fake rule lines */
1019
- }
1020
-
1021
- /* Note pre-layout: no scrollbar until open (scrollbar on cream void looked like a flash) */
1022
- .bookshelf-demo .note-view.is-preparing {
1023
- display: block !important;
1024
- pointer-events: none;
1025
- transition: none;
1026
- overflow: hidden;
1027
- }
1028
- .bookshelf-demo .note-view.is-open {
1029
- pointer-events: auto;
1030
- overflow: auto;
1031
- }
1032
-
1033
- /* Close: flyer owns the motion. The note used to stay at z-index 75, so the
1034
- article sat on top of the return for the whole fade and the shrink was hidden. */
1035
- .bookshelf-demo.is-return .stage { z-index: 80; }
1036
- .bookshelf-demo.is-return .note-view,
1037
- .bookshelf-demo.is-return .note-view.is-preparing,
1038
- .bookshelf-demo.is-return .note-view.is-open { z-index: 60; }
1039
- .bookshelf-demo.is-site.is-return .stage { z-index: 36; }
1040
- .bookshelf-demo.is-site.is-return .open-backdrop { z-index: 30; }
1041
- .bookshelf-demo.is-site.is-return .note-view,
1042
- .bookshelf-demo.is-site.is-return .note-view.is-preparing,
1043
- .bookshelf-demo.is-site.is-return .note-view.is-open { z-index: 31; }
1044
-
1045
- .bookshelf-demo .shelf-view.is-dim {
1046
- /* Backdrop covers shelf — dim is unused during open; keep inert */
1047
- opacity: 1;
1048
- }
1049
- .bookshelf-demo .shelf-view.is-frozen {
1050
- pointer-events: none !important;
1051
- }
1052
- /* Freeze cover/spine interactions — keep resting min-height (do NOT inherit/collapse;
1053
- inherit was collapsing .covers 210→~178 and causing +~30px end-frame shelf jump). */
1054
- .bookshelf-demo .shelf-view.is-frozen .cover,
1055
- .bookshelf-demo .shelf-view.is-frozen .spine {
1056
- transition: none !important;
1057
- transform: none !important;
1058
- filter: none !important;
1059
- }
1060
- .bookshelf-demo .shelf-view.is-frozen .cover:hover,
1061
- .bookshelf-demo .shelf-view.is-frozen .cover:focus-visible,
1062
- .bookshelf-demo .shelf-view.is-frozen .spine:hover,
1063
- .bookshelf-demo .shelf-view.is-frozen .spine:focus-visible {
1064
- transform: none !important;
1065
- box-shadow: inherit;
1066
- z-index: auto;
1067
- }
1068
- .bookshelf-demo .shelf-view.is-frozen .spine.is-expanded,
1069
- .bookshelf-demo .shelf-view.is-frozen .spine.is-collapsing {
1070
- /* Lock expanded footprint — no collapse animation mid-close */
1071
- transition: none !important;
1072
- }
1073
-
1074
-
1075
- /* Park shelf without display:none — preserves geometry, kills close-end bounce */
1076
- .bookshelf-demo .shelf-view.is-parked {
1077
- visibility: hidden !important;
1078
- pointer-events: none !important;
1079
- /* stay in document flow (no height collapse) */
1080
- }
1081
- .bookshelf-demo .shelf-view,
1082
- .bookshelf-demo .spines,
1083
- .bookshelf-demo .covers {
1084
- overflow-anchor: none;
1085
- }
1086
-
1087
- /* Close path: flat single cover card — durable <img>, no cream/board mid-flight */
1088
- .bookshelf-demo .flyer.flyer-close-cover {
1089
- transform-style: flat;
1090
- overflow: hidden;
1091
- border-radius: 2px 3px 0 0;
1092
- box-shadow:
1093
- 0 14px 32px rgba(40, 30, 20, 0.2),
1094
- 0 1px 0 rgba(255, 255, 255, 0.06) inset;
1095
- contain: layout style paint;
1096
- }
1097
- .bookshelf-demo .flyer-close-face {
1098
- position: absolute;
1099
- inset: 0;
1100
- border-radius: inherit;
1101
- overflow: hidden;
1102
- background-color: transparent !important; /* ux24/ux27: no solid shell behind the img */
1103
- background-size: cover;
1104
- background-position: center top;
1105
- background-repeat: no-repeat;
1106
- transform: translateZ(0);
1107
- }
1108
- .bookshelf-demo .flyer-close-face .flyer-cover-img {
1109
- position: absolute;
1110
- inset: 0;
1111
- width: 100%;
1112
- height: 100%;
1113
- object-fit: contain; /* ux17: ban crop */
1114
- object-position: center top;
1115
- display: block;
1116
- pointer-events: none;
1117
- z-index: 1;
1118
- transform: translateZ(0);
1119
- }
1120
- .bookshelf-demo .flyer-close-face .flyer-spine-label {
1121
- z-index: 2;
1122
- }
1123
-
1124
- /* reduced motion */
1125
- @media (prefers-reduced-motion: reduce) {
1126
- .bookshelf-demo {
1127
- --t-expand: 1ms;
1128
- --t-collapse: 1ms;
1129
- --t-pull: 1ms;
1130
- --t-flip: 1ms;
1131
- --t-settle: 1ms;
1132
- --t-putback: 1ms;
1133
- --t-land: 1ms;
1134
- --t-veil: 1ms;
1135
- }
1136
- .bookshelf-demo .cover,
1137
- .bookshelf-demo .spine,
1138
- .bookshelf-demo .note-view,
1139
- .bookshelf-demo .shelf-view,
1140
- .bookshelf-demo .flyer,
1141
- .bookshelf-demo .open-backdrop,
1142
- .bookshelf-demo .flyer-leaf,
1143
- .bookshelf-demo .flyer-face,
1144
- .bookshelf-demo .flyer-face-cover,
1145
- .bookshelf-demo .flyer-spine-label,
1146
- .bookshelf-demo .flyer-gutter,
1147
- .bookshelf-demo .open-veil,
1148
- .bookshelf-demo .open-veil-blob {
1149
- transition: none !important;
1150
- animation: none !important;
1151
- }
1152
- }
1153
-
1154
- /* mobile */
1155
- @media (max-width: 640px) {
1156
- .bookshelf-demo .page { padding: 28px 16px 40px; }
1157
- .bookshelf-demo .covers { gap: 10px; min-height: 176px; }
1158
- .bookshelf-demo .cover { width: 102px; height: 154px; /* fallback; JS sets nat height */ }
1159
- .bookshelf-demo .spines { min-height: 160px; gap: 3px; }
1160
- .bookshelf-demo .spine { height: 132px; width: 24px; font-size: 11px; }
1161
- .bookshelf-demo .s-tall { height: 148px; width: 26px; }
1162
- .bookshelf-demo .s-mid { height: 134px; width: 24px; }
1163
- .bookshelf-demo .s-short { height: 120px; width: 20px; }
1164
- /* resting spines: solid hue only; cover image only when expanded */
1165
- .bookshelf-demo .spine[class*="img-"] {
1166
- background-image: none !important;
1167
- }
1168
- .bookshelf-demo .spine.is-expanded[class*="img-"] {
1169
- background-image: unset;
1170
- }
1171
- .bookshelf-demo .spine.is-expanded.img-clean-code { background-image: url("/covers/clean-code.jpg") !important; }
1172
- .bookshelf-demo .spine.is-expanded.img-refactoring { background-image: url("/covers/refactoring.jpg") !important; }
1173
- .bookshelf-demo .spine.is-expanded.img-design-patterns { background-image: url("/covers/design-patterns.jpg") !important; }
1174
- .bookshelf-demo .spine.is-expanded.img-pragmatic-programmer { background-image: url("/covers/pragmatic-programmer.jpg") !important; }
1175
- .bookshelf-demo .spine.is-expanded.img-continuous-delivery { background-image: url("/covers/continuous-delivery.jpg") !important; }
1176
- .bookshelf-demo .spine.is-expanded.img-phoenix-project { background-image: url("/covers/phoenix-project.jpg") !important; }
1177
- .bookshelf-demo .spine.is-expanded.img-mythical-man-month { background-image: url("/covers/mythical-man-month.jpg") !important; }
1178
- .bookshelf-demo .spine.is-expanded.img-tdd { background-image: url("/covers/tdd.jpg") !important; }
1179
- .bookshelf-demo .spine.is-expanded.img-lean-startup { background-image: url("/covers/lean-startup.jpg") !important; }
1180
- .bookshelf-demo .spine.is-expanded.img-release-it { background-image: url("/covers/release-it.jpg") !important; }
1181
- .bookshelf-demo .spine.is-expanded.img-sre { background-image: url("/covers/sre.jpg") !important; }
1182
- .bookshelf-demo .spine.is-expanded.img-team-topologies { background-image: url("/covers/team-topologies.jpg") !important; }
1183
- .bookshelf-demo .spine.is-expanded.img-accelerate { background-image: url("/covers/accelerate.jpg") !important; }
1184
- .bookshelf-demo .spine.is-expanded.img-ddd { background-image: url("/covers/ddd.jpg") !important; }
1185
- .bookshelf-demo .spine.is-expanded.img-microservices { background-image: url("/covers/microservices.jpg") !important; }
1186
- .bookshelf-demo .spine.is-expanded.img-eaa { background-image: url("/covers/eaa.jpg") !important; }
1187
- .bookshelf-demo .spine.is-expanded.img-ddia { background-image: url("/covers/ddia.jpg") !important; }
1188
- .bookshelf-demo .spine.is-expanded.img-fundamentals-sa { background-image: url("/covers/fundamentals-sa.jpg") !important; }
1189
- .bookshelf-demo .spine.is-expanded.img-implementing-ddd { background-image: url("/covers/implementing-ddd.jpg") !important; }
1190
- .bookshelf-demo .spine.is-expanded.img-systems-performance { background-image: url("/covers/systems-performance.jpg") !important; }
1191
- .bookshelf-demo .spine.is-expanded.img-clean-architecture { background-image: url("/covers/clean-architecture.jpg") !important; }
1192
-
1193
- .bookshelf-demo .spine.is-expanded {
1194
- width: 90px;
1195
- height: 136px;
1196
- }
1197
- .bookshelf-demo .spine.is-expanded.is-collapsing {
1198
- width: 24px;
1199
- height: 132px;
1200
- }
1201
- .bookshelf-demo .spine.is-expanded.is-collapsing.s-tall { width: 26px; height: 148px; }
1202
- .bookshelf-demo .spine.is-expanded.is-collapsing.s-mid { width: 24px; height: 134px; }
1203
- .bookshelf-demo .spine.is-expanded.is-collapsing.s-short { width: 20px; height: 120px; }
1204
- .bookshelf-demo .note-hero { flex-direction: column; gap: 16px; }
1205
- .bookshelf-demo .note-cover { width: max-content; max-width: 100%; }
1206
- .bookshelf-demo .note-cover-img {
1207
- width: auto;
1208
- max-width: 100%;
1209
- max-height: 180px;
1210
- height: auto;
1211
- }
1212
- .bookshelf-demo .qa-hint { width: 100%; margin-left: 0; margin-top: 4px; }
1213
- }
1214
-
1215
- /* Reading path: hide demo/QA chrome unless ?debug=1 */
1216
- body:not(.debug-on) .bookshelf-demo .is-debug { display: none !important; }
1217
-
1218
- /* Site shelf: same column, type, and header as the blog. Motion rules above stay. */
1219
- .bookshelf-page.sh-main {
1220
- display: flex;
1221
- flex-direction: column;
1222
- align-items: center;
1223
- }
1224
- .bookshelf-page .sh-head {
1225
- width: 100%;
1226
- max-width: var(--col);
1227
- margin-inline: auto;
1228
- }
1229
- .bookshelf-page .sh-kicker {
1230
- margin: 0 0 12px;
1231
- font-size: var(--fs-meta);
1232
- letter-spacing: 0.08em;
1233
- color: var(--muted);
1234
- }
1235
- .bookshelf-demo.is-site {
1236
- --site-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
1237
- width: 100%;
1238
- max-width: var(--col);
1239
- margin-inline: auto;
1240
- background: transparent;
1241
- min-height: 0;
1242
- color: inherit;
1243
- font-family: var(--site-sans);
1244
- font-size: inherit;
1245
- line-height: inherit;
1246
- }
1247
- .bookshelf-demo.is-site .page {
1248
- width: 100%;
1249
- max-width: none;
1250
- margin: 0;
1251
- padding: 0 0 8px;
1252
- }
1253
- .bookshelf-demo.is-site .top { display: none; }
1254
- .bookshelf-page .sh-head h1,
1255
- .bookshelf-page .sh-deck,
1256
- .bookshelf-page .sh-kicker,
1257
- body:has(.bookshelf-demo.is-site) .sh-header,
1258
- body:has(.bookshelf-demo.is-site) .sh-footer {
1259
- font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
1260
- }
1261
- body:has(.bookshelf-demo.is-site) .sh-header .sh-word {
1262
- font-family: "Songti SC", "STSong", "Source Serif 4", Georgia, serif;
1263
- }
1264
- /* Overlays stay under the sticky header so open/close does not cover it. */
1265
- .bookshelf-demo.is-site .open-backdrop {
1266
- top: var(--hdr);
1267
- z-index: 30;
1268
- background: var(--paper);
1269
- }
1270
- .bookshelf-demo.is-site .stage { z-index: 32; }
1271
- .bookshelf-demo.is-site .note-view {
1272
- top: var(--hdr);
1273
- background: var(--paper);
1274
- color: var(--text);
1275
- }
1276
- .bookshelf-demo.is-site .note-view.is-preparing,
1277
- .bookshelf-demo.is-site .note-view.is-open { z-index: 34; }
1278
- .bookshelf-demo.is-site .open-veil { z-index: 36; }
1279
- .bookshelf-demo.is-site .note {
1280
- width: min(100%, var(--col));
1281
- margin: 0 auto;
1282
- padding: 28px 0 80px;
1283
- }
1284
- .bookshelf-demo.is-site .back-btn,
1285
- .bookshelf-demo.is-site .note-hero,
1286
- .bookshelf-demo.is-site .note-body,
1287
- .bookshelf-demo.is-site .note-read {
1288
- max-width: none;
1289
- font-family: var(--site-sans);
1290
- }
1291
- .bookshelf-demo.is-site .note-body {
1292
- font-size: var(--fs-body);
1293
- line-height: 1.75;
1294
- color: var(--text);
1295
- }
1296
- .bookshelf-demo.is-site .note-body h2 {
1297
- font-family: inherit;
1298
- font-size: var(--fs-h2);
1299
- font-weight: 700;
1300
- line-height: 1.3;
1301
- color: var(--ink);
1302
- }
1303
- .bookshelf-demo.is-site .note-meta h1 {
1304
- font-family: inherit;
1305
- font-weight: 700;
1306
- font-size: var(--fs-display);
1307
- line-height: 1.2;
1308
- color: var(--ink);
1309
- }
1310
- .bookshelf-demo .flyer-page-more {
1311
- pointer-events: auto;
1312
- align-self: flex-start;
1313
- margin-top: 8px;
1314
- font-family: system-ui, sans-serif;
1315
- font-size: 9px;
1316
- font-weight: 600;
1317
- letter-spacing: 0.04em;
1318
- color: var(--ink, #2a261e);
1319
- text-decoration: underline;
1320
- text-underline-offset: 2px;
1321
- }
1322
- .bookshelf-demo .note-read {
1323
- display: inline-block;
1324
- margin: 12px 0 0;
1325
- font-size: 14px;
1326
- color: var(--ink);
1327
- text-decoration: underline;
1328
- text-underline-offset: 3px;
1329
- }
1330
- .bookshelf-demo .note-read[hidden] { display: none; }
1331
- .bookshelf-demo.is-site .note-read { color: var(--blue); }
1332
- @media (max-width: 820px) {
1333
- .bookshelf-demo.is-site .note { padding: 16px 20px 64px; }
1334
- }