Machine learning the trilinear and light-quark Yukawa couplings from Higgs pair kinematic shapes