I essentially want side-notes in HTML docs*, footnotes in books, and I don’t really care to be able to distinguish between references and notes in the text itself.

That arguably gets a little more complicated on mobile.