There's another linked fork in there that adds a few lines of JS to validate the exact letter matches so that the pattern attribute can drive the tan colors. It made me wish HTML and CSS validation had a little finer grain, ...or that the pattern attribute accepted and exposed capturing parentheses to selectors? :)