the main building was a very medieval sort of fortification : four bare towers joined by thick stone walls , framing an enormous courtyard in the front and a squat , imposing hall that sank directly into the mountaintop and seemed to have grown out of it .