Text this: The decline of Polonnaruwa and the rise of Dambadeniya