Why the Sun is growing dim