The Sun is primarily composed of hydrogen and helium, with traces of other elements. Its visible surface, the photosphere, is a dense and nearly opaque gas at a temp of 6000 K. Describe the spectrum that originates at this surface, due to the physical state of the material. Explain how the spectrum arises.