Social and architectural legibility of the city