tomasdevtabatkins minmax() is already very similar to clamp() - but using grid logic for the middle scaling value. max() is here to change the high end of that clamped range depending on viewport width.
I could imagine actually using clamp() in place of max() to get a final maximum…