fixed font weight and rem calculation issues