The underline offset should resolve against the font-size of the decorating element (20px), not the font-size of the text (40px), so all underlines must be at the same position.

foo bar