the sky was fully dark by the time they reached edinburgh ; but the castle shone out for them like a beacon with its windows and walls bright with torches , on its high rocky hill above the shadowed expanse of the covert , with the narrow buildings of the old medieval part of the city crammed together close around it .