What you really wanted when you asked for viewport units
▻https://github.com/colingourlay/root-units
“Viewport units were an awesome idea. They let us set CSS properties to lengths that are proportion to the viewport’s width, height, or the min/max of the two. There’s a small caveat that’ll trip you up sooner or later though : they don’t play nicely with scroll bars.”