Thermodynamics of an interface