I still don't understand how spectroscopy explains what the sun is made of. It seems to me that this only tells us what the sun is "burning" at the moment. How do we know that the sun's core doesn't consists of different elements, perhaps packed into dense layers like the jawbreaker candy, so...