Exploring the interplay of thermodynamics, economics, and climate