CSS parser and selection engine