Thanks for the explanation, I've never seen the attr() property before. A lot of similar codepens I've seen in the past, that do fancy stylings, are suddenly making sense.
I always struggle to change my mental model about css to be more expressive, but now many wheels are starting to turn.
I always struggle to change my mental model about css to be more expressive, but now many wheels are starting to turn.