Tell the preprocessor (if you can call it that) for CSS, which supports nested structures, constants, arithmetic expressions that uses the syntax of the source file as similar to CSS (and not, for example, XML). Preferably either in PHP, or a separate console application under Windows. Also interested in the solution as a module for Apache.
For example:
.header {
margin: marginVar - 10;
a {
...
}
}