Grow from 16 to 24 pixels between 400 and 1200 pixels
Example input
16 → 24 px
400 → 1200 px
1rem = 16pxExpected result
clamp(1rem, 0.75rem + 1vw, 1.5rem)At a viewport width of 400 pixels, one vw is four pixels, so the middle expression is 12 plus 4. At 1200 pixels it is 12 plus 12. Outside that interval, clamp keeps the value at the minimum or maximum. Test intermediate widths as well as the endpoints, especially when a longer translated heading can wrap unexpectedly.