Historical writings reveal how people weathered the Little Ice Age