Light from a distant, giant world offers clues to the gases in its atmosphere