-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.css
More file actions
1168 lines (1036 loc) · 42.7 KB
/
Copy pathsite.css
File metadata and controls
1168 lines (1036 loc) · 42.7 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
/*
* DCS Site Theme - Marketing Layer
* Ocean (H=220) default with Crimson, Stone, Forest, Sunset schemes
* Copyright © 2026 Mark Constable <mc@dcs.spa> (MIT License)
*/
/* ============================================
LAYER DECLARATION
Must cascade after base.css layers
============================================ */
@layer site-tokens, site-components, site-utilities;
/* ============================================
SITE TOKENS - Extended for Marketing
============================================ */
@layer site-tokens {
:root {
/* Scale tokens (spacing/type/transitions/fonts/container-xl) now live in the
canonical base.css @layer tokens. site.css overrides a token only where this
site genuinely differs; below is just the per-site marketing set. */
/* Content-width column — Narrow/Normal/Wide drive this as a fraction of the
VIEWPORT (screen) width: narrow 50vw, normal 75vw, wide = fill. Each section
caps at it (centred) and, living inside the sidebar-offset main, is clamped to
the area between the pinned sidebars — so narrow is always 50% of the screen,
while normal/wide fill the available area when the sidebars leave less. */
--content-max: 75vw; /* normal */
/* Marketing tokens (per-site: hero image path is site-relative) */
--hero-bg: url('Server_Room_Dark.webp');
--particle-opacity: 0.3;
}
/* ============================================
OCEAN (CYAN-BLUE) - Default Theme (H=220)
============================================ */
/* Light Theme (Ocean - Default) */
:root {
/* H=220 (cyan-blue) */
--bg-primary: oklch(98% 0.008 220);
--bg-secondary: oklch(96% 0.012 220);
--bg-tertiary: oklch(92% 0.018 220);
--fg-primary: oklch(25% 0.06 220);
--fg-secondary: oklch(40% 0.08 220);
--fg-muted: oklch(50% 0.06 220);
--accent: oklch(50% 0.12 220);
--accent-hover: oklch(45% 0.14 220);
--accent-fg: oklch(98% 0.01 220);
--accent-subtle:oklch(92% 0.025 220);
--accent-glow: oklch(50% 0.12 220 / 0.3);
/* Over the dark hero image, adopt this scheme's dark-mode accent — see .hero-bg */
--accent-on-image: oklch(75% 0.12 220);
--accent-on-image-hover: oklch(85% 0.1 220);
--accent-on-image-fg: oklch(15% 0.04 220);
--accent-on-image-glow: oklch(75% 0.12 220 / 0.4);
--border: oklch(85% 0.02 220);
--border-muted: oklch(90% 0.015 220);
/* Semantic */
--success: oklch(45% 0.15 145);
/* 52%, not 55%: --danger is also read as text on --bg-tertiary (92%) */
--danger: oklch(52% 0.2 25);
--warning: oklch(70% 0.15 85);
/* Glass */
--glass: oklch(98% 0.008 220);
--glass-border: oklch(85% 0.02 220 / 0.5);
--nav-scrolled-bg: oklch(100% 0 0 / 0.95);
}
/* High-contrast: hard border (a11y). In the colour layer so it wins over the
--border default above when the user opts in. */
@media (prefers-contrast: more) {
:root { --border: currentColor; }
}
/* Dark Theme (System Preference) */
@media (prefers-color-scheme: dark) {
:root:not(.light) {
--bg-primary: oklch(12% 0.015 220);
--bg-secondary: oklch(16% 0.02 220);
--bg-tertiary: oklch(22% 0.025 220);
--fg-primary: oklch(95% 0.02 220);
--fg-secondary: oklch(75% 0.05 220);
--fg-muted: oklch(61% 0.04 220);
--accent: oklch(75% 0.12 220);
--accent-hover: oklch(85% 0.1 220);
--accent-fg: oklch(15% 0.04 220);
--accent-subtle:oklch(25% 0.04 220);
--accent-glow: oklch(75% 0.12 220 / 0.4);
/* Already a dark-ground accent; the image needs no substitution */
--accent-on-image: oklch(75% 0.12 220);
--accent-on-image-hover: oklch(85% 0.1 220);
--accent-on-image-fg: oklch(15% 0.04 220);
--accent-on-image-glow: oklch(75% 0.12 220 / 0.4);
--border: oklch(30% 0.03 220);
--border-muted: oklch(22% 0.02 220);
--success: oklch(70% 0.15 145);
--danger: oklch(70% 0.18 25);
--warning: oklch(80% 0.15 85);
--glass: oklch(16% 0.02 220 / 0.85);
--glass-border: oklch(30% 0.03 220 / 0.5);
--nav-scrolled-bg: oklch(12% 0.015 220 / 0.9);
--particle-opacity: 0.3;
--shadow-sm: 0 1px 3px rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}
}
/* Dark Theme (Toggle Override) */
html.dark {
--bg-primary: oklch(12% 0.015 220);
--bg-secondary: oklch(16% 0.02 220);
--bg-tertiary: oklch(22% 0.025 220);
--fg-primary: oklch(95% 0.02 220);
--fg-secondary: oklch(75% 0.05 220);
--fg-muted: oklch(61% 0.04 220);
--accent: oklch(75% 0.12 220);
--accent-hover: oklch(85% 0.1 220);
--accent-fg: oklch(15% 0.04 220);
--accent-subtle:oklch(25% 0.04 220);
--accent-glow: oklch(75% 0.12 220 / 0.4);
/* Already a dark-ground accent; the image needs no substitution */
--accent-on-image: oklch(75% 0.12 220);
--accent-on-image-hover: oklch(85% 0.1 220);
--accent-on-image-fg: oklch(15% 0.04 220);
--accent-on-image-glow: oklch(75% 0.12 220 / 0.4);
--border: oklch(30% 0.03 220);
--border-muted: oklch(22% 0.02 220);
--success: oklch(70% 0.15 145);
--danger: oklch(70% 0.18 25);
--warning: oklch(80% 0.15 85);
--glass: oklch(16% 0.02 220 / 0.85);
--glass-border: oklch(30% 0.03 220 / 0.5);
--nav-scrolled-bg: oklch(12% 0.015 220 / 0.9);
--particle-opacity: 0.3;
--shadow-sm: 0 1px 3px rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}
/* Light Theme (Toggle Override) */
html.light {
--bg-primary: oklch(98% 0.008 220);
--bg-secondary: oklch(96% 0.012 220);
--bg-tertiary: oklch(92% 0.018 220);
--fg-primary: oklch(25% 0.06 220);
--fg-secondary: oklch(40% 0.08 220);
--fg-muted: oklch(50% 0.06 220);
--accent: oklch(50% 0.12 220);
--accent-hover: oklch(45% 0.14 220);
--accent-fg: oklch(98% 0.01 220);
--accent-subtle:oklch(92% 0.025 220);
--accent-glow: oklch(50% 0.12 220 / 0.3);
/* Over the dark hero image, adopt this scheme's dark-mode accent — see .hero-bg */
--accent-on-image: oklch(75% 0.12 220);
--accent-on-image-hover: oklch(85% 0.1 220);
--accent-on-image-fg: oklch(15% 0.04 220);
--accent-on-image-glow: oklch(75% 0.12 220 / 0.4);
--border: oklch(85% 0.02 220);
--border-muted: oklch(90% 0.015 220);
--glass: oklch(98% 0.008 220);
--glass-border: oklch(85% 0.02 220 / 0.5);
--nav-scrolled-bg: oklch(100% 0 0 / 0.95);
--particle-opacity: 0.15;
}
/* Content-width toggle (Appearance panel): --content-max is a fraction of the
VIEWPORT width — narrow 50vw, normal 75vw, wide fill — so narrow is 50% of the
screen regardless of sidebar width. Each section caps at it; clamped to the area
between the pinned sidebars. Only applies in the >=960px pinned layout. */
html.narrow { --content-max: 50vw; }
html.wide { --content-max: none; }
/* ============================================
COLOR SCHEMES - Crimson, Stone, Forest, Sunset
============================================ */
/* Crimson (H=25 red) */
.scheme-crimson:not(.dark) {
--bg-primary: oklch(98% 0.008 25);
--bg-secondary: oklch(96% 0.012 25);
--bg-tertiary: oklch(92% 0.018 25);
--fg-primary: oklch(25% 0.04 25);
--fg-secondary: oklch(40% 0.06 25);
--fg-muted: oklch(50% 0.04 25);
--accent: oklch(47% 0.2 25);
--accent-hover: oklch(42% 0.22 25);
--accent-fg: oklch(98% 0.01 25);
--accent-subtle:oklch(92% 0.04 25);
--accent-glow: oklch(47% 0.2 25 / 0.3);
/* Over the dark hero image, adopt this scheme's dark-mode accent — see .hero-bg */
--accent-on-image: oklch(63% 0.23 25);
--accent-on-image-hover: oklch(70% 0.25 25);
--accent-on-image-fg: oklch(15% 0.04 25);
--accent-on-image-glow: oklch(63% 0.23 25 / 0.4);
--border: oklch(85% 0.02 25);
--border-muted: oklch(90% 0.015 25);
--glass: oklch(98% 0.008 25);
--glass-border: oklch(85% 0.02 25 / 0.5);
--nav-scrolled-bg: oklch(98% 0.008 25 / 0.9);
}
.scheme-crimson.dark {
--bg-primary: oklch(10% 0.015 25);
--bg-secondary: oklch(14% 0.02 25);
--bg-tertiary: oklch(20% 0.025 25);
--fg-primary: oklch(95% 0.02 25);
--fg-secondary: oklch(75% 0.04 25);
--fg-muted: oklch(61% 0.03 25);
/* Crimson dark is the only dark scheme authored with a LIGHT --accent-fg.
No lightness exists at which a mid crimson both reads as link text on
bg1-3 and hosts a 98%-L label, so the label flips dark and the accent
lifts to clear the backgrounds. */
--accent: oklch(63% 0.23 25);
--accent-hover: oklch(70% 0.25 25);
--accent-fg: oklch(15% 0.04 25);
--accent-subtle:oklch(20% 0.05 25);
--accent-glow: oklch(63% 0.23 25 / 0.4);
/* Already a dark-ground accent; the image needs no substitution */
--accent-on-image: oklch(63% 0.23 25);
--accent-on-image-hover: oklch(70% 0.25 25);
--accent-on-image-fg: oklch(15% 0.04 25);
--accent-on-image-glow: oklch(63% 0.23 25 / 0.4);
--border: oklch(28% 0.03 25);
--border-muted: oklch(20% 0.02 25);
--glass: oklch(14% 0.02 25 / 0.85);
--glass-border: oklch(28% 0.03 25 / 0.5);
--nav-scrolled-bg: oklch(10% 0.015 25 / 0.9);
}
/* Stone (H=60 warm neutral) */
.scheme-stone:not(.dark) {
--bg-primary: oklch(98% 0.005 60);
--bg-secondary: oklch(96% 0.008 60);
--bg-tertiary: oklch(92% 0.012 60);
--fg-primary: oklch(25% 0.02 60);
--fg-secondary: oklch(45% 0.02 60);
--fg-muted: oklch(50% 0.015 60);
--accent: oklch(45% 0.05 60);
--accent-hover: oklch(35% 0.06 60);
--accent-fg: oklch(98% 0.005 60);
--accent-subtle:oklch(92% 0.015 60);
--accent-glow: oklch(45% 0.05 60 / 0.3);
/* Over the dark hero image, adopt this scheme's dark-mode accent — see .hero-bg */
--accent-on-image: oklch(80% 0.03 60);
--accent-on-image-hover: oklch(90% 0.02 60);
--accent-on-image-fg: oklch(20% 0.02 60);
--accent-on-image-glow: oklch(80% 0.03 60 / 0.3);
--border: oklch(85% 0.01 60);
--border-muted: oklch(90% 0.008 60);
--glass: oklch(98% 0.005 60);
--glass-border: oklch(85% 0.01 60 / 0.5);
--nav-scrolled-bg: oklch(98% 0.005 60 / 0.9);
}
.scheme-stone.dark {
--bg-primary: oklch(12% 0.01 60);
--bg-secondary: oklch(16% 0.012 60);
--bg-tertiary: oklch(22% 0.015 60);
--fg-primary: oklch(95% 0.01 60);
--fg-secondary: oklch(75% 0.015 60);
--fg-muted: oklch(61% 0.015 60);
--accent: oklch(80% 0.03 60);
--accent-hover: oklch(90% 0.02 60);
--accent-fg: oklch(20% 0.02 60);
--accent-subtle:oklch(25% 0.02 60);
--accent-glow: oklch(80% 0.03 60 / 0.3);
/* Already a dark-ground accent; the image needs no substitution */
--accent-on-image: oklch(80% 0.03 60);
--accent-on-image-hover: oklch(90% 0.02 60);
--accent-on-image-fg: oklch(20% 0.02 60);
--accent-on-image-glow: oklch(80% 0.03 60 / 0.3);
--border: oklch(30% 0.015 60);
--border-muted: oklch(22% 0.012 60);
--glass: oklch(16% 0.012 60 / 0.85);
--glass-border: oklch(30% 0.015 60 / 0.5);
--nav-scrolled-bg: oklch(12% 0.01 60 / 0.9);
}
/* Forest (H=150 green) */
.scheme-forest:not(.dark) {
--bg-primary: oklch(98% 0.008 150);
--bg-secondary: oklch(96% 0.012 150);
--bg-tertiary: oklch(92% 0.018 150);
--fg-primary: oklch(25% 0.06 150);
--fg-secondary: oklch(40% 0.08 150);
--fg-muted: oklch(50% 0.06 150);
--accent: oklch(49% 0.12 150);
--accent-hover: oklch(44% 0.14 150);
--accent-fg: oklch(98% 0.01 150);
--accent-subtle:oklch(92% 0.025 150);
--accent-glow: oklch(49% 0.12 150 / 0.3);
/* Over the dark hero image, adopt this scheme's dark-mode accent — see .hero-bg */
--accent-on-image: oklch(70% 0.12 150);
--accent-on-image-hover: oklch(80% 0.1 150);
--accent-on-image-fg: oklch(15% 0.04 150);
--accent-on-image-glow: oklch(70% 0.12 150 / 0.3);
--border: oklch(85% 0.02 150);
--border-muted: oklch(90% 0.015 150);
--glass: oklch(98% 0.008 150);
--glass-border: oklch(85% 0.02 150 / 0.5);
--nav-scrolled-bg: oklch(98% 0.008 150 / 0.9);
}
.scheme-forest.dark {
--bg-primary: oklch(12% 0.015 150);
--bg-secondary: oklch(16% 0.02 150);
--bg-tertiary: oklch(22% 0.025 150);
--fg-primary: oklch(95% 0.02 150);
--fg-secondary: oklch(75% 0.05 150);
--fg-muted: oklch(61% 0.04 150);
--accent: oklch(70% 0.12 150);
--accent-hover: oklch(80% 0.1 150);
--accent-fg: oklch(15% 0.04 150);
--accent-subtle:oklch(25% 0.04 150);
--accent-glow: oklch(70% 0.12 150 / 0.3);
/* Already a dark-ground accent; the image needs no substitution */
--accent-on-image: oklch(70% 0.12 150);
--accent-on-image-hover: oklch(80% 0.1 150);
--accent-on-image-fg: oklch(15% 0.04 150);
--accent-on-image-glow: oklch(70% 0.12 150 / 0.3);
--border: oklch(30% 0.03 150);
--border-muted: oklch(22% 0.02 150);
--glass: oklch(16% 0.02 150 / 0.85);
--glass-border: oklch(30% 0.03 150 / 0.5);
--nav-scrolled-bg: oklch(12% 0.015 150 / 0.9);
}
/* Sunset (H=45 orange-amber) */
.scheme-sunset:not(.dark) {
--bg-primary: oklch(98% 0.01 45);
--bg-secondary: oklch(96% 0.015 45);
--bg-tertiary: oklch(92% 0.02 45);
--fg-primary: oklch(30% 0.08 45);
--fg-secondary: oklch(42% 0.1 45);
--fg-muted: oklch(50% 0.08 45);
--accent: oklch(52% 0.16 45);
--accent-hover: oklch(46% 0.18 45);
--accent-fg: oklch(98% 0.01 45);
--accent-subtle:oklch(92% 0.03 45);
--accent-glow: oklch(52% 0.16 45 / 0.3);
/* Over the dark hero image, adopt this scheme's dark-mode accent — see .hero-bg */
--accent-on-image: oklch(72% 0.14 45);
--accent-on-image-hover: oklch(82% 0.12 45);
--accent-on-image-fg: oklch(15% 0.05 45);
--accent-on-image-glow: oklch(72% 0.14 45 / 0.3);
--border: oklch(85% 0.025 45);
--border-muted: oklch(90% 0.02 45);
--glass: oklch(98% 0.01 45);
--glass-border: oklch(85% 0.025 45 / 0.5);
--nav-scrolled-bg: oklch(98% 0.01 45 / 0.9);
}
.scheme-sunset.dark {
--bg-primary: oklch(12% 0.02 45);
--bg-secondary: oklch(16% 0.025 45);
--bg-tertiary: oklch(22% 0.03 45);
--fg-primary: oklch(95% 0.025 45);
--fg-secondary: oklch(75% 0.06 45);
--fg-muted: oklch(61% 0.05 45);
--accent: oklch(72% 0.14 45);
--accent-hover: oklch(82% 0.12 45);
--accent-fg: oklch(15% 0.05 45);
--accent-subtle:oklch(25% 0.05 45);
--accent-glow: oklch(72% 0.14 45 / 0.3);
/* Already a dark-ground accent; the image needs no substitution */
--accent-on-image: oklch(72% 0.14 45);
--accent-on-image-hover: oklch(82% 0.12 45);
--accent-on-image-fg: oklch(15% 0.05 45);
--accent-on-image-glow: oklch(72% 0.14 45 / 0.3);
--border: oklch(30% 0.035 45);
--border-muted: oklch(22% 0.025 45);
--glass: oklch(16% 0.025 45 / 0.85);
--glass-border: oklch(30% 0.035 45 / 0.5);
--nav-scrolled-bg: oklch(12% 0.02 45 / 0.9);
}
/* Mono (C=0 pure grayscale; status colors inherited from :root defaults) */
.scheme-mono:not(.dark) {
--bg-primary: oklch(98% 0 0);
--bg-secondary: oklch(96% 0 0);
--bg-tertiary: oklch(92% 0 0);
--fg-primary: oklch(20% 0 0);
--fg-secondary: oklch(40% 0 0);
--fg-muted: oklch(50% 0 0);
--accent: oklch(25% 0 0);
--accent-hover: oklch(35% 0 0);
--accent-fg: oklch(98% 0 0);
--accent-subtle:oklch(90% 0 0);
--accent-glow: oklch(25% 0 0 / 0.2);
/* Over the dark hero image, adopt this scheme's dark-mode accent — see .hero-bg */
--accent-on-image: oklch(85% 0 0);
--accent-on-image-hover: oklch(92% 0 0);
--accent-on-image-fg: oklch(12% 0 0);
--accent-on-image-glow: oklch(85% 0 0 / 0.3);
--border: oklch(85% 0 0);
--border-muted: oklch(90% 0 0);
--glass: oklch(98% 0 0);
--glass-border: oklch(85% 0 0 / 0.5);
--nav-scrolled-bg: oklch(100% 0 0 / 0.95);
}
.scheme-mono.dark {
--bg-primary: oklch(10% 0 0);
--bg-secondary: oklch(15% 0 0);
--bg-tertiary: oklch(22% 0 0);
--fg-primary: oklch(95% 0 0);
--fg-secondary: oklch(75% 0 0);
--fg-muted: oklch(61% 0 0);
--accent: oklch(85% 0 0);
--accent-hover: oklch(92% 0 0);
--accent-fg: oklch(12% 0 0);
--accent-subtle:oklch(25% 0 0);
--accent-glow: oklch(85% 0 0 / 0.3);
/* Already a dark-ground accent; the image needs no substitution */
--accent-on-image: oklch(85% 0 0);
--accent-on-image-hover: oklch(92% 0 0);
--accent-on-image-fg: oklch(12% 0 0);
--accent-on-image-glow: oklch(85% 0 0 / 0.3);
--border: oklch(30% 0 0);
--border-muted: oklch(22% 0 0);
--glass: oklch(15% 0 0 / 0.85);
--glass-border: oklch(30% 0 0 / 0.5);
--nav-scrolled-bg: oklch(10% 0 0 / 0.9);
}
}
/* ============================================
SITE COMPONENTS - Marketing Layout
============================================ */
@layer site-components {
/* ============================================
TYPOGRAPHY - Heading Fonts
============================================ */
h1, h2, h3, h4, h5, h6,
.section-title,
.footer-brand {
font-family: var(--font-heading);
}
/* ============================================
LAYOUT OVERRIDES - Edge-to-Edge Marketing
============================================ */
/* Content-width column: the Appearance Narrow/Normal/Wide buttons drive
--content-max; main#content caps at it (margin-inline auto) so the whole content
column narrows/widens. The hero's fixed background still spans full-bleed. */
main {
padding: 0;
}
/* Content-width column: cap each SECTION at --content-max (centered), NOT main
itself — main keeps base.css's pinned-sidebar margins, so pinning still restricts
the available width and the two compose (content width = min(--content-max, the
area between pinned sidebars)). The Appearance Narrow/Normal/Wide toggle drives
--content-max; the hero's fixed background stays full-bleed. */
@media (min-width: 960px) {
main > section {
max-width: var(--content-max);
margin-inline: auto;
}
}
/* Overlay visible on mobile when sidebar open (base.css controls visibility) */
/* ============================================
APP SHELL - Translucent Sidebars
============================================ */
.sidebar {
background: var(--glass);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
.carousel-header {
border-block-end-color: var(--glass-border);
}
.sidebar nav a {
color: var(--fg-secondary);
}
.sidebar nav a:hover {
color: var(--accent);
background: var(--accent-subtle);
}
.sidebar nav a.active {
color: var(--accent);
background: var(--accent-subtle);
border-color: var(--accent);
}
/* Topnav styling */
.topnav {
background: var(--glass);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-block-end: 1px solid var(--glass-border);
}
.topnav .brand {
font-family: var(--font-heading);
font-weight: 700;
color: var(--fg-primary);
}
.topnav .brand span {
color: var(--accent);
}
/* ============================================
GLOBAL BACKGROUND IMAGE
============================================ */
body {
background: var(--hero-bg) center/cover fixed;
background-attachment: fixed;
min-height: 100vh;
}
/* ============================================
HERO SECTION
============================================ */
.hero {
text-align: center;
padding: var(--space-16) var(--space-4);
}
.hero-bg {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
/* No hero scrim: Server_Room_Dark.webp is already darkened (it bakes in its own
overlay), so a ::before scrim doubled it. The pre-darkened image carries the
white hero text on its own. */
html.light .hero-bg p { color: #fff; }
/* The hero and the image sections sit on Server_Room_Dark.webp, which bakes in
its own darkening — a dark ground in every scheme and both modes. A light
mode's --accent is tuned for a near-white surface and loses contrast there,
so each context declares what its accent becomes over the image (light modes
nominate their own dark-mode accent; dark modes nominate themselves).
--accent-fg moves WITH --accent: .cta-btn.primary lives inside .hero-bg and
pairs them. The hand-authored mono rule this replaces moved --accent and
--accent-fg only, and only for mono — every other light scheme kept a
light-tuned accent over the dark photo. */
.hero-bg,
.bg-image-section {
--accent: var(--accent-on-image);
--accent-hover: var(--accent-on-image-hover);
--accent-fg: var(--accent-on-image-fg);
--accent-glow: var(--accent-on-image-glow);
}
.hero-bg > * {
position: relative;
z-index: 1;
}
.hero-bg h1 {
color: #fff;
font-size: clamp(2.5rem, 2rem + 5vw, 5rem);
line-height: 1.1;
margin-block-end: var(--space-4);
}
.hero-bg p {
color: rgba(255, 255, 255, 0.9);
font-size: var(--text-xl);
max-width: 600px;
margin-inline: auto;
}
.hero-content {
text-align: center;
max-width: var(--container-lg);
animation: fade-in-up 1s var(--ease-out);
}
/* Hero badge */
.hero-badge {
display: inline-flex;
align-items: center;
gap: var(--space-2);
background: rgb(255 255 255 / 0.1);
border: 1px solid rgb(255 255 255 / 0.2);
padding: var(--space-2) var(--space-5);
border-radius: var(--radius-full);
font-size: var(--text-xs);
color: #fff;
margin-block-end: var(--space-8);
backdrop-filter: blur(10px);
}
/* Gradient text - uses accent color */
.gradient-text {
color: var(--accent);
}
/* Shimmer gradient text */
.shimmer-text {
background: linear-gradient(
90deg,
var(--accent) 0%,
var(--accent) 35%,
oklch(95% 0.05 200) 50%,
var(--accent) 65%,
var(--accent) 100%
);
background-size: 200% 100%;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
animation: shimmer 10s linear infinite;
}
@keyframes shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
/* Page hero (shorter) */
.page-hero {
min-height: 50vh;
}
/* ============================================
SECTIONS
============================================ */
/* Content section */
.content-section {
background: var(--bg-secondary);
padding: var(--space-16) var(--space-4);
}
/* Section with background image visible (no solid bg) */
.bg-image-section {
position: relative;
min-height: 30vh;
padding: var(--space-16) var(--space-4);
display: flex;
align-items: center;
justify-content: center;
}
/* No dark scrim: the background image is already darkened, and with the content
column capped (main max-width) a centered overlay block would read as a dark
rectangle on the full-bleed body image — so it's removed in both modes. */
.bg-image-section > * {
position: relative;
z-index: 1;
}
.bg-image-section .section-title,
.bg-image-section .section-subtitle { color: #fff; }
.bg-image-section .section-tag { color: var(--accent); }
.bg-image-section .section-header { margin-block-end: 0; }
/* Section header */
.section-header {
text-align: center;
margin-block-end: var(--space-12);
}
.section-tag {
display: inline-block;
color: var(--accent);
font-weight: 600;
font-size: var(--text-sm);
letter-spacing: 0.1em;
text-transform: uppercase;
margin-block-end: var(--space-4);
}
.section-title {
font-size: var(--text-4xl);
font-weight: 700;
margin-block-end: var(--space-4);
color: var(--fg-primary);
}
.section-subtitle {
color: var(--fg-secondary);
font-size: var(--text-lg);
max-width: 600px;
margin-inline: auto;
}
.section-lede {
max-width: 720px;
margin: 0 auto var(--space-12);
text-align: center;
font-size: var(--text-lg);
line-height: 1.7;
color: var(--fg-secondary);
}
.section-lede code {
background: var(--bg-tertiary);
padding: 0.1em 0.4em;
border-radius: var(--radius-sm);
font-size: 0.9em;
color: var(--fg-primary);
}
.section-lede strong {
color: var(--fg-primary);
}
/* ============================================
SERVICE CARDS
============================================ */
.services-grid {
display: grid;
grid-template-columns: 1fr;
gap: var(--space-4);
max-width: none;
margin-inline: auto;
}
.service-card {
background: var(--glass);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--glass-border);
padding: var(--space-6);
border-radius: var(--radius-xl);
position: relative;
overflow: hidden;
/* Initial transparent shadow for smooth transition */
box-shadow: 0 20px 40px rgb(0 0 0 / 0), 0 0 20px transparent;
/* Explicit transition properties for reliable hover */
transition:
transform var(--transition-medium),
box-shadow var(--transition-medium),
border-color var(--transition-medium);
}
.service-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: var(--accent);
opacity: 0;
transition: opacity var(--transition-medium);
}
.service-card:hover,
.service-card.reveal.active:hover {
transform: translateY(-4px) scale(1);
border-color: var(--accent);
box-shadow: 0 20px 40px rgb(0 0 0 / 0.15), 0 0 20px var(--accent-glow);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
font-size: 2rem;
margin-block-end: var(--space-4);
display: block;
color: var(--accent);
transition: transform var(--transition-medium);
}
.service-icon .lucide,
.service-icon [data-lucide] {
width: 2rem;
height: 2rem;
color: var(--accent);
stroke: var(--accent);
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h3 {
font-size: var(--text-lg);
font-weight: 600;
margin-block-end: var(--space-3);
color: var(--fg-primary);
}
.service-card ul { list-style: none; }
.service-card li {
padding: 0.3rem 0;
padding-inline-start: var(--space-5);
position: relative;
color: var(--fg-secondary);
font-size: var(--text-sm);
}
.service-card li::before {
content: "\2713";
position: absolute;
left: 0;
color: var(--accent);
font-weight: bold;
}
/* "6 Color Schemes" cards — each card IS its scheme: bg = scheme bg, text =
scheme fg, icon + hover top-border + checkmarks = scheme accent. Theme-aware
(light/dark). The card's own rules already read --glass / --accent / --fg-*,
so we just remap those from the per-scheme --sw-* tokens below. Values mirror
the .scheme-* blocks above. */
.service-card[data-card-scheme] {
--glass: var(--sw-bg);
--glass-border: color-mix(in oklch, var(--sw-fg) 14%, transparent);
--accent: var(--sw-ac);
--accent-glow: color-mix(in oklch, var(--sw-ac) 30%, transparent);
--fg-primary: var(--sw-fg);
--fg-secondary: color-mix(in oklch, var(--sw-fg) 68%, var(--sw-bg));
}
/* per-scheme colours — light */
.service-card[data-card-scheme="ocean"] { --sw-bg: oklch(98% 0.008 220); --sw-fg: oklch(25% 0.06 220); --sw-ac: oklch(50% 0.12 220); }
.service-card[data-card-scheme="crimson"] { --sw-bg: oklch(98% 0.008 25); --sw-fg: oklch(25% 0.04 25); --sw-ac: oklch(47% 0.2 25); }
.service-card[data-card-scheme="stone"] { --sw-bg: oklch(98% 0.005 60); --sw-fg: oklch(25% 0.02 60); --sw-ac: oklch(45% 0.05 60); }
.service-card[data-card-scheme="forest"] { --sw-bg: oklch(98% 0.008 150); --sw-fg: oklch(25% 0.06 150); --sw-ac: oklch(49% 0.12 150); }
.service-card[data-card-scheme="sunset"] { --sw-bg: oklch(98% 0.01 45); --sw-fg: oklch(30% 0.08 45); --sw-ac: oklch(52% 0.16 45); }
.service-card[data-card-scheme="mono"] { --sw-bg: oklch(98% 0 0); --sw-fg: oklch(20% 0 0); --sw-ac: oklch(25% 0 0); }
/* per-scheme colours — dark */
html.dark .service-card[data-card-scheme="ocean"] { --sw-bg: oklch(12% 0.015 220); --sw-fg: oklch(95% 0.02 220); --sw-ac: oklch(75% 0.12 220); }
html.dark .service-card[data-card-scheme="crimson"] { --sw-bg: oklch(10% 0.015 25); --sw-fg: oklch(95% 0.02 25); --sw-ac: oklch(63% 0.23 25); }
html.dark .service-card[data-card-scheme="stone"] { --sw-bg: oklch(12% 0.01 60); --sw-fg: oklch(95% 0.01 60); --sw-ac: oklch(80% 0.03 60); }
html.dark .service-card[data-card-scheme="forest"] { --sw-bg: oklch(12% 0.015 150); --sw-fg: oklch(95% 0.02 150); --sw-ac: oklch(70% 0.12 150); }
html.dark .service-card[data-card-scheme="sunset"] { --sw-bg: oklch(12% 0.02 45); --sw-fg: oklch(95% 0.025 45); --sw-ac: oklch(72% 0.14 45); }
html.dark .service-card[data-card-scheme="mono"] { --sw-bg: oklch(10% 0 0); --sw-fg: oklch(95% 0 0); --sw-ac: oklch(85% 0 0); }
.services-grid-2col { grid-template-columns: 1fr; }
/* ============================================
PRICING TABLES
============================================ */
.pricing-tables-grid {
display: grid;
grid-template-columns: 1fr;
gap: var(--space-6);
max-width: none;
margin-inline: auto;
}
.pricing-table {
background: var(--glass);
border: 1px solid var(--glass-border);
border-radius: var(--radius-xl);
overflow: hidden;
}
.pricing-table-header {
background: var(--accent);
color: var(--accent-fg);
padding: var(--space-4);
text-align: center;
font-family: var(--font-heading);
font-size: var(--text-lg);
font-weight: 600;
}
.pricing-table-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--space-3) var(--space-4);
border-bottom: 1px solid var(--glass-border);
transition: background-color var(--transition-base);
}
.pricing-table-row:last-child { border-bottom: none; }
.pricing-table-row:hover { background: var(--accent-subtle); }
.pricing-table-row span:first-child { color: var(--fg-secondary); }
.pricing-table-row span:first-child strong { color: var(--fg-primary); }
.pricing-table-row span:last-child { color: var(--accent); font-weight: 600; }
/* ============================================
CTA BUTTONS
============================================ */
.cta-group {
display: flex;
gap: var(--space-4);
justify-content: center;
flex-wrap: wrap;
margin-top: var(--space-8);
}
.cta-btn {
display: inline-flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-3) var(--space-6);
border-radius: var(--radius-lg);
text-decoration: none;
font-weight: 600;
font-size: var(--text-base);
transition:
background-color var(--transition-base),
transform var(--transition-base),
box-shadow var(--transition-base);
}
.cta-btn.primary {
background: var(--accent);
color: var(--accent-fg);
box-shadow: 0 4px 20px var(--accent-glow);
}
.cta-btn.primary:hover {
background: var(--accent-hover);
transform: translateY(-2px);
box-shadow: 0 8px 30px var(--accent-glow);
text-decoration: none;
}
/* The outlined CTA was authored white-on-10%-white for the hero, but it is also
used in #build, an opaque .content-section (--bg-secondary, 96% L in light
mode) — white on 96% white is invisible text, not low contrast. So the base
rule is base.css's own .btn-outline treatment (transparent + --border +
--fg-primary) and the always-dark grounds keep the frosted white explicitly.
Same principle as --accent-on-image: the element does not guess its ground,
the ground declares itself.
--border does not itself clear the 1.4.11 3:1 non-text floor in any of the
twelve contexts (85% L over a 96% L --bg-secondary in light modes). That is a
palette-wide gap, not this button's — it is deliberately spent through the
token rather than patched here with a bespoke mix, so that raising --border
fixes this control along with every other bordered one. The label itself
clears AA, so the control stays identifiable meanwhile. */
.cta-btn.secondary {
background: transparent;
border: 1px solid var(--border);
color: var(--fg-primary);
}
/* .cta-btn.secondary is transparent, so its resting background IS whatever
surface it sits on; hovering to --bg-secondary would be invisible inside
#build, which is exactly what .content-section paints. --bg-tertiary differs
from both --bg-primary and --bg-secondary, so the hover reads on either.
This matches base.css, which had the same flaw in .btn-outline/.btn-ghost
until v1.0.2 fixed it framework-wide; .cta-btn is a site class, so it still
needs its own rule. */
.cta-btn.secondary:hover {
background: var(--bg-tertiary);
border-color: var(--fg-muted);
transform: translateY(-2px);
text-decoration: none;
}
.hero-bg .cta-btn.secondary,
.bg-image-section .cta-btn.secondary {
background: rgb(255 255 255 / 0.1);
border-color: rgb(255 255 255 / 0.3);
color: #fff;
backdrop-filter: blur(10px);
}
.hero-bg .cta-btn.secondary:hover,
.bg-image-section .cta-btn.secondary:hover {
background: rgb(255 255 255 / 0.2);
border-color: #fff;
}
/* ============================================
PARTICLES
============================================ */
.particles {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
overflow: hidden;
}
.particle {
position: absolute;
width: 4px;
height: 4px;
background: var(--accent);
border-radius: var(--radius-full);
opacity: var(--particle-opacity);
animation: float-up 15s linear infinite;