Here are some ways to accomplish this.
If you are using a custom theme, you can edit that style.css and make the style changes that you want there.
If you are using a standard theme that you upgrade, you can make a child theme and then your stylesheet won’t get overwritten.
You can create your own stylesheet and just link to it in the header.php in the theme you are using.