The summary is that the sun is actually metallic hydrogen, which forms a lattice similar to layers of graphite. This both explains the black-body radiation of the sun and provides a mechanism to explain sunspots and the solar maximum and pole flip: sunspots are non-hydrogen elements that are excluded from the metallic hydrogen lattice and push it upwards as they migrate to the surface and are ejected.