Text this: Microcanonical thermodynamics in general physical theories