The author's solution mixes style declarations (i.e. centering text) into HTML, which surely goes against the spirit of CSS?
.Card[data-align=center] { text-align: center; }
Filling HTML with data-* style attributes would intertwine layout and content in a single file, meaning we're no longer able to use CSS to flexibly re-style the content.