Skip to content

Commit ef2d9a3

Browse files
style: update font styles and improve typography on landing pages
Replaced the existing font families with the Anek superfamily across 404, index, and install pages for better visual consistency. Updated CSS variables to reflect the new font choices, enhancing the overall design and readability of the landing pages.
1 parent c82ad4b commit ef2d9a3

4 files changed

Lines changed: 36 additions & 32 deletions

File tree

apps/landing/404.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<link rel="preconnect" href="https://fonts.googleapis.com">
1313
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
14-
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&family=Public+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
14+
<link href="https://fonts.googleapis.com/css2?family=Anek+Devanagari:wght@400;500;600;700&family=Anek+Latin:wght@400;500;600;700;800&display=swap" rel="stylesheet">
1515

1616
<link rel="stylesheet" href="/style.css">
1717
<style>
@@ -25,15 +25,15 @@
2525
padding-block: 80px;
2626
}
2727
.not-found .glyph {
28-
font-family: var(--serif);
28+
font-family: var(--display);
2929
font-size: 96px;
3030
font-weight: 600;
3131
color: var(--gold);
3232
line-height: 1;
3333
margin: 0 0 20px;
3434
}
3535
.not-found h1 {
36-
font-family: var(--serif);
36+
font-family: var(--display);
3737
font-size: 28px;
3838
font-weight: 600;
3939
margin: 0 0 12px;

apps/landing/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
<link rel="preconnect" href="https://fonts.googleapis.com">
4141
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
42-
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&family=Public+Sans:wght@400;500;600;700&family=Noto+Serif+Devanagari:wght@600&display=swap" rel="stylesheet">
42+
<link href="https://fonts.googleapis.com/css2?family=Anek+Devanagari:wght@400;500;600;700&family=Anek+Latin:wght@400;500;600;700;800&display=swap" rel="stylesheet">
4343

4444
<link rel="stylesheet" href="style.css">
4545
</head>

apps/landing/install.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<meta property="og:type" content="website">
1818
<meta name="twitter:card" content="summary_large_image">
1919

20+
<link rel="preconnect" href="https://fonts.googleapis.com">
21+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
22+
<link href="https://fonts.googleapis.com/css2?family=Anek+Devanagari:wght@400;500;600;700&family=Anek+Latin:wght@400;500;600;700;800&display=swap" rel="stylesheet">
2023
<link rel="stylesheet" href="style.css">
2124
<style>
2225
.steps {

apps/landing/style.css

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,20 @@
3030

3131
--holiday: #c0392b;
3232

33-
--serif: "Source Serif 4", ui-serif, Georgia, serif;
34-
--sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
35-
--devanagari: "Noto Serif Devanagari", "Noto Sans Devanagari", serif;
33+
/*
34+
* Anek (Ek Type) — one superfamily drawn across Devanagari and Latin.
35+
*
36+
* The page previously set its headlines in Source Serif 4 over a neutral
37+
* grotesque, which is the most-copied landing-page pairing of the moment,
38+
* and its Devanagari in Noto — the universal fallback family. A product
39+
* whose entire premise is Nepali had the Nepali word in its own hero set in
40+
* the typographic equivalent of Arial. Anek was drawn for exactly this: the
41+
* two scripts share a skeleton, so `सजिलो` and `Sajilo` are the same voice
42+
* rather than two fonts sitting next to each other.
43+
*/
44+
--display: "Anek Latin", "Anek Devanagari", system-ui, sans-serif;
45+
--sans: "Anek Latin", "Anek Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
46+
--devanagari: "Anek Devanagari", "Anek Latin", sans-serif;
3647

3748
--ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
3849
--radius-lg: 14px;
@@ -194,7 +205,7 @@ img {
194205
display: inline-flex;
195206
align-items: center;
196207
gap: 10px;
197-
font-family: var(--serif);
208+
font-family: var(--display);
198209
font-weight: 600;
199210
font-size: 18px;
200211
letter-spacing: -0.01em;
@@ -306,20 +317,16 @@ img {
306317
font-size: clamp(1.25rem, 2vw, 1.5rem);
307318
color: var(--gold);
308319
margin: 0 0 8px;
309-
opacity: 0;
310-
animation: rise 0.7s var(--ease-out-quart) 0.08s forwards;
311320
}
312321

313322
.hero-copy h1 {
314-
font-family: var(--serif);
315-
font-weight: 600;
323+
font-family: var(--display);
324+
font-weight: 700;
316325
font-size: clamp(2.5rem, 4.2vw + 1rem, 4.25rem);
317326
letter-spacing: -0.03em;
318327
line-height: 1.04;
319328
margin: 0 0 18px;
320329
text-wrap: balance;
321-
opacity: 0;
322-
animation: rise 0.7s var(--ease-out-quart) 0.14s forwards;
323330
}
324331

325332
.hero-copy .tagline {
@@ -329,8 +336,6 @@ img {
329336
max-width: 48ch;
330337
margin: 0 0 22px;
331338
text-wrap: pretty;
332-
opacity: 0;
333-
animation: rise 0.7s var(--ease-out-quart) 0.2s forwards;
334339
}
335340

336341
@media (max-width: 900px) {
@@ -345,8 +350,6 @@ img {
345350
flex-direction: column;
346351
align-items: flex-start;
347352
gap: 12px;
348-
opacity: 0;
349-
animation: rise 0.7s var(--ease-out-quart) 0.26s forwards;
350353
}
351354

352355
@media (max-width: 900px) {
@@ -446,8 +449,6 @@ img {
446449
display: flex;
447450
justify-content: center;
448451
perspective: 1400px;
449-
opacity: 0;
450-
animation: rise 0.85s var(--ease-out-quart) 0.18s forwards;
451452
}
452453

453454
/* The headline says "on your menu bar", so the shot shows exactly that: a
@@ -570,6 +571,12 @@ img {
570571
border-radius: 15px;
571572
}
572573

574+
@media (prefers-reduced-motion: no-preference) {
575+
.hero-shot {
576+
animation: rise 0.8s var(--ease-out-quart) both;
577+
}
578+
}
579+
573580
@keyframes rise {
574581
from {
575582
opacity: 0;
@@ -582,14 +589,8 @@ img {
582589
}
583590

584591
@media (prefers-reduced-motion: reduce) {
585-
.hero-copy .deva,
586-
.hero-copy h1,
587-
.hero-copy .tagline,
588-
.download-cta,
589592
.hero-shot {
590593
animation: none;
591-
opacity: 1;
592-
transform: none;
593594
}
594595

595596
.hero-device,
@@ -621,7 +622,7 @@ img {
621622

622623
.pillar h2 {
623624
margin: 0 0 8px;
624-
font-family: var(--serif);
625+
font-family: var(--display);
625626
font-size: 1.125rem;
626627
font-weight: 600;
627628
letter-spacing: -0.01em;
@@ -647,8 +648,8 @@ section {
647648
}
648649

649650
.section-head h2 {
650-
font-family: var(--serif);
651-
font-weight: 600;
651+
font-family: var(--display);
652+
font-weight: 700;
652653
font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
653654
letter-spacing: -0.02em;
654655
margin: 0 0 10px;
@@ -786,7 +787,7 @@ section {
786787

787788
.carousel-live-caption {
788789
margin: 0;
789-
font-family: var(--serif);
790+
font-family: var(--display);
790791
font-size: clamp(1.125rem, 1vw + 1rem, 1.375rem);
791792
font-weight: 600;
792793
letter-spacing: -0.01em;
@@ -1183,7 +1184,7 @@ section {
11831184

11841185
.install-platform h3 {
11851186
margin: 0;
1186-
font-family: var(--serif);
1187+
font-family: var(--display);
11871188
font-size: 1.125rem;
11881189
font-weight: 600;
11891190
}
@@ -1256,7 +1257,7 @@ section {
12561257

12571258
.cta-band h2 {
12581259
margin: 0 0 8px;
1259-
font-family: var(--serif);
1260+
font-family: var(--display);
12601261
font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
12611262
letter-spacing: -0.02em;
12621263
}

0 commit comments

Comments
 (0)