perf: remove Google Fonts — system font stack for body and headings; rebuild site.css -48%

This commit is contained in:
Oliver
2026-03-27 18:04:06 -03:00
parent be09564a25
commit 4781e84ebc
3 changed files with 82 additions and 56 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+66 -41
View File
@@ -16,26 +16,7 @@
rel="icon" rel="icon"
href="https://odoo4projects.com/web/image/website/1/favicon?unique=725c3af" href="https://odoo4projects.com/web/image/website/1/favicon?unique=725c3af"
/> />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="preload"
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
as="style"
onload="
this.onload = null;
this.rel = 'stylesheet';
"
/>
<noscript
><link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
/></noscript>
<link
href="https://fonts.googleapis.com/css2?family=Lora:wght@600;700&display=swap"
rel="stylesheet"
/>
<script type="application/ld+json"> <script type="application/ld+json">
{ {
"@context": "https://schema.org", "@context": "https://schema.org",
@@ -118,9 +99,9 @@
body { body {
font-family: font-family:
"Inter",
system-ui, system-ui,
-apple-system, -apple-system,
"Segoe UI",
sans-serif; sans-serif;
background-color: var(--cream); background-color: var(--cream);
color: var(--muted); color: var(--muted);
@@ -132,7 +113,7 @@
h1, h1,
h2, h2,
h3 { h3 {
font-family: "Lora", Georgia, "Times New Roman", serif; font-family: Georgia, "Times New Roman", Cambria, serif;
color: var(--brown); color: var(--brown);
line-height: 1.25; line-height: 1.25;
} }
@@ -169,7 +150,11 @@
justify-content: center; justify-content: center;
background-color: var(--terra); background-color: var(--terra);
color: var(--white); color: var(--white);
font-family: "Inter", sans-serif; font-family:
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
font-weight: 700; font-weight: 700;
font-size: 0.9375rem; font-size: 0.9375rem;
padding: 0.875rem 2rem; padding: 0.875rem 2rem;
@@ -196,7 +181,11 @@
justify-content: center; justify-content: center;
background-color: transparent; background-color: transparent;
color: var(--white); color: var(--white);
font-family: "Inter", sans-serif; font-family:
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
font-weight: 600; font-weight: 600;
font-size: 0.9375rem; font-size: 0.9375rem;
padding: 0.875rem 2rem; padding: 0.875rem 2rem;
@@ -272,7 +261,11 @@
border: 1px solid rgba(255, 255, 255, 0.32); border: 1px solid rgba(255, 255, 255, 0.32);
color: var(--white); color: var(--white);
font-size: 0.8375rem; font-size: 0.8375rem;
font-family: "Inter", sans-serif; font-family:
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
border-radius: 9999px; border-radius: 9999px;
padding: 0.45rem 1rem; padding: 0.45rem 1rem;
cursor: pointer; cursor: pointer;
@@ -337,7 +330,7 @@
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
} }
.hero-headline { .hero-headline {
font-family: "Lora", Georgia, serif; font-family: Georgia, "Times New Roman", Cambria, serif;
font-size: clamp(2.1rem, 4.2vw, 3.35rem); font-size: clamp(2.1rem, 4.2vw, 3.35rem);
font-weight: 700; font-weight: 700;
color: var(--white); color: var(--white);
@@ -365,7 +358,11 @@
border-top: 1px solid rgba(255, 255, 255, 0.18); border-top: 1px solid rgba(255, 255, 255, 0.18);
} }
.hero-stat__num { .hero-stat__num {
font-family: "Inter", sans-serif; font-family:
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
font-size: 2.5rem; font-size: 2.5rem;
font-weight: 700; font-weight: 700;
color: var(--white); color: var(--white);
@@ -404,7 +401,7 @@
margin-bottom: 0.85rem; margin-bottom: 0.85rem;
} }
.hero-kpi-card__title { .hero-kpi-card__title {
font-family: "Lora", Georgia, serif; font-family: Georgia, "Times New Roman", Cambria, serif;
font-size: 1.55rem; font-size: 1.55rem;
font-weight: 700; font-weight: 700;
color: var(--white); color: var(--white);
@@ -541,7 +538,11 @@
display: none; display: none;
} }
.impact-num { .impact-num {
font-family: "Inter", sans-serif; font-family:
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
font-size: clamp(2.25rem, 4vw, 3.1rem); font-size: clamp(2.25rem, 4vw, 3.1rem);
font-weight: 700; font-weight: 700;
color: var(--white); color: var(--white);
@@ -565,7 +566,7 @@
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
.section-title { .section-title {
font-family: "Lora", Georgia, serif; font-family: Georgia, "Times New Roman", Cambria, serif;
font-size: clamp(1.8rem, 3vw, 2.55rem); font-size: clamp(1.8rem, 3vw, 2.55rem);
font-weight: 700; font-weight: 700;
color: var(--brown); color: var(--brown);
@@ -599,7 +600,11 @@
#blog-toggle { #blog-toggle {
background: none; background: none;
border: none; border: none;
font-family: "Inter", sans-serif; font-family:
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
font-size: 0.9375rem; font-size: 0.9375rem;
font-weight: 600; font-weight: 600;
color: var(--terra); color: var(--terra);
@@ -659,7 +664,7 @@
color: var(--muted); color: var(--muted);
} }
.blog-card-title { .blog-card-title {
font-family: "Lora", Georgia, serif; font-family: Georgia, "Times New Roman", Cambria, serif;
font-size: 1.1rem; font-size: 1.1rem;
font-weight: 700; font-weight: 700;
color: var(--brown); color: var(--brown);
@@ -677,7 +682,11 @@
margin-top: 0.375rem; margin-top: 0.375rem;
background: none; background: none;
border: none; border: none;
font-family: "Inter", sans-serif; font-family:
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600; font-weight: 600;
color: var(--terra); color: var(--terra);
@@ -714,7 +723,7 @@
margin-bottom: 0.875rem; margin-bottom: 0.875rem;
} }
.trial-heading { .trial-heading {
font-family: "Lora", Georgia, serif; font-family: Georgia, "Times New Roman", Cambria, serif;
font-size: clamp(1.7rem, 2.6vw, 2.25rem); font-size: clamp(1.7rem, 2.6vw, 2.25rem);
font-weight: 700; font-weight: 700;
color: var(--white); color: var(--white);
@@ -826,7 +835,11 @@
border-radius: 1.1rem; border-radius: 1.1rem;
padding: 0.8rem 1.15rem; padding: 0.8rem 1.15rem;
font-size: 0.9125rem; font-size: 0.9125rem;
font-family: "Inter", sans-serif; font-family:
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
color: var(--brown); color: var(--brown);
background-color: var(--cream-card); background-color: var(--cream-card);
outline: none; outline: none;
@@ -850,7 +863,11 @@
width: 100%; width: 100%;
background-color: var(--terra); background-color: var(--terra);
color: var(--white); color: var(--white);
font-family: "Inter", sans-serif; font-family:
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
font-weight: 700; font-weight: 700;
font-size: 1rem; font-size: 1rem;
padding: 0.9375rem 1.5rem; padding: 0.9375rem 1.5rem;
@@ -934,7 +951,7 @@
margin-bottom: 0.875rem; margin-bottom: 0.875rem;
} }
.meeting-heading { .meeting-heading {
font-family: "Lora", Georgia, serif; font-family: Georgia, "Times New Roman", Cambria, serif;
font-size: clamp(1.7rem, 2.6vw, 2.25rem); font-size: clamp(1.7rem, 2.6vw, 2.25rem);
font-weight: 700; font-weight: 700;
color: var(--brown); color: var(--brown);
@@ -985,7 +1002,7 @@
margin-bottom: 0.875rem; margin-bottom: 0.875rem;
} }
.meeting-card__title { .meeting-card__title {
font-family: "Lora", Georgia, serif; font-family: Georgia, "Times New Roman", Cambria, serif;
font-size: 1.3rem; font-size: 1.3rem;
font-weight: 700; font-weight: 700;
color: var(--brown); color: var(--brown);
@@ -1067,7 +1084,11 @@
border: 1.5px solid rgba(255, 255, 255, 0.18); border: 1.5px solid rgba(255, 255, 255, 0.18);
border-radius: 0.875rem; border-radius: 0.875rem;
padding: 0.65rem 0.875rem; padding: 0.65rem 0.875rem;
font-family: "Inter", sans-serif; font-family:
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
font-size: 0.8rem; font-size: 0.8rem;
color: var(--white); color: var(--white);
background-color: rgba(255, 255, 255, 0.07); background-color: rgba(255, 255, 255, 0.07);
@@ -1207,7 +1228,7 @@
margin-bottom: 0.4rem; margin-bottom: 0.4rem;
} }
#blog-modal-title { #blog-modal-title {
font-family: "Lora", Georgia, serif; font-family: Georgia, "Times New Roman", Cambria, serif;
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 700; font-weight: 700;
color: var(--brown); color: var(--brown);
@@ -1269,7 +1290,11 @@
#blog-modal-close-bottom { #blog-modal-close-bottom {
background-color: var(--brown); background-color: var(--brown);
color: var(--white); color: var(--white);
font-family: "Inter", sans-serif; font-family:
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
font-weight: 600; font-weight: 600;
font-size: 0.9375rem; font-size: 0.9375rem;
padding: 0.8rem 2.75rem; padding: 0.8rem 2.75rem;
+15 -14
View File
@@ -1,27 +1,28 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
module.exports = { module.exports = {
content: ['./index.html'], content: ["./index.html"],
theme: { theme: {
extend: { extend: {
colors: { colors: {
'brand-ink': '#201824', "brand-ink": "#201824",
'brand-primary': '#603F57', "brand-primary": "#603F57",
'brand-accent': '#F762B4', "brand-accent": "#F762B4",
'brand-sunrise': '#F8B84A', "brand-sunrise": "#F8B84A",
'brand-emerald': '#39B982', "brand-emerald": "#39B982",
'brand-snow': '#F5F2F7', "brand-snow": "#F5F2F7",
'brand-smoke': '#E5DCE8' "brand-smoke": "#E5DCE8",
}, },
fontFamily: { fontFamily: {
brand: ['Inter', 'Segoe UI', 'system-ui', 'sans-serif'] brand: ["system-ui", "-apple-system", "Segoe UI", "sans-serif"],
}, },
boxShadow: { boxShadow: {
brand: '0 20px 60px rgba(32, 24, 36, 0.15)' brand: "0 20px 60px rgba(32, 24, 36, 0.15)",
}, },
backgroundImage: { backgroundImage: {
'hero-gradient': 'radial-gradient(circle at top left, rgba(247,98,180,0.35), rgba(32,24,36,0.95))' "hero-gradient":
} "radial-gradient(circle at top left, rgba(247,98,180,0.35), rgba(32,24,36,0.95))",
} },
},
}, },
plugins: [] plugins: [],
}; };