Text this: Ecological flexibility and adaptation to past climate change in the Middle Nile Valley