Seol mar théacs é seo: Topological foundations of electromagnetism