Thermodynamics, dimension and the Weil–Petersson metric