Indeterminate Checkboxes (Vanilla)

(This is the vanilla version of https://codepen.io/chriscoyier/pen/JYyXjX, sparked by https://twitter.com/chriscoyier/status/1167014134191468546)