there the light-elves and the deep-elves and the sea-elves went and lived for ages , and grew fairer and wiser and more learned , and invented their magic and their cunning craft , in the making of beautiful and marvellous things , before some came back into the wide world .