Writing better CSS

The CSS that ages well is usually the CSS that refuses special cases. Prefer custom properties for theme values, keep selectors shallow, and name utilities by intent rather than appearance.

When a redesign lands, you want to retune tokens – not chase down a hundred one-off overrides. Composition beats cleverness: small, predictable building blocks rearrange more easily than ornate snowflakes.