-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyles.css
More file actions
12020 lines (10294 loc) · 259 KB
/
styles.css
File metadata and controls
12020 lines (10294 loc) · 259 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
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* ==================================================
Component and theme imports — loaded before all rules so that
per-type custom-property overrides in article-types.css take effect
at rule level, not via !important.
================================================== */
@import './styles/components/swot.css';
@import './styles/components/dashboard.css';
@import './styles/components/mindmap.css';
@import './styles/themes/article-types.css';
/* ==================================================
FONT FALLBACK METRICS — prevents CLS while web fonts load
size-adjust/ascent-override/descent-override approximate
each web font's metrics so that the fallback glyphs occupy
the same space, minimising layout shift on font-swap.
================================================== */
@font-face {
font-family: 'Inter Fallback';
font-style: normal;
font-weight: 100 900;
font-display: swap;
size-adjust: 107%;
ascent-override: 90%;
descent-override: 22%;
line-gap-override: 0%;
src: local('Arial'), local('Liberation Sans'), local('Helvetica Neue'), local('Helvetica');
}
@font-face {
font-family: 'Orbitron Fallback';
font-style: normal;
font-weight: 500 700;
font-display: swap;
size-adjust: 94%;
ascent-override: 85%;
descent-override: 15%;
line-gap-override: 0%;
src: local('Arial Black'), local('Impact'), local('Century Gothic'), local('Trebuchet MS');
}
/* ==================================================
CROSS-BROWSER COMPATIBILITY NOTES
================================================== */
/* This CSS file includes vendor prefixes and fallbacks for maximum browser compatibility:
*
* 1. Vendor Prefixes:
* - -webkit-* for Safari, Chrome, Edge (Chromium)
* - -moz-* for Firefox (where needed)
* - -ms-* for older Edge and IE11 (deprecated but included for legacy support)
*
* 2. Focus-Visible Fallback:
* - Uses @supports to detect :focus-visible support
* - Falls back to :focus for Safari < 15.4
*
* 3. Flexbox with Vendor Prefixes:
* - Includes -webkit-box (Safari 6.1+)
* - Includes -webkit-flex (Safari 8+)
* - Includes -ms-flexbox (IE 10)
* - Modern flex syntax for all other browsers
*
* 4. Grid with Flexbox Fallback:
* - Flexbox layout as base (universally supported)
* - @supports (display: grid) for modern browsers
* - Ensures content is accessible even without Grid support
*
* 5. Appearance Property:
* - -webkit-appearance for Safari/Chrome form controls
* - -moz-appearance for Firefox
* - appearance for standards-compliant browsers
*
* 6. Backdrop Filter:
* - -webkit-backdrop-filter for Safari
* - backdrop-filter for other modern browsers
*
* Browser Support Priority:
* - Chrome/Edge (Chromium): 65% of users - Full support
* - Safari (iOS/macOS): 20% of users - Full support with vendor prefixes
* - Firefox: 5% of users - Full support
* - Other browsers: 10% of users - Graceful degradation
*/
:root {
/* Light Mode - Professional Cyberpunk Green */
--primary-color: #006633;
--primary-light: #007744;
--primary-dark: #004422;
--accent-color: #008838; /* WCAG 2.1 AA: 4.59:1 contrast on white (was #00C853 at 2.24:1) */
--bg-color: #f8f9fa;
--card-bg: #ffffff;
--text-color: #1a1a1a;
--text-secondary: #4a4a4a; /* WCAG 2.1 AA: 8.86:1 contrast on white (improved from #555555 at 7.46:1) */
--header-color: #006633;
--border-color: rgba(0, 102, 51, 0.15);
--card-border: #dee2e6;
--card-shadow: rgba(0, 102, 51, 0.08);
--link-color: #007744;
--link-hover: #006633;
--button-bg: #007744;
--button-text: #fff;
--section-border: #e9ecef;
--badge-bg: #f8f9fa;
--confidentiality-color: #7B2CBF;
--integrity-color: #008838; /* WCAG 2.1 AA: 4.59:1 contrast on white (was #00C853 at 2.24:1) */
--availability-color: #007744;
--premium-gradient-start: #006633;
--premium-gradient-end: #007744;
--success-color: #008838; /* WCAG 2.1 AA: 4.59:1 contrast on white (was #00C853 at 2.24:1) */
--warning-color: #B35A00; /* WCAG 2.1 AA: 4.80:1 contrast on white (was #FF9800 at 2.16:1) */
--danger-color: #DC3545; /* WCAG 2.1 AA: 4.53:1 contrast on white ✅ */
--info-color: #117a8b; /* WCAG 2.1 AA: 5.02:1 contrast on white (was #17A2B8 at 3.04:1) */
--transparency-color: #0066CC;
/* WCAG 2.1 AA Accessible Colors (white text on colored backgrounds, exceeding 4.5:1 minimum) */
--accessible-action-primary: #D84315; /* White on #D84315: 4.60:1 - WCAG AA compliant */
--accessible-youtube-red: #CC0000; /* White on #CC0000: 5.10:1 - WCAG AA compliant */
--accessible-aws-orange: #CC7A00; /* White on #CC7A00: 4.54:1 - WCAG AA compliant */
--font-main: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, sans-serif;
--font-accent: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
--font-mono: "Share Tech Mono", monospace;
--border-radius: 8px;
--border-radius-sm: 4px;
--border-radius-lg: 12px;
/* Typography Scale (mixed ratios for visual balance) */
--font-size-base: 1rem; /* 16px */
--font-size-xs: 0.75rem; /* 12px */
--font-size-sm: 0.875rem; /* 14px */
--font-size-lg: 1.125rem; /* 18px */
--font-size-xl: 1.25rem; /* 20px */
--font-size-2xl: 1.5rem; /* 24px */
--font-size-3xl: 1.875rem; /* 30px */
--font-size-4xl: 2.25rem; /* 36px */
--font-size-5xl: 3rem; /* 48px */
/* Heading Sizes (approximately 1.25 ratio, optimized for readability) */
--h1-size: 2.5rem; /* 40px */
--h2-size: 2rem; /* 32px */
--h3-size: 1.625rem; /* 26px */
--h4-size: 1.25rem; /* 20px */
--h5-size: 1.125rem; /* 18px */
--h6-size: 1rem; /* 16px */
/* Line Heights */
--line-height-tight: 1.25;
--line-height-normal: 1.5;
--line-height-relaxed: 1.75;
--line-height-loose: 2;
/* Spacing Scale (consistent rhythm) */
--spacing-0: 0;
--spacing-xs: 0.25rem; /* 4px */
--spacing-sm: 0.5rem; /* 8px */
--spacing-md: 1rem; /* 16px */
--spacing-lg: 1.5rem; /* 24px */
--spacing-xl: 2rem; /* 32px */
--spacing-2xl: 3rem; /* 48px */
--spacing-3xl: 4rem; /* 64px */
--spacing-4xl: 6rem; /* 96px */
/* ── Design Tokens: Spacing Scale (T-shirt → numeric alias) ──────────── */
/* 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 px */
--space-1: 0.25rem; /* 4px */
--space-2: 0.5rem; /* 8px */
--space-3: 0.75rem; /* 12px */
--space-4: 1rem; /* 16px */
--space-5: 1.5rem; /* 24px */
--space-6: 2rem; /* 32px */
--space-7: 3rem; /* 48px */
--space-8: 4rem; /* 64px */
--space-9: 6rem; /* 96px */
/* ── Modular Type Scale – Perfect Fourth (× 1.333) with fluid clamp() ── */
--fluid-xs: clamp(0.694rem, 0.65rem + 0.2vw, 0.8rem);
--fluid-sm: clamp(0.833rem, 0.78rem + 0.25vw, 0.938rem);
--fluid-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
--fluid-md: clamp(1.125rem, 1.05rem + 0.4vw, 1.333rem);
--fluid-lg: clamp(1.333rem, 1.25rem + 0.5vw, 1.777rem);
--fluid-xl: clamp(1.777rem, 1.6rem + 0.7vw, 2.369rem);
--fluid-2xl: clamp(2.369rem, 2.1rem + 1.0vw, 3.157rem);
--fluid-3xl: clamp(3.157rem, 2.8rem + 1.4vw, 4.209rem);
/* ── Focus Color Token ───────────────────────────────────────────────── */
--focus-color: #007744; /* light-mode focus ring (≥ 3:1 on white bg) */
--focus-ring: 3px solid var(--focus-color);
--focus-offset: 2px;
--focus-bg: rgba(0, 119, 68, 0.08); /* tinted bg for link focus highlight */
--focus-glow: rgba(0, 119, 68, 0.18); /* outer glow for button/input focus */
/* ── Card elevation tokens ────────────────────────────────────────────── */
--card-shadow-resting: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
--card-shadow-hover: 0 4px 12px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
--card-shadow-focus: 0 0 0 3px var(--focus-color);
--card-transition: transform 0.18s ease, box-shadow 0.18s ease;
/* ── Skeleton / shimmer tokens ────────────────────────────────────────── */
--skeleton-base: rgba(0, 102, 51, 0.06);
--skeleton-shine: rgba(0, 102, 51, 0.13);
}
/* Dark Mode - Ingress Inspired Theme */
@media (prefers-color-scheme: dark) {
:root {
--primary-color: #00cc66;
--primary-light: #00ff88;
--primary-dark: #00bb77;
--accent-color: #33eeff;
--bg-color: #001a1a;
--card-bg: #001c25;
--text-color: #f0f0f0;
--text-secondary: #aaaaaa;
--header-color: #58a6ff;
--border-color: rgba(0, 204, 102, 0.3);
--card-border: rgba(0, 204, 102, 0.3);
--card-shadow: rgba(0, 204, 102, 0.2);
--link-color: #58a6ff;
--link-hover: #79b8ff;
--button-bg: #1a6fd9; /* WCAG 2.1 AA: Darkened for better contrast with white text (4.86:1) */
--button-text: #ffffff; /* WCAG 2.1 AA: Changed from #e0e0e0 for better contrast (4.86:1 on #1a6fd9) */
--section-border: #444;
--badge-bg: #333;
--confidentiality-color: #bd93f9;
--integrity-color: #50fa7b;
--availability-color: #8be9fd;
--font-accent: "Orbitron", "Orbitron Fallback", sans-serif;
/* Dark-mode focus token (high contrast on dark backgrounds) */
--focus-color: #00d9ff; /* primary-cyan – 7.8:1 on #001a1a */
--focus-ring: 3px solid var(--focus-color);
--focus-bg: rgba(0, 217, 255, 0.08);
--focus-glow: rgba(0, 217, 255, 0.18);
/* Dark-mode card elevation */
--card-shadow-resting: 0 1px 4px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.4);
--card-shadow-hover: 0 6px 18px rgba(0,0,0,0.6), 0 3px 8px rgba(0,0,0,0.4);
--card-shadow-focus: 0 0 0 3px var(--focus-color);
/* Dark-mode skeleton */
--skeleton-base: rgba(0, 204, 102, 0.06);
--skeleton-shine: rgba(0, 204, 102, 0.14);
}
}
/* Responsive Typography (scale down on mobile) */
@media (max-width: 767px) {
:root {
--h1-size: 2rem; /* 32px on mobile */
--h2-size: 1.625rem; /* 26px on mobile */
--h3-size: 1.375rem; /* 22px on mobile */
--h4-size: 1.125rem; /* 18px on mobile */
--h5-size: 1rem; /* 16px on mobile */
--spacing-xl: 1.5rem; /* 24px on mobile */
--spacing-2xl: 2rem; /* 32px on mobile */
--spacing-3xl: 2.5rem; /* 40px on mobile */
--spacing-4xl: 3rem; /* 48px on mobile */
}
}
/* ==================================================
LANGUAGE-SPECIFIC FONT SUPPORT
================================================== */
/* CJK (Chinese, Japanese, Korean) and RTL (Arabic, Hebrew) Language Support */
:lang(ja) {
font-family: 'Noto Sans JP', 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
}
:lang(ko) {
font-family: 'Noto Sans KR', 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
}
:lang(zh) {
font-family: 'Noto Sans SC', 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
}
:lang(ar) {
font-family: 'Noto Sans Arabic', 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
}
:lang(he) {
font-family: 'Noto Sans Hebrew', 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
}
/* ==================================================
BLACK TRIGRAM THEME (Martial Arts Red)
================================================== */
.theme-black-trigram {
--primary-color: #c0392b;
--primary-light: #e74c3c;
--primary-dark: #a93226;
--accent-color: #ffd700;
--header-color: #c0392b;
--border-color: rgba(192, 57, 43, 0.2);
--card-border: rgba(192, 57, 43, 0.2);
--korean-font: "Noto Sans KR", "Malgun Gothic", sans-serif;
/* Archetype Colors */
--musa-color: #8e44ad;
--amsalja-color: #27ae60;
--hacker-color: #2980b9;
--jeongbo-color: #e74c3c;
--jojik-color: #f39c12;
}
@media (prefers-color-scheme: dark) {
.theme-black-trigram {
--primary-color: #ff6b6b;
--primary-light: #ff8e8e;
--primary-dark: #ff4757;
--accent-color: #ffd700;
--bg-color: #1a1a1a;
--card-bg: #2c2c2c;
--text-color: #f0f0f0;
--text-secondary: #aaaaaa;
--header-color: #ff6b6b;
--border-color: rgba(255, 107, 107, 0.3);
--card-border: rgba(255, 107, 107, 0.3);
--card-shadow: rgba(255, 107, 107, 0.2);
--link-color: #ff8e8e;
--link-hover: #ff6b6b;
--button-bg: #ff6b6b;
--button-text: #1a1a1a;
/* Dark mode archetype colors */
--musa-color: #bd93f9;
--amsalja-color: #50fa7b;
--hacker-color: #8be9fd;
--jeongbo-color: #ff79c6;
--jojik-color: #f1fa8c;
}
/* Black Trigram scan line effect override */
.theme-black-trigram::after {
background: repeating-linear-gradient(
45deg,
transparent 0px,
rgba(255, 107, 107, 0.02) 1px,
transparent 2px
);
}
/* Black Trigram pattern - circular instead of hex */
.theme-black-trigram::before {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ff6b6b' fill-opacity='0.02'%3E%3Cpath d='M30 30m-30 0a30 30 0 1 1 60 0a30 30 0 1 1 -60 0'/%3E%3C/g%3E%3C/svg%3E");
}
/* Override buttons for Black Trigram */
.theme-black-trigram .app-link a {
background: linear-gradient(
to bottom,
rgba(255, 107, 107, 0.2),
rgba(255, 75, 87, 0.4)
);
}
.theme-black-trigram .app-link a::before {
background: linear-gradient(
to right,
transparent 0%,
rgba(255, 107, 107, 0.2) 50%,
transparent 100%
);
}
.theme-black-trigram .btn {
background: rgba(255, 107, 107, 0.2);
border: 1px solid rgba(255, 107, 107, 0.3);
}
.theme-black-trigram .btn:hover {
background: rgba(255, 107, 107, 0.3);
}
/* Scanner effect for Black Trigram */
.theme-black-trigram .scanner-effect {
background: linear-gradient(
45deg,
rgba(255, 107, 107, 0) 85%,
rgba(255, 107, 107, 0.2) 90%,
rgba(255, 107, 107, 0) 95%
);
}
/* Card borders for Black Trigram */
.theme-black-trigram .card {
background: linear-gradient(
135deg,
rgba(42, 42, 42, 0.95) 0%,
rgba(26, 26, 26, 0.98) 100%
);
}
}
/* Korean font support */
.theme-black-trigram .korean-text,
.theme-black-trigram h1,
.theme-black-trigram h2,
.theme-black-trigram h3 {
font-family: var(--korean-font);
}
/* Black Trigram specific card */
.black-trigram-card {
border: 2px solid #ff6b35;
background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
}
/* ==================================================
BLACK TRIGRAM ARCHETYPE CARDS
================================================== */
.musa-card {
border-left: 4px solid var(--musa-color);
}
.amsalja-card {
border-left: 4px solid var(--amsalja-color);
}
.hacker-card {
border-left: 4px solid var(--hacker-color);
}
.jeongbo-card {
border-left: 4px solid var(--jeongbo-color);
}
.jojik-card {
border-left: 4px solid var(--jojik-color);
}
/* ==================================================
BLACK TRIGRAM TABLES
================================================== */
.archetype-table,
.trigram-table,
.control-table {
width: 100%;
border-collapse: collapse;
margin: 1.5rem 0;
}
.archetype-table th,
.archetype-table td,
.trigram-table th,
.trigram-table td,
.control-table th,
.control-table td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid var(--card-border);
}
.archetype-table th,
.trigram-table th,
.control-table th {
background-color: var(--primary-color);
color: white;
font-weight: 600;
}
@media (max-width: 768px) {
.archetype-table,
.trigram-table,
.control-table {
font-size: 0.8rem;
}
}
/* Korean Impact Matrix (Black Trigram specific) */
.korean-impact-matrix {
width: 100%;
border-collapse: collapse;
margin: 1.5rem 0;
font-size: 0.9rem;
font-family: 'Noto Sans KR', sans-serif;
}
.korean-impact-matrix th,
.korean-impact-matrix td {
padding: 0.75rem;
text-align: left;
border: 1px solid #ddd;
vertical-align: middle;
}
.korean-impact-matrix th {
background-color: #ff6b35;
color: white;
font-weight: 600;
text-align: center;
}
.korean-impact-matrix td img {
max-width: 100%;
height: auto;
}
@media (max-width: 768px) {
.korean-impact-matrix {
font-size: 0.8rem;
}
.korean-impact-matrix th,
.korean-impact-matrix td {
padding: 0.5rem;
}
}
/* ==================================================
CODE AND INSTALLATION BLOCKS
================================================== */
.code-block {
background: #f6f8fa;
border: 1px solid #d0d7de;
border-radius: 6px;
padding: 1rem;
margin: 1rem 0;
font-family: 'Courier New', monospace;
overflow-x: auto;
}
@media (prefers-color-scheme: dark) {
.code-block {
background: rgba(0, 0, 0, 0.3);
border-color: var(--border-color);
color: var(--text-color);
}
}
.installation-step {
background: #f0f9ff;
border-left: 4px solid #0369a1;
padding: 1rem;
margin: 1rem 0;
}
@media (prefers-color-scheme: dark) {
.installation-step {
background: rgba(3, 105, 161, 0.1);
border-left-color: var(--primary-color);
}
}
/* Badge groups */
.badge-group {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
justify-content: flex-start;
}
.badge-group img {
height: auto;
max-width: 100%;
}
.porters-forces {
flex-direction: column;
align-items: stretch;
}
.porters-forces img {
width: 100%;
max-width: 250px;
}
/* Korean emphasis and martial arts terms */
.korean-emphasis {
font-weight: 700;
color: #ff6b35;
}
.martial-arts-term {
font-weight: 600;
border-bottom: 1px dotted #666;
cursor: help;
}
@media (prefers-color-scheme: dark) {
.korean-emphasis {
color: #ff8e8e;
}
.martial-arts-term {
border-bottom-color: #aaa;
}
}
/* Base styles - Premium Design */
* {
transition-property: color, background-color, border-color, box-shadow;
transition-duration: 200ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
html {
height: 100%;
width: 100%;
scroll-behavior: smooth;
}
/* Smooth theme transitions when toggling light/dark mode */
@media (prefers-reduced-motion: no-preference) {
html.theme-transition[data-theme] .card,
html.theme-transition[data-theme] .breadcrumb,
html.theme-transition[data-theme] .btn {
transition-property: background-color, background, color, border-color, box-shadow;
transition-duration: 0.3s;
transition-timing-function: ease;
}
}
body {
font-family: var(--font-main);
line-height: 1.75; /* Improved from 1.7 for optimal readability */
color: var(--text-color);
background-color: var(--bg-color);
max-width: 100%;
margin: 0;
padding: var(--spacing-md) var(--spacing-xl);
position: relative;
overflow-x: hidden;
font-size: 16px;
font-weight: 400; /* Explicit regular weight for body text */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Scan line effect for dark mode */
@media (prefers-color-scheme: dark) {
body::after {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: repeating-linear-gradient(
transparent 0px,
rgba(0, 0, 0, 0.05) 1px,
transparent 2px
);
pointer-events: none;
z-index: 9999;
opacity: 0.3;
}
body::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill='%2300cc66' fill-opacity='0.03'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/svg%3E");
opacity: 0.2;
z-index: -1;
pointer-events: none;
}
}
/* ==================================================
IMAGE OPTIMIZATION & LAZY LOADING
Comprehensive image handling for performance and CLS prevention
================================================== */
/* Base image styles - Responsive and CLS prevention */
img {
max-width: 100%;
height: auto;
display: block;
}
/* Picture element support */
picture {
display: block;
}
picture img {
max-width: 100%;
height: auto;
}
/* Typography - Premium Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
color: var(--header-color);
font-family: var(--font-accent);
line-height: var(--line-height-tight);
}
@media (prefers-color-scheme: dark) {
h1,
h2,
h3 {
font-family: "Orbitron", "Orbitron Fallback", sans-serif;
text-transform: uppercase;
letter-spacing: 1px;
text-shadow: 0 0 5px rgba(0, 204, 102, 0.5);
}
}
h1 {
font-size: var(--h1-size);
font-weight: 600; /* Semi-bold for primary headings */
margin-top: 0;
margin-bottom: var(--spacing-xl);
letter-spacing: -0.02em; /* Tighter tracking for large text */
max-width: 40ch; /* Optimal line length for headings */
}
h2 {
font-size: var(--h2-size);
font-weight: 600; /* Semi-bold for secondary headings */
margin-bottom: var(--spacing-md);
margin-top: var(--spacing-lg);
padding-bottom: var(--spacing-sm);
border-bottom: 2px solid var(--section-border);
letter-spacing: -0.02em; /* Tighter tracking for large text */
max-width: 40ch; /* Optimal line length for headings */
}
h3 {
font-size: var(--h3-size);
font-weight: 500; /* Medium weight for tertiary headings */
margin-bottom: var(--spacing-sm);
margin-top: var(--spacing-lg);
max-width: 40ch; /* Optimal line length for headings */
}
h4 {
font-size: var(--h4-size);
font-weight: 500; /* Medium weight for quaternary headings */
color: var(--text-color);
margin-bottom: var(--spacing-sm);
margin-top: var(--spacing-md);
max-width: 40ch; /* Optimal line length for headings */
}
h5 {
font-size: var(--h5-size);
font-weight: 400;
color: var(--text-color);
margin-bottom: var(--spacing-sm);
margin-top: var(--spacing-lg);
}
h6 {
font-size: var(--h6-size);
font-weight: 400;
color: var(--text-color);
margin-bottom: var(--spacing-sm);
margin-top: var(--spacing-lg);
}
/* Body Text with Optimal Readability */
p {
margin-bottom: var(--spacing-lg); /* Enhanced paragraph spacing (was var(--spacing-md) = 1rem) */
max-width: 70ch; /* Optimal line length for body text readability */
line-height: 1.75; /* Optimal readability for body text */
}
/* Strong emphasis with enhanced font weight */
strong, b {
font-weight: 600; /* Semi-bold for subtle emphasis (lighter than default 700) */
}
a {
color: var(--link-color);
text-decoration: none;
transition: color 0.2s ease, text-shadow 0.2s ease;
}
a:hover {
color: var(--link-hover);
text-decoration: underline;
}
@media (prefers-color-scheme: dark) {
a:hover {
text-shadow: 0 0 8px rgba(0, 204, 102, 0.5);
}
}
/* ==================================================
KEYBOARD NAVIGATION & FOCUS INDICATORS (WCAG 2.1 AA)
Cross-browser compatibility with focus-visible fallback
================================================== */
/* Skip to Main Content Link - visible only when focused */
.skip-link,
.skip-to-content {
position: absolute;
top: -100px;
left: 0;
background-color: var(--primary-color);
color: white;
padding: var(--spacing-md) var(--spacing-lg);
text-decoration: none;
font-weight: 600;
z-index: 10000;
border-radius: 0 0 var(--border-radius) 0;
transition: top 0.2s ease;
}
/* Focus-visible with progressive enhancement for Safari < 15.4 */
@supports selector(:focus-visible) {
/* Modern browsers with :focus-visible support */
.skip-link:focus-visible,
.skip-to-content:focus-visible {
top: 0;
outline: 3px solid var(--accent-color);
outline-offset: 2px;
}
/* Universal Focus Indicator - WCAG 2.1 AA compliant (3:1 contrast ratio) */
*:focus-visible {
outline: 3px solid var(--primary-color);
outline-offset: 2px;
}
/* Enhanced link focus with background highlight */
a:focus-visible {
outline: 3px solid var(--primary-color);
outline-offset: 4px;
background-color: rgba(0, 102, 51, 0.1);
border-radius: var(--border-radius-sm);
}
/* Button focus with enhanced visibility and shadow */
button:focus-visible,
.btn:focus-visible,
.btn-primary-large:focus-visible,
.btn-secondary:focus-visible {
outline: 3px solid var(--primary-color);
outline-offset: 2px;
box-shadow: 0 0 0 4px rgba(0, 102, 51, 0.2);
}
/* Form control focus indicators */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
outline: 3px solid var(--primary-color);
outline-offset: 2px;
border-color: var(--primary-color);
box-shadow: 0 0 0 4px rgba(0, 102, 51, 0.1);
}
/* Checkbox and radio button focus */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
outline: 3px solid var(--primary-color);
outline-offset: 2px;
box-shadow: 0 0 0 4px rgba(0, 102, 51, 0.2);
}
}
@supports not selector(:focus-visible) {
/* Fallback for Safari < 15.4 and older browsers - use :focus */
.skip-link:focus,
.skip-to-content:focus {
top: 0;
outline: 3px solid var(--accent-color);
outline-offset: 2px;
}
/* Universal Focus Indicator fallback */
*:focus {
outline: 3px solid var(--primary-color);
outline-offset: 2px;
}
/* Enhanced link focus fallback */
a:focus {
outline: 3px solid var(--primary-color);
outline-offset: 4px;
background-color: rgba(0, 102, 51, 0.1);
border-radius: var(--border-radius-sm);
}
/* Button focus fallback */
button:focus,
.btn:focus,
.btn-primary-large:focus,
.btn-secondary:focus {
outline: 3px solid var(--primary-color);
outline-offset: 2px;
box-shadow: 0 0 0 4px rgba(0, 102, 51, 0.2);
}
/* Form control focus fallback */
input:focus,
textarea:focus,
select:focus {
outline: 3px solid var(--primary-color);
outline-offset: 2px;
border-color: var(--primary-color);
box-shadow: 0 0 0 4px rgba(0, 102, 51, 0.1);
}
/* Checkbox and radio button focus fallback */
input[type="checkbox"]:focus,
input[type="radio"]:focus {
outline: 3px solid var(--primary-color);
outline-offset: 2px;
box-shadow: 0 0 0 4px rgba(0, 102, 51, 0.2);
}
}
/* Dark mode focus indicators */
@media (prefers-color-scheme: dark) {
.skip-link,
.skip-to-content {
color: var(--bg-color);
}
.skip-link:focus-visible,
.skip-to-content:focus-visible {
outline-color: var(--accent-color);
box-shadow: 0 0 10px rgba(0, 204, 102, 0.5);
}
*:focus-visible {
outline-color: var(--primary-color);
}
a:focus-visible {
background-color: rgba(0, 204, 102, 0.15);
outline-color: var(--primary-color);
}
button:focus-visible,
.btn:focus-visible {
outline-color: var(--primary-light);
box-shadow: 0 0 0 4px rgba(0, 204, 102, 0.3);
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
outline-color: var(--primary-color);
border-color: var(--primary-color);
box-shadow: 0 0 0 4px rgba(0, 204, 102, 0.2);
}
}
/* ==================================================
STICKY NAVIGATION
Cross-browser compatibility with vendor prefixes
================================================== */
/* Sticky Navigation Bar */
.sticky-nav {
position: sticky;
top: 0;
z-index: 1000;
background: var(--bg-color);
border-bottom: 2px solid var(--primary-color);
box-shadow: 0 2px 10px var(--card-shadow);
/* Backdrop filter with vendor prefixes for Safari */
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
@media (prefers-color-scheme: dark) {
.sticky-nav {
background: rgba(0, 26, 26, 0.95);
border-bottom: 2px solid var(--primary-color);
box-shadow: 0 2px 10px rgba(0, 204, 102, 0.2);
}
}
.nav-container {
max-width: 100%;
margin: 0 auto;
padding: 0.75rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-color);
text-decoration: none;
transition: color 0.3s ease;
}
.nav-logo:hover {
color: var(--primary-light);
}
.nav-logo:focus-visible {