Elements of Reason: Cognition, Choice, and the Bounds of Rationality