@dsbasko/cookbook-engine 0.1.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.

Potentially problematic release.


This version of @dsbasko/cookbook-engine might be problematic. Click here for more details.

Files changed (137) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +232 -0
  3. package/assets/fonts/jetbrains-mono/JetBrainsMono-Bold.woff2 +0 -0
  4. package/assets/fonts/jetbrains-mono/JetBrainsMono-BoldItalic.woff2 +0 -0
  5. package/assets/fonts/jetbrains-mono/JetBrainsMono-Italic.woff2 +0 -0
  6. package/assets/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2 +0 -0
  7. package/assets/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2 +0 -0
  8. package/assets/fonts/jetbrains-mono/JetBrainsMono-SemiBold.woff2 +0 -0
  9. package/package.json +92 -0
  10. package/scripts/check-course-coverage.mts +32 -0
  11. package/scripts/fix-static-image-extensions.mjs +78 -0
  12. package/scripts/generate-readme-toc.mts +32 -0
  13. package/scripts/resolve-course-paths.mjs +28 -0
  14. package/scripts/sync-images.mjs +88 -0
  15. package/src/components/AppShell/AppShell.module.css +40 -0
  16. package/src/components/AppShell/AppShell.tsx +135 -0
  17. package/src/components/AppShell/index.ts +1 -0
  18. package/src/components/Callout/Callout.module.css +68 -0
  19. package/src/components/Callout/Callout.tsx +83 -0
  20. package/src/components/Callout/index.ts +1 -0
  21. package/src/components/CodeBlock/CodeBlock.module.css +68 -0
  22. package/src/components/CodeBlock/CodeBlock.tsx +65 -0
  23. package/src/components/CodeBlock/index.ts +1 -0
  24. package/src/components/GateProvider/GateProvider.tsx +207 -0
  25. package/src/components/GateProvider/index.ts +1 -0
  26. package/src/components/Header/Breadcrumbs.tsx +50 -0
  27. package/src/components/Header/Header.module.css +131 -0
  28. package/src/components/Header/Header.tsx +26 -0
  29. package/src/components/Header/HeaderLessonNav.tsx +118 -0
  30. package/src/components/Header/index.ts +1 -0
  31. package/src/components/HomePage/HomePage.module.css +538 -0
  32. package/src/components/HomePage/HomePage.tsx +295 -0
  33. package/src/components/HomePage/index.ts +1 -0
  34. package/src/components/LessonAwareLink/LessonAwareLink.module.css +12 -0
  35. package/src/components/LessonAwareLink/LessonAwareLink.tsx +86 -0
  36. package/src/components/LessonAwareLink/index.ts +1 -0
  37. package/src/components/LessonLayout/LessonLayout.module.css +35 -0
  38. package/src/components/LessonLayout/LessonLayout.tsx +18 -0
  39. package/src/components/LessonLayout/index.ts +1 -0
  40. package/src/components/LessonLockedInterstitial/LessonLockedInterstitial.module.css +367 -0
  41. package/src/components/LessonLockedInterstitial/LessonLockedInterstitial.tsx +256 -0
  42. package/src/components/LessonLockedInterstitial/index.ts +1 -0
  43. package/src/components/LessonNav/LessonNav.module.css +84 -0
  44. package/src/components/LessonNav/LessonNav.tsx +64 -0
  45. package/src/components/LessonNav/index.ts +1 -0
  46. package/src/components/LessonPageLayout/LessonPageLayout.module.css +118 -0
  47. package/src/components/LessonPageLayout/LessonPageLayout.tsx +46 -0
  48. package/src/components/LessonPageLayout/index.ts +1 -0
  49. package/src/components/LessonSideMeta/LessonSideMeta.module.css +68 -0
  50. package/src/components/LessonSideMeta/LessonSideMeta.tsx +87 -0
  51. package/src/components/LessonSideMeta/index.ts +1 -0
  52. package/src/components/ModulePage/ModulePage.module.css +693 -0
  53. package/src/components/ModulePage/ModulePage.tsx +301 -0
  54. package/src/components/ModulePage/index.ts +1 -0
  55. package/src/components/ProgramDrawer/LockIcon.tsx +19 -0
  56. package/src/components/ProgramDrawer/ProgramDrawer.module.css +563 -0
  57. package/src/components/ProgramDrawer/ProgramDrawer.tsx +481 -0
  58. package/src/components/ProgramDrawer/index.ts +1 -0
  59. package/src/components/ProgressBar/ProgressBar.module.css +46 -0
  60. package/src/components/ProgressBar/ProgressBar.tsx +45 -0
  61. package/src/components/ProgressBar/index.ts +1 -0
  62. package/src/components/ProgressModeProvider/ProgressModeProvider.tsx +87 -0
  63. package/src/components/ProgressModeProvider/index.ts +1 -0
  64. package/src/components/ReadingPrefsProvider/ReadingPrefsProvider.tsx +100 -0
  65. package/src/components/ReadingPrefsProvider/index.ts +1 -0
  66. package/src/components/ReadingProgress/ReadingProgress.module.css +19 -0
  67. package/src/components/ReadingProgress/ReadingProgress.tsx +53 -0
  68. package/src/components/ReadingProgress/index.ts +1 -0
  69. package/src/components/SettingsToggle/SettingsToggle.module.css +888 -0
  70. package/src/components/SettingsToggle/SettingsToggle.tsx +688 -0
  71. package/src/components/SettingsToggle/index.ts +1 -0
  72. package/src/components/Sidebar/Sidebar.module.css +157 -0
  73. package/src/components/Sidebar/Sidebar.tsx +63 -0
  74. package/src/components/Sidebar/icons/GitHubIcon.tsx +17 -0
  75. package/src/components/Sidebar/icons/HomeIcon.tsx +22 -0
  76. package/src/components/Sidebar/icons/LanguageIcon.tsx +24 -0
  77. package/src/components/Sidebar/icons/ProgramIcon.tsx +23 -0
  78. package/src/components/Sidebar/icons/SettingsIcon.tsx +26 -0
  79. package/src/components/Sidebar/icons/ThemeIcon.tsx +22 -0
  80. package/src/components/Sidebar/icons/index.ts +6 -0
  81. package/src/components/Sidebar/index.ts +1 -0
  82. package/src/components/ThemeProvider/ThemeProvider.tsx +68 -0
  83. package/src/components/ThemeProvider/index.ts +1 -0
  84. package/src/components/Toc/Toc.module.css +78 -0
  85. package/src/components/Toc/Toc.tsx +92 -0
  86. package/src/components/Toc/index.ts +1 -0
  87. package/src/components/TranslationBanner/TranslationBanner.module.css +32 -0
  88. package/src/components/TranslationBanner/TranslationBanner.tsx +40 -0
  89. package/src/components/TranslationBanner/index.ts +1 -0
  90. package/src/config.d.mts +12 -0
  91. package/src/config.mjs +110 -0
  92. package/src/index.ts +62 -0
  93. package/src/layout/lang.tsx +44 -0
  94. package/src/layout/root.tsx +223 -0
  95. package/src/lib/course-loader.ts +33 -0
  96. package/src/lib/course.ts +429 -0
  97. package/src/lib/coverage.ts +141 -0
  98. package/src/lib/description.ts +43 -0
  99. package/src/lib/extract-toc.ts +59 -0
  100. package/src/lib/format.ts +55 -0
  101. package/src/lib/frontier-link.ts +37 -0
  102. package/src/lib/gate-init-script.ts +40 -0
  103. package/src/lib/gate-mark-script.ts +324 -0
  104. package/src/lib/i18n.ts +474 -0
  105. package/src/lib/lang.ts +90 -0
  106. package/src/lib/lesson-gate.ts +79 -0
  107. package/src/lib/lesson.ts +66 -0
  108. package/src/lib/markdown-components.tsx +51 -0
  109. package/src/lib/markdown.ts +180 -0
  110. package/src/lib/mdx-plugins/rehype-callout.ts +80 -0
  111. package/src/lib/mdx-plugins/remark-lesson-images.ts +109 -0
  112. package/src/lib/mdx-plugins/remark-link-rewrite.ts +231 -0
  113. package/src/lib/paths.ts +36 -0
  114. package/src/lib/program-drawer.ts +8 -0
  115. package/src/lib/progress-mode.ts +69 -0
  116. package/src/lib/progress.ts +182 -0
  117. package/src/lib/reading-prefs.ts +127 -0
  118. package/src/lib/readme-toc.ts +69 -0
  119. package/src/lib/site-url.ts +33 -0
  120. package/src/lib/sitemap.ts +112 -0
  121. package/src/lib/slug.ts +15 -0
  122. package/src/lib/theme.ts +78 -0
  123. package/src/lib/use-i18n.ts +25 -0
  124. package/src/og/icon.tsx +40 -0
  125. package/src/og/opengraph-image.tsx +126 -0
  126. package/src/pages/home.tsx +66 -0
  127. package/src/pages/lesson.tsx +260 -0
  128. package/src/pages/module.tsx +80 -0
  129. package/src/pages/not-found-lang.tsx +51 -0
  130. package/src/pages/not-found-root.tsx +48 -0
  131. package/src/pages/root.tsx +44 -0
  132. package/src/seo/robots.ts +16 -0
  133. package/src/seo/sitemap.ts +10 -0
  134. package/src/styles/globals.css +139 -0
  135. package/src/styles/markdown.css +265 -0
  136. package/src/styles/reset.css +89 -0
  137. package/src/styles/tokens.css +270 -0
