CSS and HTML are not a languages built for expressing complex concepts at all
This is the entire premise of Douglas Crockford's book, JavaScript: The Good Parts.
CSS and HTML are not a languages built for expressing complex concepts at all