Big farming is both a victim of climate change and a contributor. Droughts, floods and soil degradation threaten crop yields. But agriculture produces nearly one-quarter of global greenhouse gas…