Specificity wars end when the order of whole groups of rules is declared up front.
@layer reset, base, components, utilities;
@layer reset { a { color: inherit; } }
@layer components { .nav a { color: #0645ad; } }
The first line fixes the order of the layers: later layers beat earlier ones, no matter how specific a selector inside is. A single a selector in utilities would therefore beat #nav .link a in reset. Importing third-party CSS into its own layer keeps it from overriding yours. One trap: rules outside any layer win over every layer, so unlayered legacy styles can overrule a carefully ordered setup.
Further reading: MDN: @layer