The best resource that will teach you systematic thinking and give you a proper foundation for how to use CSS is https://every-layout.dev/. [0]
Really enjoyable read and it takes you through the thinking process.
[0] Not recommended for absolute beginners