Skip to content

Commit a7f5b25

Browse files
committed
Fixed GP alignment
1 parent 275375c commit a7f5b25

1 file changed

Lines changed: 103 additions & 14 deletions

File tree

docs/style.css

Lines changed: 103 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
--accents-8: #111111;
1818

1919
--geist-success: #0070f3;
20+
/* Primary Blue */
21+
--geist-success-green: #00e074;
22+
/* Standard Success Green */
2023
--geist-success-light: #3291ff;
2124
--geist-error: #ee0000;
2225
--geist-warning: #f5a623;
@@ -58,6 +61,7 @@
5861
--accents-7: #ebebeb;
5962
--accents-8: #ffffff;
6063

64+
--geist-success-green: #00e074;
6165
--shadow-md: 0 12px 40px rgba(0, 0, 0, 0.6);
6266
--shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.8);
6367
--geist-success: #0070f3;
@@ -77,11 +81,17 @@ body {
7781
font-family: var(--font-sans);
7882
line-height: 1.5;
7983
overflow-x: hidden;
84+
width: 100%;
8085
transition: background var(--theme-ease), color var(--theme-ease);
8186
scroll-padding-top: var(--header-height);
8287
/* WCAG 2.2: Focus Not Obscured */
8388
}
8489

90+
html {
91+
overflow-x: hidden;
92+
width: 100%;
93+
}
94+
8595
/* Accessible Focus States */
8696
:focus-visible {
8797
outline: 2px solid var(--geist-success);
@@ -151,6 +161,25 @@ header {
151161
gap: 12px;
152162
}
153163

164+
.cta-group {
165+
display: flex;
166+
gap: 20px;
167+
justify-content: center;
168+
}
169+
170+
@media (max-width: 600px) {
171+
.cta-group {
172+
flex-direction: column;
173+
align-items: center;
174+
width: 100%;
175+
}
176+
177+
.cta-group .btn {
178+
width: 100%;
179+
justify-content: center;
180+
}
181+
}
182+
154183
.nav-links {
155184
display: flex;
156185
gap: 32px;
@@ -193,17 +222,24 @@ header {
193222
background: var(--background);
194223
flex-direction: column;
195224
justify-content: center;
225+
align-items: center;
196226
gap: 40px;
197-
transition: right 0.4s var(--ease);
227+
transition: right 0.4s var(--ease), visibility 0.4s var(--ease);
198228
z-index: 1000;
229+
visibility: hidden;
230+
display: none;
231+
/* Force hide to prevent overflow contribution */
199232
}
200233

201234
.nav-links.active {
202235
right: 0;
236+
visibility: visible;
237+
display: flex;
203238
}
204239

205240
.nav-link {
206241
font-size: 24px;
242+
color: var(--foreground);
207243
}
208244
}
209245

@@ -353,19 +389,21 @@ header {
353389

354390
.hero h1 {
355391
font-family: var(--font-heading);
356-
font-size: clamp(42px, 10vw, 88px);
392+
font-size: clamp(38px, 10vw, 88px);
357393
font-weight: 900;
358-
letter-spacing: -0.07em;
359-
line-height: 0.95;
394+
letter-spacing: -0.06em;
395+
line-height: 1;
360396
margin-bottom: 32px;
361397
background: linear-gradient(to bottom, var(--foreground) 60%, var(--accents-5));
362398
-webkit-background-clip: text;
363399
background-clip: text;
364400
-webkit-text-fill-color: transparent;
401+
word-break: break-word;
402+
/* Ensure long words wrap */
365403
}
366404

367405
.hero p {
368-
font-size: 20px;
406+
font-size: clamp(16px, 4vw, 20px);
369407
color: var(--accents-5);
370408
max-width: 720px;
371409
margin: 0 auto 56px;
@@ -412,11 +450,27 @@ header {
412450
gap: 40px;
413451
}
414452

453+
@media (max-width: 768px) {
454+
.comparison {
455+
grid-template-columns: 1fr;
456+
gap: 24px;
457+
}
458+
}
459+
415460
.comp-box {
416461
padding: 48px;
417462
border-radius: 16px;
418463
border: 1px solid var(--accents-2);
419464
position: relative;
465+
width: 100%;
466+
/* Ensure full width */
467+
overflow-x: hidden;
468+
}
469+
470+
@media (max-width: 768px) {
471+
.comp-box {
472+
padding: 32px 24px;
473+
}
420474
}
421475

422476
.comp-box.negative {
@@ -442,21 +496,27 @@ header {
442496
.comp-list li {
443497
display: flex;
444498
gap: 16px;
445-
margin-bottom: 16px;
499+
margin-bottom: 20px;
446500
font-size: 15px;
447501
color: var(--accents-5);
502+
line-height: 1.5;
503+
align-items: flex-start;
504+
/* Ensure top alignment for wrapping text */
448505
}
449506

450507
.comp-list i {
451-
margin-top: 4px;
508+
flex-shrink: 0;
509+
margin-top: 0.25em;
510+
/* Precisely align with first line regardless of text length */
511+
font-size: 16px;
452512
}
453513

454514
.negative i {
455515
color: var(--geist-error);
456516
}
457517

458518
.positive i {
459-
color: var(--geist-success);
519+
color: var(--geist-success-green);
460520
}
461521

462522
/* --- Author Card Responsiveness --- */
@@ -643,6 +703,39 @@ footer {
643703
margin-bottom: 80px;
644704
}
645705

706+
@media (max-width: 1024px) {
707+
.footer-grid {
708+
grid-template-columns: 1.5fr 1fr;
709+
gap: 40px;
710+
}
711+
}
712+
713+
@media (max-width: 768px) {
714+
.footer-grid {
715+
grid-template-columns: 1fr;
716+
gap: 48px;
717+
margin-bottom: 40px;
718+
}
719+
720+
.footer-brand {
721+
text-align: center;
722+
display: flex;
723+
flex-direction: column;
724+
align-items: center;
725+
}
726+
727+
.footer-col {
728+
text-align: center;
729+
display: flex;
730+
flex-direction: column;
731+
align-items: center;
732+
}
733+
734+
.footer-links li a {
735+
justify-content: center;
736+
}
737+
}
738+
646739
.footer-brand p {
647740
margin-top: 16px;
648741
font-size: 14px;
@@ -708,11 +801,11 @@ footer {
708801

709802
@media (max-width: 768px) {
710803
.container {
711-
padding: 0 32px;
804+
padding: 0 24px;
712805
}
713806

714807
.hero h1 {
715-
font-size: 48px;
808+
font-size: clamp(32px, 10vw, 48px);
716809
}
717810

718811
.bento-card {
@@ -724,10 +817,6 @@ footer {
724817
grid-column: span 12;
725818
}
726819

727-
.footer-grid {
728-
grid-template-columns: 1fr;
729-
}
730-
731820
.footer-bottom {
732821
flex-direction: column;
733822
gap: 20px;

0 commit comments

Comments
 (0)