The party is appealing to a socially conservative base at the cost of its more liberal-minded voters.