“And the cold upper atmosphere causes the vapor to become solid water...
Please expound”
Correct. This heats the earth!
Water cools the earth.