-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathproject-site.css
More file actions
531 lines (512 loc) · 32 KB
/
Copy pathproject-site.css
File metadata and controls
531 lines (512 loc) · 32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
:root {
--paper: #fbfaf7; --paper-2: #f2f0eb; --ink: #2b2932; --ink-2: #66636d;
--ink-3: #918e96; --line: #ddd9d4; --accent: #7d3f91; --accent-soft: #f0e5f2;
--serif: "Newsreader", Georgia, serif; --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
--mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace; --maxw: 1120px; --gutter: clamp(22px, 5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: auto; padding-inline: var(--gutter); }
.topbar { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); }
.topbar-inner { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; gap: 11px; align-items: center; font: 500 1.1rem var(--serif); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
nav { display: flex; gap: 24px; color: var(--ink-2); font: 11px var(--mono); }
nav a:hover, .text-link:hover { color: var(--accent); }
.crumb { display: flex; gap: 12px; margin-top: 36px; color: var(--ink-3); font: 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.crumb a { color: var(--accent); }
.hero { max-width: 790px; padding: clamp(66px, 12vh, 140px) 0 92px; }
.label, .eyebrow { color: var(--accent); font: 500 11px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 13ch; margin: 20px 0 25px; font: 400 clamp(3.4rem, 8vw, 7rem)/.91 var(--serif); letter-spacing: -.04em; }
.lead { max-width: 55ch; margin: 0; color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 35px; }
.button { padding: 11px 17px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 11px var(--mono); transition: transform .2s; }
.button:hover { transform: translateY(-2px); }
.text-link { padding-bottom: 4px; border-bottom: 1px solid var(--accent); font: 11px var(--mono); }
.content { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 10vw, 130px); padding: 54px 0 112px; border-top: 1px solid var(--line); }
.feature-list { margin-top: 22px; border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.feature span { color: var(--accent); font: 11px var(--mono); }
.feature p { margin: 0; max-width: 42ch; font: 400 1.25rem/1.25 var(--serif); }
.aside { align-self: start; padding: 25px; background: var(--paper-2); }
.aside p { margin: 21px 0 28px; color: var(--ink-2); font-size: .94rem; line-height: 1.65; }
footer { border-top: 1px solid var(--line); padding: 25px 0; color: var(--ink-3); font: 10px var(--mono); }
footer .wrap { display: flex; justify-content: space-between; gap: 15px; }
footer a { color: var(--accent); }
.repo-index { padding: 62px 0 110px; border-top: 1px solid var(--line); }
.repo-index-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 8vw, 100px); align-items: end; }
.repo-index h2 { max-width: 11ch; margin-top: 17px; font: 400 clamp(2.2rem, 4.7vw, 4rem)/.98 var(--serif); letter-spacing: -.03em; }
.repo-intro { max-width: 58ch; margin: 0; color: var(--ink-2); line-height: 1.65; }
.repo-stats { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 45px; background: var(--line); border: 1px solid var(--line); }
.repo-stat { display: flex; min-width: 125px; flex: 1; flex-direction: column; gap: 5px; padding: 17px 18px; background: var(--paper); }
.repo-stat strong { color: var(--ink); font: 400 1.7rem var(--serif); }
.repo-stat small { color: var(--ink-3); font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.start-box { margin-top: 45px; padding: 24px; background: var(--paper-2); }
.start-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.start-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; gap: 11px; align-items: center; padding: 13px 14px; background: var(--paper); font-size: .88rem; }
.start-item:hover, .file-item:hover { background: var(--accent-soft); color: var(--accent); }
.file-kind, .file-ext { color: var(--accent); font: 10px var(--mono); letter-spacing: .07em; }
.small-arrow { color: var(--ink-3); font: 12px var(--mono); }
.repo-map { margin-top: 55px; }
.repo-group { border-top: 1px solid var(--line); }
.repo-group:last-child { border-bottom: 1px solid var(--line); }
.repo-group summary { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; font: 400 1.35rem var(--serif); }
.repo-group summary::-webkit-details-marker { display: none; }
.repo-group summary::after { content: "+"; color: var(--accent); font: 16px var(--mono); }
.repo-group[open] summary::after { content: "−"; }
.group-count { align-self: center; color: var(--ink-3); font: 10px var(--mono); }
.file-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding-bottom: 25px; background: var(--line); }
.file-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 11px 13px; background: var(--paper); font: 12px var(--mono); word-break: break-word; }
.file-ext { color: var(--ink-3); font-size: 9px; }
.muted { color: var(--ink-3); font-size: .9rem; }
.problem-archive { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-archive summary { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; cursor: pointer; list-style: none; color: var(--ink-2); font: 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.problem-archive summary::-webkit-details-marker { display: none; }
.problem-archive summary::after { content: "+"; color: var(--accent); font-size: 16px; }
.problem-archive[open] summary::after { content: "−"; }
.problem-archive .resource-grid { margin: 0 0 20px; }
@media (max-width: 700px) {
.topbar-inner { min-height: 60px; flex-wrap: wrap; padding-block: 11px; }
nav { width: 100%; gap: 16px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { flex: 0 0 auto; }
.hero { padding-block: 70px; }
.hero h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
.content, .repo-index-head { grid-template-columns: 1fr; }
.content { padding-bottom: 70px; }
.aside { max-width: 560px; }
.repo-index { padding-bottom: 70px; }
.start-list, .file-grid { grid-template-columns: 1fr; }
.repo-stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.repo-stat { min-width: 0; }
.repo-group summary { font-size: 1.18rem; }
}
/* Collection-first project pages */
.project-hero { max-width: var(--maxw); padding-top: 34px; padding-bottom: clamp(72px, 11vw, 130px); }
.project-hero .label { margin-top: 58px; }
.project-hero h1 { max-width: 12ch; margin: 20px 0 25px; font: 400 clamp(3.4rem, 8vw, 7rem)/.91 var(--serif); letter-spacing: -.04em; }
.project-intro { border-block: 1px solid var(--line); background: var(--paper-2); }
.project-intro .wrap { padding-block: clamp(44px, 7vw, 78px); }
.intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 9vw, 120px); align-items: end; }
.intro-grid h2 { max-width: 14ch; margin-top: 18px; font: 400 clamp(2.1rem, 4vw, 3.8rem)/.98 var(--serif); letter-spacing: -.035em; }
.intro-grid p { max-width: 60ch; margin: 0; color: var(--ink-2); line-height: 1.68; }
.start-grid { margin-top: 36px; }
.project-content { padding-block: clamp(58px, 9vw, 105px); }
.collection-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 22px 0 60px; border: 1px solid var(--line); background: var(--line); }
.collection-nav a { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; gap: 9px; align-items: baseline; min-width: 0; padding: 13px 14px; background: var(--paper); transition: background .18s, color .18s; }
.collection-nav a:hover, .collection-nav a:focus-visible { background: var(--accent-soft); color: var(--accent-strong); outline: none; }
.collection-nav span, .collection-nav small { color: var(--ink-3); font: 9px var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.collection-nav strong { overflow: hidden; font: 400 1rem/1.1 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.module-section, .problem-library { scroll-margin-top: 20px; padding: 42px 0 52px; border-top: 1px solid var(--line); }
.module-heading { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; margin-bottom: 24px; }
.module-index { color: var(--accent); font: 11px var(--mono); letter-spacing: .05em; }
.module-kicker { display: block; margin-bottom: 9px; color: var(--accent); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.module-heading h3 { max-width: 21ch; margin: 0; font: 400 clamp(1.75rem, 3vw, 2.7rem)/1 var(--serif); letter-spacing: -.025em; }
.module-heading p { max-width: 58ch; margin: 11px 0 0; color: var(--ink-2); font-size: .92rem; }
.resource-grid { align-items: stretch; }
.resource-card { min-height: 180px; padding: 20px; cursor: pointer; }
.resource-card .resource-title { max-width: 28ch; font-size: 1.33rem; line-height: 1.12; white-space: normal; }
.resource-card .resource-summary { display: block; max-width: 40ch; }
.resource-card .resource-number:empty { display: none; }
.module-more { margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.module-more summary { display: flex; justify-content: space-between; gap: 15px; padding: 16px 0; cursor: pointer; list-style: none; color: var(--ink-2); font: 11px var(--mono); letter-spacing: .04em; }
.module-more summary::-webkit-details-marker { display: none; }
.module-more summary::after { content: "+"; color: var(--accent); font-size: 16px; }
.module-more[open] summary::after { content: "−"; }
.module-more summary span { color: var(--ink-3); }
.module-more .resource-grid { margin-bottom: 18px; }
.problem-search { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; align-items: center; margin: 0 0 11px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-3); font: 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.problem-search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 1.08rem var(--serif); outline: none; }
.problem-search input::placeholder { color: var(--ink-3); }
.problem-search:focus-within { border-color: var(--accent); }
.problem-count { margin: 13px 0 18px; color: var(--ink-3); font: 10px var(--mono); letter-spacing: .05em; }
.problem-grid .resource-card { min-height: 155px; }
.problem-grid .resource-summary { font: 10px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.problem-grid .resource-number { color: var(--ink-3); }
/* Keep collection entries focused: title, type, and one clear action. */
.resource-card { display: flex; min-height: 164px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 20px; }
.resource-card .resource-link-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 16px; }
.resource-card .resource-title { display: block; max-width: 24ch; margin-top: 25px; overflow: visible; color: var(--ink); font: 400 clamp(1.35rem, 2.4vw, 1.85rem)/1.06 var(--serif); letter-spacing: -.02em; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.resource-card .resource-summary { display: block; margin-top: 10px; overflow: hidden; color: var(--ink-2); font: 10px/1.35 var(--mono); letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.resource-card .resource-action { align-self: flex-start; margin-top: auto; padding: 0; border: 0; color: var(--accent-strong); font-size: 9px; }
.resource-card .resource-action { display: none; }
.resource-card:hover .resource-title { color: var(--accent-strong); }
.problem-grid .resource-card { min-height: 145px; }
.problem-grid .resource-card .resource-title { margin-top: 18px; }
@media (max-width: 760px) {
.intro-grid { grid-template-columns: 1fr; gap: 22px; }
.collection-nav { grid-template-columns: 1fr; margin-bottom: 42px; }
.module-section, .problem-library { padding-block: 34px; }
.resource-card { min-height: 155px; }
.problem-search { grid-template-columns: 1fr; gap: 8px; }
}
/* Resource system ----------------------------------------------------------
The generator is moving from raw file links to semantic resource entries.
Keep the legacy selectors above working while these selectors provide a
compact, readable presentation for cards, collections, and file viewers. */
:root {
--accent-strong: #653078;
--radius: 2px;
--shadow: 0 14px 35px rgb(43 41 50 / 10%);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
.topbar { background: rgb(251 250 247 / 88%); background: color-mix(in srgb, var(--paper) 88%, transparent); }
.button { transition: transform .2s, background-color .2s, border-color .2s; }
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
/* Entry points: show the title first, and keep the full path secondary. */
.start-list,
.resource-list,
.resource-grid,
.resource-cards,
.collection-list { display: grid; gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.start-list,
.resource-grid,
.resource-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.start-item,
.resource-card,
.resource-item,
.resource-row,
.collection-row,
.directory-row { position: relative; min-width: 0; background: var(--paper); }
.start-item,
.resource-card,
.resource-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 15px; }
.start-item:hover,
.resource-card:hover,
.resource-item:hover,
.resource-row:hover,
.collection-row:hover,
.directory-row:hover,
.file-item:hover { background: var(--accent-soft); }
.resource-card,
.resource-item,
.resource-row,
.collection-row,
.directory-row { transition: background-color .18s ease; }
.resource-card > a:first-child,
.resource-item > a:first-child,
.resource-row > a:first-child,
.collection-row > a:first-child,
.directory-row > a:first-child { min-width: 0; }
.resource-card__body,
.resource-item__body,
.resource-row__body,
.collection-row__body,
.directory-row__body { min-width: 0; }
.resource-card__title,
.resource-item__title,
.resource-row__title,
.collection-row__title,
.directory-row__title,
.resource-name,
.resource-title { display: block; min-width: 0; overflow: hidden; color: var(--ink); font: 500 .9rem/1.35 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.resource-card:hover .resource-card__title,
.resource-item:hover .resource-item__title,
.resource-row:hover .resource-row__title,
.collection-row:hover .collection-row__title,
.directory-row:hover .directory-row__title { color: var(--accent-strong); }
.resource-card__description,
.resource-item__description,
.resource-row__description,
.collection-row__description,
.directory-row__description,
.resource-description { display: block; margin-top: 3px; overflow: hidden; color: var(--ink-2); font-size: .78rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.resource-card__meta,
.resource-item__meta,
.resource-row__meta,
.collection-row__meta,
.directory-row__meta,
.resource-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 6px; color: var(--ink-3); font: 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.resource-icon,
.resource-type,
.resource-kind,
.file-kind,
.file-ext { color: var(--accent); font: 10px var(--mono); letter-spacing: .07em; }
.small-arrow { color: var(--ink-3); font: 12px var(--mono); }
.resource-path,
.resource-card__path,
.resource-item__path,
.resource-row__path,
.collection-row__path,
.directory-row__path,
.file-path { display: block; max-width: 34ch; overflow: hidden; margin-top: 3px; color: var(--ink-3); font: 10px/1.35 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.resource-actions,
.resource-card__actions,
.resource-item__actions,
.resource-row__actions,
.collection-row__actions,
.directory-row__actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.resource-action,
.resource-preview,
.resource-open,
.preview-link,
.file-preview,
.resource-download,
.download-link,
.file-download { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 5px 8px; border: 1px solid transparent; color: var(--accent-strong); font: 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.resource-preview,
.resource-open,
.preview-link,
.file-preview { border-color: var(--accent); background: var(--paper); }
.resource-preview:hover,
.resource-open:hover,
.preview-link:hover,
.file-preview:hover { background: var(--accent); color: var(--paper); }
.resource-download,
.download-link,
.file-download { color: var(--ink-3); }
.resource-download:hover,
.download-link:hover,
.file-download:hover { color: var(--ink); border-color: var(--line); }
.resource-preview::before,
.resource-open::before,
.preview-link::before,
.file-preview::before { content: "↗"; margin-right: 5px; font-size: 11px; }
.resource-download::before,
.download-link::before,
.file-download::before { content: "↓"; margin-right: 5px; }
/* Collection and directory rows act as navigation rather than file dumps. */
.collection-list,
.directory-list,
.resource-directories { grid-template-columns: 1fr; }
.collection-row,
.directory-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 15px; }
.collection-row::before,
.directory-row::before { content: "⌁"; color: var(--accent); font: 17px var(--serif); }
.collection-row__count,
.directory-row__count,
.resource-count { color: var(--ink-3); font: 10px var(--mono); white-space: nowrap; }
.resource-children,
.collection-children,
.directory-children { padding: 0 15px 15px 48px; background: var(--paper); }
/* The old file map remains usable, but long paths no longer control layout. */
.file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.file-item { min-width: 0; align-items: center; word-break: normal; }
.file-item > span:first-child { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-ext { white-space: nowrap; }
/* In-page resource viewer. Supports dialog, anchored-panel, and transition names. */
.resource-modal,
.resource-viewer-modal,
.modal-viewer,
.file-modal,
.modal { position: fixed; z-index: 20; inset: 0; display: none; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px); background: rgb(43 41 50 / 48%); }
.resource-modal[open],
.resource-viewer-modal[open],
.modal-viewer[open],
.file-modal[open],
.modal.is-open,
.modal.open { display: flex; }
.resource-modal::backdrop,
.resource-viewer-modal::backdrop,
.modal-viewer::backdrop,
.file-modal::backdrop { background: rgb(43 41 50 / 48%); }
.resource-modal__dialog,
.resource-viewer,
.modal-viewer__panel,
.file-modal__dialog,
.modal-content { display: flex; width: min(100%, 980px); max-height: min(88vh, 900px); flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.resource-modal__header,
.resource-viewer__header,
.modal-viewer__header,
.file-modal__header,
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.resource-modal__title,
.resource-viewer__title,
.modal-viewer__title,
.file-modal__title,
.modal-title { margin: 0; font: 400 clamp(1.3rem, 3vw, 2rem)/1.1 var(--serif); }
.resource-modal__close,
.resource-viewer__close,
.modal-viewer__close,
.file-modal__close,
.modal-close { width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid var(--line); background: var(--paper); color: var(--accent-strong); cursor: pointer; font: 16px/1 var(--mono); }
.resource-modal__close:hover,
.resource-viewer__close:hover,
.modal-viewer__close:hover,
.file-modal__close:hover,
.modal-close:hover { border-color: var(--accent); background: var(--accent-soft); }
.resource-modal__body,
.resource-viewer__body,
.modal-viewer__body,
.file-modal__body,
.modal-body { min-height: 0; overflow: auto; padding: 22px; }
.resource-modal pre,
.resource-viewer pre,
.modal-viewer pre,
.file-modal pre,
.modal-content pre { margin: 0; overflow: auto; padding: 18px; border: 1px solid var(--line); background: #f5f3ef; color: var(--ink); font: 12px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.resource-modal iframe,
.resource-viewer iframe,
.modal-viewer iframe,
.file-modal iframe { width: 100%; min-height: 62vh; border: 0; background: white; }
.resource-modal__footer,
.resource-viewer__footer,
.modal-viewer__footer,
.file-modal__footer,
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 820px) {
.repo-index-head { grid-template-columns: 1fr; }
.repo-index h2 { max-width: 14ch; }
.resource-card,
.resource-item { grid-template-columns: auto minmax(0, 1fr); }
.resource-card__actions,
.resource-item__actions { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 700px) {
.start-list,
.file-grid,
.resource-grid,
.resource-cards { grid-template-columns: 1fr; }
.start-item,
.resource-card,
.resource-item,
.resource-row { grid-template-columns: auto minmax(0, 1fr); }
.start-item > .small-arrow,
.resource-card__actions,
.resource-item__actions,
.resource-row__actions { grid-column: 2; justify-content: flex-start; }
.resource-actions,
.collection-row__actions,
.directory-row__actions { justify-content: flex-start; }
.collection-row,
.directory-row { grid-template-columns: auto minmax(0, 1fr); }
.collection-row__count,
.directory-row__count,
.resource-count { grid-column: 2; }
.resource-path,
.resource-card__path,
.resource-item__path,
.resource-row__path,
.collection-row__path,
.directory-row__path,
.file-path { max-width: 100%; }
.resource-modal,
.resource-viewer-modal,
.modal-viewer,
.file-modal,
.modal { align-items: flex-end; padding: 0; }
.resource-modal__dialog,
.resource-viewer,
.modal-viewer__panel,
.file-modal__dialog,
.modal-content { width: 100%; max-height: 94vh; }
.resource-modal__header,
.resource-viewer__header,
.modal-viewer__header,
.file-modal__header,
.modal-header,
.resource-modal__body,
.resource-viewer__body,
.modal-viewer__body,
.file-modal__body,
.modal-body { padding-inline: 17px; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Curated collections: cards fill their own space and never create blank tiles. */
.resource-grid,
.start-grid,
.resource-cards,
.resource-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 12px; margin-top: 20px; border: 0; background: transparent; }
.resource-card { min-height: 0; border: 1px solid var(--line); background: var(--paper); }
.resource-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.problem-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 230px); gap: 16px; align-items: end; }
.problem-tools .problem-search { margin-bottom: 0; }
.problem-filter { display: grid; gap: 8px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-3); font: 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.problem-filter select { width: 100%; border: 0; background: var(--paper); color: var(--ink); font: 400 1rem var(--serif); outline: none; }
.problem-filter:focus-within { border-color: var(--accent); }
.problem-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.problem-grid .resource-card { min-height: 0; }
.problem-more { display: block; margin: 22px auto 0; padding: 10px 16px; border: 1px solid var(--line); background: var(--paper); color: var(--accent-strong); cursor: pointer; font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.problem-more:hover { border-color: var(--accent); background: var(--accent-soft); }
.module-overflow { margin: 16px 0 4px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.collection-nav { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 22px; border: 0; background: transparent; }
.collection-nav a { min-width: 0; border: 1px solid var(--line); background: var(--paper); }
.collection-nav a:hover, .collection-nav a:focus-visible { border-color: var(--accent); }
/* Project overview is the orientation point; repository metadata stays out of the learning path. */
.project-readme { display: grid; grid-template-columns: minmax(120px, .25fr) minmax(0, 1fr); gap: 22px 42px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.readme-label { color: var(--accent); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.readme-copy { min-width: 0; max-width: 72ch; overflow-wrap: anywhere; color: var(--ink-2); line-height: 1.68; }
.readme-copy p { margin: 0 0 14px; }
.readme-copy h3 { margin: 0 0 12px; color: var(--ink); font: 400 1.55rem/1.08 var(--serif); }
.readme-copy a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.readme-copy code { padding: .1em .3em; background: var(--accent-soft); font: .86em var(--mono); }
.project-readme-full { display: grid; grid-template-columns: minmax(120px, .25fr) minmax(0, 1fr); gap: 22px 42px; margin-top: 0; padding-top: 0; }
.readme-full-copy { min-width: 0; max-width: 78ch; color: var(--ink-2); line-height: 1.68; }
.readme-full-copy h2, .readme-full-copy h3, .readme-full-copy h4, .readme-full-copy h5 { scroll-margin-top: 28px; color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.08; }
.readme-full-copy h2 { margin: 0 0 18px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.readme-full-copy h3 { margin: 42px 0 14px; font-size: clamp(1.45rem, 2.3vw, 2rem); }
.readme-full-copy h4, .readme-full-copy h5 { margin: 28px 0 12px; font-size: 1.25rem; }
.readme-full-copy p { margin: 0 0 18px; }
.readme-full-copy ul { margin: 0 0 24px; padding-left: 1.25rem; }
.readme-full-copy li { margin: 0 0 13px; padding-left: 5px; }
.readme-full-copy a { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.readme-full-copy a:hover { color: var(--ink); }
.readme-inline-toc { margin: 0 0 34px; padding: 18px 20px 14px; border: 1px solid var(--line); background: var(--accent-soft); }
.readme-inline-toc .readme-label { margin-bottom: 10px; }
.readme-inline-toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 28px; margin: 0; padding-left: 1.1rem; }
.readme-inline-toc li { margin: 0; padding-left: 2px; }
.readme-inline-toc a { color: var(--accent-strong); }
.readme-inline-figure { margin: 24px 0 30px; }
.readme-inline-figure img { display: block; width: 100%; max-height: 360px; object-fit: contain; border: 1px solid var(--line); background: var(--paper); }
.readme-inline-figure figcaption { margin-top: 8px; color: var(--ink-3); font: 9px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.project-content:has(.project-readme-full) > .eyebrow,
.project-content:has(.project-readme-full) > .readme-map-nav { display: none; }
.resource-card .resource-title { max-width: 26ch; margin-top: 16px; font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.16; overflow: hidden; overflow-wrap: normal; text-overflow: ellipsis; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.resource-card { min-height: 112px; padding: 16px; }
.module-heading p { max-width: 58ch; }
.module-heading h3 { max-width: 31ch; }
.module-inline { display: grid; gap: 20px; margin: 0 0 26px; padding: 0; border: 0; background: transparent; }
.module-description { max-width: 72ch; margin: 0; color: var(--ink-2); line-height: 1.65; }
.module-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.module-links a { color: var(--accent-strong); font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.module-notes { margin: 0; padding: 0; border: 0; }
.module-notes .readme-label { display: none; }
.module-notes .readme-copy { max-width: 72ch; }
.module-figures,
.module-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 16px; }
.module-figures figure,
.module-results figure { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); background: var(--paper); }
.module-figures img,
.module-results img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; background: var(--paper); }
.module-figures figcaption,
.module-results figcaption { margin-top: 8px; overflow: hidden; color: var(--ink-3); font: 9px/1.35 var(--mono); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.collection-nav strong { line-height: 1.15; text-overflow: clip; white-space: normal; }
.readme-map-nav { margin: 0 0 42px; }
.readme-toc { margin: 0; padding: 18px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.readme-toc-label { margin-bottom: 14px; color: var(--accent); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.readme-toc-links { display: flex; flex-wrap: wrap; gap: 9px; }
.readme-toc-links a { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); color: var(--ink); font: 400 1rem/1.1 var(--serif); }
.readme-toc-links a:hover, .readme-toc-links a:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.readme-toc-links span { color: var(--ink-3); font: 9px var(--mono); }
.readme-resource-map { display: grid; gap: 58px; }
.readme-resource-section { scroll-margin-top: 28px; }
.readme-resource-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.readme-resource-heading > span, .readme-resource-heading small { color: var(--ink-3); font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.readme-resource-heading h3 { margin: 0; font: 400 clamp(1.45rem, 2.4vw, 2rem)/1.08 var(--serif); }
.external-resource-card .resource-summary { max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.external-resource-card .resource-summary a { color: inherit; }
@media (max-width: 700px) {
.project-readme-full { grid-template-columns: 1fr; gap: 12px; }
.readme-inline-toc ul { grid-template-columns: 1fr; }
.project-readme { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
.readme-resource-heading { grid-template-columns: 28px minmax(0, 1fr); }
.readme-resource-heading small { grid-column: 2; }
}
.resource-viewer-math { overflow-x: auto; padding: 12px 0; color: var(--ink); text-align: center; }
.resource-viewer-badge { width: auto; max-width: min(100%, 220px); margin: 0; }
@media (max-width: 700px) {
.resource-grid, .start-grid, .resource-cards, .resource-list, .problem-grid { grid-template-columns: 1fr; }
.problem-tools { grid-template-columns: 1fr; gap: 0; }
.problem-filter { margin-top: 10px; }
}