Why is the Church against contraception but fine with natural family planning?
The Church sees a real difference between the two, not a loophole. Periodic continence — the methods of birth regulation based on self-observation and the use of infertile periods — is in conformity with the objective criteria of morality, because these methods respect the bodies of the spouses, encourage tenderness between them, and favour the education of an authentic freedom. Contraception, by contrast, overlays the innate language of total reciprocal self-giving between husband and wife with an objectively contradictory language, that of not giving oneself totally to the other. In the Church's reading, the two involve irreconcilable concepts of the human person and of human sexuality.
Catechism of the Catholic Church, §§ 2370.
Read the teaching itself: Contraception in the Catechism pages.