refactor: reduce complexity of HTML and CSS, less nesting, fewers identifiers