Text this: Internal factors behind the decline of the Marinid kingdom