Move visual output alongside code.

And improve styling all-round. Clean up the CSS a bit, but it still
needs more sorting.