Diversification and intensification of agricultural adaptation from global to local scales