Text this: A $p$ -adic nonabelian criterion for good reduction of curves