Frozen constituents sublimate increasingly as a comet draws closer to the sun, hurling dust and gas