Honestly, if you believe that markets work, then all you have to do is tax the shit out of carbon emissions to internalize the externality and let the invisible hand sort out the details. Unfortunately, that's politically impossible in western democracies (see France's gilet jaune movement), so instead we're just going to keep going off the rails until it's [even more] too late.