Miguel Arteta will direct the movie adaptation of Jennifer Niven’s young-adult romance “All the Bright Places,” with Elle Fanning starring.

Niven, founder of online literary teen magazine Germ, will write the script. Demarest Media will finance and produce the picture alongside Mazur/Kaplan, who brought the package to them.

The novel centers on a girl who learns to live from a boy, who intends to die. Random House Children’s Books/Knopf Books for Young Readers published the novel earlier this year, and it’s currently No. 5 on the New York Times bestseller list. It has sold internationally in 35 territories.

Arteta most recently directed “Alexander and the Terrible, Horrible, No Good, Very Bad Day.” He also helmed “Cedar Rapids” and “Youth in Revolt.”

Demarest Media’s credits include “A Most Wanted Man” and “Tusk.” It also financed and produced AMC’s upcoming series “The Night Manager,” starring Tom Hiddleston and Hugh Laurie.

Leif Lillehaugen will shepherd the project for Demarest and Ally Israelson for Mazur/Kaplan. Production is expected to begin in the spring.

Arteta’s deal was negotiated by WME, Management 360 and Lichter, Grossman, Nichols, Adler & Feldman. Niven’s deal was negotiated by RWSG and Levine Greenberg Rostan Literary.