There’s a tool in CSS that you might not have heard of yet. It’s powerful. It’s been there for a while. And it’ll likely become one of your favorite new things about CSS.
@supportsrule. Also known as Feature Queries.
A good introduction to Feature Queries. Seems to be well supported too.