Founded in 788 just before the city entered its golden age as the imperial capital , its numerous buildings nestle lovingly against steep Mt .
It being founded was the reason for the city 's golden age .