This paper derives a micro-founded gravity equation in general equilibrium based on a translog demand system that allows for endogenous markups and rich substitution patterns across goods. In contrast to standard CES-based gravity equations, trade is more sensitive to trade costs if the...