Text this: The geometry of hand-sewing