Because I keep forgetting this, an entry on the blog so that my future self can find it back easily:
CSS: Want your first 5 list items to be bold?
li:nth-of-type(-n + 5) {font-weight: bold;}
Start with the # of list items you want to impact, then increment backward with -n.
— Estelle Weyl (@estellevw) June 21, 2022