Equilibrium photo-thermodynamics enables a sustainable methanol synthesis