An evolutionary perspective on (ir)rationality and