Text this: Samurai, warfare and the state in early medieval Japan