I am facing a similar problem as most of my styles are very page specific. However, my site is far from small, so I had to find a solution.
As a result, I created the css/pages folder and named each CSS file the same as the page that uses it. Then my PHP template can simply check if(file_exists("css/pages/".basename($_SERVER['PHP_SELF']))) and add the appropriate <link/> , which will result in minimal effort on my part.
Just because your site is small is not a good reason to ignore performance, although I have to say that I am a little useful, so I will probably be more pedantic: p
Ultimately, there is nothing "wrong" with simply placing the CSS page directly on the page, just make sure that everything that is used on more than one page is in the file, so you donβt need to repeat yourself.
source share