sentence1: Founded in 788 just before the city entered its golden age as the imperial capital, its numerous buildings nestle lovingly against steep Mt.
sentence2: Before the city entered a  golden age, it was founded in 788.