Class struggles, climate change, and the origins of modern agriculture