thus the years passed , and while middle-earth went backward and light and wisdom faded , the dunedain dwelt under the protection of the valar and in the friendship of the eldar , and they increased in stature both of mind and body .