fix(theme): clamp h3 so it never overtakes the nav h1

This commit is contained in:
Ilia Mashkov
2026-07-14 15:59:05 +03:00
parent b63e34413d
commit 0353315953
+4 -1
View File
@@ -213,7 +213,10 @@
font-size: var(--text-3xl);
}
h3 {
font-size: var(--text-2xl);
/* 5vw is tuned to stay under the nav h1 across the whole range: it only
* reaches the nav's 32px exactly at the 640px breakpoint where the nav
* itself steps up, so h3 never overtakes it. */
font-size: clamp(1.5rem, 5vw, var(--text-2xl));
}
h4 {
font-size: var(--text-xl);