Text this: Three essays on frictions of trade