First of all: HTML+CSS is indeed pretty complex. When you care for A11y, Responsiveness, Performance, Maintenability, complexity rises as a cartesian product.
But if you introduce interactions, the complexities rise by orders of magnitude.
To keep up with those complexities, you need to have a strong engineering background in concurrent/event-driven programming. Because that’s what a UI is.
So a HTML+CSS developer is all good till they need to add a dropdown, or any interactive component. Then you either know how to manage that complexity, or you’re gonna introduce technical dept to the project (or just pass responsibility).
In reality, what I saw, is that developers focused on front-end usually can perfectly learn on the spot what they need to keep their HTML+CSS accessible or responsive. When they have a knowledge gap is usually for past disinterest.
On the other hand, HTML+CSS developers usually have a hard limit when talking about interaction.
So, when I’m searching for developers, I look for the skill super-set, because I can make a HTML+CSS dev out of a FE dev, not the opposite.