Brazil nuts and pumpkin seeds are fantastic for acne because they contain selenium (Brazils) and zinc (pumpkin seeds), deficiencies in these minerals have been linked to acne.
Eating refined carbohydrates (white bread, pasta, rice, flour etc) and sugar leads to a surge in insulin and an insulin-like growth factor called IGF-1. This in turn leads to an excess of male hormones, which encourage the skin to excrete large amounts of sebum. This grease-like substance encourages the growth of bacteria responsible for acne.