1- /* Metridex v0.2.4 — Black & Gold preset + centered About band */
1+ /* Metridex v0.2.5 — Fixed navbar + About perfect centering (Black & Gold base) */
22: root {
3- /* Luxury palette */
43 --bg : # 070709 ;
5- --ink : # f5f3eb ; /* ivory text */
6- --muted : # b9b3a3 ; /* warm gray */
4+ --ink : # f5f3eb ;
5+ --muted : # b9b3a3 ;
76 --glass : # 0c0d11 ;
87 --stroke : rgba (255 , 255 , 255 , .10 );
9- --gold1 : # f7e3a1 ; /* soft gold */
10- --gold2 : # b88a2a ; /* deep gold */
11- --link : # f0c65a ; /* gold link */
12- --link-visited : # d0b36e ;
8+ --gold1 : # f7e3a1 ; --gold2 : # b88a2a ;
9+ --link : # f0c65a ; --link-visited : # d0b36e ;
1310}
1411* {box-sizing : border-box}
1512html {scroll-behavior : smooth}
@@ -31,9 +28,11 @@ a:visited{color:var(--link-visited)}
3128/* Containers */
3229.container {width : min (1120px , 92% ); margin : 0 auto}
3330
34- /* Navbar */
35- .nav {position : sticky; top : 0 ; z-index : 50 ; border-bottom : 1px solid var (--stroke );
36- backdrop-filter : saturate (150% ) blur (8px ); background : rgba (7 , 7 , 9 , .65 )}
31+ /* Navbar — fixed + shadow */
32+ .nav {position : fixed; top : 0 ; left : 0 ; right : 0 ; z-index : 100 ;
33+ border-bottom : 1px solid var (--stroke );
34+ backdrop-filter : saturate (150% ) blur (8px );
35+ background : rgba (7 , 7 , 9 , .70 ); box-shadow : 0 6px 18px rgba (0 , 0 , 0 , .35 )}
3736.nav-inner {display : flex; align-items : center; gap : 16px ; padding : 12px 0 }
3837.brand {display : flex; align-items : center; gap : 10px ; font-weight : 900 ; letter-spacing : .2px }
3938.logo-mark {display : inline-grid; place-items : center; width : 34px ; height : 34px ; border-radius : 10px ;
@@ -48,6 +47,9 @@ a:visited{color:var(--link-visited)}
4847.burger {display : none; margin-left : 8px ; background : transparent; border : 1px solid var (--stroke ); color : var (--ink );
4948 border-radius : 10px ; padding : 8px 10px ; cursor : pointer}
5049
50+ /* Ensure page content starts below fixed nav (JS also sets padding-top precisely) */
51+ body .has-fixed-nav {padding-top : 72px }
52+
5153/* Hero */
5254.hero {padding : 96px 0 56px }
5355.hero-inner {display : grid; grid-template-columns : 1.2fr .8fr ; gap : 32px ; align-items : center}
@@ -77,11 +79,14 @@ a:visited{color:var(--link-visited)}
7779/* Sections */
7880.section {padding : 68px 0 }
7981.section .alt {background : linear-gradient (180deg , rgba (255 , 255 , 255 , .03 ), transparent)}
82+
8083/* Centered band variant for About */
8184.band {background : linear-gradient (180deg , rgba (255 , 255 , 255 , .04 ), rgba (255 , 255 , 255 , .00 ))}
82- .center {display : grid; place-items : center; min-height : 240px }
83- .center .container h2 {margin : 0 0 8px }
84- .center .container p {margin : 0 }
85+ .center {min-height : 260px ; padding : 0 }
86+ .band-inner {display : flex; align-items : center; min-height : 260px }
87+ .band-copy {display : block}
88+ .band-copy h2 {margin : 0 0 10px }
89+ .band-copy p {margin : 0 }
8590
8691/* Headings */
8792h1 {font-size : 40px ; margin : 0 0 12px }
@@ -94,11 +99,6 @@ h2{font-size:32px; margin:0 0 14px}
9499.card {padding : 18px }
95100.card .price {font-size : 22px ; font-weight : 900 }
96101
97- /* Articles */
98- .articles {display : grid; grid-template-columns : repeat (auto-fit, minmax (280px , 1fr )); gap : 16px }
99- .post {padding : 16px }
100- .post h3 {margin : 0 0 6px }
101-
102102/* Footer */
103103.footer {padding : 36px 0 ; border-top : 1px solid var (--stroke ); color : var (--muted )}
104104
@@ -113,14 +113,14 @@ h2{font-size:32px; margin:0 0 14px}
113113 .nav-links .open {display : flex}
114114}
115115
116- /* Light theme (kept, but tuned for luxury) */
116+ /* Light theme */
117117: root .light {
118118 --bg : # faf8f2 ; --ink : # 14120e ; --muted : # 5a5346 ; --glass : # ffffff ; --stroke : rgba (0 , 0 , 0 , .10 );
119119 --link : # 916c16 ; --link-visited : # 6d5524 ;
120120 background : none;
121121}
122122: root .light body {background : var (--bg )}
123- : root .light .nav {background : rgba (255 , 255 , 255 , .9 ); border-bottom-color : var (--stroke )}
123+ : root .light .nav {background : rgba (255 , 255 , 255 , .90 ); border-bottom-color : var (--stroke ); box-shadow : 0 6 px 18 px rgba ( 0 , 0 , 0 , .08 )}
124124: root .light .nav-links a {color : var (--muted )}
125125: root .light .nav-links a : hover , : root .light .nav-links a [aria-current = "page" ]{color : var (--ink )}
126126: root .light .icon-btn {color : var (--ink ); border-color : var (--stroke )}
0 commit comments