A new proof of Halász’s theorem, and its consequences