Deakstadieđáhus: Topological foundations of electromagnetism