When Tony Stubblebine became CEO of Medium in 2022, the online publishing platform was losing more than $2.5 million each month, shedding subscribers and struggling to find a clear product-market fit.