This is really neat from Terence Eden: you can use text-wrap: balance for icons as well as text https://shkspr.mobi/blog/2024/10/you-can-use-text-wrap-balance-on-icons/
Inspired by this I put together an interactive prototype using it for text-based navigation items, seems to work well for that too!
Try the prototype here: https://tools.simonwillison.net/text-wrap-balance-nav
More notes: https://simonwillison.net/2024/Oct/20/you-can-use-text-wrap-balance-on-icons/
@simon the result on Firefox mobile is a slightly distressing amount of horizontal scroll for some reason, which rather spoils the effect!