Study traces ecological collapse over 6,000 years of Egyptian history