Josh Comeau's https://css-for-js.dev/ taught me a lot about CSS. He has a great approach, really focused on the concepts rather than just listing selectors and properties. I highly recommend it.