How to adjust the height of the top navigation bar and banner

The top navigation bar is too tall relative to the logo and avatar.

The banner height is also a bit too tall relative to the text height.

Could you provide me with the CSS code to modify these, if possible?