Text this: A continuum thermodynamic approach to the phase-field method