It is not possible to add custom JavaScript to a WordPress site. As for CSS, you can add inline styles to the HTML.
To add custom CSS to a page, you can go to Dashboard > Appearance > Additional CSS. Any custom CSS added here will affect styling across your whole site:

You can also add additional CSS classes to individual blocks. When you are editing a block, expand the Advanced settings dropdown in the block settings panel. Enter the desired CSS classes in the text box labeled “Additional CSS class(es).”