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