Text this: A VARIATIONAL MODEL ALLOWING BOTH SMOOTH AND SHARP PHASE BOUNDARIES IN SOLIDS