Why clamp() instead of breakpoints?
The old way sets one size for mobile and another for desktop, so text jumps at a certain width. With clamp() text grows gradually with the screen, never below the minimum or above the maximum.
clamp()clamp(MIN, PREFERRED, MAX)
Examplefont-size: clamp(1rem, 0.95rem + 0.22vw, 1.125rem);
Usageh1 { font-size: var(--step-5); }
rem1rem = 16px