I believe css is more about separation of presentation and content. Here we go one step forward separating the presentation in layout and style.
Writing style in code has many advantages.
A small example. You can have the compiler giving you an error if you write widht instead of width.