"Pill" with thumbnail and link
The id attribute must to be unique per document. So I think that using ID for the cover image is wrong under the assumption that you may have many pills per page with covers.

I believe that using a class cover would be better in this case. You can still use .pill &gt; .cover selector in the same way to only select covers under pills.