@@ -0,0 +1,538 @@
1
+ /* Home page — technical-editorial layout (Stripe/Linear density meets
2
+ neo-academic warmth). Owns its own type/spacing scale via locals so the
3
+ global tokens stay untouched. */
4
+
5
+ .page {
6
+ /* Local scale — tighter than the global one to hit display sizes. */
7
+ --hp-space-7: 32px;
8
+ --hp-space-8: 40px;
9
+ --hp-space-9: 56px;
10
+ --hp-space-10: 72px;
11
+ --hp-space-11: 96px;
12
+
13
+ --hp-fs-micro: 11px;
14
+ --hp-fs-meta: 12px;
15
+ --hp-fs-small: 13px;
16
+ --hp-fs-body: 15px;
17
+ --hp-fs-lead: 18px;
18
+ --hp-fs-h3: 22px;
19
+ --hp-fs-h2: 28px;
20
+ --hp-fs-display: 88px;
21
+
22
+ --hp-r-1: 2px;
23
+ --hp-r-2: 4px;
24
+ --hp-r-3: 8px;
25
+
26
+ padding: var(--hp-space-9) var(--hp-space-7) var(--hp-space-11);
27
+ max-width: 1280px;
28
+ width: 100%;
29
+ margin: 0 auto;
30
+ font-size: var(--hp-fs-body);
31
+ line-height: 1.55;
32
+ }
33
+
34
+ /* ---------- Hero ---------- */
35
+
36
+ .hero {
37
+ display: grid;
38
+ grid-template-columns: 1fr 360px;
39
+ gap: var(--hp-space-9);
40
+ align-items: flex-end;
41
+ padding-bottom: var(--hp-space-9);
42
+ border-bottom: 1px solid var(--bg-stroke);
43
+ }
44
+
45
+ .heroTitle {
46
+ font-size: var(--hp-fs-display);
47
+ line-height: 0.96;
48
+ letter-spacing: -0.035em;
49
+ font-weight: 700;
50
+ margin: 0 0 var(--space-5);
51
+ color: var(--content-primary);
52
+ text-wrap: balance;
53
+ }
54
+
55
+ .heroTitleAccent {
56
+ font-style: italic;
57
+ font-weight: 400;
58
+ color: var(--content-secondary);
59
+ }
60
+
61
+ .heroLead {
62
+ font-size: var(--hp-fs-lead);
63
+ line-height: 1.5;
64
+ color: var(--content-secondary);
65
+ max-width: 560px;
66
+ margin: 0 0 var(--hp-space-7);
67
+ text-wrap: pretty;
68
+ }
69
+
70
+ .ctaRow {
71
+ display: flex;
72
+ gap: var(--space-3);
73
+ align-items: center;
74
+ flex-wrap: wrap;
75
+ }
76
+
77
+ /* ---------- Buttons ---------- */
78
+
79
+ .btn {
80
+ display: inline-flex;
81
+ align-items: center;
82
+ gap: var(--space-3);
83
+ padding: 12px var(--space-5);
84
+ border-radius: var(--hp-r-2);
85
+ font-size: var(--hp-fs-body);
86
+ font-weight: 600;
87
+ border: 1px solid transparent;
88
+ transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
89
+ white-space: nowrap;
90
+ text-decoration: none;
91
+ font-family: inherit;
92
+ cursor: pointer;
93
+ }
94
+
95
+ .btnPrimary {
96
+ background: var(--accent-main);
97
+ color: var(--content-inverse);
98
+ border-color: var(--accent-main);
99
+ }
100
+
101
+ .btnPrimary:hover {
102
+ background: var(--accent-main-hover);
103
+ border-color: var(--accent-main-hover);
104
+ color: var(--content-inverse);
105
+ }
106
+
107
+ .btnSecondary {
108
+ background: var(--bg-surface);
109
+ color: var(--content-primary);
110
+ border-color: var(--bg-stroke-strong);
111
+ }
112
+
113
+ .btnSecondary:hover {
114
+ border-color: var(--accent-main);
115
+ }
116
+
117
+ .btnGhost {
118
+ background: transparent;
119
+ color: var(--content-secondary);
120
+ padding: 12px var(--space-3);
121
+ }
122
+
123
+ .btnGhost:hover {
124
+ color: var(--content-primary);
125
+ }
126
+
127
+ .btnArrow {
128
+ font-family: var(--font-mono), ui-monospace, monospace;
129
+ font-weight: 400;
130
+ transition: transform 150ms ease;
131
+ }
132
+
133
+ .btn:hover .btnArrow {
134
+ transform: translateX(3px);
135
+ }
136
+
137
+ /* "Continue from N" hint under the CTA row. */
138
+ .nextHint {
139
+ margin-top: var(--space-5);
140
+ font-size: var(--hp-fs-small);
141
+ color: var(--content-tertiary);
142
+ font-family: var(--font-mono), ui-monospace, monospace;
143
+ }
144
+
145
+ .nextHintArrow {
146
+ color: var(--content-tertiary);
147
+ }
148
+
149
+ .nextHintModule {
150
+ color: var(--content-secondary);
151
+ }
152
+
153
+ .nextHintSep {
154
+ color: var(--content-tertiary);
155
+ }
156
+
157
+ .nextHintLesson {
158
+ color: var(--content-primary);
159
+ }
160
+
161
+ /* ---------- Stats card ---------- */
162
+
163
+ .statsCard {
164
+ background: var(--bg-surface);
165
+ border: 1px solid var(--bg-stroke);
166
+ border-radius: var(--hp-r-3);
167
+ padding: var(--space-6);
168
+ display: flex;
169
+ flex-direction: column;
170
+ gap: var(--space-5);
171
+ }
172
+
173
+
174
+ .statsProgressRow {
175
+ display: flex;
176
+ justify-content: space-between;
177
+ align-items: baseline;
178
+ margin-bottom: var(--space-3);
179
+ }
180
+
181
+ .statsPct {
182
+ font-family: var(--font-mono), ui-monospace, monospace;
183
+ font-size: 32px;
184
+ font-weight: 600;
185
+ letter-spacing: -0.02em;
186
+ line-height: 1;
187
+ }
188
+
189
+ .statsPctUnit {
190
+ font-size: 18px;
191
+ color: var(--content-tertiary);
192
+ }
193
+
194
+ .statsOf {
195
+ font-family: var(--font-mono), ui-monospace, monospace;
196
+ font-size: var(--hp-fs-small);
197
+ color: var(--content-secondary);
198
+ }
199
+
200
+ .statsBar {
201
+ height: 6px;
202
+ background: var(--bg-subtle);
203
+ border-radius: 999px;
204
+ overflow: hidden;
205
+ position: relative;
206
+ }
207
+
208
+ .statsBarFill {
209
+ display: block;
210
+ height: 100%;
211
+ background: var(--accent-main);
212
+ border-radius: 999px;
213
+ transition: width 500ms ease;
214
+ }
215
+
216
+ .statsGrid {
217
+ display: grid;
218
+ grid-template-columns: 1fr 1fr;
219
+ gap: var(--space-4) var(--space-5);
220
+ margin: 0;
221
+ }
222
+
223
+ .statsGrid > div {
224
+ margin: 0;
225
+ }
226
+
227
+ .statsLabel {
228
+ font-family: var(--font-mono), ui-monospace, monospace;
229
+ font-size: var(--hp-fs-meta);
230
+ color: var(--content-tertiary);
231
+ text-transform: uppercase;
232
+ letter-spacing: 0.05em;
233
+ margin: 0 0 2px;
234
+ }
235
+
236
+ .statsValue {
237
+ font-size: var(--hp-fs-body);
238
+ font-weight: 600;
239
+ color: var(--content-primary);
240
+ margin: 0;
241
+ }
242
+
243
+ /* ---------- Section heading ---------- */
244
+
245
+ .sectionHead {
246
+ display: flex;
247
+ justify-content: space-between;
248
+ align-items: flex-end;
249
+ padding: var(--hp-space-9) 0 var(--space-6);
250
+ gap: var(--hp-space-7);
251
+ }
252
+
253
+ .sectionEyebrow {
254
+ font-family: var(--font-mono), ui-monospace, monospace;
255
+ font-size: var(--hp-fs-meta);
256
+ color: var(--content-tertiary);
257
+ text-transform: uppercase;
258
+ letter-spacing: 0.08em;
259
+ margin-bottom: var(--space-2);
260
+ }
261
+
262
+ .sectionTitle {
263
+ font-size: var(--hp-fs-h2);
264
+ letter-spacing: -0.02em;
265
+ margin: 0;
266
+ font-weight: 600;
267
+ }
268
+
269
+ .sectionTools {
270
+ display: flex;
271
+ align-items: center;
272
+ gap: var(--space-2);
273
+ font-family: var(--font-mono), ui-monospace, monospace;
274
+ font-size: var(--hp-fs-small);
275
+ color: var(--content-tertiary);
276
+ }
277
+
278
+ /* ---------- Modules list ---------- */
279
+
280
+ .modules {
281
+ list-style: none;
282
+ margin: 0;
283
+ padding: 0;
284
+ display: flex;
285
+ flex-direction: column;
286
+ border-top: 1px solid var(--bg-stroke);
287
+ }
288
+
289
+ .moduleItem {
290
+ margin: 0;
291
+ }
292
+
293
+ .moduleRow {
294
+ display: grid;
295
+ grid-template-columns: 72px 1fr 220px 160px 32px;
296
+ align-items: center;
297
+ gap: var(--space-5);
298
+ padding: var(--space-6) 0;
299
+ border-bottom: 1px solid var(--bg-stroke);
300
+ text-decoration: none;
301
+ color: inherit;
302
+ position: relative;
303
+ transition: background-color 120ms ease;
304
+ }
305
+
306
+ .moduleRow:hover {
307
+ background: var(--bg-subtle);
308
+ }
309
+
310
+ /* Lock state — toggled by the gate-mark inline script setting data-locked
311
+ on this same element. JSX always renders the open shape, the script
312
+ flips the attribute before first paint, and CSS swaps icon + styling
313
+ without rebuilding the DOM (no React-driven re-render → no flash). */
314
+ .moduleRow[data-locked='true'] {
315
+ cursor: not-allowed;
316
+ color: var(--content-tertiary);
317
+ }
318
+
319
+ .moduleRow[data-locked='true']:hover {
320
+ background: transparent;
321
+ }
322
+
323
+ .moduleRow[data-locked='true']:hover .arrowCell {
324
+ color: var(--content-tertiary);
325
+ transform: none;
326
+ }
327
+
328
+ .moduleRow[data-locked='true'] .moduleTitle,
329
+ .moduleRow[data-locked='true'] .moduleDesc,
330
+ .moduleRow[data-locked='true'] .mmLessons,
331
+ .moduleRow[data-locked='true'] .mmDuration,
332
+ .moduleRow[data-locked='true'] .mpPct {
333
+ color: var(--content-tertiary);
334
+ }
335
+
336
+ .arrowCell .arrowLocked {
337
+ display: none;
338
+ color: var(--content-tertiary);
339
+ }
340
+
341
+ .moduleRow[data-locked='true'] .arrowOpen {
342
+ display: none;
343
+ }
344
+
345
+ .moduleRow[data-locked='true'] .arrowLocked {
346
+ display: inline-flex;
347
+ align-items: center;
348
+ }
349
+
350
+ /* Status labels live in JSX as siblings of .mpStatus; CSS hides all but the
351
+ one matching the row's data-progress-state. Gate-paint flips that state
352
+ on the row, CSS reveals the right copy without re-rendering React. */
353
+ .mpStatus > [data-status] {
354
+ display: none;
355
+ }
356
+ .moduleRow[data-progress-state='not-started'] .mpStatus > [data-status='not-started'],
357
+ .moduleRow[data-progress-state='in-progress'] .mpStatus > [data-status='in-progress'],
358
+ .moduleRow[data-progress-state='complete'] .mpStatus > [data-status='complete'] {
359
+ display: inline;
360
+ }
361
+ .moduleRow[data-progress-state='complete'] .mpFill {
362
+ background: var(--accent-success);
363
+ }
364
+
365
+ /* CTA variants. Gate-paint sets data-cta-state on the row, CSS picks the
366
+ variant. Two of the variants share data-cta-variant='in-progress' (the
367
+ primary "Продолжить" link and the secondary "Начать с начала"); they
368
+ both reveal in the in-progress state. */
369
+ .ctaRow [data-cta-variant] {
370
+ display: none;
371
+ }
372
+ .ctaRow[data-cta-state='not-started'] [data-cta-variant='not-started'],
373
+ .ctaRow[data-cta-state='in-progress'] [data-cta-variant='in-progress'] {
374
+ display: inline-flex;
375
+ }
376
+
377
+ /* Frontier hint: hidden by default (SSR baseline = not-started). Gate-paint
378
+ flips data-hint-state once it knows the user has progressed. */
379
+ .nextHint[data-hint-state='hidden'] {
380
+ display: none;
381
+ }
382
+
383
+ /* Global stats card: success colour once everything is finished. */
384
+ .statsCard[data-progress-state='complete'] .statsBarFill {
385
+ background: var(--accent-success);
386
+ }
387
+
388
+ .moduleRow:hover .arrowCell {
389
+ color: var(--content-primary);
390
+ transform: translateX(4px);
391
+ }
392
+
393
+ .moduleNum {
394
+ font-family: var(--font-mono), ui-monospace, monospace;
395
+ font-size: var(--hp-fs-small);
396
+ color: var(--content-tertiary);
397
+ letter-spacing: 0.04em;
398
+ padding-left: var(--space-2);
399
+ }
400
+
401
+ .moduleText {
402
+ min-width: 0;
403
+ }
404
+
405
+ .moduleTitle {
406
+ font-size: var(--hp-fs-h3);
407
+ line-height: 1.25;
408
+ letter-spacing: -0.015em;
409
+ font-weight: 600;
410
+ margin: 0 0 var(--space-2);
411
+ color: var(--content-primary);
412
+ }
413
+
414
+ .moduleDesc {
415
+ font-size: var(--hp-fs-small);
416
+ color: var(--content-secondary);
417
+ margin: 0;
418
+ line-height: 1.5;
419
+ display: -webkit-box;
420
+ -webkit-line-clamp: 2;
421
+ -webkit-box-orient: vertical;
422
+ overflow: hidden;
423
+ }
424
+
425
+ .moduleProgress {
426
+ display: flex;
427
+ flex-direction: column;
428
+ gap: 6px;
429
+ }
430
+
431
+ .mpRow {
432
+ display: flex;
433
+ justify-content: space-between;
434
+ font-family: var(--font-mono), ui-monospace, monospace;
435
+ font-size: var(--hp-fs-meta);
436
+ color: var(--content-secondary);
437
+ text-transform: uppercase;
438
+ letter-spacing: 0.05em;
439
+ }
440
+
441
+ .mpPct {
442
+ color: var(--content-primary);
443
+ font-weight: 600;
444
+ }
445
+
446
+ .mpBar {
447
+ height: 4px;
448
+ background: var(--bg-subtle);
449
+ border-radius: 999px;
450
+ overflow: hidden;
451
+ }
452
+
453
+ .mpFill {
454
+ display: block;
455
+ height: 100%;
456
+ background: var(--accent-main);
457
+ border-radius: 999px;
458
+ transition: width 400ms ease;
459
+ }
460
+
461
+ .moduleProgressDone .mpFill {
462
+ background: var(--accent-success);
463
+ }
464
+
465
+ .moduleMeta {
466
+ display: flex;
467
+ flex-direction: column;
468
+ gap: 2px;
469
+ font-family: var(--font-mono), ui-monospace, monospace;
470
+ font-size: var(--hp-fs-small);
471
+ color: var(--content-secondary);
472
+ text-align: right;
473
+ }
474
+
475
+ .mmLessons {
476
+ color: var(--content-primary);
477
+ font-weight: 600;
478
+ }
479
+
480
+ .mmDuration {
481
+ font-size: var(--hp-fs-meta);
482
+ color: var(--content-tertiary);
483
+ }
484
+
485
+ .arrowCell {
486
+ font-family: var(--font-mono), ui-monospace, monospace;
487
+ font-size: 20px;
488
+ color: var(--content-tertiary);
489
+ text-align: right;
490
+ transition: transform 150ms ease, color 150ms ease;
491
+ padding-right: var(--space-2);
492
+ }
493
+
494
+ /* ---------- Responsive ---------- */
495
+
496
+ @media (max-width: 1100px) {
497
+ .hero {
498
+ grid-template-columns: 1fr;
499
+ gap: var(--hp-space-7);
500
+ }
501
+ .moduleRow {
502
+ grid-template-columns: 56px 1fr 140px 32px;
503
+ }
504
+ .moduleProgress {
505
+ display: none;
506
+ }
507
+ }
508
+
509
+ @media (max-width: 720px) {
510
+ .page {
511
+ padding: var(--space-6) var(--space-5) var(--hp-space-9);
512
+ }
513
+ .heroTitle {
514
+ font-size: 56px;
515
+ }
516
+ .ctaRow {
517
+ flex-direction: column;
518
+ align-items: stretch;
519
+ }
520
+ .ctaRow .btn {
521
+ justify-content: space-between;
522
+ width: 100%;
523
+ }
524
+ .btnGhost {
525
+ display: none;
526
+ }
527
+ .moduleRow {
528
+ grid-template-columns: 48px 1fr 32px;
529
+ }
530
+ .moduleMeta {
531
+ display: none;
532
+ }
533
+ .sectionHead {
534
+ flex-direction: column;
535
+ align-items: flex-start;
536
+ gap: var(--space-2);
537
+ }
538
+ }