Home I hated writing—until I learned there’s a science to it