Convert between px, rem, and pt based on a root font size.
Assumes 96 pixels per inch (common web standard for pt conversion).