swehrley 0.0.0-stage → 1.0.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.
package/swehrley.css ADDED
@@ -0,0 +1,2255 @@
1
+ /* swehrley.css
2
+ An opinionated, zero-class, single-variable CSS framework.
3
+ Classic 90s Workstation aesthetic powered by one public variable: --accent.
4
+ Margin-free DOM architecture using padding + flex/grid gap.
5
+
6
+ Public API (1 variable total):
7
+ :root { --accent: #1e548e; }
8
+ Expects medium-dark to dark colors (>= 4.5:1 against white), e.g.:
9
+ #1e548e (Steel Blue), #2c5947 (Hunter), #0066cc (Cobalt),
10
+ #5b2b7a (Plum), #8a3b12 (Rust), #2e3438 (Graphite).
11
+ */
12
+
13
+ /* ==========================================================================
14
+ Bundled Self-Hosted Fonts (IBM Plex Mono — SIL OFL 1.1, see fonts/OFL.txt)
15
+ ========================================================================== */
16
+ @font-face {
17
+ font-family: "IBM Plex Mono";
18
+ font-style: normal;
19
+ font-weight: 400;
20
+ font-display: swap;
21
+ src: url("./fonts/IBMPlexMono-Regular.woff2") format("woff2");
22
+ }
23
+
24
+ @font-face {
25
+ font-family: "IBM Plex Mono";
26
+ font-style: italic;
27
+ font-weight: 400;
28
+ font-display: swap;
29
+ src: url("./fonts/IBMPlexMono-Italic.woff2") format("woff2");
30
+ }
31
+
32
+ @font-face {
33
+ font-family: "IBM Plex Mono";
34
+ font-style: normal;
35
+ font-weight: 500;
36
+ font-display: swap;
37
+ src: url("./fonts/IBMPlexMono-Medium.woff2") format("woff2");
38
+ }
39
+
40
+ @font-face {
41
+ font-family: "IBM Plex Mono";
42
+ font-style: normal;
43
+ font-weight: 600;
44
+ font-display: swap;
45
+ src: url("./fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
46
+ }
47
+
48
+ @font-face {
49
+ font-family: "IBM Plex Mono";
50
+ font-style: italic;
51
+ font-weight: 600;
52
+ font-display: swap;
53
+ src: url("./fonts/IBMPlexMono-SemiBoldItalic.woff2") format("woff2");
54
+ }
55
+
56
+ @font-face {
57
+ font-family: "IBM Plex Mono";
58
+ font-style: normal;
59
+ font-weight: 700;
60
+ font-display: swap;
61
+ src: url("./fonts/IBMPlexMono-Bold.woff2") format("woff2");
62
+ }
63
+
64
+ :root {
65
+ /* ========================================================================
66
+ THE ONLY PUBLIC VARIABLE
67
+ Set --accent to any medium-dark color to theme the entire workstation.
68
+ ======================================================================== */
69
+ --accent: #1e548e;
70
+ }
71
+
72
+ :root,
73
+ body {
74
+ /* Private derived tokens (do not override directly) */
75
+ --_accent: var(--accent);
76
+ --_accent-hover: color-mix(in srgb, var(--accent) 74%, #000000);
77
+ --_accent-active: color-mix(in srgb, var(--accent) 56%, #000000);
78
+ --_accent-bevel-hi: color-mix(in srgb, var(--accent) 68%, #ffffff);
79
+
80
+ /* Archival 90s instrument-panel status pigments (universal across any --accent) */
81
+ --_status-ok: #2e6b4e;
82
+ --_status-warn: #a87118;
83
+ --_status-danger: #9e2e2c;
84
+ --_status-danger-bg: color-mix(in srgb, var(--_status-danger) 16%, #ffffff);
85
+
86
+ /* Mineral-neutral anchored light surfaces (clean neutral paper, never neon on vivid hues) */
87
+ --_bg: color-mix(in srgb, var(--accent) 5%, #f8f9f8);
88
+ --_panel: color-mix(in srgb, var(--accent) 8%, #f2f4f3);
89
+ --_panel-light: color-mix(in srgb, var(--accent) 5%, #f6f8f7);
90
+ --_fieldset: color-mix(in srgb, var(--accent) 7%, #f4f6f5);
91
+ --_fieldset-deep: color-mix(in srgb, var(--accent) 10%, #edf0ee);
92
+ --_plate: color-mix(in srgb, var(--accent) 11%, #eceeed);
93
+ --_hover: color-mix(in srgb, var(--accent) 14%, #e8ebeb);
94
+ --_pressed: color-mix(in srgb, var(--accent) 18%, #e2e6e4);
95
+ --_well: #ffffff;
96
+ --_zebra: color-mix(in srgb, var(--accent) 4%, #f9fafa);
97
+ --_row-hover: color-mix(in srgb, var(--accent) 11%, #ffffff);
98
+ --_row-th-hover: color-mix(in srgb, var(--accent) 16%, #ffffff);
99
+ --_track: color-mix(in srgb, var(--accent) 16%, #e4e7e6);
100
+ --_disabled-bg: color-mix(in srgb, var(--accent) 7%, #f0f2f1);
101
+ --_ins-bg: color-mix(in srgb, var(--accent) 19%, #e8ecea);
102
+ --_code-bg: color-mix(in srgb, var(--accent) 12%, #ebeeed);
103
+ --_quote-bg: color-mix(in srgb, var(--accent) 6%, #f4f6f5);
104
+ --_readonly-bg: color-mix(in srgb, var(--accent) 4%, #f5f7f6);
105
+
106
+ /* Readability-locked inks (AAA across all hues, never raw --accent for prose) */
107
+ --_ink: color-mix(in srgb, var(--accent) 42%, #1a1f1d);
108
+ --_ink-strong: color-mix(in srgb, var(--accent) 32%, #131715);
109
+ --_ink-muted: color-mix(in srgb, var(--accent) 36%, #505754);
110
+ --_ink-disabled: color-mix(in srgb, var(--accent) 28%, #6d7572);
111
+ --_placeholder: color-mix(in srgb, var(--accent) 28%, #707875);
112
+ --_link: var(--_accent);
113
+ --_link-underline: color-mix(in srgb, var(--accent) 52%, transparent);
114
+ --_link-visited: color-mix(in srgb, var(--accent) 68%, #3c4340);
115
+ --_on-accent: #fafafa;
116
+ --_on-accent-muted: color-mix(in srgb, var(--accent) 12%, #ffffff);
117
+
118
+ /* Lush dark CRT terminals */
119
+ --_crt: color-mix(in srgb, var(--accent) 46%, #0c1210);
120
+ --_crt-ink: color-mix(in srgb, var(--accent) 8%, #f3f6f5);
121
+ --_crt-shadow: color-mix(in srgb, var(--accent) 28%, #070b09);
122
+ --_crt-lip: color-mix(in srgb, var(--accent) 68%, #2e3835);
123
+ --_crt-scroll-track: color-mix(in srgb, var(--accent) 36%, #090e0c);
124
+ --_crt-scroll-thumb: color-mix(in srgb, var(--accent) 78%, #1e2925);
125
+
126
+ /* Dynamic borders, bevels & zero-green-leak shadows */
127
+ --_border-light: color-mix(in srgb, var(--accent) 14%, #d0d5d3);
128
+ --_border-grid: color-mix(in srgb, var(--accent) 14%, #dcdfde);
129
+ --_border-mid: color-mix(in srgb, var(--accent) 28%, #9aa29f);
130
+ --_border-bevel: color-mix(in srgb, var(--accent) 20%, #a9b1ae);
131
+ --_border-seam: color-mix(in srgb, var(--accent) 42%, #58635f);
132
+ --_border-dark: color-mix(in srgb, var(--accent) 52%, #333c39);
133
+ --_border-deep: color-mix(in srgb, var(--accent) 58%, #212926);
134
+ --_border-inset: color-mix(in srgb, var(--accent) 46%, #4a5450);
135
+ --_bevel-shadow: color-mix(in srgb, var(--accent) 20%, #a5adab);
136
+ --_shadow-btn: color-mix(in srgb, var(--_ink-strong) 18%, transparent);
137
+ --_shadow-submit: color-mix(in srgb, var(--_ink-strong) 24%, transparent);
138
+ --_shadow-picker: color-mix(in srgb, var(--_ink-strong) 20%, transparent);
139
+ --_shadow-dialog: color-mix(in srgb, var(--_ink-strong) 30%, transparent);
140
+ --_backdrop: color-mix(in srgb, var(--_ink-strong) 42%, transparent);
141
+ --_tick: color-mix(in srgb, var(--_ink-strong) 26%, transparent);
142
+ }
143
+
144
+ /* ==========================================================================
145
+ Modern Cross-Browser CSS Reset
146
+ Normalizes Chrome, Firefox, Safari, and Edge before framework styles apply.
147
+ ========================================================================== */
148
+ *,
149
+ *::before,
150
+ *::after {
151
+ box-sizing: border-box;
152
+ margin: 0;
153
+ }
154
+
155
+ html {
156
+ -webkit-text-size-adjust: 100%;
157
+ -moz-tab-size: 4;
158
+ tab-size: 4;
159
+ }
160
+
161
+ body {
162
+ min-height: 100svh;
163
+ -webkit-font-smoothing: antialiased;
164
+ -moz-osx-font-smoothing: grayscale;
165
+ }
166
+
167
+ img,
168
+ picture,
169
+ video,
170
+ canvas,
171
+ svg {
172
+ display: block;
173
+ max-width: 100%;
174
+ }
175
+
176
+ input,
177
+ button,
178
+ textarea,
179
+ select {
180
+ font: inherit;
181
+ color: inherit;
182
+ }
183
+
184
+ p,
185
+ h1,
186
+ h2,
187
+ h3,
188
+ h4,
189
+ h5,
190
+ h6 {
191
+ overflow-wrap: break-word;
192
+ }
193
+
194
+ h1,
195
+ h2,
196
+ h3,
197
+ h4,
198
+ h5,
199
+ h6 {
200
+ text-wrap: balance;
201
+ }
202
+
203
+ p {
204
+ text-wrap: pretty;
205
+ }
206
+
207
+ table {
208
+ text-indent: 0;
209
+ border-color: inherit;
210
+ border-collapse: collapse;
211
+ }
212
+
213
+ button,
214
+ [type="button"],
215
+ [type="reset"],
216
+ [type="submit"] {
217
+ -webkit-appearance: button;
218
+ }
219
+
220
+ ::-moz-focus-inner {
221
+ border-style: none;
222
+ padding: 0;
223
+ }
224
+
225
+ :-moz-ui-invalid {
226
+ box-shadow: none;
227
+ }
228
+
229
+ progress {
230
+ vertical-align: baseline;
231
+ }
232
+
233
+ @media (prefers-reduced-motion: reduce) {
234
+ *,
235
+ *::before,
236
+ *::after {
237
+ animation-duration: 0.01ms !important;
238
+ animation-iteration-count: 1 !important;
239
+ transition-duration: 0.01ms !important;
240
+ scroll-behavior: auto !important;
241
+ }
242
+ }
243
+
244
+ /* ==========================================================================
245
+ Workstation Chassis & Layout Rhythm
246
+ ========================================================================== */
247
+ ::selection {
248
+ background-color: var(--_accent);
249
+ color: var(--_on-accent);
250
+ }
251
+
252
+ pre::selection,
253
+ pre *::selection,
254
+ body > header > code::selection,
255
+ article > header::selection,
256
+ article > header *::selection,
257
+ dialog > header::selection,
258
+ dialog > header *::selection,
259
+ caption::selection,
260
+ caption *::selection,
261
+ mark::selection,
262
+ mark *::selection {
263
+ background-color: var(--_hover);
264
+ color: var(--_crt);
265
+ }
266
+
267
+ ::-webkit-scrollbar {
268
+ width: 12px;
269
+ height: 12px;
270
+ }
271
+
272
+ ::-webkit-scrollbar-track {
273
+ background: var(--_plate);
274
+ border-left: 1px solid var(--_border-mid);
275
+ }
276
+
277
+ ::-webkit-scrollbar-thumb {
278
+ background: var(--_panel);
279
+ border: 1px solid var(--_border-seam);
280
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
281
+ }
282
+
283
+ ::-webkit-scrollbar-thumb:hover {
284
+ background: var(--_hover);
285
+ }
286
+
287
+ html {
288
+ color-scheme: light;
289
+ font-size: 14px;
290
+ scroll-behavior: smooth;
291
+ display: flex;
292
+ justify-content: center;
293
+ background-color: var(--_bg);
294
+ accent-color: var(--_accent);
295
+ }
296
+
297
+ @supports not selector(::-webkit-scrollbar) {
298
+ html {
299
+ scrollbar-width: thin;
300
+ scrollbar-color: var(--_border-seam) var(--_plate);
301
+ }
302
+
303
+ pre {
304
+ scrollbar-width: thin;
305
+ scrollbar-color: var(--_crt-lip) var(--_crt-scroll-track);
306
+ }
307
+ }
308
+
309
+ body {
310
+ width: 100%;
311
+ max-width: 820px;
312
+ padding: 1.75rem 1.5rem 3rem;
313
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
314
+ line-height: 1.6;
315
+ color: var(--_ink);
316
+ background-color: var(--_bg);
317
+ text-rendering: optimizeLegibility;
318
+
319
+ display: flex;
320
+ flex-direction: column;
321
+ gap: 1.5rem;
322
+ }
323
+
324
+ main {
325
+ display: flex;
326
+ flex-direction: column;
327
+ gap: 1.85rem;
328
+ }
329
+
330
+ section {
331
+ display: flex;
332
+ flex-direction: column;
333
+ gap: 1.05rem;
334
+ }
335
+
336
+ section > h2:first-child {
337
+ border-left: 4px solid var(--_accent);
338
+ padding-left: 0.65rem;
339
+ }
340
+
341
+ section > h2:not(:first-child) {
342
+ padding-top: 0.6rem;
343
+ }
344
+
345
+ section > :is(h3, h4):not(:first-child) {
346
+ padding-top: 0.55rem;
347
+ }
348
+
349
+ article,
350
+ blockquote,
351
+ details,
352
+ fieldset,
353
+ footer,
354
+ header,
355
+ figure,
356
+ form {
357
+ display: flex;
358
+ flex-direction: column;
359
+ gap: 0.85rem;
360
+ }
361
+
362
+ /* ==========================================================================
363
+ Typography
364
+ ========================================================================== */
365
+ h1,
366
+ h2,
367
+ h3,
368
+ h4,
369
+ h5,
370
+ h6 {
371
+ color: var(--_ink-strong);
372
+ font-weight: 700;
373
+ line-height: 1.25;
374
+ letter-spacing: -0.02em;
375
+ scroll-margin-top: 2rem;
376
+ }
377
+
378
+ h1 {
379
+ font-size: clamp(1.85rem, 5.5vw, 2.4rem);
380
+ letter-spacing: -0.03em;
381
+ }
382
+
383
+ h2 {
384
+ font-size: 1.4rem;
385
+ }
386
+
387
+ h3 {
388
+ font-size: 1.15rem;
389
+ font-weight: 600;
390
+ }
391
+
392
+ h4 {
393
+ font-size: 1.02rem;
394
+ font-weight: 600;
395
+ }
396
+
397
+ h5 {
398
+ font-size: 0.92rem;
399
+ font-weight: 600;
400
+ text-transform: none;
401
+ letter-spacing: -0.015em;
402
+ }
403
+
404
+ h6 {
405
+ font-size: 0.78rem;
406
+ font-weight: 600;
407
+ text-transform: uppercase;
408
+ letter-spacing: 0.06em;
409
+ color: var(--_ink-muted);
410
+ }
411
+
412
+ a {
413
+ color: var(--_link);
414
+ font-weight: 500;
415
+ text-decoration: underline;
416
+ text-decoration-thickness: 1px;
417
+ text-underline-offset: 3px;
418
+ text-decoration-color: var(--_link-underline);
419
+ cursor: pointer;
420
+ }
421
+
422
+ :is(p, li, dd, td, blockquote) a:visited {
423
+ color: var(--_link-visited);
424
+ }
425
+
426
+ a:hover,
427
+ a:focus-visible,
428
+ :is(p, li, dd, td, blockquote) a:visited:hover,
429
+ :is(p, li, dd, td, blockquote) a:visited:focus-visible {
430
+ color: var(--_accent-hover);
431
+ background-color: var(--_pressed);
432
+ text-decoration-color: var(--_accent-hover);
433
+ }
434
+
435
+ a:focus-visible {
436
+ outline: 1px dotted var(--_accent);
437
+ outline-offset: 2px;
438
+ }
439
+
440
+ :is(h1, h2, h3, h4, h5, h6, strong, b) a {
441
+ font-weight: inherit;
442
+ }
443
+
444
+ h1 a,
445
+ h2 a,
446
+ h3 a,
447
+ h4 a,
448
+ h5 a,
449
+ h6 a {
450
+ color: var(--_link);
451
+ text-decoration: underline;
452
+ text-decoration-thickness: 1px;
453
+ text-underline-offset: 0.18em;
454
+ text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
455
+ }
456
+
457
+ h1 a {
458
+ text-decoration-thickness: 1.5px;
459
+ }
460
+
461
+ cite a {
462
+ font-weight: 400;
463
+ }
464
+
465
+ h1 a:hover,
466
+ h2 a:hover,
467
+ h3 a:hover,
468
+ h4 a:hover,
469
+ h5 a:hover,
470
+ h6 a:hover,
471
+ h1 a:focus-visible,
472
+ h2 a:focus-visible,
473
+ h3 a:focus-visible,
474
+ h4 a:focus-visible,
475
+ h5 a:focus-visible,
476
+ h6 a:focus-visible {
477
+ color: var(--_accent-hover);
478
+ background-color: transparent;
479
+ text-decoration-thickness: 2px;
480
+ text-decoration-color: var(--_accent-hover);
481
+ }
482
+
483
+ a:has(> button),
484
+ a:has(> img) {
485
+ text-decoration: none;
486
+ display: inline-block;
487
+ }
488
+
489
+ a:has(> img) {
490
+ line-height: 0;
491
+ }
492
+
493
+ a:has(> button):hover,
494
+ a:has(> button):focus-visible,
495
+ a:has(> img):hover,
496
+ a:has(> img):focus-visible {
497
+ background-color: transparent;
498
+ }
499
+
500
+ strong,
501
+ b {
502
+ font-weight: 700;
503
+ }
504
+
505
+ em,
506
+ i {
507
+ font-style: italic;
508
+ }
509
+
510
+ small {
511
+ font-size: 0.85em;
512
+ color: var(--_ink-muted);
513
+ }
514
+
515
+ sup,
516
+ sub {
517
+ font-size: 0.72em;
518
+ line-height: 0;
519
+ position: relative;
520
+ vertical-align: baseline;
521
+ }
522
+
523
+ sup {
524
+ top: -0.45em;
525
+ }
526
+
527
+ sub {
528
+ bottom: -0.2em;
529
+ }
530
+
531
+ abbr[title] {
532
+ text-decoration: underline dotted var(--_ink-muted);
533
+ text-underline-offset: 3px;
534
+ cursor: help;
535
+ }
536
+
537
+ del {
538
+ color: var(--_ink-muted);
539
+ }
540
+
541
+ ins {
542
+ background-color: var(--_ins-bg);
543
+ color: var(--_ink-strong);
544
+ text-decoration: none;
545
+ border: 1px solid var(--_border-seam);
546
+ border-bottom: 1px solid var(--_accent);
547
+ padding: 0 0.25em;
548
+ }
549
+
550
+ var {
551
+ font-style: italic;
552
+ font-weight: 500;
553
+ color: var(--_ink-strong);
554
+ }
555
+
556
+ /* Etched 3D Workstation Groove */
557
+ hr {
558
+ border: none;
559
+ display: block;
560
+ height: 2px;
561
+ width: 100%;
562
+ background: linear-gradient(to bottom, var(--_border-mid) 0, var(--_border-mid) 1px, #ffffff 1px, #ffffff 2px);
563
+ }
564
+
565
+ /* ==========================================================================
566
+ Lists
567
+ ========================================================================== */
568
+ ul,
569
+ ol {
570
+ padding-left: 1.75rem;
571
+ display: flex;
572
+ flex-direction: column;
573
+ gap: 0.4rem;
574
+ }
575
+
576
+ ul {
577
+ list-style-type: square;
578
+ }
579
+
580
+ ul ul,
581
+ ol ul {
582
+ list-style-type: "– ";
583
+ }
584
+
585
+ ul ul,
586
+ ol ol,
587
+ ul ol,
588
+ ol ul {
589
+ padding-top: 0.3rem;
590
+ }
591
+
592
+ li::marker {
593
+ color: var(--_accent);
594
+ font-weight: 700;
595
+ }
596
+
597
+ dl {
598
+ display: flex;
599
+ flex-direction: column;
600
+ gap: 0.2rem;
601
+ }
602
+
603
+ dt {
604
+ font-size: 0.95rem;
605
+ font-weight: 700;
606
+ color: var(--_ink-strong);
607
+ }
608
+
609
+ dd + dt {
610
+ padding-top: 0.65rem;
611
+ }
612
+
613
+ dd {
614
+ padding: 0.12rem 0 0.18rem 1rem;
615
+ border-left: 3px solid var(--_ink-muted);
616
+ color: var(--_ink);
617
+ }
618
+
619
+ /* ==========================================================================
620
+ Block & Code Elements
621
+ ========================================================================== */
622
+ blockquote {
623
+ background-color: var(--_quote-bg);
624
+ border: 1px solid var(--_border-mid);
625
+ border-left: 4px solid var(--_accent);
626
+ box-shadow: inset 0 1px 0 #ffffff;
627
+ padding: 1.15rem 1.25rem;
628
+ gap: 0.85rem;
629
+ }
630
+
631
+ cite {
632
+ font-style: normal;
633
+ font-size: 0.85rem;
634
+ color: var(--_ink-muted);
635
+ }
636
+
637
+ aside {
638
+ display: flex;
639
+ flex-direction: column;
640
+ gap: 0.65rem;
641
+ padding: 1rem 1.2rem;
642
+ background-color: var(--_plate);
643
+ border: 1px solid var(--_border-mid);
644
+ border-top: 2px solid var(--_accent);
645
+ box-shadow: inset 1px 1px 0 var(--_border-light), inset -1px -1px 0 #ffffff;
646
+ }
647
+
648
+ output {
649
+ display: inline-block;
650
+ background-color: var(--_well);
651
+ color: var(--_ink-strong);
652
+ font-weight: 600;
653
+ font-variant-numeric: tabular-nums;
654
+ border: 1px solid;
655
+ border-color: var(--_border-inset) #ffffff #ffffff var(--_border-seam);
656
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 var(--_plate);
657
+ padding: 0.1rem 0.5rem;
658
+ }
659
+
660
+ code,
661
+ pre,
662
+ kbd,
663
+ samp {
664
+ font-size: 0.9em;
665
+ }
666
+
667
+ code {
668
+ background-color: var(--_code-bg);
669
+ color: var(--_ink-strong);
670
+ border: 1px solid var(--_border-mid);
671
+ padding: 0.03em 0.32em;
672
+ }
673
+
674
+ body > header > code {
675
+ background-color: var(--_crt);
676
+ color: var(--_crt-ink);
677
+ border: 1px solid;
678
+ border-color: var(--_border-dark) var(--_border-light) var(--_border-light) var(--_border-inset);
679
+ box-shadow: inset 2px 2px 0 var(--_crt-shadow), inset -1px -1px 0 var(--_crt-lip), 0 1px 0 #ffffff;
680
+ padding: 0.46rem 1.15rem;
681
+ letter-spacing: 0.02em;
682
+ max-width: 100%;
683
+ overflow-x: auto;
684
+ }
685
+
686
+ samp {
687
+ background-color: var(--_code-bg);
688
+ color: var(--_ink-strong);
689
+ border: 1px solid var(--_border-mid);
690
+ padding: 0.03em 0.32em;
691
+ }
692
+
693
+ pre {
694
+ background-color: var(--_crt);
695
+ color: var(--_crt-ink);
696
+ padding: 1.2rem 1.25rem;
697
+ border: 1px solid;
698
+ border-color: var(--_border-dark) var(--_border-light) var(--_border-light) var(--_border-inset);
699
+ box-shadow: inset 2px 2px 0 var(--_crt-shadow), inset -1px -1px 0 var(--_crt-lip), 0 1px 0 #ffffff;
700
+ overflow-x: auto;
701
+ display: block;
702
+ line-height: 1.6;
703
+ }
704
+
705
+ pre::-webkit-scrollbar-track {
706
+ background: var(--_crt-scroll-track);
707
+ border-top: 1px solid var(--_crt-lip);
708
+ border-left: none;
709
+ }
710
+
711
+ pre::-webkit-scrollbar-thumb {
712
+ background: var(--_crt-scroll-thumb);
713
+ border: 1px solid var(--_accent-bevel-hi);
714
+ box-shadow: inset 1px 1px 0 var(--_accent-bevel-hi), inset -1px -1px 0 var(--_crt-scroll-track);
715
+ }
716
+
717
+ pre::-webkit-scrollbar-thumb:hover {
718
+ background: var(--_accent);
719
+ }
720
+
721
+ pre code {
722
+ background-color: transparent;
723
+ color: inherit;
724
+ border: none;
725
+ padding: 0;
726
+ font-size: 0.95em;
727
+ }
728
+
729
+ /* Mechanical Keycap */
730
+ kbd {
731
+ display: inline-block;
732
+ background-color: var(--_panel-light);
733
+ color: var(--_ink-strong);
734
+ border: 1px solid var(--_border-inset);
735
+ border-bottom: 2px solid var(--_accent);
736
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_border-bevel), 0 1px 0 #ffffff;
737
+ padding: 0 0.38em;
738
+ font-size: 0.85em;
739
+ font-weight: 600;
740
+ line-height: 1.25;
741
+ }
742
+
743
+ kbd:has(kbd) {
744
+ background: transparent;
745
+ border: none;
746
+ box-shadow: none;
747
+ padding: 0;
748
+ font-size: inherit;
749
+ font-weight: inherit;
750
+ }
751
+
752
+ mark {
753
+ background-color: var(--_accent);
754
+ color: var(--_on-accent);
755
+ padding: 0.06em 0.34em;
756
+ }
757
+
758
+ /* ==========================================================================
759
+ Tables (AG Grid Balham × Classic 90s Financial Ledger)
760
+ ========================================================================== */
761
+ table {
762
+ width: 100%;
763
+ border-collapse: separate;
764
+ border-spacing: 0;
765
+ background-color: var(--_well);
766
+ border: 1px solid var(--_border-seam);
767
+ box-shadow: 0 1px 0 #ffffff;
768
+ font-size: 0.84rem;
769
+ line-height: 1.3;
770
+ font-variant-numeric: tabular-nums;
771
+ }
772
+
773
+ table:has(> caption) {
774
+ border-top: none;
775
+ }
776
+
777
+ caption {
778
+ font-size: 0.84rem;
779
+ font-weight: 600;
780
+ letter-spacing: 0.02em;
781
+ text-align: left;
782
+ padding: 0.6rem 0.85rem;
783
+ color: var(--_on-accent);
784
+ background-color: var(--_accent);
785
+ border: 1px solid var(--_accent);
786
+ border-bottom: none;
787
+ }
788
+
789
+ th,
790
+ td {
791
+ padding: 0.36rem 0.85rem;
792
+ vertical-align: middle;
793
+ text-align: left;
794
+ }
795
+
796
+ /* Precision Column Rail (AG Grid Balham Splitters) */
797
+ thead th {
798
+ font-size: 0.74rem;
799
+ font-weight: 700;
800
+ text-transform: uppercase;
801
+ letter-spacing: 0.07em;
802
+ color: var(--_ink-strong);
803
+ background-color: var(--_panel);
804
+ border-bottom: 1px solid var(--_border-seam);
805
+ box-shadow: inset 0 1px 0 #ffffff;
806
+ padding: 0.58rem 0.85rem;
807
+ background-image: linear-gradient(var(--_border-mid), var(--_border-mid));
808
+ background-size: 1px 14px;
809
+ background-position: right center;
810
+ background-repeat: no-repeat;
811
+ }
812
+
813
+ thead th:last-child {
814
+ background-image: none;
815
+ }
816
+
817
+ /* Horizontal-First Ledger Data Cells */
818
+ tbody td,
819
+ tbody th {
820
+ border-right: 1px solid color-mix(in srgb, var(--_border-grid) 55%, transparent);
821
+ border-bottom: 1px solid var(--_border-grid);
822
+ }
823
+
824
+ tbody td:last-child,
825
+ tbody th:last-child {
826
+ border-right: none;
827
+ }
828
+
829
+ tbody tr:last-child td,
830
+ tbody tr:last-child th {
831
+ border-bottom: none;
832
+ }
833
+
834
+ tbody th {
835
+ font-weight: 700;
836
+ color: var(--_ink-strong);
837
+ background-color: var(--_panel-light);
838
+ border-right-color: var(--_border-mid);
839
+ }
840
+
841
+ tbody tr {
842
+ background-color: var(--_well);
843
+ }
844
+
845
+ tbody tr:nth-child(even) {
846
+ background-color: var(--_zebra);
847
+ }
848
+
849
+ tbody tr:hover {
850
+ background-color: var(--_row-hover);
851
+ }
852
+
853
+ tbody tr:hover th {
854
+ background-color: var(--_row-th-hover);
855
+ }
856
+
857
+ tbody tr:hover > :first-child {
858
+ box-shadow: inset 3px 0 0 var(--_accent);
859
+ }
860
+
861
+ /* Compact Summary Total Strip */
862
+ tfoot th,
863
+ tfoot td {
864
+ background-color: var(--_panel-light);
865
+ border-top: 1px solid var(--_border-seam);
866
+ border-right: 1px solid color-mix(in srgb, var(--_border-grid) 55%, transparent);
867
+ box-shadow: inset 0 1px 0 #ffffff;
868
+ padding: 0.32rem 0.85rem;
869
+ font-size: 0.78rem;
870
+ font-weight: 700;
871
+ color: var(--_ink-strong);
872
+ }
873
+
874
+ tfoot th:last-child,
875
+ tfoot td:last-child {
876
+ border-right: none;
877
+ }
878
+
879
+ /* ==========================================================================
880
+ Forms & Machined Controls
881
+ ========================================================================== */
882
+ button,
883
+ input,
884
+ select,
885
+ textarea {
886
+ font-size: 0.92rem;
887
+ line-height: 1.45;
888
+ border-radius: 0;
889
+ color: var(--_ink);
890
+ }
891
+
892
+ input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="file"]):not([type="range"]):not([type="color"]),
893
+ select,
894
+ textarea {
895
+ display: block;
896
+ width: 100%;
897
+ padding: 0.48rem 0.7rem;
898
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
899
+ background-color: var(--_well);
900
+ border: 1px solid;
901
+ border-color: var(--_border-inset) #ffffff #ffffff var(--_border-seam);
902
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 var(--_plate);
903
+ }
904
+
905
+ select:not([multiple]):not([size]) {
906
+ -webkit-appearance: none;
907
+ appearance: none;
908
+ padding-right: 2.85rem;
909
+ cursor: pointer;
910
+ background-color: var(--_well);
911
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow);
912
+ background-image:
913
+ conic-gradient(from -45deg at 50% 100%, var(--_accent) 0 90deg, transparent 0),
914
+ linear-gradient(to right, var(--_border-seam) 0 1px, #ffffff 1px 2px, transparent 2px),
915
+ linear-gradient(to bottom, #ffffff 0 1px, transparent 1px),
916
+ linear-gradient(to left, var(--_bevel-shadow) 0 1px, transparent 1px),
917
+ linear-gradient(to top, var(--_bevel-shadow) 0 1px, var(--_panel) 1px);
918
+ background-repeat: no-repeat;
919
+ background-position:
920
+ right calc(1.175rem - 5px) center,
921
+ right top,
922
+ right top,
923
+ right top,
924
+ right top;
925
+ background-size:
926
+ 10px 5px,
927
+ 2.35rem 100%,
928
+ calc(2.35rem - 1px) 100%,
929
+ calc(2.35rem - 1px) 100%,
930
+ calc(2.35rem - 1px) 100%;
931
+ }
932
+
933
+ select:not([multiple]):not([size]):hover {
934
+ background-image:
935
+ conic-gradient(from -45deg at 50% 100%, var(--_accent) 0 90deg, transparent 0),
936
+ linear-gradient(to right, var(--_border-seam) 0 1px, #ffffff 1px 2px, transparent 2px),
937
+ linear-gradient(to bottom, #ffffff 0 1px, transparent 1px),
938
+ linear-gradient(to left, var(--_bevel-shadow) 0 1px, transparent 1px),
939
+ linear-gradient(to top, var(--_bevel-shadow) 0 1px, var(--_hover) 1px);
940
+ }
941
+
942
+ select option,
943
+ select optgroup {
944
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
945
+ background-color: var(--_panel);
946
+ color: var(--_ink);
947
+ }
948
+
949
+ select optgroup {
950
+ font-weight: 700;
951
+ color: var(--_ink-muted);
952
+ }
953
+
954
+ /* Progressive enhancement: machined open dropdown picker (Chromium / modern browsers) */
955
+ @supports (appearance: base-select) {
956
+ select:not([multiple]):not([size]),
957
+ select:not([multiple]):not([size])::picker(select) {
958
+ appearance: base-select;
959
+ }
960
+
961
+ select:not([multiple]):not([size]) {
962
+ display: flex;
963
+ align-items: center;
964
+ }
965
+
966
+ select:not([multiple]):not([size])::picker-icon {
967
+ display: none;
968
+ }
969
+
970
+ select:not([multiple]):not([size])::picker(select) {
971
+ border-radius: 0;
972
+ border: 1px solid var(--_border-dark);
973
+ margin-top: -1px;
974
+ background-color: var(--_panel);
975
+ color: var(--_ink);
976
+ padding: 0.35rem;
977
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow), 4px 4px 0 var(--_shadow-picker);
978
+ }
979
+
980
+ select:not([multiple]):not([size]) optgroup {
981
+ font-size: 0.75rem;
982
+ font-weight: 700;
983
+ text-transform: uppercase;
984
+ letter-spacing: 0.06em;
985
+ color: var(--_ink-muted);
986
+ padding: 0.35rem 0 0.15rem;
987
+ text-indent: 0.55rem;
988
+ }
989
+
990
+ select:not([multiple]):not([size]) optgroup:first-child {
991
+ padding-top: 0.45rem;
992
+ }
993
+
994
+ select:not([multiple]):not([size]) optgroup + optgroup {
995
+ border-top: 1px solid var(--_border-mid);
996
+ box-shadow: inset 0 1px 0 #ffffff;
997
+ padding-top: 0.55rem;
998
+ }
999
+
1000
+ select:not([multiple]):not([size]) option {
1001
+ font-size: 0.9rem;
1002
+ font-weight: 400;
1003
+ text-transform: none;
1004
+ letter-spacing: 0;
1005
+ text-indent: 0;
1006
+ color: var(--_ink);
1007
+ padding: 0.45rem 0.75rem;
1008
+ border: 1px solid transparent;
1009
+ display: flex;
1010
+ align-items: center;
1011
+ gap: 0.5rem;
1012
+ cursor: pointer;
1013
+ }
1014
+
1015
+ select:not([multiple]):not([size]) option:hover,
1016
+ select:not([multiple]):not([size]) option:focus-visible {
1017
+ background-color: var(--_hover);
1018
+ border-color: var(--_border-seam);
1019
+ outline: none;
1020
+ }
1021
+
1022
+ select:not([multiple]):not([size]) option:checked {
1023
+ font-weight: 600;
1024
+ background-color: var(--_accent);
1025
+ color: var(--_on-accent);
1026
+ border-color: var(--_accent-active);
1027
+ }
1028
+
1029
+ select:not([multiple]):not([size]) option:checked:hover {
1030
+ background-color: var(--_accent-hover);
1031
+ color: var(--_on-accent);
1032
+ }
1033
+
1034
+ select:not([multiple]):not([size]) option::checkmark {
1035
+ content: ">";
1036
+ font-weight: 700;
1037
+ color: var(--_ink-strong);
1038
+ }
1039
+
1040
+ select:not([multiple]):not([size]) option:checked::checkmark {
1041
+ color: var(--_on-accent);
1042
+ }
1043
+ }
1044
+
1045
+ ::placeholder {
1046
+ color: var(--_placeholder);
1047
+ opacity: 1;
1048
+ }
1049
+
1050
+ input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="file"]):not([type="range"]):not([type="color"]):read-only,
1051
+ textarea:read-only {
1052
+ background-color: var(--_readonly-bg);
1053
+ color: var(--_ink);
1054
+ }
1055
+
1056
+ input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="file"]):not([type="range"]):not([type="color"]):user-invalid,
1057
+ select:user-invalid,
1058
+ textarea:user-invalid {
1059
+ border-color: var(--_status-danger);
1060
+ box-shadow: inset 3px 0 0 var(--_status-danger), inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
1061
+ }
1062
+
1063
+ input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="file"]):not([type="range"]):not([type="color"]):focus-visible,
1064
+ select:focus-visible,
1065
+ textarea:focus-visible,
1066
+ input[type="file"]:focus-visible,
1067
+ input[type="color"]:focus-visible {
1068
+ border-color: var(--_accent);
1069
+ outline: 2px solid var(--_accent);
1070
+ outline-offset: -1px;
1071
+ }
1072
+
1073
+ ::-webkit-calendar-picker-indicator {
1074
+ opacity: 0.72;
1075
+ cursor: pointer;
1076
+ }
1077
+
1078
+ ::-webkit-calendar-picker-indicator:hover {
1079
+ opacity: 1;
1080
+ }
1081
+
1082
+ textarea {
1083
+ min-height: 5.5rem;
1084
+ resize: vertical;
1085
+ }
1086
+
1087
+ input[type="color"] {
1088
+ width: 3.25rem;
1089
+ height: 2.2rem;
1090
+ padding: 3px;
1091
+ line-height: 0;
1092
+ background-color: var(--_well);
1093
+ border: 1px solid;
1094
+ border-color: var(--_border-inset) #ffffff #ffffff var(--_border-seam);
1095
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 var(--_plate);
1096
+ cursor: pointer;
1097
+ }
1098
+
1099
+ input[type="color"]::-webkit-color-swatch-wrapper {
1100
+ padding: 0;
1101
+ height: 100%;
1102
+ }
1103
+
1104
+ input[type="color"]::-webkit-color-swatch {
1105
+ border: 1px solid var(--_border-inset);
1106
+ height: 100%;
1107
+ }
1108
+
1109
+ input[type="color"]::-moz-color-swatch {
1110
+ border: 1px solid var(--_border-inset);
1111
+ }
1112
+
1113
+ input[type="file"] {
1114
+ display: block;
1115
+ width: 100%;
1116
+ padding: 0.35rem 0.45rem;
1117
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1118
+ font-size: 0.88rem;
1119
+ color: var(--_ink);
1120
+ background-color: var(--_well);
1121
+ border: 1px solid;
1122
+ border-color: var(--_border-inset) #ffffff #ffffff var(--_border-seam);
1123
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 var(--_plate);
1124
+ cursor: pointer;
1125
+ }
1126
+
1127
+ /* Machined Calibrated Range Slider (Zero Bubble) */
1128
+ input[type="range"] {
1129
+ -webkit-appearance: none;
1130
+ appearance: none;
1131
+ width: 100%;
1132
+ height: 1.75rem;
1133
+ background: transparent;
1134
+ cursor: pointer;
1135
+ }
1136
+
1137
+ input[type="range"]::-webkit-slider-runnable-track {
1138
+ height: 8px;
1139
+ background:
1140
+ repeating-linear-gradient(90deg, transparent 0 19px, var(--_tick) 19px 20px),
1141
+ var(--_track);
1142
+ border: 1px solid;
1143
+ border-color: var(--_border-inset) #ffffff #ffffff var(--_border-seam);
1144
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 var(--_plate);
1145
+ }
1146
+
1147
+ input[type="range"]::-webkit-slider-thumb {
1148
+ -webkit-appearance: none;
1149
+ appearance: none;
1150
+ width: 12px;
1151
+ height: 22px;
1152
+ margin-top: -8px;
1153
+ background-color: var(--_panel);
1154
+ border: 1px solid;
1155
+ border-color: var(--_border-seam) var(--_border-deep) var(--_border-deep) var(--_border-seam);
1156
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow), 1px 1px 0 var(--_shadow-btn);
1157
+ }
1158
+
1159
+ input[type="range"]::-webkit-slider-thumb:hover {
1160
+ background-color: var(--_hover);
1161
+ }
1162
+
1163
+ input[type="range"]:active::-webkit-slider-thumb {
1164
+ background-color: var(--_pressed);
1165
+ border-color: var(--_border-deep) #ffffff #ffffff var(--_border-deep);
1166
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
1167
+ }
1168
+
1169
+ input[type="range"]::-moz-range-track {
1170
+ height: 8px;
1171
+ background:
1172
+ repeating-linear-gradient(90deg, transparent 0 19px, var(--_tick) 19px 20px),
1173
+ var(--_track);
1174
+ border: 1px solid;
1175
+ border-color: var(--_border-inset) #ffffff #ffffff var(--_border-seam);
1176
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 var(--_plate);
1177
+ }
1178
+
1179
+ input[type="range"]::-moz-range-thumb {
1180
+ width: 12px;
1181
+ height: 22px;
1182
+ border-radius: 0;
1183
+ background-color: var(--_panel);
1184
+ border: 1px solid;
1185
+ border-color: var(--_border-seam) var(--_border-deep) var(--_border-deep) var(--_border-seam);
1186
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow), 1px 1px 0 var(--_shadow-btn);
1187
+ }
1188
+
1189
+ input[type="range"]::-moz-range-thumb:hover {
1190
+ background-color: var(--_hover);
1191
+ }
1192
+
1193
+ input[type="range"]:active::-moz-range-thumb {
1194
+ background-color: var(--_pressed);
1195
+ border-color: var(--_border-deep) #ffffff #ffffff var(--_border-deep);
1196
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
1197
+ }
1198
+
1199
+ input[type="range"]:focus-visible {
1200
+ outline: 1px dotted var(--_accent);
1201
+ outline-offset: 2px;
1202
+ }
1203
+
1204
+ /* Sunken Checkboxes & Radios */
1205
+ input[type="checkbox"],
1206
+ input[type="radio"] {
1207
+ appearance: none;
1208
+ -webkit-appearance: none;
1209
+ width: 1.2em;
1210
+ height: 1.2em;
1211
+ flex-shrink: 0;
1212
+ border: 1px solid;
1213
+ border-color: var(--_border-inset) #ffffff #ffffff var(--_border-seam);
1214
+ background-color: var(--_well);
1215
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 var(--_plate);
1216
+ display: inline-grid;
1217
+ place-content: center;
1218
+ cursor: pointer;
1219
+ }
1220
+
1221
+ input[type="radio"] {
1222
+ border-radius: 50%;
1223
+ }
1224
+
1225
+ input[type="checkbox"]::before {
1226
+ content: "";
1227
+ width: 0.65em;
1228
+ height: 0.65em;
1229
+ transform: scale(0);
1230
+ background-color: var(--_accent);
1231
+ clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
1232
+ }
1233
+
1234
+ input[type="checkbox"]:indeterminate::before {
1235
+ width: 0.65em;
1236
+ height: 2px;
1237
+ clip-path: none;
1238
+ transform: scale(1);
1239
+ }
1240
+
1241
+ input[type="radio"]::before {
1242
+ content: "";
1243
+ width: 0.52em;
1244
+ height: 0.52em;
1245
+ border-radius: 50%;
1246
+ transform: scale(0);
1247
+ background-color: var(--_accent);
1248
+ }
1249
+
1250
+ input[type="checkbox"]:checked::before,
1251
+ input[type="radio"]:checked::before {
1252
+ transform: scale(1);
1253
+ }
1254
+
1255
+ input[type="checkbox"]:hover,
1256
+ input[type="radio"]:hover {
1257
+ background-color: var(--_quote-bg);
1258
+ }
1259
+
1260
+ input[type="checkbox"]:focus-visible,
1261
+ input[type="radio"]:focus-visible {
1262
+ outline: 1px dotted var(--_accent);
1263
+ outline-offset: 2px;
1264
+ }
1265
+
1266
+ label {
1267
+ display: block;
1268
+ font-weight: 600;
1269
+ font-size: 0.88rem;
1270
+ color: var(--_ink);
1271
+ padding-top: 0.72rem;
1272
+ }
1273
+
1274
+ legend + label,
1275
+ label:first-child {
1276
+ padding-top: 0;
1277
+ }
1278
+
1279
+ label:has(> input[type="checkbox"]),
1280
+ label:has(> input[type="radio"]) {
1281
+ display: inline-flex;
1282
+ align-items: center;
1283
+ gap: 0.6rem;
1284
+ font-weight: 400;
1285
+ padding-top: 0;
1286
+ cursor: pointer;
1287
+ width: fit-content;
1288
+ }
1289
+
1290
+ /* Tactile Raised Controls (Tier 3) */
1291
+ button,
1292
+ input[type="submit"],
1293
+ input[type="reset"],
1294
+ input[type="button"],
1295
+ ::file-selector-button {
1296
+ display: inline-flex;
1297
+ align-items: center;
1298
+ justify-content: center;
1299
+ gap: 0.5rem;
1300
+ height: 2.2rem;
1301
+ padding: 0 1.05rem;
1302
+ cursor: pointer;
1303
+ background-color: var(--_panel);
1304
+ color: var(--_ink-strong);
1305
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1306
+ font-size: 0.88rem;
1307
+ font-weight: 600;
1308
+ border: 1px solid;
1309
+ border-color: var(--_border-seam) var(--_border-dark) var(--_border-deep) var(--_border-seam);
1310
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow), 1px 1px 0 var(--_shadow-btn);
1311
+ width: fit-content;
1312
+ }
1313
+
1314
+ ::file-selector-button {
1315
+ height: 1.85rem;
1316
+ padding: 0 0.75rem;
1317
+ margin-right: 0.75rem;
1318
+ font-size: 0.82rem;
1319
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
1320
+ }
1321
+
1322
+ button:hover,
1323
+ input[type="reset"]:hover,
1324
+ input[type="button"]:hover,
1325
+ ::file-selector-button:hover {
1326
+ background-color: var(--_hover);
1327
+ }
1328
+
1329
+ button:active,
1330
+ input[type="submit"]:active,
1331
+ input[type="reset"]:active,
1332
+ input[type="button"]:active,
1333
+ ::file-selector-button:active {
1334
+ border-color: var(--_border-deep) #ffffff #ffffff var(--_border-dark);
1335
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
1336
+ transform: translate(1px, 1px);
1337
+ }
1338
+
1339
+ button:focus-visible,
1340
+ input[type="reset"]:focus-visible,
1341
+ input[type="button"]:focus-visible {
1342
+ outline: 1px dotted var(--_accent);
1343
+ outline-offset: -4px;
1344
+ }
1345
+
1346
+ button[aria-pressed="true"] {
1347
+ background-color: var(--_pressed);
1348
+ color: var(--_ink-strong);
1349
+ border-color: var(--_border-deep) #ffffff #ffffff var(--_border-dark);
1350
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
1351
+ }
1352
+
1353
+ /* Primary Action (Extruded Accent — Deepens on Hover) */
1354
+ input[type="submit"],
1355
+ button[type="submit"] {
1356
+ background-color: var(--_accent);
1357
+ color: var(--_on-accent);
1358
+ border: 1px solid var(--_accent-active);
1359
+ box-shadow: inset 1px 1px 0 var(--_accent-bevel-hi), inset -1px -1px 0 var(--_accent-active), 2px 2px 0 var(--_shadow-submit);
1360
+ }
1361
+
1362
+ input[type="submit"]:hover,
1363
+ button[type="submit"]:hover {
1364
+ background-color: var(--_accent-hover);
1365
+ box-shadow: inset 1px 1px 0 var(--_accent-bevel-hi), inset -1px -1px 0 var(--_accent-active), 2px 2px 0 var(--_shadow-submit);
1366
+ }
1367
+
1368
+ input[type="submit"]:active,
1369
+ button[type="submit"]:active {
1370
+ background-color: var(--_accent-active);
1371
+ border-color: var(--_accent-active);
1372
+ box-shadow: inset 1px 1px 0 var(--_crt-shadow), inset -1px -1px 0 var(--_accent-bevel-hi);
1373
+ transform: translate(1px, 1px);
1374
+ }
1375
+
1376
+ input[type="submit"]:focus-visible,
1377
+ button[type="submit"]:focus-visible {
1378
+ outline: 1px dotted var(--_on-accent);
1379
+ outline-offset: -4px;
1380
+ }
1381
+
1382
+ /* Embossed 90s Disabled States */
1383
+ button:disabled,
1384
+ button:disabled:hover,
1385
+ button:disabled:active,
1386
+ input[type="submit"]:disabled,
1387
+ input[type="submit"]:disabled:hover,
1388
+ input[type="submit"]:disabled:active,
1389
+ button[type="submit"]:disabled,
1390
+ button[type="submit"]:disabled:hover,
1391
+ button[type="submit"]:disabled:active,
1392
+ input[type="reset"]:disabled,
1393
+ input[type="reset"]:disabled:hover,
1394
+ input[type="reset"]:disabled:active,
1395
+ input[type="button"]:disabled,
1396
+ input[type="button"]:disabled:hover,
1397
+ input[type="button"]:disabled:active,
1398
+ input[type="file"]:disabled::file-selector-button {
1399
+ background-color: var(--_disabled-bg);
1400
+ color: var(--_ink-disabled);
1401
+ text-shadow: 1px 1px 0 #ffffff;
1402
+ border-color: var(--_border-bevel);
1403
+ box-shadow: none;
1404
+ cursor: not-allowed;
1405
+ transform: none;
1406
+ }
1407
+
1408
+ input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="range"]):not([type="color"]):disabled,
1409
+ select:disabled,
1410
+ textarea:disabled {
1411
+ background-color: var(--_disabled-bg);
1412
+ color: var(--_ink-disabled);
1413
+ border-color: var(--_border-bevel);
1414
+ box-shadow: inset 1px 1px 0 var(--_border-light);
1415
+ cursor: not-allowed;
1416
+ }
1417
+
1418
+ input[type="checkbox"]:disabled,
1419
+ input[type="checkbox"]:disabled:hover,
1420
+ input[type="radio"]:disabled,
1421
+ input[type="radio"]:disabled:hover,
1422
+ input[type="color"]:disabled {
1423
+ background-color: var(--_disabled-bg);
1424
+ opacity: 0.65;
1425
+ cursor: not-allowed;
1426
+ }
1427
+
1428
+ input[type="range"]:disabled {
1429
+ opacity: 0.65;
1430
+ cursor: not-allowed;
1431
+ }
1432
+
1433
+ /* Carved Fieldsets & Bare Forms (Beveled Groove + Auto Horizontal Button Bar) */
1434
+ form {
1435
+ display: flex;
1436
+ flex-direction: row;
1437
+ flex-wrap: wrap;
1438
+ align-items: center;
1439
+ gap: 0.85rem 0.6rem;
1440
+ }
1441
+
1442
+ fieldset {
1443
+ display: flex;
1444
+ flex-direction: row;
1445
+ flex-wrap: wrap;
1446
+ align-items: center;
1447
+ gap: 0.42rem 0.6rem;
1448
+ background-color: var(--_fieldset);
1449
+ border: 1px solid var(--_border-mid);
1450
+ box-shadow: inset 1px 1px 0 #ffffff, 1px 1px 0 #ffffff;
1451
+ padding: 1.2rem 1.25rem;
1452
+ }
1453
+
1454
+ :where(form, fieldset) > :where(:not(legend, button, input[type="submit"], input[type="reset"], input[type="button"], input[type="color"], output)) {
1455
+ flex: 1 0 100%;
1456
+ }
1457
+
1458
+ :where(form, fieldset) > :is(button, input[type="submit"], input[type="reset"], input[type="button"]) {
1459
+ flex: 0 0 auto;
1460
+ }
1461
+
1462
+ :where(form, fieldset) > label:has(> input[type="checkbox"], > input[type="radio"]) {
1463
+ flex: 0 0 100%;
1464
+ }
1465
+
1466
+ fieldset:has(> label > input[type="checkbox"], > label > input[type="radio"]):not(:has(> button, > input[type="submit"], > input[type="reset"], > input[type="button"])) {
1467
+ flex-direction: column;
1468
+ align-items: stretch;
1469
+ gap: 0.5rem;
1470
+ }
1471
+
1472
+ fieldset:has(> label > input[type="checkbox"], > label > input[type="radio"]):not(:has(> button, > input[type="submit"], > input[type="reset"], > input[type="button"])) > * {
1473
+ flex: 0 0 auto;
1474
+ }
1475
+
1476
+ fieldset > hr,
1477
+ form > hr {
1478
+ align-self: stretch;
1479
+ }
1480
+
1481
+ fieldset fieldset {
1482
+ background-color: var(--_fieldset-deep);
1483
+ border: 1px solid var(--_border-mid);
1484
+ box-shadow: inset 1px 1px 0 #ffffff, 1px 1px 0 #ffffff;
1485
+ padding: 1rem 1.15rem;
1486
+ gap: 0.55rem;
1487
+ }
1488
+
1489
+ legend {
1490
+ font-size: 0.78rem;
1491
+ font-weight: 600;
1492
+ text-transform: uppercase;
1493
+ letter-spacing: 0.05em;
1494
+ color: var(--_ink-strong);
1495
+ background-color: var(--_panel);
1496
+ border: 1px solid var(--_border-seam);
1497
+ box-shadow: inset 1px 1px 0 #ffffff;
1498
+ padding: 0.18rem 0.65rem;
1499
+ }
1500
+
1501
+ fieldset fieldset > legend {
1502
+ background-color: var(--_panel-light);
1503
+ color: var(--_ink-muted);
1504
+ border: 1px solid var(--_border-mid);
1505
+ box-shadow: inset 1px 1px 0 #ffffff;
1506
+ font-size: 0.7rem;
1507
+ line-height: 1.2;
1508
+ padding: 0.06rem 0.45rem;
1509
+ }
1510
+
1511
+ /* ==========================================================================
1512
+ Interactive (Details, Progress, Meter, Dialog)
1513
+ ========================================================================== */
1514
+ details {
1515
+ background-color: var(--_panel-light);
1516
+ border: 1px solid;
1517
+ border-color: var(--_border-mid) var(--_border-dark) var(--_border-deep) var(--_border-mid);
1518
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
1519
+ padding: 2px;
1520
+ gap: 0;
1521
+ }
1522
+
1523
+ details[open] {
1524
+ gap: 0.85rem;
1525
+ padding: 2px 2px 1.1rem;
1526
+ }
1527
+
1528
+ summary {
1529
+ font-weight: 600;
1530
+ cursor: pointer;
1531
+ list-style: none;
1532
+ display: flex;
1533
+ align-items: center;
1534
+ gap: 0.6rem;
1535
+ padding: 0.8rem 1.25rem;
1536
+ background-color: var(--_plate);
1537
+ color: var(--_ink-strong);
1538
+ }
1539
+
1540
+ summary::-webkit-details-marker {
1541
+ display: none;
1542
+ }
1543
+
1544
+ summary::before {
1545
+ content: "+";
1546
+ display: inline-grid;
1547
+ place-items: center;
1548
+ width: 1.15rem;
1549
+ height: 1.15rem;
1550
+ flex-shrink: 0;
1551
+ font-size: 0.85rem;
1552
+ font-weight: 700;
1553
+ line-height: 1;
1554
+ background-color: var(--_panel-light);
1555
+ color: var(--_ink-strong);
1556
+ border: 1px solid var(--_border-inset);
1557
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
1558
+ }
1559
+
1560
+ summary:hover {
1561
+ background-color: var(--_hover);
1562
+ color: var(--_ink-strong);
1563
+ }
1564
+
1565
+ details[open] > summary {
1566
+ border-bottom: 1px solid var(--_border-mid);
1567
+ box-shadow: 0 1px 0 #ffffff;
1568
+ }
1569
+
1570
+ details[open] > summary::before {
1571
+ content: "\2212";
1572
+ }
1573
+
1574
+ summary:focus-visible {
1575
+ outline: 1px dotted var(--_accent);
1576
+ outline-offset: -3px;
1577
+ }
1578
+
1579
+ details > :not(summary) {
1580
+ padding-inline: 1.25rem;
1581
+ }
1582
+
1583
+ details > :is(ul, ol) {
1584
+ padding-inline: 2.5rem 1.25rem;
1585
+ }
1586
+
1587
+ /* Segmented Accent Progress Bar */
1588
+ progress {
1589
+ -webkit-appearance: none;
1590
+ appearance: none;
1591
+ display: block;
1592
+ width: 100%;
1593
+ height: 20px;
1594
+ background-color: var(--_well);
1595
+ border: 1px solid;
1596
+ border-color: var(--_border-inset) #ffffff #ffffff var(--_border-seam);
1597
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 var(--_plate);
1598
+ padding: 3px;
1599
+ }
1600
+
1601
+ progress::-webkit-progress-bar {
1602
+ background-color: var(--_well);
1603
+ }
1604
+
1605
+ progress::-webkit-progress-value {
1606
+ background: repeating-linear-gradient(
1607
+ 90deg,
1608
+ var(--_accent) 0px,
1609
+ var(--_accent) 8px,
1610
+ #ffffff 8px,
1611
+ #ffffff 10px
1612
+ );
1613
+ }
1614
+
1615
+ progress::-moz-progress-bar {
1616
+ background: repeating-linear-gradient(
1617
+ 90deg,
1618
+ var(--_accent) 0px,
1619
+ var(--_accent) 8px,
1620
+ #ffffff 8px,
1621
+ #ffffff 10px
1622
+ );
1623
+ }
1624
+
1625
+ @keyframes swehrley-indeterminate {
1626
+ 0% {
1627
+ background-position: 0% 0;
1628
+ }
1629
+ 100% {
1630
+ background-position: 100% 0;
1631
+ }
1632
+ }
1633
+
1634
+ progress:indeterminate {
1635
+ background-color: var(--_well);
1636
+ background-image: repeating-linear-gradient(
1637
+ 90deg,
1638
+ var(--_accent) 0px,
1639
+ var(--_accent) 8px,
1640
+ transparent 8px,
1641
+ transparent 10px
1642
+ );
1643
+ background-size: 48px 100%;
1644
+ background-repeat: no-repeat;
1645
+ background-origin: content-box;
1646
+ background-clip: content-box;
1647
+ animation: swehrley-indeterminate 1.6s ease-in-out infinite alternate;
1648
+ }
1649
+
1650
+ progress:indeterminate::-webkit-progress-bar {
1651
+ background: transparent;
1652
+ }
1653
+
1654
+ progress:indeterminate::-moz-progress-bar {
1655
+ background: transparent;
1656
+ }
1657
+
1658
+ /* Machined 3-Step Meter */
1659
+ meter {
1660
+ display: block;
1661
+ width: 100%;
1662
+ height: 20px;
1663
+ background-color: var(--_well);
1664
+ border: 1px solid;
1665
+ border-color: var(--_border-inset) #ffffff #ffffff var(--_border-seam);
1666
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 var(--_plate);
1667
+ padding: 3px;
1668
+ }
1669
+
1670
+ meter::-webkit-meter-bar {
1671
+ background: transparent;
1672
+ border: none;
1673
+ border-radius: 0;
1674
+ height: 12px;
1675
+ }
1676
+
1677
+ meter::-webkit-meter-optimum-value {
1678
+ background: var(--_status-ok);
1679
+ }
1680
+
1681
+ meter::-webkit-meter-suboptimum-value {
1682
+ background: repeating-linear-gradient(
1683
+ 90deg,
1684
+ var(--_status-warn) 0px,
1685
+ var(--_status-warn) 8px,
1686
+ transparent 8px,
1687
+ transparent 10px
1688
+ );
1689
+ }
1690
+
1691
+ meter::-webkit-meter-even-less-good-value {
1692
+ background: repeating-linear-gradient(
1693
+ -45deg,
1694
+ var(--_status-danger) 0px,
1695
+ var(--_status-danger) 5px,
1696
+ var(--_status-danger-bg) 5px,
1697
+ var(--_status-danger-bg) 9px
1698
+ );
1699
+ }
1700
+
1701
+ meter::-moz-meter-bar {
1702
+ border-radius: 0;
1703
+ }
1704
+
1705
+ meter:-moz-meter-optimum::-moz-meter-bar {
1706
+ background: var(--_status-ok);
1707
+ }
1708
+
1709
+ meter:-moz-meter-sub-optimum::-moz-meter-bar {
1710
+ background: repeating-linear-gradient(
1711
+ 90deg,
1712
+ var(--_status-warn) 0px,
1713
+ var(--_status-warn) 8px,
1714
+ transparent 8px,
1715
+ transparent 10px
1716
+ );
1717
+ }
1718
+
1719
+ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
1720
+ background: repeating-linear-gradient(
1721
+ -45deg,
1722
+ var(--_status-danger) 0px,
1723
+ var(--_status-danger) 5px,
1724
+ var(--_status-danger-bg) 5px,
1725
+ var(--_status-danger-bg) 9px
1726
+ );
1727
+ }
1728
+
1729
+ /* Active OS Modal Window (<dialog>, Framed 3px Window Bezel) */
1730
+ dialog[open] {
1731
+ display: flex;
1732
+ flex-direction: column;
1733
+ gap: 0.85rem;
1734
+ }
1735
+
1736
+ dialog {
1737
+ border: 1px solid;
1738
+ border-color: var(--_border-seam) var(--_border-dark) var(--_border-deep) var(--_border-seam);
1739
+ border-radius: 0;
1740
+ background-color: var(--_panel);
1741
+ color: var(--_ink);
1742
+ padding: 3px;
1743
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow), 6px 6px 0 var(--_shadow-dialog);
1744
+ position: fixed;
1745
+ top: 50%;
1746
+ left: 50%;
1747
+ transform: translate(-50%, -50%);
1748
+ width: 100%;
1749
+ max-width: min(92vw, 520px);
1750
+ max-height: min(88svh, 680px);
1751
+ overflow-x: hidden;
1752
+ overflow-y: auto;
1753
+ }
1754
+
1755
+ dialog > header {
1756
+ display: flex;
1757
+ flex-direction: row;
1758
+ justify-content: space-between;
1759
+ align-items: center;
1760
+ padding: 0.5rem 0.65rem 0.5rem 1.15rem;
1761
+ background-color: var(--_accent);
1762
+ color: var(--_on-accent);
1763
+ border-bottom: 1px solid var(--_accent-active);
1764
+ text-align: left;
1765
+ gap: 0.75rem;
1766
+ }
1767
+
1768
+ dialog > header h1,
1769
+ dialog > header h2,
1770
+ dialog > header h3,
1771
+ dialog > header h4,
1772
+ dialog > header h5,
1773
+ dialog > header h6 {
1774
+ font-size: 0.9rem;
1775
+ font-weight: 600;
1776
+ letter-spacing: 0.02em;
1777
+ color: var(--_on-accent);
1778
+ }
1779
+
1780
+ dialog > header form {
1781
+ gap: 0;
1782
+ }
1783
+
1784
+ dialog > header form button,
1785
+ dialog > header > button {
1786
+ padding: 0 0 1px;
1787
+ width: 1.5rem;
1788
+ height: 1.5rem;
1789
+ background-color: var(--_panel);
1790
+ color: var(--_ink-strong);
1791
+ border: 1px solid var(--_accent-active);
1792
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
1793
+ font-size: 1.05rem;
1794
+ line-height: 1;
1795
+ }
1796
+
1797
+ dialog > header form button:hover,
1798
+ dialog > header > button:hover {
1799
+ background-color: var(--_hover);
1800
+ }
1801
+
1802
+ dialog > header form button:active,
1803
+ dialog > header > button:active {
1804
+ border-color: var(--_accent-active);
1805
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
1806
+ transform: translate(1px, 1px);
1807
+ }
1808
+
1809
+ dialog > :not(header):not(footer) {
1810
+ padding-inline: 1.15rem;
1811
+ }
1812
+
1813
+ dialog > :is(ul, ol) {
1814
+ padding-inline: 2.4rem 1.15rem;
1815
+ }
1816
+
1817
+ dialog > header + :not(footer) {
1818
+ padding-top: 0.4rem;
1819
+ }
1820
+
1821
+ dialog > :first-child:not(header) {
1822
+ padding-top: 1.15rem;
1823
+ }
1824
+
1825
+ dialog > :not(header):not(footer):has(+ footer) {
1826
+ padding-bottom: 0.4rem;
1827
+ }
1828
+
1829
+ dialog > :last-child:not(footer) {
1830
+ padding-bottom: 1.15rem;
1831
+ }
1832
+
1833
+ dialog > footer {
1834
+ display: flex;
1835
+ flex-direction: row;
1836
+ flex-wrap: wrap;
1837
+ justify-content: flex-end;
1838
+ align-items: center;
1839
+ padding: 0.7rem 1.15rem;
1840
+ gap: 0.55rem;
1841
+ background-color: var(--_plate);
1842
+ border-top: 1px solid var(--_border-mid);
1843
+ box-shadow: inset 0 1px 0 #ffffff;
1844
+ text-align: right;
1845
+ }
1846
+
1847
+ dialog > footer form {
1848
+ display: flex;
1849
+ flex-direction: row;
1850
+ flex-wrap: wrap;
1851
+ gap: 0.55rem;
1852
+ justify-content: flex-end;
1853
+ }
1854
+
1855
+ dialog::backdrop {
1856
+ background-color: var(--_backdrop, rgba(20, 26, 24, 0.42));
1857
+ }
1858
+
1859
+ /* ==========================================================================
1860
+ Structural Containers & Window Chrome (2-Ring Machined Panels)
1861
+ ========================================================================== */
1862
+ header,
1863
+ footer {
1864
+ text-align: center;
1865
+ align-items: center;
1866
+ padding: 1.15rem 0.75rem;
1867
+ gap: 0.75rem;
1868
+ background-color: transparent;
1869
+ }
1870
+
1871
+ body > header > p,
1872
+ main > header > p {
1873
+ max-width: 56ch;
1874
+ }
1875
+
1876
+ main > header {
1877
+ padding: 0.5rem 0.5rem 0.25rem;
1878
+ }
1879
+
1880
+ form > footer,
1881
+ fieldset > footer {
1882
+ display: flex;
1883
+ flex-direction: row;
1884
+ flex-wrap: wrap;
1885
+ justify-content: flex-end;
1886
+ align-items: center;
1887
+ gap: 0.55rem;
1888
+ padding: 0.85rem 0 0;
1889
+ border-top: 1px solid var(--_border-mid);
1890
+ box-shadow: inset 0 1px 0 #ffffff;
1891
+ text-align: right;
1892
+ }
1893
+
1894
+ /* Recessed Transport-Deck Navigation Bar with Physical Keycap Links */
1895
+ nav {
1896
+ display: flex;
1897
+ flex-direction: row;
1898
+ flex-wrap: wrap;
1899
+ justify-content: center;
1900
+ gap: 0.3rem;
1901
+ padding: 0.3rem;
1902
+ background-color: var(--_plate);
1903
+ border: 1px solid;
1904
+ border-color: var(--_border-mid) var(--_border-light) var(--_border-light) var(--_border-mid);
1905
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
1906
+ }
1907
+
1908
+ nav a {
1909
+ padding: 0.36rem 0.78rem;
1910
+ font-size: 0.85rem;
1911
+ font-weight: 500;
1912
+ background-color: var(--_panel-light);
1913
+ color: var(--_ink-strong);
1914
+ text-decoration: none;
1915
+ border: 1px solid;
1916
+ border-color: #ffffff var(--_border-seam) var(--_border-inset) #ffffff;
1917
+ box-shadow: inset -1px -1px 0 var(--_border-bevel);
1918
+ }
1919
+
1920
+ nav a:hover {
1921
+ background-color: var(--_hover);
1922
+ color: var(--_ink-strong);
1923
+ text-decoration: none;
1924
+ border-color: #ffffff var(--_border-dark) var(--_border-deep) #ffffff;
1925
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
1926
+ }
1927
+
1928
+ nav a:focus-visible {
1929
+ background-color: var(--_hover);
1930
+ outline: 1px dotted var(--_accent);
1931
+ outline-offset: -3px;
1932
+ }
1933
+
1934
+ nav a[aria-current="page"],
1935
+ nav a[aria-current="true"] {
1936
+ background-color: var(--_pressed);
1937
+ color: var(--_ink-strong);
1938
+ font-weight: 600;
1939
+ border-color: var(--_border-inset) #ffffff #ffffff var(--_border-inset);
1940
+ border-top: 2px solid var(--_accent);
1941
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
1942
+ }
1943
+
1944
+ nav a:active {
1945
+ background-color: var(--_pressed);
1946
+ border-color: var(--_border-dark) #ffffff #ffffff var(--_border-inset);
1947
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
1948
+ transform: translate(1px, 1px);
1949
+ }
1950
+
1951
+ /* Machined Panel (<article>) & Framed OS Window (<article> with <header>) */
1952
+ article {
1953
+ background-color: var(--_panel);
1954
+ border: 1px solid;
1955
+ border-color: var(--_border-mid) var(--_border-dark) var(--_border-deep) var(--_border-mid);
1956
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
1957
+ padding: 1.2rem 1.25rem;
1958
+ gap: 0.85rem;
1959
+ }
1960
+
1961
+ article:not(:has(> header)) > :is(h2, h3, h4):first-child {
1962
+ border-bottom: 1px solid var(--_border-mid);
1963
+ box-shadow: 0 1px 0 #ffffff;
1964
+ padding-bottom: 0.42rem;
1965
+ }
1966
+
1967
+ article:has(> header) {
1968
+ background-color: var(--_panel);
1969
+ padding: 3px;
1970
+ gap: 0.85rem;
1971
+ }
1972
+
1973
+ article:has(> header):not(:has(> footer)) {
1974
+ padding-bottom: 1.15rem;
1975
+ }
1976
+
1977
+ article > header {
1978
+ display: flex;
1979
+ flex-direction: row;
1980
+ justify-content: space-between;
1981
+ align-items: center;
1982
+ text-align: left;
1983
+ padding: 0.55rem 1.15rem;
1984
+ background-color: var(--_accent);
1985
+ color: var(--_on-accent);
1986
+ border-bottom: 1px solid var(--_accent-active);
1987
+ gap: 0.75rem;
1988
+ }
1989
+
1990
+ article > header h1,
1991
+ article > header h2,
1992
+ article > header h3,
1993
+ article > header h4,
1994
+ article > header h5,
1995
+ article > header h6 {
1996
+ font-size: 0.9rem;
1997
+ font-weight: 600;
1998
+ letter-spacing: 0.02em;
1999
+ color: var(--_on-accent);
2000
+ }
2001
+
2002
+ article > header a,
2003
+ dialog > header a {
2004
+ color: var(--_on-accent);
2005
+ text-decoration-color: color-mix(in srgb, var(--_on-accent) 55%, transparent);
2006
+ }
2007
+
2008
+ article > header a:hover,
2009
+ article > header a:focus-visible,
2010
+ dialog > header a:hover,
2011
+ dialog > header a:focus-visible {
2012
+ color: var(--_on-accent);
2013
+ background-color: transparent;
2014
+ text-decoration-color: var(--_on-accent);
2015
+ }
2016
+
2017
+ article > header small {
2018
+ font-size: 0.78rem;
2019
+ color: var(--_on-accent-muted);
2020
+ }
2021
+
2022
+ article:has(> header) > :not(header):not(footer) {
2023
+ padding-inline: 1.15rem;
2024
+ }
2025
+
2026
+ article:has(> header) > :is(ul, ol) {
2027
+ padding-inline: 2.4rem 1.15rem;
2028
+ }
2029
+
2030
+ /* Recessed Window Status Bar */
2031
+ article > footer {
2032
+ display: flex;
2033
+ flex-direction: row;
2034
+ justify-content: space-between;
2035
+ align-items: center;
2036
+ text-align: left;
2037
+ padding: 0.45rem 1.15rem;
2038
+ background-color: var(--_plate);
2039
+ border-top: 1px solid var(--_border-mid);
2040
+ box-shadow: inset 0 1px 0 #ffffff;
2041
+ font-size: 0.8rem;
2042
+ color: var(--_ink-muted);
2043
+ }
2044
+
2045
+ /* Media Figures (Standalone & Stacked 2-Tier with <figcaption>) */
2046
+ figure {
2047
+ padding: 1.15rem 1.25rem;
2048
+ background-color: var(--_panel);
2049
+ border: 1px solid;
2050
+ border-color: var(--_border-mid) var(--_border-dark) var(--_border-deep) var(--_border-mid);
2051
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
2052
+ text-align: center;
2053
+ align-items: center;
2054
+ gap: 0.9rem;
2055
+ }
2056
+
2057
+ figure:has(> figcaption) {
2058
+ display: grid;
2059
+ grid-template-columns: 1.25rem minmax(0, 1fr) 1.25rem;
2060
+ justify-items: center;
2061
+ padding: 1.15rem 0 0;
2062
+ gap: 1.15rem 0;
2063
+ }
2064
+
2065
+ figure:has(> figcaption:first-child) {
2066
+ padding: 0 0 1.15rem;
2067
+ }
2068
+
2069
+ figure:has(> figcaption) > :not(figcaption) {
2070
+ grid-column: 2;
2071
+ }
2072
+
2073
+ img,
2074
+ video,
2075
+ canvas {
2076
+ height: auto;
2077
+ }
2078
+
2079
+ figure > :is(img, video, canvas) {
2080
+ border: 1px solid var(--_border-mid);
2081
+ }
2082
+
2083
+ figure:has(> figcaption) > figcaption {
2084
+ grid-column: 1 / -1;
2085
+ width: 100%;
2086
+ padding: 0.62rem 1.25rem;
2087
+ background-color: var(--_plate);
2088
+ border: none;
2089
+ border-top: 1px solid var(--_border-seam);
2090
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
2091
+ font-size: 0.82rem;
2092
+ color: var(--_ink);
2093
+ }
2094
+
2095
+ figure:has(> figcaption:first-child) > figcaption:first-child {
2096
+ border-top: none;
2097
+ border-bottom: 1px solid var(--_border-seam);
2098
+ }
2099
+
2100
+ figcaption strong {
2101
+ color: var(--_ink-strong);
2102
+ }
2103
+
2104
+ /* ==========================================================================
2105
+ Responsive Mobile Density
2106
+ ========================================================================== */
2107
+ @media (max-width: 600px) {
2108
+ body {
2109
+ padding: 1.15rem 0.9rem 2.25rem;
2110
+ gap: 1.25rem;
2111
+ }
2112
+
2113
+ main {
2114
+ gap: 1.35rem;
2115
+ }
2116
+
2117
+ nav {
2118
+ gap: 0.22rem;
2119
+ padding: 0.25rem;
2120
+ }
2121
+
2122
+ nav a {
2123
+ padding: 0.28rem 0.52rem;
2124
+ font-size: 0.8rem;
2125
+ }
2126
+
2127
+ article,
2128
+ figure,
2129
+ blockquote,
2130
+ fieldset,
2131
+ pre {
2132
+ padding: 0.95rem 1rem;
2133
+ }
2134
+
2135
+ figure:has(> figcaption) {
2136
+ grid-template-columns: 1rem minmax(0, 1fr) 1rem;
2137
+ padding: 0.95rem 0 0;
2138
+ gap: 0.95rem 0;
2139
+ }
2140
+
2141
+ figure:has(> figcaption:first-child) {
2142
+ padding: 0 0 0.95rem;
2143
+ }
2144
+
2145
+ figure:has(> figcaption) > figcaption {
2146
+ padding: 0.55rem 1rem;
2147
+ }
2148
+
2149
+ article:has(> header) {
2150
+ padding: 3px;
2151
+ }
2152
+
2153
+ article:has(> header):not(:has(> footer)) {
2154
+ padding-bottom: 1rem;
2155
+ }
2156
+
2157
+ article > header,
2158
+ article > footer,
2159
+ dialog > header {
2160
+ flex-wrap: wrap;
2161
+ padding-inline: 1rem;
2162
+ }
2163
+
2164
+ dialog > :not(header):not(footer),
2165
+ dialog > footer {
2166
+ padding-inline: 1rem;
2167
+ }
2168
+
2169
+ article:has(> header) > :not(header):not(footer) {
2170
+ padding-inline: 1rem;
2171
+ }
2172
+
2173
+ article:has(> header) > :is(ul, ol) {
2174
+ padding-inline: 2.15rem 1rem;
2175
+ }
2176
+
2177
+ summary {
2178
+ padding: 0.7rem 1rem;
2179
+ }
2180
+
2181
+ details > :not(summary) {
2182
+ padding-inline: 1rem;
2183
+ }
2184
+
2185
+ details > :is(ul, ol) {
2186
+ padding-inline: 2.15rem 1rem;
2187
+ }
2188
+
2189
+ table {
2190
+ font-size: 0.82rem;
2191
+ }
2192
+
2193
+ th,
2194
+ td {
2195
+ overflow-wrap: break-word;
2196
+ }
2197
+
2198
+ caption,
2199
+ th,
2200
+ td,
2201
+ thead th,
2202
+ tfoot th,
2203
+ tfoot td {
2204
+ padding: 0.42rem 0.6rem;
2205
+ }
2206
+ }
2207
+
2208
+ /* ==========================================================================
2209
+ Print Stylesheet
2210
+ ========================================================================== */
2211
+ @media print {
2212
+ html,
2213
+ body {
2214
+ background-color: #ffffff;
2215
+ color: #111111;
2216
+ padding: 0;
2217
+ }
2218
+
2219
+ * {
2220
+ box-shadow: none !important;
2221
+ }
2222
+
2223
+ nav {
2224
+ display: none;
2225
+ }
2226
+
2227
+ article,
2228
+ figure,
2229
+ blockquote,
2230
+ pre,
2231
+ table,
2232
+ fieldset,
2233
+ details,
2234
+ aside {
2235
+ border: 1px solid #888888;
2236
+ break-inside: avoid;
2237
+ }
2238
+
2239
+ pre,
2240
+ body > header > code,
2241
+ article > header,
2242
+ article > header *,
2243
+ caption,
2244
+ mark,
2245
+ input[type="submit"],
2246
+ button[type="submit"] {
2247
+ background: transparent !important;
2248
+ color: #111111 !important;
2249
+ }
2250
+
2251
+ article > header,
2252
+ caption {
2253
+ border-bottom: 1px solid #888888;
2254
+ }
2255
+ }