The architecture of happiness