99 position : relative ;
1010 @include flex-center ;
1111 justify-content : space-between ;
12- padding : 20px ;
12+ gap : clamp (16px , 3vw , 32px );
13+ padding : clamp (16px , 3vw , 28px );
1314 color : $white ;
1415 background : $dark-gray ;
1516 font-family : $sans ;
@@ -19,21 +20,34 @@ header {
1920
2021 .logo_row {
2122 @include inline-flex-center ;
23+ flex : 1 1 420px ;
24+ justify-content : flex-start ;
25+ min-width : 0 ;
26+ gap : clamp (12px , 2vw , 20px );
27+
28+ .logo {
29+ display : inline-flex ;
30+ flex : 0 0 auto ;
31+ justify-content : center ;
32+ align-items : center ;
33+ max-width : clamp (120px , 20vw , 270px );
34+ }
2235
2336 .logo > * {
24- max-width : 100% ;
25- height : 200px ;
37+ width : auto ;
38+ max-width : clamp (120px , 20vw , 270px );
39+ height : clamp (72px , 12vw , 132px );
2640 }
2741
2842 .logo_text {
29- position : absolute ;
30- top : 30px ;
31- left :500px ;
3243 font-family : $sans ;
33- font-size : 1.6rem ;
34- color :$blue ;
35- margin : 0 10px ;
36- text-align : center ;
44+ font-size : clamp (1rem , 0.78rem + 0.9vw , 1.55rem );
45+ color : $light-blue ;
46+ line-height : 1.22 ;
47+ margin : 0 ;
48+ max-width : 760px ;
49+ text-align : left ;
50+ text-wrap : balance ;
3751 }
3852
3953 .logo_title {
@@ -49,15 +63,19 @@ header {
4963
5064 .nav_row {
5165 @include inline-flex-center ;
66+ flex : 0 1 680px ;
5267 flex-wrap : wrap ;
68+ justify-content : flex-end ;
69+ gap : 2px 4px ;
5370 font-size : 0.9rem ;
5471 font-weight : $medium ;
5572 text-transform : uppercase ;
5673 letter-spacing : 1px ;
74+ min-width : 280px ;
5775
5876 .nav_link {
5977 display : inline-block ;
60- padding : 10 px ;
78+ padding : 8 px 9 px ;
6179 text-align : center ;
6280 white-space : nowrap ;
6381 transition : opacity $fast ;
@@ -80,24 +98,50 @@ header {
8098
8199 @media (max-width : $tablet ) {
82100 flex-direction : column ;
101+ align-items : stretch ;
83102
84103 .logo_row {
85- margin-bottom : 10px ;
104+ justify-content : center ;
105+ flex : 0 1 auto ;
106+ margin-bottom : 6px ;
107+
108+ .logo_text {
109+ text-align : center ;
110+ }
111+ }
112+
113+ .nav_row {
114+ flex : 0 1 auto ;
115+ justify-content : center ;
116+ min-width : 0 ;
86117 }
87118 }
88119
89120 @media (max-width : $phone ) {
90121 .logo_row {
91- margin-bottom : 20px ;
92122 flex-direction : column ;
123+ gap : 10px ;
124+
125+ .logo > * {
126+ max-width : clamp (140px , 52vw , 220px );
127+ height : clamp (64px , 24vw , 96px );
128+ }
129+
130+ .logo_text {
131+ font-size : clamp (0.95rem , 4.4vw , 1.15rem );
132+ }
93133 }
94134
95135 .nav_row {
96- flex-direction : column ;
136+ align-items : stretch ;
137+ display : grid ;
138+ grid-template-columns : repeat (2 , minmax (0 , 1fr ));
97139 width : 100% ;
98140
99141 .nav_link {
100142 width : 100% ;
143+ padding : 9px 6px ;
144+ white-space : normal ;
101145 }
102146 }
103147 }
@@ -112,7 +156,7 @@ header {
112156 animation : ease-in ;
113157 // greyscale 0.1s
114158 .logo > * {
115- height : 200 px ;
159+ height : clamp ( 96 px , 18 vw , 180 px ) ;
116160 animation : logo_zoom 2s ease forwards ;
117161
118162 @keyframes logo_zoom {
0 commit comments