Text this: Nonlocal theory of material media