Americans are so dour, by some measures, they seem to be looking past opportunities as if programmed to see only pitfalls. Prosperity doesn’t come from the places many people seem to be seeking it, and if the middle class is, in fact, in decline, a large part of the reason may be a lost instinct for how to get ahead.