Regenerative agriculture can make farmland resilient to climate impacts but requires a large initial investment.