Spherical codes, maximal local packing density, and the golden ratio