i'm tired of using viewport units for font sizes because it breaks when you put components in sidebars or small cards. container query units like cqw make so much more sense for local sizing. i stopped using clamp with vw and switched to something like this:
.card-title {font-size: clamp(1rem, 5cqw, 2.5rem);}it's way more predictable when the parent container changes size instead of the whole screen. you just have to make sure you actually set a
container-type on the wrapper or it won't work. if you forget that step, the units just default to zero and your text disappears. it makes building reusable component libraries much easier without writing a million media queries.