Text this: Medieval Lucca and the evolution of the Renaissance state